You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
1.3 MiB
2 lines
1.3 MiB
/*! For license information please see et-ai-app.bundle.js.LICENSE.txt */
|
|
(()=>{var e={2105:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApiProvider:()=>tt,QueryStatus:()=>n,buildCreateApi:()=>pe,copyWithStructuralSharing:()=>T,coreModule:()=>Te,createApi:()=>rt,defaultSerializeQueryArgs:()=>de,fakeBaseQuery:()=>he,fetchBaseQuery:()=>P,reactHooksModule:()=>et,retry:()=>H,setupListeners:()=>$,skipSelector:()=>ae,skipToken:()=>ie});var n,o,i=r(4268),a=r(2902),l=r(2222),s=r(4791),u=r(4815),c=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},f=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},d=Object.defineProperty,p=Object.defineProperties,h=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,y=function(e,t,r){return t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},b=function(e,t){for(var r in t||(t={}))v.call(t,r)&&y(e,r,t[r]);if(m)for(var n=0,o=m(t);n<o.length;n++){r=o[n];g.call(t,r)&&y(e,r,t[r])}return e},w=function(e,t){return p(e,h(t))},_=function(e,t){var r={};for(var n in e)v.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&m)for(var o=0,i=m(e);o<i.length;o++){n=i[o];t.indexOf(n)<0&&g.call(e,n)&&(r[n]=e[n])}return r},x=function(e,t,r){return new Promise((function(n,o){var i=function(e){try{l(r.next(e))}catch(e){o(e)}},a=function(e){try{l(r.throw(e))}catch(e){o(e)}},l=function(e){return e.done?n(e.value):Promise.resolve(e.value).then(i,a)};l((r=r.apply(e,t)).next())}))};(o=n||(n={})).uninitialized="uninitialized",o.pending="pending",o.fulfilled="fulfilled",o.rejected="rejected";var k=function(e){return e.replace(/\/$/,"")},S=function(e){return e.replace(/^\//,"")};function O(e,t){if(!e)return t;if(!t)return e;if(function(e){return new RegExp("(^|:)//").test(e)}(t))return t;var r=e.endsWith("/")||!t.startsWith("?")?"/":"";return""+(e=k(e))+r+(t=S(t))}var E=function(e){return[].concat.apply([],e)};var C=i.isPlainObject;function T(e,t){if(e===t||!(C(e)&&C(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var r=Object.keys(t),n=Object.keys(e),o=r.length===n.length,i=Array.isArray(t)?[]:{},a=0,l=r;a<l.length;a++){var s=l[a];i[s]=T(e[s],t[s]),o&&(o=e[s]===i[s])}return o?e:i}var L=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fetch.apply(void 0,e)},M=function(e){return e.status>=200&&e.status<=299},A=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function j(e){if(!(0,i.isPlainObject)(e))return e;for(var t=b({},e),r=0,n=Object.entries(t);r<n.length;r++){var o=n[r],a=o[0];void 0===o[1]&&delete t[a]}return t}function P(e){var t=this;void 0===e&&(e={});var r=e,n=r.baseUrl,o=r.prepareHeaders,a=void 0===o?function(e){return e}:o,l=r.fetchFn,s=void 0===l?L:l,u=r.paramsSerializer,f=r.isJsonContentType,d=void 0===f?A:f,p=r.jsonContentType,h=void 0===p?"application/json":p,m=r.jsonReplacer,v=r.timeout,g=r.responseHandler,y=r.validateStatus,k=_(r,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","responseHandler","validateStatus"]);return"undefined"==typeof fetch&&s===L&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(e,r){return x(t,null,(function(){var t,o,l,f,p,x,E,C,T,L,A,P,I,R,N,D,z,F,H,B,W,U,V,q,$,G,K,Y,Q,Z,X,J,ee,te,re,ne;return c(this,(function(c){switch(c.label){case 0:return t=r.signal,o=r.getState,l=r.extra,f=r.endpoint,p=r.forced,x=r.type,T=(C="string"==typeof e?{url:e}:e).url,L=C.headers,A=void 0===L?new Headers(k.headers):L,P=C.params,I=void 0===P?void 0:P,R=C.responseHandler,N=void 0===R?null!=g?g:"json":R,D=C.validateStatus,z=void 0===D?null!=y?y:M:D,F=C.timeout,H=void 0===F?v:F,B=_(C,["url","headers","params","responseHandler","validateStatus","timeout"]),W=b(w(b({},k),{signal:t}),B),A=new Headers(j(A)),U=W,[4,a(A,{getState:o,extra:l,endpoint:f,forced:p,type:x})];case 1:U.headers=c.sent()||A,V=function(e){return"object"==typeof e&&((0,i.isPlainObject)(e)||Array.isArray(e)||"function"==typeof e.toJSON)},!W.headers.has("content-type")&&V(W.body)&&W.headers.set("content-type",h),V(W.body)&&d(W.headers)&&(W.body=JSON.stringify(W.body,m)),I&&(q=~T.indexOf("?")?"&":"?",$=u?u(I):new URLSearchParams(j(I)),T+=q+$),T=O(n,T),G=new Request(T,W),K=G.clone(),E={request:K},Q=!1,Z=H&&setTimeout((function(){Q=!0,r.abort()}),H),c.label=2;case 2:return c.trys.push([2,4,5,6]),[4,s(G)];case 3:return Y=c.sent(),[3,6];case 4:return X=c.sent(),[2,{error:{status:Q?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(X)},meta:E}];case 5:return Z&&clearTimeout(Z),[7];case 6:J=Y.clone(),E.response=J,te="",c.label=7;case 7:return c.trys.push([7,9,,10]),[4,Promise.all([S(Y,N).then((function(e){return ee=e}),(function(e){return re=e})),J.text().then((function(e){return te=e}),(function(){}))])];case 8:if(c.sent(),re)throw re;return[3,10];case 9:return ne=c.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:Y.status,data:te,error:String(ne)},meta:E}];case 10:return[2,z(Y,ee)?{data:ee,meta:E}:{error:{status:Y.status,data:ee},meta:E}]}}))}))};function S(e,t){return x(this,null,(function(){var r;return c(this,(function(n){switch(n.label){case 0:return"function"==typeof t?[2,t(e)]:("content-type"===t&&(t=d(e.headers)?"json":"text"),"json"!==t?[3,2]:[4,e.text()]);case 1:return[2,(r=n.sent()).length?JSON.parse(r):null];case 2:return[2,e.text()]}}))}))}}var I=function(e,t){void 0===t&&(t=void 0),this.value=e,this.meta=t};function R(e,t){return void 0===e&&(e=0),void 0===t&&(t=5),x(this,null,(function(){var r,n;return c(this,(function(o){switch(o.label){case 0:return r=Math.min(e,t),n=~~((Math.random()+.4)*(300<<r)),[4,new Promise((function(e){return setTimeout((function(t){return e(t)}),n)}))];case 1:return o.sent(),[2]}}))}))}var N,D,z={},F=function(e,t){return function(r,n,o){return x(void 0,null,(function(){var i,a,l,s,u,f,d;return c(this,(function(c){switch(c.label){case 0:i=[5,(t||z).maxRetries,(o||z).maxRetries].filter((function(e){return void 0!==e})),a=i.slice(-1)[0],l=function(e,t,r){return r.attempt<=a},s=b(b({maxRetries:a,backoff:R,retryCondition:l},t),o),u=0,c.label=1;case 1:0,c.label=2;case 2:return c.trys.push([2,4,,6]),[4,e(r,n,o)];case 3:if((f=c.sent()).error)throw new I(f);return[2,f];case 4:if(d=c.sent(),u++,d.throwImmediately){if(d instanceof I)return[2,d.value];throw d}return d instanceof I&&!s.retryCondition(d.value.error,r,{attempt:u,baseQueryApi:n,extraOptions:o})?[2,d.value]:[4,s.backoff(u,s.maxRetries)];case 5:return c.sent(),[3,6];case 6:return[3,1];case 7:return[2]}}))}))}},H=Object.assign(F,{fail:function(e){throw Object.assign(new I({error:e}),{throwImmediately:!0})}}),B=(0,i.createAction)("__rtkq/focused"),W=(0,i.createAction)("__rtkq/unfocused"),U=(0,i.createAction)("__rtkq/online"),V=(0,i.createAction)("__rtkq/offline"),q=!1;function $(e,t){return t?t(e,{onFocus:B,onFocusLost:W,onOffline:V,onOnline:U}):(r=function(){return e(B())},n=function(){return e(U())},o=function(){return e(V())},i=function(){"visible"===window.document.visibilityState?r():e(W())},q||"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",r,!1),window.addEventListener("online",n,!1),window.addEventListener("offline",o,!1),q=!0),function(){window.removeEventListener("focus",r),window.removeEventListener("visibilitychange",i),window.removeEventListener("online",n),window.removeEventListener("offline",o),q=!1});var r,n,o,i}function G(e){return e.type===N.query}function K(e,t,r,n,o,i){return"function"==typeof e?e(t,r,n,o).map(Y).map(i):Array.isArray(e)?e.map(Y).map(i):[]}function Y(e){return"string"==typeof e?{type:e}:e}function Q(e){return null!=e}(D=N||(N={})).query="query",D.mutation="mutation";var Z=Symbol("forceQueryFn"),X=function(e){return"function"==typeof e[Z]};function J(e){return e}function ee(e,t,r,n){return K(r[e.meta.arg.endpointName][t],(0,i.isFulfilled)(e)?e.payload:void 0,(0,i.isRejectedWithValue)(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function te(e,t,r){var n=e[t];n&&r(n)}function re(e){var t;return null!=(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)?t:e.requestId}function ne(e,t,r){var n=e[re(t)];n&&r(n)}var oe={};var ie=Symbol.for("RTKQ/skipToken"),ae=ie,le={status:n.uninitialized},se=(0,a.ZP)(le,(function(){})),ue=(0,a.ZP)(le,(function(){}));function ce(e){var t=e.serializeQueryArgs,r=e.reducerPath,o=function(e){return se},i=function(e){return ue};return{buildQuerySelector:function(e,r){return function(n){var i=t({queryArgs:n,endpointDefinition:r,endpointName:e}),u=n===ie?o:function(e){var t,r,n;return null!=(n=null==(r=null==(t=s(e))?void 0:t.queries)?void 0:r[i])?n:se};return(0,l.P1)(u,a)}},buildMutationSelector:function(){return function(e){var t,r,n=(r="object"==typeof e?null!=(t=re(e))?t:ie:e)===ie?i:function(e){var t,n,o;return null!=(o=null==(n=null==(t=s(e))?void 0:t.mutations)?void 0:n[r])?o:ue};return(0,l.P1)(n,a)}},selectInvalidatedBy:function(e,t){for(var n,o=e[r],i=new Set,a=0,l=t.map(Y);a<l.length;a++){var s=l[a],u=o.provided[s.type];if(u)for(var c=0,f=null!=(n=void 0!==s.id?u[s.id]:E(Object.values(u)))?n:[];c<f.length;c++){var d=f[c];i.add(d)}}return E(Array.from(i.values()).map((function(e){var t=o.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))}};function a(e){return b(b({},e),{status:t=e.status,isUninitialized:t===n.uninitialized,isLoading:t===n.pending,isSuccess:t===n.fulfilled,isError:t===n.rejected});var t}function s(e){return e[r]}}var fe=WeakMap?new WeakMap:void 0,de=function(e){var t=e.endpointName,r=e.queryArgs,n="",o=null==fe?void 0:fe.get(r);if("string"==typeof o)n=o;else{var a=JSON.stringify(r,(function(e,t){return(0,i.isPlainObject)(t)?Object.keys(t).sort().reduce((function(e,r){return e[r]=t[r],e}),{}):t}));(0,i.isPlainObject)(r)&&(null==fe||fe.set(r,a)),n=a}return t+"("+n+")"};function pe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var r=(0,u.PW)((function(e){var r,n;return null==(n=t.extractRehydrationInfo)?void 0:n.call(t,e,{reducerPath:null!=(r=t.reducerPath)?r:"api"})})),n=w(b({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},t),{extractRehydrationInfo:r,serializeQueryArgs:function(e){var r=de;if("serializeQueryArgs"in e.endpointDefinition){var n=e.endpointDefinition.serializeQueryArgs;r=function(e){var t=n(e);return"string"==typeof t?t:de(w(b({},e),{queryArgs:t}))}}else t.serializeQueryArgs&&(r=t.serializeQueryArgs);return r(e)},tagTypes:f([],t.tagTypes||[])}),o={endpointDefinitions:{},batch:function(e){e()},apiUid:(0,i.nanoid)(),extractRehydrationInfo:r,hasRehydrationInfo:(0,u.PW)((function(e){return null!=r(e)}))},a={injectEndpoints:function(e){for(var t=e.endpoints({query:function(e){return w(b({},e),{type:N.query})},mutation:function(e){return w(b({},e),{type:N.mutation})}}),r=0,n=Object.entries(t);r<n.length;r++){var i=n[r],s=i[0],u=i[1];if(e.overrideExisting||!(s in o.endpointDefinitions)){o.endpointDefinitions[s]=u;for(var c=0,f=l;c<f.length;c++){f[c].injectEndpoint(s,u)}}}return a},enhanceEndpoints:function(e){var t=e.addTagTypes,r=e.endpoints;if(t)for(var i=0,l=t;i<l.length;i++){var s=l[i];n.tagTypes.includes(s)||n.tagTypes.push(s)}if(r)for(var u=0,c=Object.entries(r);u<c.length;u++){var f=c[u],d=f[0],p=f[1];"function"==typeof p?p(o.endpointDefinitions[d]):Object.assign(o.endpointDefinitions[d]||{},p)}return a}},l=e.map((function(e){return e.init(a,n,o)}));return a.injectEndpoints({endpoints:t.endpoints})}}function he(){return function(){throw new Error("When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.")}}var me,ve=function(e){var t=e.reducerPath,r=e.api,n=e.context,o=e.internalState,i=r.internalActions,a=i.removeQueryResult,l=i.unsubscribeQueryResult;function s(e){var t=o.currentSubscriptions[e];return!!t&&!function(e){for(var t in e)return!1;return!0}(t)}var u={};function c(e,t,r,o){var i,l=n.endpointDefinitions[t],c=null!=(i=null==l?void 0:l.keepUnusedDataFor)?i:o.keepUnusedDataFor;if(c!==1/0){var f=Math.max(0,Math.min(c,2147482.647));if(!s(e)){var d=u[e];d&&clearTimeout(d),u[e]=setTimeout((function(){s(e)||r.dispatch(a({queryCacheKey:e})),delete u[e]}),1e3*f)}}}return function(e,o,i){var a;if(l.match(e)){var s=o.getState()[t];c(w=e.payload.queryCacheKey,null==(a=s.queries[w])?void 0:a.endpointName,o,s.config)}if(r.util.resetApiState.match(e))for(var f=0,d=Object.entries(u);f<d.length;f++){var p=d[f],h=p[0],m=p[1];m&&clearTimeout(m),delete u[h]}if(n.hasRehydrationInfo(e)){s=o.getState()[t];for(var v=n.extractRehydrationInfo(e).queries,g=0,y=Object.entries(v);g<y.length;g++){var b=y[g],w=b[0],_=b[1];c(w,null==_?void 0:_.endpointName,o,s.config)}}}},ge=function(e){var t=e.reducerPath,r=e.context,o=e.context.endpointDefinitions,a=e.mutationThunk,l=e.api,s=e.assertTagType,u=e.refetchQuery,c=l.internalActions.removeQueryResult,f=(0,i.isAnyOf)((0,i.isFulfilled)(a),(0,i.isRejectedWithValue)(a));function d(e,o){var i=o.getState(),a=i[t],s=l.util.selectInvalidatedBy(i,e);r.batch((function(){for(var e,t=0,r=Array.from(s.values());t<r.length;t++){var i=r[t].queryCacheKey,l=a.queries[i],f=null!=(e=a.subscriptions[i])?e:{};l&&(0===Object.keys(f).length?o.dispatch(c({queryCacheKey:i})):l.status!==n.uninitialized&&o.dispatch(u(l,i)))}}))}return function(e,t){f(e)&&d(ee(e,"invalidatesTags",o,s),t),l.util.invalidateTags.match(e)&&d(K(e.payload,void 0,void 0,void 0,void 0,s),t)}},ye=function(e){var t=e.reducerPath,r=e.queryThunk,o=e.api,i=e.refetchQuery,a=e.internalState,l={};function s(e,r){var o=e.queryCacheKey,s=r.getState()[t].queries[o],u=a.currentSubscriptions[o];if(s&&s.status!==n.uninitialized){var c=f(u);if(Number.isFinite(c)){var d=l[o];(null==d?void 0:d.timeout)&&(clearTimeout(d.timeout),d.timeout=void 0);var p=Date.now()+c,h=l[o]={nextPollTimestamp:p,pollingInterval:c,timeout:setTimeout((function(){h.timeout=void 0,r.dispatch(i(s,o))}),c)}}}}function u(e,r){var o=e.queryCacheKey,i=r.getState()[t].queries[o],u=a.currentSubscriptions[o];if(i&&i.status!==n.uninitialized){var d=f(u);if(Number.isFinite(d)){var p=l[o],h=Date.now()+d;(!p||h<p.nextPollTimestamp)&&s({queryCacheKey:o},r)}else c(o)}}function c(e){var t=l[e];(null==t?void 0:t.timeout)&&clearTimeout(t.timeout),delete l[e]}function f(e){void 0===e&&(e={});var t=Number.POSITIVE_INFINITY;for(var r in e)e[r].pollingInterval&&(t=Math.min(e[r].pollingInterval,t));return t}return function(e,t){(o.internalActions.updateSubscriptionOptions.match(e)||o.internalActions.unsubscribeQueryResult.match(e))&&u(e.payload,t),(r.pending.match(e)||r.rejected.match(e)&&e.meta.condition)&&u(e.meta.arg,t),(r.fulfilled.match(e)||r.rejected.match(e)&&!e.meta.condition)&&s(e.meta.arg,t),o.util.resetApiState.match(e)&&function(){for(var e=0,t=Object.keys(l);e<t.length;e++){c(t[e])}}()}},be=new Error("Promise never resolved before cacheEntryRemoved."),we=function(e){var t=e.api,r=e.reducerPath,n=e.context,o=e.queryThunk,a=e.mutationThunk,l=(e.internalState,(0,i.isAsyncThunkAction)(o)),s=(0,i.isAsyncThunkAction)(a),u=(0,i.isFulfilled)(o,a),c={};function f(e,r,o,i,a){var l=n.endpointDefinitions[e],s=null==l?void 0:l.onCacheEntryAdded;if(s){var u={},f=new Promise((function(e){u.cacheEntryRemoved=e})),d=Promise.race([new Promise((function(e){u.valueResolved=e})),f.then((function(){throw be}))]);d.catch((function(){})),c[o]=u;var p=t.endpoints[e].select(l.type===N.query?r:o),h=i.dispatch((function(e,t,r){return r})),m=w(b({},i),{getCacheEntry:function(){return p(i.getState())},requestId:a,extra:h,updateCachedData:l.type===N.query?function(n){return i.dispatch(t.util.updateQueryData(e,r,n))}:void 0,cacheDataLoaded:d,cacheEntryRemoved:f}),v=s(r,m);Promise.resolve(v).catch((function(e){if(e!==be)throw e}))}}return function(e,n,i){var d=function(e){return l(e)?e.meta.arg.queryCacheKey:s(e)?e.meta.requestId:t.internalActions.removeQueryResult.match(e)?e.payload.queryCacheKey:t.internalActions.removeMutationResult.match(e)?re(e.payload):""}(e);if(o.pending.match(e)){var p=i[r].queries[d],h=n.getState()[r].queries[d];!p&&h&&f(e.meta.arg.endpointName,e.meta.arg.originalArgs,d,n,e.meta.requestId)}else if(a.pending.match(e)){(h=n.getState()[r].mutations[d])&&f(e.meta.arg.endpointName,e.meta.arg.originalArgs,d,n,e.meta.requestId)}else if(u(e)){(null==(b=c[d])?void 0:b.valueResolved)&&(b.valueResolved({data:e.payload,meta:e.meta.baseQueryMeta}),delete b.valueResolved)}else if(t.internalActions.removeQueryResult.match(e)||t.internalActions.removeMutationResult.match(e)){(b=c[d])&&(delete c[d],b.cacheEntryRemoved())}else if(t.util.resetApiState.match(e))for(var m=0,v=Object.entries(c);m<v.length;m++){var g=v[m],y=g[0],b=g[1];delete c[y],b.cacheEntryRemoved()}}},_e=function(e){var t=e.api,r=e.context,n=e.queryThunk,o=e.mutationThunk,a=(0,i.isPending)(n,o),l=(0,i.isRejected)(n,o),s=(0,i.isFulfilled)(n,o),u={};return function(e,n){var o,i,c;if(a(e)){var f=e.meta,d=f.requestId,p=f.arg,h=p.endpointName,m=p.originalArgs,v=r.endpointDefinitions[h],g=null==v?void 0:v.onQueryStarted;if(g){var y={},_=new Promise((function(e,t){y.resolve=e,y.reject=t}));_.catch((function(){})),u[d]=y;var x=t.endpoints[h].select(v.type===N.query?m:d),k=n.dispatch((function(e,t,r){return r})),S=w(b({},n),{getCacheEntry:function(){return x(n.getState())},requestId:d,extra:k,updateCachedData:v.type===N.query?function(e){return n.dispatch(t.util.updateQueryData(h,m,e))}:void 0,queryFulfilled:_});g(m,S)}}else if(s(e)){var O=e.meta,E=(d=O.requestId,O.baseQueryMeta);null==(o=u[d])||o.resolve({data:e.payload,meta:E}),delete u[d]}else if(l(e)){var C=e.meta,T=(d=C.requestId,C.rejectedWithValue);E=C.baseQueryMeta;null==(c=u[d])||c.reject({error:null!=(i=e.payload)?i:e.error,isUnhandledError:!T,meta:E}),delete u[d]}}},xe=function(e){var t=e.api,r=e.context.apiUid;e.reducerPath;return function(e,n){t.util.resetApiState.match(e)&&n.dispatch(t.internalActions.middlewareRegistered(r))}},ke="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"!=typeof window?window:void 0!==r.g?r.g:globalThis):function(e){return(me||(me=Promise.resolve())).then(e).catch((function(e){return setTimeout((function(){throw e}),0)}))},Se=function(e){var t=e.api,r=e.queryThunk,n=e.internalState,o=t.reducerPath+"/subscriptions",i=null,l=!1,s=t.internalActions,u=s.updateSubscriptionOptions,c=s.unsubscribeQueryResult;return function(e,s){var f,d;if(i||(i=JSON.parse(JSON.stringify(n.currentSubscriptions))),t.util.resetApiState.match(e))return i=n.currentSubscriptions={},[!0,!1];if(t.internalActions.internal_probeSubscription.match(e)){var p=e.payload,h=p.queryCacheKey,m=p.requestId;return[!1,!!(null==(f=n.currentSubscriptions[h])?void 0:f[m])]}var v=function(e,n){var o,i,a,l,s,f,d,p,h;if(u.match(n)){var m=n.payload,v=m.queryCacheKey,g=m.requestId,y=m.options;return(null==(o=null==e?void 0:e[v])?void 0:o[g])&&(e[v][g]=y),!0}if(c.match(n)){var b=n.payload;return v=b.queryCacheKey,g=b.requestId,e[v]&&delete e[v][g],!0}if(t.internalActions.removeQueryResult.match(n))return delete e[n.payload.queryCacheKey],!0;if(r.pending.match(n)){var w=n.meta,_=w.arg;if(g=w.requestId,_.subscribe)return(x=null!=(a=e[i=_.queryCacheKey])?a:e[i]={})[g]=null!=(s=null!=(l=_.subscriptionOptions)?l:x[g])?s:{},!0}if(r.rejected.match(n)){var x,k=n.meta,S=k.condition;if(_=k.arg,g=k.requestId,S&&_.subscribe)return(x=null!=(d=e[f=_.queryCacheKey])?d:e[f]={})[g]=null!=(h=null!=(p=_.subscriptionOptions)?p:x[g])?h:{},!0}return!1}(n.currentSubscriptions,e);if(v){l||(ke((function(){var e=JSON.parse(JSON.stringify(n.currentSubscriptions)),r=(0,a.aS)(i,(function(){return e}))[1];s.next(t.internalActions.subscriptionsUpdated(r)),i=e,l=!1})),l=!0);var g=!!(null==(d=e.type)?void 0:d.startsWith(o)),y=r.rejected.match(e)&&e.meta.condition&&!!e.meta.arg.subscribe;return[!g&&!y,!1]}return[!0,!1]}};function Oe(e){var t=e.reducerPath,r=e.queryThunk,o=e.api,a=e.context,l=a.apiUid,s={invalidateTags:(0,i.createAction)(t+"/invalidateTags")},u=[xe,ve,ge,ye,we,_e];return{middleware:function(r){var i=!1,s=w(b({},e),{internalState:{currentSubscriptions:{}},refetchQuery:c}),f=u.map((function(e){return e(s)})),d=Se(s),p=function(e){var t=e.reducerPath,r=e.context,o=e.api,i=e.refetchQuery,a=e.internalState,l=o.internalActions.removeQueryResult;function s(e,o){var s=e.getState()[t],u=s.queries,c=a.currentSubscriptions;r.batch((function(){for(var t=0,r=Object.keys(c);t<r.length;t++){var a=r[t],f=u[a],d=c[a];d&&f&&(Object.values(d).some((function(e){return!0===e[o]}))||Object.values(d).every((function(e){return void 0===e[o]}))&&s.config[o])&&(0===Object.keys(d).length?e.dispatch(l({queryCacheKey:a})):f.status!==n.uninitialized&&e.dispatch(i(f,a)))}}))}return function(e,t){B.match(e)&&s(t,"refetchOnFocus"),U.match(e)&&s(t,"refetchOnReconnect")}}(s);return function(e){return function(n){i||(i=!0,r.dispatch(o.internalActions.middlewareRegistered(l)));var s,u=w(b({},r),{next:e}),c=r.getState(),h=d(n,u,c),m=h[0],v=h[1];if(s=m?e(n):v,r.getState()[t]&&(p(n,u,c),function(e){return!!e&&"string"==typeof e.type&&e.type.startsWith(t+"/")}(n)||a.hasRehydrationInfo(n)))for(var g=0,y=f;g<y.length;g++){(0,y[g])(n,u,c)}return s}}},actions:s};function c(e,t,n){return void 0===n&&(n={}),r(b({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t},n))}}function Ee(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];Object.assign.apply(Object,f([e],t))}var Ce=Symbol(),Te=function(){return{name:Ce,init:function(e,t,r){var o=t.baseQuery,l=(t.tagTypes,t.reducerPath),u=t.serializeQueryArgs,d=t.keepUnusedDataFor,p=t.refetchOnMountOrArgChange,h=t.refetchOnFocus,m=t.refetchOnReconnect;(0,a.vI)();var v=function(e){return e};Object.assign(e,{reducerPath:l,endpoints:{},internalActions:{onOnline:U,onOffline:V,onFocus:B,onFocusLost:W},util:{}});var g=function(e){var t=this,r=e.reducerPath,o=e.baseQuery,l=e.context.endpointDefinitions,s=e.serializeQueryArgs,u=e.api,f=function(e,r){return x(t,[e,r],(function(e,t){var r,n,a,s,u,f,p,h,m,v,g,y,b,w=t.signal,_=t.abort,x=t.rejectWithValue,k=t.fulfillWithValue,S=t.dispatch,O=t.getState,E=t.extra;return c(this,(function(t){switch(t.label){case 0:r=l[e.endpointName],t.label=1;case 1:return t.trys.push([1,8,,13]),n=J,a=void 0,s={signal:w,abort:_,dispatch:S,getState:O,extra:E,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?d(e,O()):void 0},(u="query"===e.type?e[Z]:void 0)?(a=u(),[3,6]):[3,2];case 2:return r.query?[4,o(r.query(e.originalArgs),s,r.extraOptions)]:[3,4];case 3:return a=t.sent(),r.transformResponse&&(n=r.transformResponse),[3,6];case 4:return[4,r.queryFn(e.originalArgs,s,r.extraOptions,(function(e){return o(e,s,r.extraOptions)}))];case 5:a=t.sent(),t.label=6;case 6:if(a.error)throw new I(a.error,a.meta);return f=k,[4,n(a.data,a.meta,e.originalArgs)];case 7:return[2,f.apply(void 0,[t.sent(),(y={fulfilledTimeStamp:Date.now(),baseQueryMeta:a.meta},y[i.SHOULD_AUTOBATCH]=!0,y)])];case 8:if(p=t.sent(),!((h=p)instanceof I))return[3,12];m=J,r.query&&r.transformErrorResponse&&(m=r.transformErrorResponse),t.label=9;case 9:return t.trys.push([9,11,,12]),v=x,[4,m(h.value,h.meta,e.originalArgs)];case 10:return[2,v.apply(void 0,[t.sent(),(b={baseQueryMeta:h.meta},b[i.SHOULD_AUTOBATCH]=!0,b)])];case 11:return g=t.sent(),h=g,[3,12];case 12:throw console.error(h),h;case 13:return[2]}}))}))};function d(e,t){var n,o,i,a,l=null==(o=null==(n=t[r])?void 0:n.queries)?void 0:o[e.queryCacheKey],s=null==(i=t[r])?void 0:i.config.refetchOnMountOrArgChange,u=null==l?void 0:l.fulfilledTimeStamp,c=null!=(a=e.forceRefetch)?a:e.subscribe&&s;return!!c&&(!0===c||(Number(new Date)-Number(u))/1e3>=c)}var p=(0,i.createAsyncThunk)(r+"/executeQuery",f,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[i.SHOULD_AUTOBATCH]=!0,e},condition:function(e,t){var n,o,i,a=(0,t.getState)(),s=null==(o=null==(n=a[r])?void 0:n.queries)?void 0:o[e.queryCacheKey],u=null==s?void 0:s.fulfilledTimeStamp,c=e.originalArgs,f=null==s?void 0:s.originalArgs,p=l[e.endpointName];return!(!X(e)&&("pending"===(null==s?void 0:s.status)||!d(e,a)&&(!G(p)||!(null==(i=null==p?void 0:p.forceRefetch)?void 0:i.call(p,{currentArg:c,previousArg:f,endpointState:s,state:a})))&&u))},dispatchConditionRejection:!0}),h=(0,i.createAsyncThunk)(r+"/executeMutation",f,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[i.SHOULD_AUTOBATCH]=!0,e}});function m(e){return function(t){var r,n;return(null==(n=null==(r=null==t?void 0:t.meta)?void 0:r.arg)?void 0:n.endpointName)===e}}return{queryThunk:p,mutationThunk:h,prefetch:function(e,t,r){return function(n,o){var i=function(e){return"force"in e}(r)&&r.force,a=function(e){return"ifOlderThan"in e}(r)&&r.ifOlderThan,l=function(r){return void 0===r&&(r=!0),u.endpoints[e].initiate(t,{forceRefetch:r})},s=u.endpoints[e].select(t)(o());if(i)n(l());else if(a){var c=null==s?void 0:s.fulfilledTimeStamp;if(!c)return void n(l());(Number(new Date)-Number(new Date(c)))/1e3>=a&&n(l())}else n(l(!1))}},updateQueryData:function(e,t,r){return function(o,i){var l,s,c=u.endpoints[e].select(t)(i()),f={patches:[],inversePatches:[],undo:function(){return o(u.util.patchQueryData(e,t,f.inversePatches))}};if(c.status===n.uninitialized)return f;if("data"in c)if((0,a.o$)(c.data)){var d=(0,a.aS)(c.data,r),p=d[1],h=d[2];(l=f.patches).push.apply(l,p),(s=f.inversePatches).push.apply(s,h)}else{var m=r(c.data);f.patches.push({op:"replace",path:[],value:m}),f.inversePatches.push({op:"replace",path:[],value:c.data})}return o(u.util.patchQueryData(e,t,f.patches)),f}},upsertQueryData:function(e,t,r){return function(n){var o;return n(u.endpoints[e].initiate(t,((o={subscribe:!1,forceRefetch:!0})[Z]=function(){return{data:r}},o)))}},patchQueryData:function(e,t,r){return function(n){var o=l[e];n(u.internalActions.queryResultPatched({queryCacheKey:s({queryArgs:t,endpointDefinition:o,endpointName:e}),patches:r}))}},buildMatchThunkActions:function(e,t){return{matchPending:(0,i.isAllOf)((0,i.isPending)(e),m(t)),matchFulfilled:(0,i.isAllOf)((0,i.isFulfilled)(e),m(t)),matchRejected:(0,i.isAllOf)((0,i.isRejected)(e),m(t))}}}}({baseQuery:o,reducerPath:l,context:r,api:e,serializeQueryArgs:u}),y=g.queryThunk,_=g.mutationThunk,k=g.patchQueryData,S=g.updateQueryData,O=g.upsertQueryData,E=g.prefetch,C=g.buildMatchThunkActions,L=function(e){var t=e.reducerPath,r=e.queryThunk,o=e.mutationThunk,l=e.context,u=l.endpointDefinitions,c=l.apiUid,f=l.extractRehydrationInfo,d=l.hasRehydrationInfo,p=e.assertTagType,h=e.config,m=(0,i.createAction)(t+"/resetApiState"),v=(0,i.createSlice)({name:t+"/queries",initialState:oe,reducers:{removeQueryResult:{reducer:function(e,t){delete e[t.payload.queryCacheKey]},prepare:(0,i.prepareAutoBatched)()},queryResultPatched:function(e,t){var r=t.payload,n=r.queryCacheKey,o=r.patches;te(e,n,(function(e){e.data=(0,a.QE)(e.data,o.concat())}))}},extraReducers:function(e){e.addCase(r.pending,(function(e,t){var r,o=t.meta,i=t.meta.arg,a=X(i);(i.subscribe||a)&&(null!=e[r=i.queryCacheKey]||(e[r]={status:n.uninitialized,endpointName:i.endpointName})),te(e,i.queryCacheKey,(function(e){e.status=n.pending,e.requestId=a&&e.requestId?e.requestId:o.requestId,void 0!==i.originalArgs&&(e.originalArgs=i.originalArgs),e.startedTimeStamp=o.startedTimeStamp}))})).addCase(r.fulfilled,(function(e,t){var r=t.meta,o=t.payload;te(e,r.arg.queryCacheKey,(function(e){var t;if(e.requestId===r.requestId||X(r.arg)){var i=u[r.arg.endpointName].merge;if(e.status=n.fulfilled,i)if(void 0!==e.data){var l=r.fulfilledTimeStamp,s=r.arg,c=r.baseQueryMeta,f=r.requestId,d=(0,a.ZP)(e.data,(function(e){return i(e,o,{arg:s.originalArgs,baseQueryMeta:c,fulfilledTimeStamp:l,requestId:f})}));e.data=d}else e.data=o;else e.data=null==(t=u[r.arg.endpointName].structuralSharing)||t?T((0,a.mv)(e.data)?(0,a.Js)(e.data):e.data,o):o;delete e.error,e.fulfilledTimeStamp=r.fulfilledTimeStamp}}))})).addCase(r.rejected,(function(e,t){var r=t.meta,o=r.condition,i=r.arg,a=r.requestId,l=t.error,s=t.payload;te(e,i.queryCacheKey,(function(e){if(o);else{if(e.requestId!==a)return;e.status=n.rejected,e.error=null!=s?s:l}}))})).addMatcher(d,(function(e,t){for(var r=f(t).queries,o=0,i=Object.entries(r);o<i.length;o++){var a=i[o],l=a[0],s=a[1];(null==s?void 0:s.status)!==n.fulfilled&&(null==s?void 0:s.status)!==n.rejected||(e[l]=s)}}))}}),g=(0,i.createSlice)({name:t+"/mutations",initialState:oe,reducers:{removeMutationResult:{reducer:function(e,t){var r=re(t.payload);r in e&&delete e[r]},prepare:(0,i.prepareAutoBatched)()}},extraReducers:function(e){e.addCase(o.pending,(function(e,t){var r=t.meta,o=t.meta,i=o.requestId,a=o.arg,l=o.startedTimeStamp;a.track&&(e[re(r)]={requestId:i,status:n.pending,endpointName:a.endpointName,startedTimeStamp:l})})).addCase(o.fulfilled,(function(e,t){var r=t.payload,o=t.meta;o.arg.track&&ne(e,o,(function(e){e.requestId===o.requestId&&(e.status=n.fulfilled,e.data=r,e.fulfilledTimeStamp=o.fulfilledTimeStamp)}))})).addCase(o.rejected,(function(e,t){var r=t.payload,o=t.error,i=t.meta;i.arg.track&&ne(e,i,(function(e){e.requestId===i.requestId&&(e.status=n.rejected,e.error=null!=r?r:o)}))})).addMatcher(d,(function(e,t){for(var r=f(t).mutations,o=0,i=Object.entries(r);o<i.length;o++){var a=i[o],l=a[0],s=a[1];(null==s?void 0:s.status)!==n.fulfilled&&(null==s?void 0:s.status)!==n.rejected||l===(null==s?void 0:s.requestId)||(e[l]=s)}}))}}),y=(0,i.createSlice)({name:t+"/invalidation",initialState:oe,reducers:{},extraReducers:function(e){e.addCase(v.actions.removeQueryResult,(function(e,t){for(var r=t.payload.queryCacheKey,n=0,o=Object.values(e);n<o.length;n++)for(var i=o[n],a=0,l=Object.values(i);a<l.length;a++){var s=l[a],u=s.indexOf(r);-1!==u&&s.splice(u,1)}})).addMatcher(d,(function(e,t){for(var r,n,o,i,a=f(t).provided,l=0,s=Object.entries(a);l<s.length;l++)for(var u=s[l],c=u[0],d=u[1],p=0,h=Object.entries(d);p<h.length;p++)for(var m=h[p],v=m[0],g=m[1],y=null!=(i=(n=null!=(r=e[c])?r:e[c]={})[o=v||"__internal_without_id"])?i:n[o]=[],b=0,w=g;b<w.length;b++){var _=w[b];y.includes(_)||y.push(_)}})).addMatcher((0,i.isAnyOf)((0,i.isFulfilled)(r),(0,i.isRejectedWithValue)(r)),(function(e,t){for(var r,n,o,i,a=ee(t,"providesTags",u,p),l=t.meta.arg.queryCacheKey,s=0,c=Object.values(e);s<c.length;s++)for(var f=c[s],d=0,h=Object.values(f);d<h.length;d++){var m=h[d],v=m.indexOf(l);-1!==v&&m.splice(v,1)}for(var g=0,y=a;g<y.length;g++){var b=y[g],w=b.type,_=b.id,x=null!=(i=(n=null!=(r=e[w])?r:e[w]={})[o=_||"__internal_without_id"])?i:n[o]=[];x.includes(l)||x.push(l)}}))}}),_=(0,i.createSlice)({name:t+"/subscriptions",initialState:oe,reducers:{updateSubscriptionOptions:function(e,t){},unsubscribeQueryResult:function(e,t){},internal_probeSubscription:function(e,t){}}}),x=(0,i.createSlice)({name:t+"/internalSubscriptions",initialState:oe,reducers:{subscriptionsUpdated:{reducer:function(e,t){return(0,a.QE)(e,t.payload)},prepare:(0,i.prepareAutoBatched)()}}}),k=(0,i.createSlice)({name:t+"/config",initialState:b({online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"undefined"==typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1},h),reducers:{middlewareRegistered:function(e,t){var r=t.payload;e.middlewareRegistered="conflict"!==e.middlewareRegistered&&c===r||"conflict"}},extraReducers:function(e){e.addCase(U,(function(e){e.online=!0})).addCase(V,(function(e){e.online=!1})).addCase(B,(function(e){e.focused=!0})).addCase(W,(function(e){e.focused=!1})).addMatcher(d,(function(e){return b({},e)}))}}),S=(0,s.UY)({queries:v.reducer,mutations:g.reducer,provided:y.reducer,subscriptions:x.reducer,config:k.reducer});return{reducer:function(e,t){return S(m.match(t)?void 0:e,t)},actions:w(b(b(b(b(b({},k.actions),v.actions),_.actions),x.actions),g.actions),{unsubscribeMutationResult:g.actions.removeMutationResult,resetApiState:m})}}({context:r,queryThunk:y,mutationThunk:_,reducerPath:l,assertTagType:v,config:{refetchOnFocus:h,refetchOnReconnect:m,refetchOnMountOrArgChange:p,keepUnusedDataFor:d,reducerPath:l}}),M=L.reducer,A=L.actions;Ee(e.util,{patchQueryData:k,updateQueryData:S,upsertQueryData:O,prefetch:E,resetApiState:A.resetApiState}),Ee(e.internalActions,A);var j=Oe({reducerPath:l,context:r,queryThunk:y,mutationThunk:_,api:e,assertTagType:v}),P=j.middleware,R=j.actions;Ee(e.util,R),Ee(e,{reducer:M,middleware:P});var D=ce({serializeQueryArgs:u,reducerPath:l}),z=D.buildQuerySelector,F=D.buildMutationSelector,H=D.selectInvalidatedBy;Ee(e.util,{selectInvalidatedBy:H});var q=function(e){var t=e.serializeQueryArgs,r=e.queryThunk,n=e.mutationThunk,o=e.api,i=e.context,a=new Map,l=new Map,s=o.internalActions,u=s.unsubscribeQueryResult,d=s.removeMutationResult,p=s.updateSubscriptionOptions;return{buildInitiateQuery:function(e,n){var i=function(l,s){var f=void 0===s?{}:s,d=f.subscribe,m=void 0===d||d,v=f.forceRefetch,g=f.subscriptionOptions,y=f[Z];return function(s,f){var d,b,w=t({queryArgs:l,endpointDefinition:n,endpointName:e}),_=r(((d={type:"query",subscribe:m,forceRefetch:v,subscriptionOptions:g,endpointName:e,originalArgs:l,queryCacheKey:w})[Z]=y,d)),k=o.endpoints[e].select(l),S=s(_),O=k(f());h(s);var E=S.requestId,C=S.abort,T=O.requestId!==E,L=null==(b=a.get(s))?void 0:b[w],M=function(){return k(f())},A=Object.assign(y?S.then(M):T&&!L?Promise.resolve(O):Promise.all([L,S]).then(M),{arg:l,requestId:E,subscriptionOptions:g,queryCacheKey:w,abort:C,unwrap:function(){return x(this,null,(function(){var e;return c(this,(function(t){switch(t.label){case 0:return[4,A];case 1:if((e=t.sent()).isError)throw e.error;return[2,e.data]}}))}))},refetch:function(){return s(i(l,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){m&&s(u({queryCacheKey:w,requestId:E}))},updateSubscriptionOptions:function(t){A.subscriptionOptions=t,s(p({endpointName:e,requestId:E,queryCacheKey:w,options:t}))}});if(!L&&!T&&!y){var j=a.get(s)||{};j[w]=A,a.set(s,j),A.then((function(){delete j[w],Object.keys(j).length||a.delete(s)}))}return A}};return i},buildInitiateMutation:function(e){return function(t,r){var o=void 0===r?{}:r,i=o.track,a=void 0===i||i,s=o.fixedCacheKey;return function(r,o){var i=n({type:"mutation",endpointName:e,originalArgs:t,track:a,fixedCacheKey:s}),u=r(i);h(r);var c=u.requestId,f=u.abort,p=u.unwrap,m=u.unwrap().then((function(e){return{data:e}})).catch((function(e){return{error:e}})),v=function(){r(d({requestId:c,fixedCacheKey:s}))},g=Object.assign(m,{arg:u.arg,requestId:c,abort:f,unwrap:p,unsubscribe:v,reset:v}),y=l.get(r)||{};return l.set(r,y),y[c]=g,g.then((function(){delete y[c],Object.keys(y).length||l.delete(r)})),s&&(y[s]=g,g.then((function(){y[s]===g&&(delete y[s],Object.keys(y).length||l.delete(r))}))),g}}},getRunningQueryThunk:function(e,r){return function(n){var o,l=i.endpointDefinitions[e],s=t({queryArgs:r,endpointDefinition:l,endpointName:e});return null==(o=a.get(n))?void 0:o[s]}},getRunningMutationThunk:function(e,t){return function(e){var r;return null==(r=l.get(e))?void 0:r[t]}},getRunningQueriesThunk:function(){return function(e){return Object.values(a.get(e)||{}).filter(Q)}},getRunningMutationsThunk:function(){return function(e){return Object.values(l.get(e)||{}).filter(Q)}},getRunningOperationPromises:function(){var e=function(e){return Array.from(e.values()).flatMap((function(e){return e?Object.values(e):[]}))};return f(f([],e(a)),e(l)).filter(Q)},removalWarning:function(){throw new Error("This method had to be removed due to a conceptual bug in RTK.\n Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.\n See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.")}};function h(e){}}({queryThunk:y,mutationThunk:_,api:e,serializeQueryArgs:u,context:r}),$=q.buildInitiateQuery,K=q.buildInitiateMutation,Y=q.getRunningMutationThunk,ie=q.getRunningMutationsThunk,ae=q.getRunningQueriesThunk,le=q.getRunningQueryThunk,se=q.getRunningOperationPromises,ue=q.removalWarning;return Ee(e.util,{getRunningOperationPromises:se,getRunningOperationPromise:ue,getRunningMutationThunk:Y,getRunningMutationsThunk:ie,getRunningQueryThunk:le,getRunningQueriesThunk:ae}),{name:Ce,injectEndpoint:function(t,r){var n,o=e;null!=(n=o.endpoints)[t]||(n[t]={}),G(r)?Ee(o.endpoints[t],{name:t,select:z(t,r),initiate:$(t,r)},C(y,t)):r.type===N.mutation&&Ee(o.endpoints[t],{name:t,select:F(),initiate:K(t)},C(_,t))}}}}},Le=(Te(),r(7363)),Me=r.n(Le),Ae=r(6113),je=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},Pe=Object.defineProperty,Ie=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Fe=function(e,t,r){return t in e?Pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},He=function(e,t){for(var r in t||(t={}))De.call(t,r)&&Fe(e,r,t[r]);if(Ne)for(var n=0,o=Ne(t);n<o.length;n++){r=o[n];ze.call(t,r)&&Fe(e,r,t[r])}return e},Be=function(e,t){return Ie(e,Re(t))};function We(e,t,r,n){var o=(0,Le.useMemo)((function(){return{queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:r,endpointName:n}):e}}),[e,t,r,n]),i=(0,Le.useRef)(o);return(0,Le.useEffect)((function(){i.current.serialized!==o.serialized&&(i.current=o)}),[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}var Ue=Symbol();function Ve(e){var t=(0,Le.useRef)(e);return(0,Le.useEffect)((function(){(0,Ae.shallowEqual)(t.current,e)||(t.current=e)}),[e]),(0,Ae.shallowEqual)(t.current,e)?t.current:e}var qe,$e=WeakMap?new WeakMap:void 0,Ge=function(e){var t=e.endpointName,r=e.queryArgs,n="",o=null==$e?void 0:$e.get(r);if("string"==typeof o)n=o;else{var a=JSON.stringify(r,(function(e,t){return(0,i.isPlainObject)(t)?Object.keys(t).sort().reduce((function(e,r){return e[r]=t[r],e}),{}):t}));(0,i.isPlainObject)(r)&&(null==$e||$e.set(r,a)),n=a}return t+"("+n+")"},Ke="undefined"!=typeof window&&window.document&&window.document.createElement?Le.useLayoutEffect:Le.useEffect,Ye=function(e){return e},Qe=function(e){return e.isUninitialized?Be(He({},e),{isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:n.pending}):e};function Ze(e){return e.replace(e[0],e[0].toUpperCase())}function Xe(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];Object.assign.apply(Object,je([e],t))}!function(e){e.query="query",e.mutation="mutation"}(qe||(qe={}));var Je=Symbol(),et=function(e){var t=void 0===e?{}:e,r=t.batch,n=void 0===r?Ae.batch:r,o=t.useDispatch,i=void 0===o?Ae.useDispatch:o,a=t.useSelector,s=void 0===a?Ae.useSelector:a,u=t.useStore,c=void 0===u?Ae.useStore:u,f=t.unstable__sideEffectsInRender,d=void 0!==f&&f;return{name:Je,init:function(e,t,r){var o=t.serializeQueryArgs,a=e,u=function(e){var t=e.api,r=e.moduleOptions,n=r.batch,o=r.useDispatch,i=r.useSelector,a=r.useStore,s=r.unstable__sideEffectsInRender,u=e.serializeQueryArgs,c=e.context,f=s?function(e){return e()}:Le.useEffect;return{buildQueryHooks:function(e){var r=function(r,n){var i=void 0===n?{}:n,a=i.refetchOnReconnect,l=i.refetchOnFocus,s=i.refetchOnMountOrArgChange,u=i.skip,d=void 0!==u&&u,p=i.pollingInterval,h=void 0===p?0:p,m=t.endpoints[e].initiate,v=o(),g=We(d?ie:r,Ge,c.endpointDefinitions[e],e),y=Ve({refetchOnReconnect:a,refetchOnFocus:l,pollingInterval:h}),b=(0,Le.useRef)(!1),w=(0,Le.useRef)(),_=w.current||{},x=_.queryCacheKey,k=_.requestId,S=!1;if(x&&k){var O=v(t.internalActions.internal_probeSubscription({queryCacheKey:x,requestId:k}));S=!!O}var E=!S&&b.current;return f((function(){b.current=S})),f((function(){E&&(w.current=void 0)}),[E]),f((function(){var e,t=w.current;if(g===ie)return null==t||t.unsubscribe(),void(w.current=void 0);var r=null==(e=w.current)?void 0:e.subscriptionOptions;if(t&&t.arg===g)y!==r&&t.updateSubscriptionOptions(y);else{null==t||t.unsubscribe();var n=v(m(g,{subscriptionOptions:y,forceRefetch:s}));w.current=n}}),[v,m,s,g,y,E]),(0,Le.useEffect)((function(){return function(){var e;null==(e=w.current)||e.unsubscribe(),w.current=void 0}}),[]),(0,Le.useMemo)((function(){return{refetch:function(){var e;if(!w.current)throw new Error("Cannot refetch a query that has not been started yet.");return null==(e=w.current)?void 0:e.refetch()}}}),[])},s=function(r){var i=void 0===r?{}:r,a=i.refetchOnReconnect,l=i.refetchOnFocus,s=i.pollingInterval,u=void 0===s?0:s,c=t.endpoints[e].initiate,d=o(),p=(0,Le.useState)(Ue),h=p[0],m=p[1],v=(0,Le.useRef)(),g=Ve({refetchOnReconnect:a,refetchOnFocus:l,pollingInterval:u});f((function(){var e,t,r=null==(e=v.current)?void 0:e.subscriptionOptions;g!==r&&(null==(t=v.current)||t.updateSubscriptionOptions(g))}),[g]);var y=(0,Le.useRef)(g);f((function(){y.current=g}),[g]);var b=(0,Le.useCallback)((function(e,t){var r;return void 0===t&&(t=!1),n((function(){var n;null==(n=v.current)||n.unsubscribe(),v.current=r=d(c(e,{subscriptionOptions:y.current,forceRefetch:!t})),m(e)})),r}),[d,c]);return(0,Le.useEffect)((function(){return function(){var e;null==(e=null==v?void 0:v.current)||e.unsubscribe()}}),[]),(0,Le.useEffect)((function(){h===Ue||v.current||b(h,!0)}),[h,b]),(0,Le.useMemo)((function(){return[b,h]}),[b,h])},p=function(r,n){var o=void 0===n?{}:n,s=o.skip,f=void 0!==s&&s,p=o.selectFromResult,h=t.endpoints[e].select,m=We(f?ie:r,u,c.endpointDefinitions[e],e),v=(0,Le.useRef)(),g=(0,Le.useMemo)((function(){return(0,l.P1)([h(m),function(e,t){return t},function(e){return m}],d)}),[h,m]),y=(0,Le.useMemo)((function(){return p?(0,l.P1)([g],p):g}),[g,p]),b=i((function(e){return y(e,v.current)}),Ae.shallowEqual),w=a(),_=g(w.getState(),v.current);return Ke((function(){v.current=_}),[_]),b};return{useQueryState:p,useQuerySubscription:r,useLazyQuerySubscription:s,useLazyQuery:function(e){var t=s(e),r=t[0],n=t[1],o=p(n,Be(He({},e),{skip:n===Ue})),i=(0,Le.useMemo)((function(){return{lastArg:n}}),[n]);return(0,Le.useMemo)((function(){return[r,o,i]}),[r,o,i])},useQuery:function(e,t){var n=r(e,t),o=p(e,He({selectFromResult:e===ie||(null==t?void 0:t.skip)?void 0:Qe},t)),i=o.data,a=o.status,l=o.isLoading,s=o.isSuccess,u=o.isError,c=o.error;return(0,Le.useDebugValue)({data:i,status:a,isLoading:l,isSuccess:s,isError:u,error:c}),(0,Le.useMemo)((function(){return He(He({},o),n)}),[o,n])}}},buildMutationHook:function(e){return function(r){var a=void 0===r?{}:r,s=a.selectFromResult,u=void 0===s?Ye:s,c=a.fixedCacheKey,f=t.endpoints[e],d=f.select,p=f.initiate,h=o(),m=(0,Le.useState)(),v=m[0],g=m[1];(0,Le.useEffect)((function(){return function(){(null==v?void 0:v.arg.fixedCacheKey)||null==v||v.reset()}}),[v]);var y=(0,Le.useCallback)((function(e){var t=h(p(e,{fixedCacheKey:c}));return g(t),t}),[h,p,c]),b=(v||{}).requestId,w=(0,Le.useMemo)((function(){return(0,l.P1)([d({fixedCacheKey:c,requestId:null==v?void 0:v.requestId})],u)}),[d,v,u,c]),_=i(w,Ae.shallowEqual),x=null==c?null==v?void 0:v.arg.originalArgs:void 0,k=(0,Le.useCallback)((function(){n((function(){v&&g(void 0),c&&h(t.internalActions.removeMutationResult({requestId:b,fixedCacheKey:c}))}))}),[h,c,v,b]),S=_.endpointName,O=_.data,E=_.status,C=_.isLoading,T=_.isSuccess,L=_.isError,M=_.error;(0,Le.useDebugValue)({endpointName:S,data:O,status:E,isLoading:C,isSuccess:T,isError:L,error:M});var A=(0,Le.useMemo)((function(){return Be(He({},_),{originalArgs:x,reset:k})}),[_,x,k]);return(0,Le.useMemo)((function(){return[y,A]}),[y,A])}},usePrefetch:function(e,r){var n=o(),i=Ve(r);return(0,Le.useCallback)((function(r,o){return n(t.util.prefetch(e,r,He(He({},i),o)))}),[e,n,i])}};function d(e,t,r){if((null==t?void 0:t.endpointName)&&e.isUninitialized){var n=t.endpointName,o=c.endpointDefinitions[n];u({queryArgs:t.originalArgs,endpointDefinition:o,endpointName:n})===u({queryArgs:r,endpointDefinition:o,endpointName:n})&&(t=void 0)}var i=e.isSuccess?e.data:null==t?void 0:t.data;void 0===i&&(i=e.data);var a=void 0!==i,l=e.isLoading,s=!a&&l,f=e.isSuccess||l&&a;return Be(He({},e),{data:i,currentData:e.data,isFetching:l,isLoading:s,isSuccess:f})}}({api:e,moduleOptions:{batch:n,useDispatch:i,useSelector:s,useStore:c,unstable__sideEffectsInRender:d},serializeQueryArgs:o,context:r}),f=u.buildQueryHooks,p=u.buildMutationHook,h=u.usePrefetch;return Xe(a,{usePrefetch:h}),Xe(r,{batch:n}),{injectEndpoint:function(t,r){if(r.type===qe.query){var n=f(t),o=n.useQuery,i=n.useLazyQuery,l=n.useLazyQuerySubscription,s=n.useQueryState,u=n.useQuerySubscription;Xe(a.endpoints[t],{useQuery:o,useLazyQuery:i,useLazyQuerySubscription:l,useQueryState:s,useQuerySubscription:u}),e["use"+Ze(t)+"Query"]=o,e["useLazy"+Ze(t)+"Query"]=i}else if(function(e){return e.type===qe.mutation}(r)){var c=p(t);Xe(a.endpoints[t],{useMutation:c}),e["use"+Ze(t)+"Mutation"]=c}}}}}};function tt(e){var t=Me().useState((function(){var t;return(0,i.configureStore)({reducer:(t={},t[e.api.reducerPath]=e.api.reducer,t),middleware:function(t){return t().concat(e.api.middleware)}})}))[0];return(0,Le.useEffect)((function(){return!1===e.setupListeners?void 0:$(t.dispatch,e.setupListeners)}),[e.setupListeners,t.dispatch]),Me().createElement(Ae.Provider,{store:t,context:e.context},e.children)}var rt=pe(Te(),et())},4268:(e,t,r)=>{"use strict";r.r(t),r.d(t,{EnhancerArray:()=>C,MiddlewareArray:()=>E,SHOULD_AUTOBATCH:()=>Ke,TaskAbortError:()=>Ce,__DO_NOT_USE__ActionTypes:()=>o.Kf,addListener:()=>We,applyMiddleware:()=>o.md,autoBatchEnhancer:()=>Je,bindActionCreators:()=>o.DE,clearAllListeners:()=>Ue,combineReducers:()=>o.UY,compose:()=>o.qC,configureStore:()=>D,createAction:()=>z,createAsyncThunk:()=>ne,createDraftSafeSelector:()=>k,createEntityAdapter:()=>Z,createImmutableStateInvariantMiddleware:()=>M,createListenerMiddleware:()=>$e,createNextState:()=>n.ZP,createReducer:()=>V,createSelector:()=>i.P1,createSerializableStateInvariantMiddleware:()=>I,createSlice:()=>q,createStore:()=>o.MT,current:()=>n.Vk,findNonSerializableValue:()=>j,freeze:()=>n.vV,getDefaultMiddleware:()=>R,getType:()=>W,isAction:()=>F,isAllOf:()=>le,isAnyOf:()=>ae,isAsyncThunkAction:()=>he,isDraft:()=>n.mv,isFluxStandardAction:()=>H,isFulfilled:()=>pe,isImmutableDefault:()=>L,isPending:()=>ce,isPlain:()=>A,isPlainObject:()=>O,isRejected:()=>fe,isRejectedWithValue:()=>de,legacy_createStore:()=>o.jB,miniSerializeError:()=>re,nanoid:()=>X,original:()=>n.Js,prepareAutoBatched:()=>Ye,removeListener:()=>Ve,unwrapResult:()=>oe});var n=r(2902),o=r(4791),i=r(2222);function a(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(o){return"function"==typeof o?o(r,n,e):t(o)}}}}var l=a();l.withExtraArgument=a;const s=l;var u,c=(u=function(e,t){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},u(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},d=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},p=Object.defineProperty,h=Object.defineProperties,m=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,b=function(e,t,r){return t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},w=function(e,t){for(var r in t||(t={}))g.call(t,r)&&b(e,r,t[r]);if(v)for(var n=0,o=v(t);n<o.length;n++){r=o[n];y.call(t,r)&&b(e,r,t[r])}return e},_=function(e,t){return h(e,m(t))},x=function(e,t,r){return new Promise((function(n,o){var i=function(e){try{l(r.next(e))}catch(e){o(e)}},a=function(e){try{l(r.throw(e))}catch(e){o(e)}},l=function(e){return e.done?n(e.value):Promise.resolve(e.value).then(i,a)};l((r=r.apply(e,t)).next())}))},k=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=i.P1.apply(void 0,e);return function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return r.apply(void 0,d([(0,n.mv)(e)?(0,n.Vk)(e):e],t))}},S="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?o.qC:o.qC.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function O(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var r=t;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return t===r}var E=function(e){function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=e.apply(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o}return c(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,d([void 0],e[0].concat(this)))):new(t.bind.apply(t,d([void 0],e.concat(this))))},t}(Array),C=function(e){function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=e.apply(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o}return c(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,d([void 0],e[0].concat(this)))):new(t.bind.apply(t,d([void 0],e.concat(this))))},t}(Array);function T(e){return(0,n.o$)(e)?(0,n.ZP)(e,(function(){})):e}function L(e){return"object"!=typeof e||null==e||Object.isFrozen(e)}function M(e){return void 0===e&&(e={}),function(){return function(e){return function(t){return e(t)}}}}function A(e){var t=typeof e;return null==e||"string"===t||"boolean"===t||"number"===t||Array.isArray(e)||O(e)}function j(e,t,r,n,o,i){var a;if(void 0===t&&(t=""),void 0===r&&(r=A),void 0===o&&(o=[]),!r(e))return{keyPath:t||"<root>",value:e};if("object"!=typeof e||null===e)return!1;if(null==i?void 0:i.has(e))return!1;for(var l=null!=n?n(e):Object.entries(e),s=o.length>0,u=function(e,l){var u=t?t+"."+e:e;if(s&&o.some((function(e){return e instanceof RegExp?e.test(u):u===e})))return"continue";return r(l)?"object"==typeof l&&(a=j(l,u,r,n,o,i))?{value:a}:void 0:{value:{keyPath:u,value:l}}},c=0,f=l;c<f.length;c++){var d=f[c],p=u(d[0],d[1]);if("object"==typeof p)return p.value}return i&&P(e)&&i.add(e),!1}function P(e){if(!Object.isFrozen(e))return!1;for(var t=0,r=Object.values(e);t<r.length;t++){var n=r[t];if("object"==typeof n&&null!==n&&!P(n))return!1}return!0}function I(e){return void 0===e&&(e={}),function(){return function(e){return function(t){return e(t)}}}}function R(e){void 0===e&&(e={});var t=e.thunk,r=void 0===t||t,n=(e.immutableCheck,e.serializableCheck,new E);return r&&("boolean"==typeof r?n.push(s):n.push(s.withExtraArgument(r.extraArgument))),n}var N=!0;function D(e){var t,r=function(e){return R(e)},n=e||{},i=n.reducer,a=void 0===i?void 0:i,l=n.middleware,s=void 0===l?r():l,u=n.devTools,c=void 0===u||u,f=n.preloadedState,p=void 0===f?void 0:f,h=n.enhancers,m=void 0===h?void 0:h;if("function"==typeof a)t=a;else{if(!O(a))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=(0,o.UY)(a)}var v=s;if("function"==typeof v&&(v=v(r),!N&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!N&&v.some((function(e){return"function"!=typeof e})))throw new Error("each middleware provided to configureStore must be a function");var g=o.md.apply(void 0,v),y=o.qC;c&&(y=S(w({trace:!N},"object"==typeof c&&c)));var b=new C(g),_=b;Array.isArray(m)?_=d([g],m):"function"==typeof m&&(_=m(b));var x=y.apply(void 0,_);return(0,o.MT)(t,p,x)}function z(e,t){function r(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(t){var o=t.apply(void 0,r);if(!o)throw new Error("prepareAction did not return an object");return w(w({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:r[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(t){return t.type===e},r}function F(e){return O(e)&&"type"in e}function H(e){return F(e)&&"string"==typeof e.type&&Object.keys(e).every(B)}function B(e){return["type","payload","error","meta"].indexOf(e)>-1}function W(e){return""+e}function U(e){var t,r={},n=[],o={addCase:function(e,t){var n="string"==typeof e?e:e.type;if(n in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[n]=t,o},addMatcher:function(e,t){return n.push({matcher:e,reducer:t}),o},addDefaultCase:function(e){return t=e,o}};return e(o),[r,n,t]}function V(e,t,r,o){void 0===r&&(r=[]);var i,a="function"==typeof t?U(t):[t,r,o],l=a[0],s=a[1],u=a[2];if("function"==typeof e)i=function(){return T(e())};else{var c=T(e);i=function(){return c}}function f(e,t){void 0===e&&(e=i());var r=d([l[t.type]],s.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===r.filter((function(e){return!!e})).length&&(r=[u]),r.reduce((function(e,r){if(r){var o;if((0,n.mv)(e))return void 0===(o=r(e,t))?e:o;if((0,n.o$)(e))return(0,n.ZP)(e,(function(e){return r(e,t)}));if(void 0===(o=r(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return e}),e)}return f.getInitialState=i,f}function q(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var r,n="function"==typeof e.initialState?e.initialState:T(e.initialState),o=e.reducers||{},i=Object.keys(o),a={},l={},s={};function u(){var t="function"==typeof e.extraReducers?U(e.extraReducers):[e.extraReducers],r=t[0],o=void 0===r?{}:r,i=t[1],a=void 0===i?[]:i,s=t[2],u=void 0===s?void 0:s,c=w(w({},o),l);return V(n,(function(e){for(var t in c)e.addCase(t,c[t]);for(var r=0,n=a;r<n.length;r++){var o=n[r];e.addMatcher(o.matcher,o.reducer)}u&&e.addDefaultCase(u)}))}return i.forEach((function(e){var r,n,i=o[e],u=t+"/"+e;"reducer"in i?(r=i.reducer,n=i.prepare):r=i,a[e]=r,l[u]=r,s[e]=n?z(u,n):z(u)})),{name:t,reducer:function(e,t){return r||(r=u()),r(e,t)},actions:s,caseReducers:a,getInitialState:function(){return r||(r=u()),r.getInitialState()}}}function $(e){return function(t,r){var o=function(t){H(r)?e(r.payload,t):e(r,t)};return(0,n.mv)(t)?(o(t),t):(0,n.ZP)(t,o)}}function G(e,t){return t(e)}function K(e){return Array.isArray(e)||(e=Object.values(e)),e}function Y(e,t,r){for(var n=[],o=[],i=0,a=e=K(e);i<a.length;i++){var l=a[i],s=G(l,t);s in r.entities?o.push({id:s,changes:l}):n.push(l)}return[n,o]}function Q(e){function t(t,r){var n=G(t,e);n in r.entities||(r.ids.push(n),r.entities[n]=t)}function r(e,r){for(var n=0,o=e=K(e);n<o.length;n++){t(o[n],r)}}function n(t,r){var n=G(t,e);n in r.entities||r.ids.push(n),r.entities[n]=t}function o(e,t){var r=!1;e.forEach((function(e){e in t.entities&&(delete t.entities[e],r=!0)})),r&&(t.ids=t.ids.filter((function(e){return e in t.entities})))}function i(t,r){var n={},o={};if(t.forEach((function(e){e.id in r.entities&&(o[e.id]={id:e.id,changes:w(w({},o[e.id]?o[e.id].changes:null),e.changes)})})),(t=Object.values(o)).length>0){var i=t.filter((function(t){return function(t,r,n){var o=n.entities[r.id],i=Object.assign({},o,r.changes),a=G(i,e),l=a!==r.id;return l&&(t[r.id]=a,delete n.entities[r.id]),n.entities[a]=i,l}(n,t,r)})).length>0;i&&(r.ids=Object.keys(r.entities))}}function a(t,n){var o=Y(t,e,n),a=o[0];i(o[1],n),r(a,n)}return{removeAll:(l=function(e){Object.assign(e,{ids:[],entities:{}})},s=$((function(e,t){return l(t)})),function(e){return s(e,void 0)}),addOne:$(t),addMany:$(r),setOne:$(n),setMany:$((function(e,t){for(var r=0,o=e=K(e);r<o.length;r++){n(o[r],t)}})),setAll:$((function(e,t){e=K(e),t.ids=[],t.entities={},r(e,t)})),updateOne:$((function(e,t){return i([e],t)})),updateMany:$(i),upsertOne:$((function(e,t){return a([e],t)})),upsertMany:$(a),removeOne:$((function(e,t){return o([e],t)})),removeMany:$(o)};var l,s}function Z(e){void 0===e&&(e={});var t=w({sortComparer:!1,selectId:function(e){return e.id}},e),r=t.selectId,n=t.sortComparer,o={getInitialState:function(e){return void 0===e&&(e={}),Object.assign({ids:[],entities:{}},e)}},i={getSelectors:function(e){var t=function(e){return e.ids},r=function(e){return e.entities},n=k(t,r,(function(e,t){return e.map((function(e){return t[e]}))})),o=function(e,t){return t},i=function(e,t){return e[t]},a=k(t,(function(e){return e.length}));if(!e)return{selectIds:t,selectEntities:r,selectAll:n,selectTotal:a,selectById:k(r,o,i)};var l=k(e,r);return{selectIds:k(e,t),selectEntities:l,selectAll:k(e,n),selectTotal:k(e,a),selectById:k(l,o,i)}}},a=n?function(e,t){var r=Q(e);function n(t,r){var n=(t=K(t)).filter((function(t){return!(G(t,e)in r.entities)}));0!==n.length&&l(n,r)}function o(e,t){0!==(e=K(e)).length&&l(e,t)}function i(t,r){for(var n=!1,o=0,i=t;o<i.length;o++){var a=i[o],l=r.entities[a.id];if(l){n=!0,Object.assign(l,a.changes);var u=e(l);a.id!==u&&(delete r.entities[a.id],r.entities[u]=l)}}n&&s(r)}function a(t,r){var o=Y(t,e,r),a=o[0];i(o[1],r),n(a,r)}function l(t,r){t.forEach((function(t){r.entities[e(t)]=t})),s(r)}function s(r){var n=Object.values(r.entities);n.sort(t);var o=n.map(e);(function(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(e[r]!==t[r])return!1;return!0})(r.ids,o)||(r.ids=o)}return{removeOne:r.removeOne,removeMany:r.removeMany,removeAll:r.removeAll,addOne:$((function(e,t){return n([e],t)})),updateOne:$((function(e,t){return i([e],t)})),upsertOne:$((function(e,t){return a([e],t)})),setOne:$((function(e,t){return o([e],t)})),setMany:$(o),setAll:$((function(e,t){e=K(e),t.entities={},t.ids=[],n(e,t)})),addMany:$(n),updateMany:$(i),upsertMany:$(a)}}(r,n):Q(r);return w(w(w({selectId:r,sortComparer:n},o),i),a)}var X=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},J=["name","message","stack","code"],ee=function(e,t){this.payload=e,this.meta=t},te=function(e,t){this.payload=e,this.meta=t},re=function(e){if("object"==typeof e&&null!==e){for(var t={},r=0,n=J;r<n.length;r++){var o=n[r];"string"==typeof e[o]&&(t[o]=e[o])}return t}return{message:String(e)}},ne=function(){function e(e,t,r){var n=z(e+"/fulfilled",(function(e,t,r,n){return{payload:e,meta:_(w({},n||{}),{arg:r,requestId:t,requestStatus:"fulfilled"})}})),o=z(e+"/pending",(function(e,t,r){return{payload:void 0,meta:_(w({},r||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),i=z(e+"/rejected",(function(e,t,n,o,i){return{payload:o,error:(r&&r.serializeError||re)(e||"Rejected"),meta:_(w({},i||{}),{arg:n,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign((function(e){return function(l,s,u){var c,d=(null==r?void 0:r.idGenerator)?r.idGenerator(e):X(),p=new a;function h(e){c=e,p.abort()}var m=function(){return x(this,null,(function(){var a,m,v,g,y,b;return f(this,(function(f){switch(f.label){case 0:return f.trys.push([0,4,,5]),g=null==(a=null==r?void 0:r.condition)?void 0:a.call(r,e,{getState:s,extra:u}),null===(w=g)||"object"!=typeof w||"function"!=typeof w.then?[3,2]:[4,g];case 1:g=f.sent(),f.label=2;case 2:if(!1===g||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return!0,y=new Promise((function(e,t){return p.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:c||"Aborted"})}))})),l(o(d,e,null==(m=null==r?void 0:r.getPendingMeta)?void 0:m.call(r,{requestId:d,arg:e},{getState:s,extra:u}))),[4,Promise.race([y,Promise.resolve(t(e,{dispatch:l,getState:s,extra:u,requestId:d,signal:p.signal,abort:h,rejectWithValue:function(e,t){return new ee(e,t)},fulfillWithValue:function(e,t){return new te(e,t)}})).then((function(t){if(t instanceof ee)throw t;return t instanceof te?n(t.payload,d,e,t.meta):n(t,d,e)}))])];case 3:return v=f.sent(),[3,5];case 4:return b=f.sent(),v=b instanceof ee?i(null,d,e,b.payload,b.meta):i(b,d,e),[3,5];case 5:return r&&!r.dispatchConditionRejection&&i.match(v)&&v.meta.condition||l(v),[2,v]}var w}))}))}();return Object.assign(m,{abort:h,requestId:d,arg:e,unwrap:function(){return m.then(oe)}})}}),{pending:o,rejected:i,fulfilled:n,typePrefix:e})}return e.withTypes=function(){return e},e}();function oe(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var ie=function(e,t){return(r=e)&&"function"==typeof r.match?e.match(t):e(t);var r};function ae(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.some((function(e){return ie(e,t)}))}}function le(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.every((function(e){return ie(e,t)}))}}function se(e,t){if(!e||!e.meta)return!1;var r="string"==typeof e.meta.requestId,n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function ue(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?function(e){return se(e,["pending"])}:ue(e)?function(t){var r=e.map((function(e){return e.pending}));return ae.apply(void 0,r)(t)}:ce()(e[0])}function fe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?function(e){return se(e,["rejected"])}:ue(e)?function(t){var r=e.map((function(e){return e.rejected}));return ae.apply(void 0,r)(t)}:fe()(e[0])}function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=function(e){return e&&e.meta&&e.meta.rejectedWithValue};return 0===e.length||ue(e)?function(t){return le(fe.apply(void 0,e),r)(t)}:de()(e[0])}function pe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?function(e){return se(e,["fulfilled"])}:ue(e)?function(t){var r=e.map((function(e){return e.fulfilled}));return ae.apply(void 0,r)(t)}:pe()(e[0])}function he(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?function(e){return se(e,["pending","fulfilled","rejected"])}:ue(e)?function(t){for(var r=[],n=0,o=e;n<o.length;n++){var i=o[n];r.push(i.pending,i.rejected,i.fulfilled)}return ae.apply(void 0,r)(t)}:he()(e[0])}var me=function(e,t){if("function"!=typeof e)throw new TypeError(t+" is not a function")},ve=function(){},ge=function(e,t){return void 0===t&&(t=ve),e.catch(t),e},ye=function(e,t){return e.addEventListener("abort",t,{once:!0}),function(){return e.removeEventListener("abort",t)}},be=function(e,t){var r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},we="listener",_e="completed",xe="cancelled",ke="task-"+xe,Se="task-"+_e,Oe=we+"-"+xe,Ee=we+"-"+_e,Ce=function(e){this.code=e,this.name="TaskAbortError",this.message="task "+xe+" (reason: "+e+")"},Te=function(e){if(e.aborted)throw new Ce(e.reason)};function Le(e,t){var r=ve;return new Promise((function(n,o){var i=function(){return o(new Ce(e.reason))};e.aborted?i():(r=ye(e,i),t.finally((function(){return r()})).then(n,o))})).finally((function(){r=ve}))}var Me=function(e){return function(t){return ge(Le(e,t).then((function(t){return Te(e),t})))}},Ae=function(e){var t=Me(e);return function(e){return t(new Promise((function(t){return setTimeout(t,e)})))}},je=Object.assign,Pe={},Ie="listenerMiddleware",Re=function(e){return function(t){me(t,"taskExecutor");var r,n=new AbortController;r=n,ye(e,(function(){return be(r,e.reason)}));var o,i,a=(o=function(){return x(void 0,null,(function(){var r;return f(this,(function(o){switch(o.label){case 0:return Te(e),Te(n.signal),[4,t({pause:Me(n.signal),delay:Ae(n.signal),signal:n.signal})];case 1:return r=o.sent(),Te(n.signal),[2,r]}}))}))},i=function(){return be(n,Se)},x(void 0,null,(function(){var e;return f(this,(function(t){switch(t.label){case 0:return t.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return t.sent(),[4,o()];case 2:return[2,{status:"ok",value:t.sent()}];case 3:return[2,{status:(e=t.sent())instanceof Ce?"cancelled":"rejected",error:e}];case 4:return null==i||i(),[7];case 5:return[2]}}))})));return{result:Me(e)(a),cancel:function(){be(n,ke)}}}},Ne=function(e,t){return function(r,n){return ge(function(r,n){return x(void 0,null,(function(){var o,i,a,l;return f(this,(function(s){switch(s.label){case 0:Te(t),o=function(){},i=new Promise((function(t,n){var i=e({predicate:r,effect:function(e,r){r.unsubscribe(),t([e,r.getState(),r.getOriginalState()])}});o=function(){i(),n()}})),a=[i],null!=n&&a.push(new Promise((function(e){return setTimeout(e,n,null)}))),s.label=1;case 1:return s.trys.push([1,,3,4]),[4,Le(t,Promise.race(a))];case 2:return l=s.sent(),Te(t),[2,l];case 3:return o(),[7];case 4:return[2]}}))}))}(r,n))}},De=function(e){var t=e.type,r=e.actionCreator,n=e.matcher,o=e.predicate,i=e.effect;if(t)o=z(t).match;else if(r)t=r.type,o=r.match;else if(n)o=n;else if(!o)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return me(i,"options.listener"),{predicate:o,type:t,effect:i}},ze=function(e){var t=De(e),r=t.type,n=t.predicate,o=t.effect;return{id:X(),effect:o,type:r,predicate:n,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}}},Fe=function(e){e.pending.forEach((function(e){be(e,Oe)}))},He=function(e){return function(){e.forEach(Fe),e.clear()}},Be=function(e,t,r){try{e(t,r)}catch(e){setTimeout((function(){throw e}),0)}},We=z(Ie+"/add"),Ue=z(Ie+"/removeAll"),Ve=z(Ie+"/remove"),qe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,d([Ie+"/error"],e))};function $e(e){var t=this;void 0===e&&(e={});var r=new Map,n=e.extra,o=e.onError,i=void 0===o?qe:o;me(i,"onError");var a=function(e){for(var t=0,n=Array.from(r.values());t<n.length;t++){var o=n[t];if(e(o))return o}},l=function(e){var t=a((function(t){return t.effect===e.effect}));return t||(t=ze(e)),function(e){return e.unsubscribe=function(){return r.delete(e.id)},r.set(e.id,e),function(t){e.unsubscribe(),(null==t?void 0:t.cancelActive)&&Fe(e)}}(t)},s=function(e){var t=De(e),r=t.type,n=t.effect,o=t.predicate,i=a((function(e){return("string"==typeof r?e.type===r:e.predicate===o)&&e.effect===n}));return i&&(i.unsubscribe(),e.cancelActive&&Fe(i)),!!i},u=function(e,o,a,s){return x(t,null,(function(){var t,u,c;return f(this,(function(f){switch(f.label){case 0:t=new AbortController,u=Ne(l,t.signal),f.label=1;case 1:return f.trys.push([1,3,4,5]),e.pending.add(t),[4,Promise.resolve(e.effect(o,je({},a,{getOriginalState:s,condition:function(e,t){return u(e,t).then(Boolean)},take:u,delay:Ae(t.signal),pause:Me(t.signal),extra:n,signal:t.signal,fork:Re(t.signal),unsubscribe:e.unsubscribe,subscribe:function(){r.set(e.id,e)},cancelActiveListeners:function(){e.pending.forEach((function(e,r,n){e!==t&&(be(e,Oe),n.delete(e))}))}})))];case 2:return f.sent(),[3,5];case 3:return(c=f.sent())instanceof Ce||Be(i,c,{raisedBy:"effect"}),[3,5];case 4:return be(t,Ee),e.pending.delete(t),[7];case 5:return[2]}}))}))},c=He(r);return{middleware:function(e){return function(t){return function(n){if(!F(n))return t(n);if(We.match(n))return l(n.payload);if(!Ue.match(n)){if(Ve.match(n))return s(n.payload);var o,a=e.getState(),f=function(){if(a===Pe)throw new Error(Ie+": getOriginalState can only be called synchronously");return a};try{if(o=t(n),r.size>0)for(var d=e.getState(),p=Array.from(r.values()),h=0,m=p;h<m.length;h++){var v=m[h],g=!1;try{g=v.predicate(n,d,a)}catch(e){g=!1,Be(i,e,{raisedBy:"predicate"})}g&&u(v,n,e,f)}}finally{a=Pe}return o}c()}}},startListening:l,stopListening:s,clearListeners:c}}var Ge,Ke="RTK_autoBatch",Ye=function(){return function(e){var t;return{payload:e,meta:(t={},t[Ke]=!0,t)}}},Qe="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"!=typeof window?window:void 0!==r.g?r.g:globalThis):function(e){return(Ge||(Ge=Promise.resolve())).then(e).catch((function(e){return setTimeout((function(){throw e}),0)}))},Ze=function(e){return function(t){setTimeout(t,e)}},Xe="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Ze(10),Je=function(e){return void 0===e&&(e={type:"raf"}),function(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=t.apply(void 0,r),i=!0,a=!1,l=!1,s=new Set,u="tick"===e.type?Qe:"raf"===e.type?Xe:"callback"===e.type?e.queueNotification:Ze(e.timeout),c=function(){l=!1,a&&(a=!1,s.forEach((function(e){return e()})))};return Object.assign({},o,{subscribe:function(e){var t=o.subscribe((function(){return i&&e()}));return s.add(e),function(){t(),s.delete(e)}},dispatch:function(e){var t;try{return i=!(null==(t=null==e?void 0:e.meta)?void 0:t[Ke]),(a=!i)&&(l||(l=!0,u(c))),o.dispatch(e)}finally{i=!0}}})}}};(0,n.pV)()},787:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(7361),o=r.n(n);function i(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(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.")}()}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||l(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 l(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u=function(e,t){for(var r=a(t,2),n=r[0],l=r[1],s=[].concat(i(n.split(".").filter(Boolean)),i(l.split(".").filter(Boolean))),u=o()(e,s,""),c=arguments.length,f=new Array(c>2?c-2:0),d=2;d<c;d++)f[d-2]=arguments[d];if(f.length>0){var p=o()(window,"wp.i18n.sprintf");return p?p.apply(void 0,[u].concat(f)):u.replace("%s",f[0])}return u};const c=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return u.apply(void 0,[window.et_ai_data.i18n,[e,t]].concat(n))}},483:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(5893),i=r(6113),a=n(r(8505));t.default=function(){return(0,i.useSelector)((function(e){return e.promptModal.display}))?(0,o.jsx)(a.default,{}):null}},13:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUpscaleImageMutation=t.useRefineImageMutation=t.useAutoGenerateImageMutation=t.useLazyRefineCodeQuery=t.useGenerateCodeMutation=t.useGenerateImageMutation=t.useLazyUserQuery=t.useUserQuery=t.useRefineModuleMutation=t.useRefineQuery=t.useLazyRefineQuery=t.useGeneratePromptMutation=t.useGenerateModuleMutation=t.useGenerateFieldMutation=void 0;var n=r(2105),o=window.et_ai_data.ai_server_url,i=(0,n.fetchBaseQuery)({baseUrl:o,credentials:"same-origin",prepareHeaders:function(e,t){var r,n,o,i,a=t.getState();return e.set("Authorization","Bearer ".concat(null==a||null===(r=a.diviAIOptions)||void 0===r||null===(n=r.etAccount)||void 0===n?void 0:n.username,":").concat(null==a||null===(o=a.diviAIOptions)||void 0===o||null===(i=o.etAccount)||void 0===i?void 0:i.apiKey)),e}}),a=(0,n.createApi)({reducerPath:"api",baseQuery:(0,n.retry)(i,{retryCondition:function(e,t,r){var n,o=(null==r||null===(n=r.extraOptions)||void 0===n?void 0:n.maxRetries)||1,i=(null==r?void 0:r.attempt)||1;return 401!==e.status&&404!==e.status&&403!==e.status&&o>i}}),endpoints:function(e){return{generateField:e.mutation({query:function(e){return{url:"generate-text",method:"POST",body:e}}}),generateModule:e.mutation({query:function(e){return{url:"generate-module",method:"POST",body:e}}}),generatePrompt:e.mutation({query:function(e){return{url:"generate-prompt",method:"POST",body:e}}}),refineModule:e.mutation({query:function(e){return{url:"refine-module",method:"POST",body:e}}}),refine:e.query({query:function(e){return{url:"refine-text",method:"POST",body:e}}}),user:e.query({query:function(){return{url:"user"}}}),generateImage:e.mutation({query:function(e){return{url:"generate-image",method:"POST",body:e}},extraOptions:{maxRetries:3}}),autoGenerateImage:e.mutation({query:function(e){return{url:"autogenerate-image",method:"POST",body:e}},extraOptions:{maxRetries:3}}),refineImage:e.mutation({query:function(e){return{url:"refine-image",method:"POST",body:e}},extraOptions:{maxRetries:3}}),upscaleImage:e.mutation({query:function(e){return{url:"upscale-image",method:"POST",body:e}},extraOptions:{maxRetries:3}}),generateCode:e.mutation({query:function(e){return{url:"generate-code",method:"POST",body:e}}}),refineCode:e.query({query:function(e){return{url:"refine-code",method:"POST",body:e}}})}}});t.useGenerateFieldMutation=a.useGenerateFieldMutation,t.useGenerateModuleMutation=a.useGenerateModuleMutation,t.useGeneratePromptMutation=a.useGeneratePromptMutation,t.useLazyRefineQuery=a.useLazyRefineQuery,t.useRefineQuery=a.useRefineQuery,t.useRefineModuleMutation=a.useRefineModuleMutation,t.useUserQuery=a.useUserQuery,t.useLazyUserQuery=a.useLazyUserQuery,t.useGenerateImageMutation=a.useGenerateImageMutation,t.useGenerateCodeMutation=a.useGenerateCodeMutation,t.useLazyRefineCodeQuery=a.useLazyRefineCodeQuery,t.useAutoGenerateImageMutation=a.useAutoGenerateImageMutation,t.useRefineImageMutation=a.useRefineImageMutation,t.useUpscaleImageMutation=a.useUpscaleImageMutation,t.default=a},4255:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUpdateETAccountLocalMutation=void 0;var n=r(2105),o=window.et_ai_data.ajaxurl,i=(0,n.createApi)({baseQuery:(0,n.fetchBaseQuery)({baseUrl:o}),endpoints:function(e){return{updateETAccountLocal:e.mutation({query:function(e){return{url:o,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"action=".concat(e.action,"&wp_nonce=").concat(e.nonce,"&et_api_key=").concat(e.et_api_key,"&et_username=").concat(e.et_username)}}})}}});t.useUpdateETAccountLocalMutation=i.useUpdateETAccountLocalMutation,t.default=i},4968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUploadImageMutation=void 0;var n=r(2105),o=window.et_ai_data.ajaxurl,i=(0,n.createApi)({reducerPath:"apiImage",baseQuery:(0,n.fetchBaseQuery)({baseUrl:o}),endpoints:function(e){return{uploadImage:e.mutation({query:function(e){return{url:o,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"action=".concat(e.action,"&wp_nonce=").concat(e.nonce,"&imageURL=").concat(e.url)}}})}}});t.useUploadImageMutation=i.useUploadImageMutation,t.default=i},4197:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(5893),i=n(r(6516)),a=n(r(911)),l=n(r(787)),s=r(7466),u=r(9548),c=r(8136),f=r(4587);r(5091);t.default=function(){var e,t,r=(0,s.useAppDispatch)(),n=(0,s.useAppSelector)(f.selectError),d=n.show,p=n.status,h=null==n||null===(e=n.data)||void 0===e?void 0:e.error,m=null==n||null===(t=n.data)||void 0===t?void 0:t.ai_error_message,v=function(){"limit_reached"===h&&r((0,c.showUpgradeModal)(!0)),"401_user"!==h&&"Invalid credentials."!==m||r((0,u.setETAccount)({errorMessage:m})),h&&["404_user","unable_to_render_reference"].includes(h)&&r((0,c.hideModal)()),r((0,c.showError)({show:!1,status:"",data:{error:"",ai_error_message:""}}))};if(!d)return null;var g=m&&""!==m?m:(0,l.default)("userPrompt","Something went wrong");"unable_to_render_reference"===h&&(g=(0,l.default)("userPrompt","$unable_to_render_reference"));var y="busy"===p?(0,l.default)("userPrompt","$serverBusy"):g,b="403"==p?(0,l.default)("userPrompt","Purchase A Divi AI Membership"):(0,l.default)("userPrompt","Error");return(0,o.jsx)("div",{className:"et-ai-error-modal",children:(0,o.jsxs)(i.default,{children:[(0,o.jsx)(i.default.Header,{onClose:v,children:b}),(0,o.jsx)(i.default.Content,{children:(0,o.jsx)("div",{"data-testid":"finalErrorMessage",dangerouslySetInnerHTML:{__html:y}})}),(0,o.jsx)(i.default.Actions,{children:(0,o.jsx)(a.default,{className:"et-common-button et-common-button--primary","data-testid":"close-icon",onClick:v,children:(0,l.default)("userPrompt","Close")})})]})})}},5528:function(e,t,r){"use strict";function n(e){return n="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},n(e)}var o=["label","hint"];function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldLabel=void 0;var d=r(5893),p=r(7363),h=f(r(4184)),m=r(7727);r(2872);t.FieldLabel=function(e){var t=e.label,r=e.hint,n=c(e,o),i=s((0,p.useState)(!1),2),l=i[0],u=i[1],f=s((0,p.useState)(!1),2),v=f[0],g=f[1],y=function(){u((function(e){return!e}))};return(0,d.jsxs)("span",{className:"et-fb-form__label",onMouseEnter:function(){return g(!0)},onMouseLeave:function(){return g(!1)},children:[(0,d.jsxs)("label",a(a({className:"et-fb-form__label-text"},n),{},{children:[t,function(){if(!r)return null;var e=v||l?{marginLeft:20,opacity:0}:{marginLeft:7,opacity:0},t=v||l?{marginLeft:(0,m.spring)(7,{stiffness:300,damping:15}),opacity:(0,m.spring)(1,{stiffness:60,damping:10})}:{marginLeft:(0,m.spring)(20,{stiffness:300,damping:30}),opacity:(0,m.spring)(0,{stiffness:60,damping:10})},n=(0,h.default)({"et-fb-help-icon":!0,"et-fb-help-icon--active":l});return(0,d.jsx)(m.Motion,{defaultStyle:e,style:t,children:function(e){return(0,d.jsx)("span",{"data-testid":"help-icon",className:n,onClick:y,style:e,children:(0,d.jsxs)("svg",{width:"14",height:"19",viewBox:"0 0 14 13",children:[(0,d.jsx)("circle",{cx:"7",cy:"12",r:"1"}),(0,d.jsx)("path",{d:"M6 9a3.17 3.17 0 0 1 1.59-2.68C8.33 5.86 9 5.52 9 4.5 9 4 8.55 3 7 3c-1.73 0-2 .95-2 1-.12.6-.33 1-1 1s-1.12-.4-1-1a3.89 3.89 0 0 1 4-3 3.68 3.68 0 0 1 4 3.5A3.72 3.72 0 0 1 8.77 8 1.53 1.53 0 0 0 8 9a.93.93 0 0 1-1 1 .93.93 0 0 1-1-1z"})]})})}})}()]})),r&&l&&(0,d.jsx)("p",{className:"et-fb-form-hint",children:r})]})}},4842:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(5893),i=n(r(787)),a=r(7466),l=r(8136);r(8039);t.default=function(){var e=(0,a.useAppDispatch)();return(0,o.jsxs)("div",{className:"free-upgrade-bar","data-tip":!0,"data-for":"ai-subscription-message",onMouseEnter:function(){return e((0,l.showUpgradeTip)(!0))},onMouseLeave:function(){return e((0,l.showUpgradeTip)(!1))},"data-testid":"free-upgrade-bar",children:[(0,o.jsx)("p",{children:(0,i.default)("userPrompt","Free Trial")}),(0,o.jsx)("button",{type:"button",onClick:function(){e((0,l.showUpgradeTip)(!1)),e((0,l.showUpgradeModal)(!0))},children:(0,i.default)("userPrompt","Upgrade")})]})}},4134:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(5893),i=n(r(787)),a=r(7466),l=r(8136);r(937);t.default=function(e){var t=e.error,r=(0,a.useAppDispatch)(),n="";switch(t){case"You have used all your free requests. Please upgrade your subscription.":n=(0,i.default)("userPrompt","Purchase Membership");break;case"You have reached your monthly usage limit. Please upgrade your subscription.":n=(0,i.default)("userPrompt","Upgrade Membership");break;default:n=(0,i.default)("userPrompt","Level up your efficiency")}return(0,o.jsxs)("div",{className:"et-ai-upgrade-modal",children:[(0,o.jsx)("img",{width:"440",height:"192",src:"https://www.elegantthemes.com/images/vb/ai/upgrade.png",alt:(0,i.default)("userPrompt","AI Unlimited")}),(0,o.jsx)("h2",{children:(0,i.default)("userPrompt","Upgrade to Divi AI Unlimited")}),(0,o.jsx)("p",{children:n}),(0,o.jsx)("button",{className:"et-common-button et-common-button--primary",onClick:function(){r((0,l.hideModal)()),window.open("https://www.elegantthemes.com/ai/?utm_source=Divi+AI&utm_medium=Free+Trial&utm_campaign=Native","_blank")},children:(0,i.default)("userPrompt","Learn More")})]})}},5463:function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(5893),l=r(7363),s=r(930),u=r(6486),c=i(r(4184)),f=i(r(911)),d=i(r(787)),p=r(7466),h=i(r(9353)),m=i(r(2428)),v=i(r(4565)),g=i(r(3288)),y=r(8136),b=r(4587),w=i(r(8018));r(4591);t.default=function(e){var t=(0,s.useFormContext)().getValues,r=(0,p.useAppSelector)(b.selectPrefilledContentType),o=(0,p.useAppSelector)(b.selectHistory),i=(0,p.useAppSelector)(b.selectAdditionalInfo),_=(0,p.useAppSelector)(b.selectEditorName),x=(0,p.useAppSelector)(b.selectEditorValue),k=(0,p.useAppSelector)(b.selectEditorInsertMode),S=(0,p.useAppSelector)(b.selectEditorCursor),O=(0,p.useAppSelector)(b.selectCurrent),E=n((0,l.useState)(!1),2),C=E[0],T=E[1],L=n((0,l.useState)(""),2),M=L[0],A=L[1],j=n((0,w.default)(),1)[0],P=i||{},I=P.fields,R=P.field_name,N="html"===t("content_type")?"html":"css",D=(0,p.useAppDispatch)();(0,l.useEffect)((function(){o.length&&A(o.at(-1))}),[o]),(0,l.useEffect)((function(){M&&j({code:M})}),[M]);if(C)return(0,a.jsx)("div",{className:"et-ai-modal-spinner-container",children:(0,a.jsx)(m.default,{})});var z={"et-ai-content-results-prompt":!0,"et-ai-modal-disabled":C};return(0,a.jsxs)("div",{className:(0,c.default)(z),children:[(0,a.jsx)("div",{className:"et-fb-form__toggle et-fb-form__description-toggle",children:(0,a.jsxs)("div",{className:"et-ai-content-results-prompt__description",children:[(0,a.jsx)(h.default,{viewportMargin:1/0,inline:"css"!==r&&"free-form-css"!==r,cursorBlinkRate:550,value:M,lint:!0,mode:N,name:"code-results",_onChange:function(e,t){"code-results"===e&&(D((0,y.updateHistoryAtIndex)({index:O,value:t})),A(t))}}),(0,a.jsx)(g.default,{onChange:function(e){A(o[e])}}),(0,a.jsx)(f.default,{className:"et-common-button--primary",onClick:function(){var r=null==R?void 0:R.match(/__hover|_tablet|_phone/),n=I.find((function(e){var t=e.name;return null!=r&&r.length&&(t+=(0,u.first)(r)),t===R})),o={};if(n){var i=n.selectedText,a=n.defaultValue;o=i?{text:a.replace(i,t("text")),fieldName:R}:{text:t("text"),fieldName:R}}else o={code:M,name:_,insertMode:k,previousCode:x,cursor:S,useCodeAction:!0};e.closePrompt(!1),window.dispatchEvent(new CustomEvent("ai_prompt_use_code",{detail:o}))},children:(0,d.default)("userPrompt","Use This Code")})]})}),(0,a.jsx)(v.default,{setCode:function(e){A(e)},setIsLoading:T})]})}},4565:function(e,t,r){"use strict";function n(e){return n="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},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),l=new C(n||[]);return i(a,"_invoke",{value:k(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var g={};c(g,l,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==t&&r.call(b,l)&&(g=b);var w=v.prototype=h.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(i,a,l,s){var u=d(e[i],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,l,s)}),(function(e){o("throw",e,l,s)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return o("throw",e,l,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=d(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=d(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.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 O(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.prototype=v,i(w,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},_(x.prototype),c(x.prototype,s,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),c(w,u,"Generator"),c(w,l,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,C.prototype={constructor:C,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(E),!e)for(var t in this)"t"===t.charAt(0)&&r.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 n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var d=r(5893),p=r(7363),h=r(930),m=r(6113),v=r(6486),g=f(r(2278)),y=f(r(6789)),b=f(r(911)),w=f(r(4526)),_=f(r(787)),x=r(13),k=r(7466),S=r(5528),O=r(8035),E=r(9861),C=r(8136),T=r(4587);t.default=function(e){var t=e.setCode,r=e.setIsLoading,n=(0,h.useFormContext)(),i=n.control,l=n.register,c=n.getValues,f=(0,k.useAppSelector)(T.selectHistory),L=(0,k.useAppSelector)(T.selectCodeQuery).content,M=(0,k.useAppSelector)(T.selectCurrent),A=u((0,x.useLazyRefineCodeQuery)(),1)[0],j=u((0,x.useGenerateCodeMutation)(),1)[0],P=(0,k.useAppSelector)(T.selectSelectedOption),I=(0,k.useAppSelector)(T.selectAIMenuContext),R=(0,k.useAppSelector)(T.selectPrefilledContentType),N=(0,k.useAppSelector)(T.selectProcessedKey),D=(0,k.useAppSelector)(T.selectContext),z=(0,k.useAppSelector)(T.selectEditorInsertMode),F=(0,k.useAppSelector)(T.selectEditorValue),H=(0,k.useAppSelector)(T.selectLastCodeRequestType),B=u((0,p.useState)(""),2),W=B[0],U=B[1],V=u((0,p.useState)(""),2),q=V[0],$=V[1],G=(0,m.useDispatch)(),K=(0,h.useWatch)({control:i,name:"rewrite"});(0,p.useEffect)((function(){[O.CodeOption.CODE_WITH_AI,O.CodeOption.IMPROVE_CODE_WITH_AI,O.CodeOption.RESULT].includes(P)||Y(P)}),[]);var Y=function(){var e,n=(e=o().mark((function e(n){var i,l,s,u,d,p,h=arguments;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=h.length>1&&void 0!==h[1]&&h[1],r(!0),l=a({prompt:"retry"===n.tag?c("rewrite"):"",code_language:R,previous_result:f.at(M)||L||""},"before"===N||"after"===N?{pseudo_element:N}:{}),(0,v.isObject)(n)&&(l=a(a({},l),n)),z!==O.AICodeInsertMode.REPLACE&&(l.existing_code=F),!i||"refine"===H){e.next=13;break}return u=a({prompt:c("prompt"),code_language:R,module_html:(0,E.getModuleHTMLForCode)(D.module,R)},"before"===N||"after"===N?{pseudo_element:N}:{}),e.next=9,j(u);case 9:s=e.sent,G((0,C.setLastCodeRequestType)("generate")),e.next=18;break;case 13:return"retry"===n.tag&&(l=a(a({},l),{tag:""})),e.next=16,A(l);case 16:s=e.sent,G((0,C.setLastCodeRequestType)("refine"));case 18:d=(0,v.get)(s,"data.content",""),(p=(0,v.get)(s,"error",!1))&&G((0,C.showError)(p)),d&&(t(d),G((0,C.updateSelectedOption)(O.CodeOption.RESULT)),G((0,C.updateHistory)(d))),r(!1);case 23:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){s(i,n,o,a,l,"next",e)}function l(e){s(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}();return(0,d.jsxs)("div",{className:"et-fb-form__toggle",children:[(0,d.jsx)("div",{className:"et-ai-content-results-prompt__tags",children:(0,d.jsxs)("div",{className:"et-ai-content-results-prompt__tags-pill",children:[f.length<1||P===O.CodeOption.IMPROVE_CODE_WITH_AI&&f.length<2?null:(0,d.jsxs)("label",{className:"et-ai-content-results-prompt__tag",htmlFor:"tag",children:[(0,_.default)("userPrompt","tags.Retry"),(0,d.jsx)("input",a(a({id:"tag",type:"radio",value:"retry"},l("tag")),{},{onClick:function(){return Y({tag:"retry"},!0)}}))]}),(0,d.jsx)("div",{className:"et-ai-content-results-prompt__tone",children:(0,d.jsx)(g.default,{button:(0,d.jsxs)(d.Fragment,{children:[W||"Improve With AI",(0,d.jsx)(y.default,{icon:"arrow-down-dense"})]}),value:q,onSelect:function(e){var t=e.parentValue,r=e.value,n=e.name;return U(n),$(r),Y(t&&t!==r?{tag:[t,r]}:{tag:r})},context:I})})]})}),(0,d.jsxs)("div",{className:"et-ai-content-results-prompt__regenerate",children:[(0,d.jsx)(S.FieldLabel,{label:(0,_.default)("userPrompt","Refine Result"),hint:(0,_.default)("userPrompt","$refineHint")}),(0,d.jsxs)("div",{className:"et-ai-content-results-prompt__rewrite",children:[(0,d.jsx)(h.Controller,{name:"rewrite",control:i,render:function(e){var t=e.field;return(0,d.jsx)(w.default,a(a({},t),{},{"data-testid":"refineResult",placeholder:"Rewrite to be more engaging",onKeyDown:function(e){return(0,E.handleEnterKeyCallback)(e,(function(){return Y({tag:"retry"})}),""===K)}}))}}),(0,d.jsx)(b.default,{onClick:function(){return Y({tag:"retry"})},ripple:!1,disabled:""===K,className:"et-common-button--meta",children:(0,_.default)("userPrompt","Regenerate")})]})]})]})}},2895:function(e,t,r){"use strict";function n(e){return n="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},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=r(5893),u=r(930),c=l(r(787)),f=r(5528),d=r(4587),p=r(7466),h=r(2351),m=r(8136),v=l(r(4184));r(7147);t.default=function(e){var t=e.isMissingPrompt,r=void 0!==t&&t,n=(0,u.useFormContext)(),o=n.register,a=n.getValues,l=(0,p.useAppSelector)(d.selectPrefilledContentType),g=""!==(0,p.useAppSelector)(d.selectEditorValue),y=(0,p.useAppDispatch)(),b="html"===l?(0,c.default)("userPrompt","What would you like to create using custom code?"):(0,c.default)("userPrompt","How would you like to change the style of this element?"),w=(0,v.default)({"et-ai-error-field":r&&""===a("prompt").trim(),"et-ai-control-textarea":!0,"et-fb-disabled-global-shortcuts":!0});return(0,s.jsxs)("div",{className:"et-ai-code et-fb-form__toggle",children:[(0,s.jsxs)("div",{className:"et-fb-form__group",children:[(0,s.jsx)(f.FieldLabel,{label:b,hint:(0,c.default)("userPrompt","$codePromptHint"),htmlFor:"et_ai_code_style_description"}),(0,s.jsx)("textarea",i({className:w,rows:5,id:"et_ai_code_style_description"},o("prompt")))]}),g&&(0,s.jsx)(h.LoadOptions,{onCheckboxChange:function(e){y((0,m.setCodeEditorInsertMode)(e))}})]})}},2351:function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadOptions=void 0;var a=r(5893),l=r(7363),s=i(r(787)),u=i(r(1149)),c=r(8035);t.LoadOptions=function(e){var t=e.onCheckboxChange,r=n((0,l.useState)(c.AICodeInsertMode.APPEND),2),o=r[0],i=r[1];(0,l.useEffect)((function(){t(o)}),[]);var f=function(e){var r=e===o?null:e;i(e===o?null:e),t(r)};return(0,a.jsxs)("div",{className:"et-fb-form__group",children:[(0,a.jsx)(u.default,{value:c.AICodeInsertMode.REPLACE,checked:o===c.AICodeInsertMode.REPLACE,onChange:function(){return f(c.AICodeInsertMode.REPLACE)},children:(0,s.default)("aiCode","Replace Existing Content")}),(0,a.jsx)(u.default,{value:c.AICodeInsertMode.INSERT,checked:o===c.AICodeInsertMode.INSERT,onChange:function(){return f(c.AICodeInsertMode.INSERT)},children:(0,s.default)("aiCode","Insert Code at Cursor")})]})}},6817:function(e,t,r){"use strict";function n(e){return n="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},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),l=new C(n||[]);return i(a,"_invoke",{value:k(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var g={};c(g,l,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==t&&r.call(b,l)&&(g=b);var w=v.prototype=h.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(i,a,l,s){var u=d(e[i],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,l,s)}),(function(e){o("throw",e,l,s)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return o("throw",e,l,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=d(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=d(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.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 O(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.prototype=v,i(w,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},_(x.prototype),c(x.prototype,s,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),c(w,u,"Generator"),c(w,l,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,C.prototype={constructor:C,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(E),!e)for(var t in this)"t"===t.charAt(0)&&r.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 n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function i(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(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.")}()}function a(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||s(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 s(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var f=r(5893),d=r(7363);r(6641);var p=c(r(4184)),h=r(6486),m=r(7466),v=r(4587),g=r(8136),y=c(r(2428)),b=c(r(6789));r(9518);var w=c(r(8069));t.default=function(e){var t=e.imagesHistory,r=e.isLoading,n=e.selectedImage,s=e.setSelectedImage,u=e.showInitialImages,c=e.downloadCallback,_=l((0,d.useState)(!1),2),x=_[0],k=_[1],S=l((0,d.useState)([]),2),O=S[0],E=S[1],C=l((0,d.useState)(0),2),T=C[0],L=C[1],M=l((0,d.useState)([]),2),A=M[0],j=M[1],P=(0,d.useRef)(null),I=(0,m.useAppSelector)(v.selectPromptHistories),R=(0,m.useAppSelector)(v.selectDownloadedImages),N=(0,m.useAppDispatch)(),D=function(){var e,t=(e=o().mark((function e(t){var r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(E((function(e){return e.push(t),e})),!c){e.next=6;break}return e.next=4,c(t,!0);case 4:(r=e.sent)&&""!==r&&N((0,g.updateDownloadedImages)([].concat(i(R),[t])));case 6:E((function(e){var r=e.indexOf(t);return e.splice(r,1),i(e)}));case 7:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function l(e){a(i,n,o,l,s,"next",e)}function s(e){a(i,n,o,l,s,"throw",e)}l(void 0)}))});return function(e){return t.apply(this,arguments)}}(),z=function(e){return-1!==O.indexOf(e)||A.includes(e)?(0,f.jsx)(y.default,{}):null},F=(0,d.useMemo)((function(){return null==t?void 0:t.findIndex((function(e){return n===e}))}),[n,t]),H=r||null==t||!t.length?[(0,f.jsx)("li",{ref:P,className:"et-ai-single-image et-ai-single-image-placeholder",children:(0,f.jsx)("div",{className:"et-ai-image-animation-placeholder"})},"placeholder-1"),(0,f.jsx)("li",{className:"et-ai-single-image et-ai-single-image-placeholder",children:(0,f.jsx)("div",{className:"et-ai-image-animation-placeholder"})},"placeholder-2"),(0,f.jsx)("li",{className:"et-ai-single-image et-ai-single-image-placeholder",children:(0,f.jsx)("div",{className:"et-ai-image-animation-placeholder"})},"placeholder-3"),(0,f.jsx)("li",{className:"et-ai-single-image et-ai-single-image-placeholder",children:(0,f.jsx)("div",{className:"et-ai-image-animation-placeholder"})},"placeholder-4")]:[],B=r&&!u&&t.length?t.slice(0,-4):t,W=null==B?void 0:B.map((function(e,t){var r=n===e,o=(0,p.default)({"et-ai-single-image":!0,"et-ai-single-image-selected":r});return(0,f.jsxs)("li",{className:o,onClick:function(){return function(e){s(e);for(var t=0,r=Object.entries(I);t<r.length;t++){var n=l(r[t],2),o=n[0];n[1].includes(e)&&N((0,g.setSelectedPrompt)(o))}}(e)},children:[z(e),!(0,h.includes)(R,e)&&(0,f.jsx)("span",{className:"et-ai-single-image-save-media",onClick:function(){return D(e)},children:(0,f.jsx)(b.default,{icon:"save"})}),(0,f.jsx)("span",{className:"et-ai-single-image-open-gallery",onClick:function(){return k(!0)},children:(0,f.jsx)(b.default,{icon:"magnifying-glass"})}),(0,f.jsx)("img",{alt:"Generated Image ".concat(t+1),src:"".concat(e,"?v=").concat(T),onError:function(){return V(e)},onLoad:function(){return j((function(t){return t.filter((function(t){return t!==e}))}))},className:(0,p.default)({"et-ai-single-image-loading":A.includes(e)})})]},e)})),U=[].concat(i(W),H),V=function(e){T>20?j((function(t){return t.filter((function(t){return t!==e}))})):(j((function(t){return[].concat(i(t),[e])})),setTimeout((function(){L(T+1)}),1e3))};return(0,d.useEffect)((function(){var e,t;r&&(null===(e=P.current)||void 0===e||null===(t=e.scrollIntoView)||void 0===t||t.call(e,{behavior:"smooth"}))}),[r]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("ul",{className:"et-ai-images-grid",children:U}),(0,f.jsx)(w.default,{open:x,setOpen:k,selectedIndex:F,imagesHistory:t})]})}},1118:function(e,t,r){"use strict";function n(e){return n="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},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),l=new C(n||[]);return i(a,"_invoke",{value:k(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var g={};c(g,l,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==t&&r.call(b,l)&&(g=b);var w=v.prototype=h.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(i,a,l,s){var u=d(e[i],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,l,s)}),(function(e){o("throw",e,l,s)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return o("throw",e,l,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=d(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=d(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.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 O(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.prototype=v,i(w,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},_(x.prototype),c(x.prototype,s,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),c(w,u,"Generator"),c(w,l,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,C.prototype={constructor:C,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(E),!e)for(var t in this)"t"===t.charAt(0)&&r.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 n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function i(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(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.")}()}function a(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||s(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 s(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var f=r(5893),d=r(7363),p=r(5280),h=r(9543),m=c(r(4184)),v=r(7466),g=r(4587),y=r(4968),b=r(13),w=r(8136),_=(0,p.createIcon)("SaveIcon",(0,f.jsx)("path",{d:"M18.95 9.051a1 1 0 1 0-1.414 1.414 5 5 0 1 1-7.07 0A1 1 0 0 0 9.05 9.051a7 7 0 1 0 9.9.001v-.001zm-5.378 8.235a.5.5 0 0 0 .857 0l2.117-3.528a.5.5 0 0 0-.429-.758H15V8a1 1 0 0 0-2 0v5h-1.117a.5.5 0 0 0-.428.758l2.117 3.528z",fillRule:"evenodd"}));t.default=function(){var e,t=(0,p.useLightboxState)().currentSlide,r=l((0,d.useState)(!1),2),n=r[0],s=r[1],u=null!==(e=null==t?void 0:t.src)&&void 0!==e?e:"",c=(0,v.useAppSelector)(g.selectDownloadedImages),x=(0,v.useAppSelector)(g.selectImageQuery),k=l((0,y.useUploadImageMutation)(),1)[0],S=l((0,b.useUpscaleImageMutation)(),1)[0],O=(0,v.useAppDispatch)(),E=function(){var e,t=(e=o().mark((function e(t){var r,n,a,l,u,f,d,p,h,m;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t,a=null!==(r=null==x?void 0:x.scale)&&void 0!==r?r:1,s(!0),!(a>1)){e.next=8;break}return e.next=6,S({image_url:t,scale:a});case 6:f=e.sent,n=null!==(l=null==f||null===(u=f.data)||void 0===u?void 0:u.content)&&void 0!==l?l:n;case 8:return e.prev=8,e.next=11,k({url:encodeURIComponent(n),action:"et_ai_upload_image",nonce:window.et_ai_data.nonces.et_ai_upload_image});case 11:h=e.sent,(m=null==h||null===(d=h.data)||void 0===d||null===(p=d.data)||void 0===p?void 0:p.localImageURL)&&""!==m&&O((0,w.updateDownloadedImages)([].concat(i(c),[t]))),e.next=18;break;case 16:e.prev=16,e.t0=e.catch(8);case 18:s(!1);case 19:case"end":return e.stop()}}),e,null,[[8,16]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function l(e){a(i,n,o,l,s,"next",e)}function s(e){a(i,n,o,l,s,"throw",e)}l(void 0)}))});return function(e){return t.apply(this,arguments)}}();if(c.includes(u))return null;var C=(0,m.default)({"et-common-icon":!0,"et-common-icon--spinner":n,"et-common-icon--save":!n});return n?(0,f.jsx)("button",{className:"yarl__button",children:(0,f.jsx)(h.SpinnerCircular,{"data-testid":"spinner",size:28,thickness:150,color:"var(--yarl__color_button,hsla(0,0%,100%,.8))",secondaryColor:"var(--yarl__button_background_color,transparent)",className:C})}):(0,f.jsx)(p.IconButton,{label:"Save",icon:_,disabled:!t,className:C,onClick:function(){return E(u)}})}},9475:function(e,t,r){"use strict";function n(e){return n="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},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),l=new C(n||[]);return i(a,"_invoke",{value:k(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var g={};c(g,l,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==t&&r.call(b,l)&&(g=b);var w=v.prototype=h.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(i,a,l,s){var u=d(e[i],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,l,s)}),(function(e){o("throw",e,l,s)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return o("throw",e,l,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=d(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=d(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.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 O(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.prototype=v,i(w,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},_(x.prototype),c(x.prototype,s,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),c(w,u,"Generator"),c(w,l,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,C.prototype={constructor:C,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(E),!e)for(var t in this)"t"===t.charAt(0)&&r.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 n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function i(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=r(5893),c=r(7363),f=r(5280),d=r(9543),p=s(r(4184)),h=r(6486),m=s(r(787)),v=r(7466),g=r(4587),y=r(4968),b=r(13),w=r(8136);t.default=function(){var e,t=(0,f.useLightboxState)().currentSlide,r=null!==(e=null==t?void 0:t.src)&&void 0!==e?e:"",n=(0,v.useAppSelector)(g.selectImageQuery),l=(0,v.useAppSelector)(g.selectAdditionalInfo),s=a((0,y.useUploadImageMutation)(),1)[0],_=a((0,b.useUpscaleImageMutation)(),1)[0],x=(0,v.useAppDispatch)(),k=a((0,c.useState)(!1),2),S=k[0],O=k[1],E=function(){var e,t=(e=o().mark((function e(){var t,i,a,u,c,f,d,p,m,v,g,y,b,k,S,E,C,T,L;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=r,a=null!==(t=null==n?void 0:n.scale)&&void 0!==t?t:1,O(!0),!(a>1)){e.next=13;break}return e.next=6,_({image_url:r,scale:a});case 6:return p=e.sent,m=null!==(u=null==p||null===(c=p.data)||void 0===c?void 0:c.eta)&&void 0!==u?u:0,v=Math.ceil((0,h.toNumber)(m)),g=isNaN(v)?0:1e3*v+2e3,i=null!==(f=null==p||null===(d=p.data)||void 0===d?void 0:d.content)&&void 0!==f?f:i,e.next=13,new Promise((function(e){return setTimeout((function(){e("")}),g)}));case 13:return e.prev=13,e.next=16,s({url:encodeURIComponent(i),action:"et_ai_upload_image",nonce:window.et_ai_data.nonces.et_ai_upload_image});case 16:return E=e.sent,C=null==E||null===(y=E.data)||void 0===y||null===(b=y.data)||void 0===b?void 0:b.localImageURL,T=null==E||null===(k=E.data)||void 0===k||null===(S=k.data)||void 0===S?void 0:S.localImageID,C&&(L={text:C,localImageID:T,fieldName:null==l?void 0:l.field_name},window.dispatchEvent(new CustomEvent("ai_prompt_use_text_click",{detail:L})),x((0,w.hideModal)())),O(!1),e.abrupt("return",C);case 24:return e.prev=24,e.t0=e.catch(13),console.log(e.t0),e.abrupt("return","");case 28:case"end":return e.stop()}}),e,null,[[13,24]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function l(e){i(a,n,o,l,s,"next",e)}function s(e){i(a,n,o,l,s,"throw",e)}l(void 0)}))});return function(){return t.apply(this,arguments)}}(),C=(0,p.default)({"et-common-icon":!0,"et-common-icon--spinner":S,"et-common-icon--save":!S});return S?(0,u.jsx)("button",{className:"yarl__button",children:(0,u.jsx)(d.SpinnerCircular,{"data-testid":"spinner",size:28,thickness:150,color:"var(--yarl__color_button,hsla(0,0%,100%,.8))",secondaryColor:"var(--yarl__button_background_color,transparent)",className:C})}):(0,u.jsx)("button",{className:"yarl__button",onClick:E,children:(0,m.default)("userPrompt","Use This Image")})}},8069:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(5893),i=r(7363),a=n(r(5280)),l=n(r(1118)),s=n(r(9475)),u=(0,i.memo)((function(e){var t,r=e.imagesHistory,n=e.open,i=e.setOpen,u=e.selectedIndex,c=(null===(t=window.top)||void 0===t?void 0:t.document.body)||window.document.body,f=null==r?void 0:r.map((function(e){return{src:e}}));return(0,o.jsx)(a.default,{open:n,close:function(){return i(!1)},portal:{root:c},slides:f,index:u,styles:{root:{zIndex:"2000000"}},className:"et-ai-images-lightbox",toolbar:{buttons:[(0,o.jsx)(s.default,{},"use"),(0,o.jsx)(l.default,{},"save"),"close"]}})}));t.default=u},234:function(e,t,r){"use strict";function n(e){return n="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},n(e)}var o=["image_base64","image_influence","width","height"],i=["image_base64","image_influence"],a=["onChange"];function l(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(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.")}()}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(){u=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new C(n||[]);return o(a,"_invoke",{value:k(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var g={};c(g,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==t&&r.call(b,a)&&(g=b);var w=v.prototype=h.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function i(o,a,l,s){var u=d(e[o],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,l,s)}),(function(e){i("throw",e,l,s)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return i("throw",e,l,s)}))}s(u.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=d(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=d(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.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 O(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},_(x.prototype),c(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),c(w,s,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,C.prototype={constructor:C,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(E),!e)for(var t in this)"t"===t.charAt(0)&&r.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 n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){p(i,n,o,a,l,"next",e)}function l(e){p(i,n,o,a,l,"throw",e)}a(void 0)}))}}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||v(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 v(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var y=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var b=r(5893),w=r(7363),_=r(930),x=r(6113),k=r(6486),S=y(r(4184)),O=y(r(2428)),E=y(r(911)),C=y(r(4526)),T=y(r(787)),L=r(5528),M=r(4587),A=r(8136),j=r(7466),P=r(9861),I=r(13),R=r(4968),N=r(8035),D=y(r(6817)),z=r(6705),F=r(4236);r(3089);t.default=function(e){var t=(0,_.useFormContext)(),r=t.control,n=t.getValues,c=t.setValue,p=(0,j.useAppSelector)(M.selectImageQuery),v=(0,j.useAppSelector)(M.selectImageETA),g=(0,j.useAppSelector)(M.selectImagesHistory),y=(0,j.useAppSelector)(M.selectImagePrompt),H=(0,j.useAppSelector)(M.selectPromptHistories),B=(0,j.useAppSelector)(M.selectSelectedOption),W=(0,j.useAppSelector)(M.selectSkipAutoAction),U=(0,j.useAppSelector)(M.selectAdditionalInfo),V=(0,j.useAppSelector)(M.selectContext),q=(0,j.useAppSelector)(M.selectPrefilledContentType),$=(0,j.useAppSelector)(M.selectModuleFields),G=m((0,R.useUploadImageMutation)(),1)[0],K=m((0,I.useGenerateImageMutation)(),1)[0],Y=m((0,I.useUpscaleImageMutation)(),1)[0],Q=m((0,I.useAutoGenerateImageMutation)(),1)[0],Z=m((0,I.useRefineImageMutation)(),1)[0],X=(0,j.useAppSelector)(M.selectImageReference),J=m((0,w.useState)(!1),2),ee=J[0],te=J[1],re=m((0,w.useState)(!1),2),ne=re[0],oe=re[1],ie=m((0,w.useState)(0),2),ae=ie[0],le=ie[1],se=m((0,w.useState)(!0),2),ue=se[0],ce=se[1],fe=m((0,w.useState)(!1),2),de=fe[0],pe=fe[1],he=m((0,w.useState)(""),2),me=he[0],ve=he[1],ge=m((0,w.useState)(""),2),ye=ge[0],be=ge[1],we=(0,w.useRef)(null),_e=(0,x.useDispatch)(),xe=(0,_.useWatch)({control:r,name:"rewrite"}),ke=window.et_ai_data,Se=ke.site_name,Oe=ke.site_description,Ee=ke.site_language,Ce=U||{},Te=Ce.module;Ce.fields;(0,w.useEffect)((function(){if(!W){if((0,k.isString)(B))switch(B){case N.ImageOption.GENERATE_AUTOMATICALLY:case N.ImageOption.GENERATE_AND_REPLACE:je();break;case N.ImageOption.REIMAGINE:Me()}else(0,k.isObject)(B)&&Me();_e((0,A.setSelectedPrompt)(p.prompt)),(0,k.isEmpty)(g)||ve(g[0]),v&&!(0,k.isNaN)(v)&&0!==v&&(oe(!0),le(v/1e3),ce(!1),te(!0),setTimeout((function(){te(!1),oe(!1),ce(!0),_e((0,A.setImageETA)(0))}),v))}}),[]),(0,w.useEffect)((function(){var e;ee?null===(e=we.current)||void 0===e||e.scrollIntoView({behavior:"smooth"}):me||(0,k.isEmpty)(g)||ve(g[0])}),[ee]);var Le=function(){var e=h(u().mark((function e(t){var r,o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n(),o=r.rewrite,"generateMore"!==t){e.next=7;break}if(N.ImageOption.GENERATE_AUTOMATICALLY!==B){e.next=5;break}return Re(ye),e.abrupt("return");case 5:return Re(),e.abrupt("return");case 7:o&&(_e((0,A.updateImageQuery)(f(f({},p),{},{prompt:o}))),Re(o));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Me=function(){var e=h(u().mark((function e(){var t,r,n,i,a,l,h,m,v,g,b,w,_,x,S,O,E;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(te(!0),t={},r=null!=ye?ye:y,p.image_base64,p.image_influence,n=p.width,i=p.height,a=s(p,o),l=(0,P.getDivisibleByEight)(n),h=(0,P.getDivisibleByEight)(i),!(m=(null==B?void 0:B.tag)||"")||"style"!==m[0]){e.next=15;break}b=null!==(v=m[0])&&void 0!==v?v:"",w=null!==(g=m[1])&&void 0!==g?g:"",c("imageStyle",w),_e((0,A.updateImageQuery)(f(f({},p),{},{style:w}))),t=d({},b,w),e.next=36;break;case 15:if(!m||"aspectRatio"!==m[0]){e.next=35;break}_="",x="",S=512,e.t0=m[1],e.next="square"===e.t0?22:"landscape"===e.t0?25:"portrait"===e.t0?29:32;break;case 22:return _=S.toString(),x=S.toString(),e.abrupt("break",32);case 25:return _=(8*(S=120)).toString(),x=(5*S).toString(),e.abrupt("break",32);case 29:_=(3*(S=120)).toString(),x=(4*S).toString();case 32:t={width:_,height:x},e.next=36;break;case 35:m&&"upscale"===m[0]&&(t={scale:parseInt(m[1])||1});case 36:if(e.prev=36,!(0,k.isString)(B)||N.ImageOption.REIMAGINE!==B){e.next=47;break}return O=B.replace(/_([a-z])/g,(function(e,t){return t.toUpperCase()})),t={tag:O},e.t1=Ne,e.next=43,Z(f(f({},a),{},{width:l,height:h,image_base64:X.base64,image_influence:X.influence>0?X.influence/100:X.influence,prompt:r},t));case 43:e.t2=e.sent,(0,e.t1)(e.t2),e.next=58;break;case 47:if(!(0,k.isObject)(B)||!m[0]||"upscale"!==m[0]){e.next=53;break}E=parseInt(m[1])||1,_e((0,A.updateImageQuery)(f(f({},p),{},{scale:E}))),ze(X.url,!1,X.base64,E),e.next=58;break;case 53:return e.t3=Ne,e.next=56,K(f(f({},a),{},{width:l,height:h,image_base64:X.base64,image_influence:X.influence>0?X.influence/100:X.influence,prompt:r},t));case 56:e.t4=e.sent,(0,e.t3)(e.t4);case 58:e.next=63;break;case 60:e.prev=60,e.t5=e.catch(36),console.log(e.t5);case 63:case"end":return e.stop()}}),e,null,[[36,60]])})));return function(){return e.apply(this,arguments)}}(),Ae=function(){var e=h(u().mark((function e(t){var r,n,o,a,l,c;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(te(!0),r=ye||y,p.image_base64,p.image_influence,n=s(p,i),o=512,a=512,""===me){e.next=12;break}return e.next=8,(0,P.getImageSizeByUrl)(me);case 8:l=e.sent,c={width:l.sizes.full.width,height:l.sizes.full.height},o=(0,P.getDivisibleByEight)(c.width),a=(0,P.getDivisibleByEight)(c.height);case 12:return e.prev=12,e.t0=Ne,e.next=16,Z(f(f({},n),{},{image_base64:"",prompt:r,image_url:me,style:t||p.style,width:o,height:a}));case 16:e.t1=e.sent,(0,e.t0)(e.t1),e.next=23;break;case 20:e.prev=20,e.t2=e.catch(12),console.log(e.t2);case 23:case"end":return e.stop()}}),e,null,[[12,20]])})));return function(t){return e.apply(this,arguments)}}(),je=function(){var e=h(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return te(!0),t={site_name:Se,site_description:Oe,module_name:Te,module_fields:$,page_content:V.page,content_type:q,language:Ee},e.prev=2,e.t0=Ne,e.next=6,Q(t);case 6:e.t1=e.sent,(0,e.t0)(e.t1),e.next=13;break;case 10:e.prev=10,e.t2=e.catch(2),console.log(e.t2);case 13:case"end":return e.stop()}}),e,null,[[2,10]])})));return function(){return e.apply(this,arguments)}}(),Pe=function(e){return null!=e?e:p.prompt},Ie=function(e){var t;return null!==(t=null!=e?e:p.style)&&void 0!==t?t:""},Re=function(){var e=h(u().mark((function e(t,r){var n,o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return te(!0),n=Pe(t),o=Ie(r),e.prev=3,e.t0=Ne,e.next=7,K(f(f({},p),{},{prompt:n,style:o}));case 7:e.t1=e.sent,e.t2=n,(0,e.t0)(e.t1,e.t2),e.next=15;break;case 12:e.prev=12,e.t3=e.catch(3),console.log(e.t3);case 15:case"end":return e.stop()}}),e,null,[[3,12]])})));return function(t,r){return e.apply(this,arguments)}}(),Ne=function(e,t){var r=(0,k.get)(e,"data.content",[]),n=(0,k.get)(e,"data.prompt",ye),o=(0,k.get)(e,"error",!1),i=(0,k.get)(e,"data.eta",0),a=(0,k.get)(e,"data.status",""),l=Math.ceil((0,k.toNumber)(i)),s=(0,k.isNaN)(l)?0:1e3*l+2e3;o&&_e((0,A.showError)(o)),"busy"===a?(te(!1),_e((0,A.showError)({status:"busy",error:(0,T.default)("userPrompt","$serverBusy")}))):(oe(!0),le(s/1e3),setTimeout((function(){r.length&&(be(n),De(r,t),_e((0,A.updateImagesHistory)(r))),te(!1),oe(!1)}),s))},De=function(e,t){var r=t||p.prompt,n=(0,k.get)(H,r,[]);_e((0,A.setPromptHistories)(f(f({},H),{},d({},r,[].concat(l(n),l(e))))))},ze=function(){var t=h(u().mark((function t(r){var n,o,i,a,l,s,c,d,h,m,v,g,y,b,w,_,x,S,O,E,C,T=arguments;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=T.length>1&&void 0!==T[1]&&T[1],i=T.length>2&&void 0!==T[2]?T[2]:"",a=T.length>3&&void 0!==T[3]?T[3]:1,r){t.next=5;break}return t.abrupt("return");case 5:if(l=r,s=1!==a?a:null!==(n=null==p?void 0:p.scale)&&void 0!==n?n:1,o||pe(!0),!(s>1)){t.next=22;break}return h={scale:s,image_url:r},""!==i&&(h.image_base64=i,delete h.image_url),t.next=13,Y(f({},h));case 13:return m=t.sent,v=(0,k.get)(m,"data.eta",0),g=Math.ceil((0,k.toNumber)(v)),y=(0,k.isNaN)(g)?0:1e3*g+2e3,l=null!==(c=null==m||null===(d=m.data)||void 0===d?void 0:d.content)&&void 0!==c?c:l,o||(oe(!0),le(y/1e3)),t.next=21,new Promise((function(e){return setTimeout((function(){e("")}),y)}));case 21:o||oe(!1);case 22:return t.prev=22,t.next=25,G({url:encodeURIComponent(l),action:"et_ai_upload_image",nonce:window.et_ai_data.nonces.et_ai_upload_image});case 25:return S=t.sent,O=null==S||null===(b=S.data)||void 0===b||null===(w=b.data)||void 0===w?void 0:w.localImageURL,E=null==S||null===(_=S.data)||void 0===_||null===(x=_.data)||void 0===x?void 0:x.localImageID,o||pe(!1),!o&&O&&(C={text:O,localImageID:E,fieldName:null==U?void 0:U.field_name},window.dispatchEvent(new CustomEvent("ai_prompt_use_text_click",{detail:C})),e.closePrompt()),t.abrupt("return",O);case 33:return t.prev=33,t.t0=t.catch(22),console.log(t.t0),t.abrupt("return","");case 37:case"end":return t.stop()}}),t,null,[[22,33]])})));return function(e){return t.apply(this,arguments)}}(),Fe={"et-fb-form__toggle":!0,"et-ai-modal-disabled":ee||ne},He={"et-ai-button-disabled":ee||ne},Be={"et-ai-button-disabled":!me};return(0,b.jsxs)("div",{className:"et-ai-image-results-container",children:[ne&&(0,b.jsx)(F.ImageProgressBar,{estimatedTime:ae},ae),de&&(0,b.jsx)(O.default,{}),(0,b.jsx)("div",{className:"et-fb-form__toggle et-fb-form__description-toggle",children:(0,b.jsxs)("div",{className:"et-ai-content-results-prompt__description",children:[(0,b.jsx)("p",{className:"et-ai-original-prompt-text",children:y}),(0,b.jsx)(D.default,{isLoading:ee,imagesHistory:g,selectedImage:me,setSelectedImage:ve,showInitialImages:ue,downloadCallback:ze}),(0,b.jsxs)("ul",{className:"et-ai-image-buttons",children:[(0,b.jsx)("li",{className:(0,S.default)(Be),onClick:function(){return ze(me)},children:(0,T.default)("userPrompt","Use This Image")}),(0,b.jsx)("li",{className:(0,S.default)(He),onClick:function(){return Le("generateMore")},children:(0,T.default)("userPrompt","tags.GenerateMore")})]})]})}),(0,b.jsxs)("div",{className:(0,S.default)(Fe),children:[(0,b.jsxs)("div",{className:"et-ai-content-results-prompt__tags",children:[(0,b.jsx)(L.FieldLabel,{label:(0,T.default)("userPrompt","Modify Selected Image")}),(0,b.jsxs)("div",{className:"et-ai-content-results-prompt__tags-pill",children:[(0,b.jsx)("label",{className:"et-ai-content-results-prompt__tag",onClick:function(){return Ae()},children:(0,T.default)("userPrompt","Generate More Like This One")}),(0,b.jsx)(_.Controller,{name:"imageStyle",control:r,render:function(e){var t=e.field,r=t.onChange,n=s(t,a);return(0,b.jsx)(z.ImageStyleThumbs,f(f({},n),{},{onThumbChange:function(e,t){r(t),_e((0,A.updateImageQuery)(f(f({},p),{},{style:t}))),Ae(t)},customMarker:"arrowDownDense"}))}})]})]}),(0,b.jsxs)("div",{className:"et-ai-content-results-prompt__regenerate",children:[(0,b.jsx)(L.FieldLabel,{label:(0,T.default)("userPrompt","New Description"),hint:(0,T.default)("userPrompt","$refineHint"),htmlFor:"rewrite"}),(0,b.jsxs)("div",{className:"et-ai-content-results-prompt__rewrite",children:[(0,b.jsx)(_.Controller,{name:"rewrite",control:r,render:function(e){var t=e.field;return(0,b.jsx)(C.default,f({className:"et-fb-disabled-global-shortcuts",placeholder:"".concat((0,T.default)("userPrompt","Refine your prompt"),"..."),maxLength:100,id:"rewrite",onKeyDown:function(e){return(0,P.handleEnterKeyCallback)(e,(function(){return Le()}),""===xe)}},t))}}),(0,b.jsx)(E.default,{onClick:function(){return Le()},ripple:!1,disabled:""===xe,className:"et-common-button--meta",children:(0,T.default)("userPrompt","Regenerate")})]})]})]})]})}},6705:function(e,t,r){"use strict";function n(e){return n="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},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageStyleThumbs=void 0;var s=r(5893),u=r(7363),c=r(6486),f=l(r(2419)),d=l(r(787));r(9860),t.ImageStyleThumbs=(0,u.forwardRef)((function(e,t){var r=(0,u.useMemo)((function(){var e=(0,d.default)("userPrompt","imageStyles"),t={};return(0,c.forEach)(e,(function(e,r){t[r]=null==e?void 0:e.label})),t}),[]);return(0,s.jsx)(f.default,i(i({},e),{},{_onChange:e.onThumbChange,options:r,getSvgContent:function(e,t,r){var n,o=(0,d.default)("userPrompt","imageStyles");return(0,s.jsx)("div",{className:"grid-item",children:(0,s.jsx)("div",{className:"thumbnail-container",children:(0,s.jsx)("img",{className:"thumbnail",src:null===(n=o[e])||void 0===n?void 0:n.thumbnail,alt:e})})})},additionalContentFirst:!0}))}))},4410:function(e,t,r){"use strict";function n(e){return n="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},n(e)}var o=["onChange"],i=["onChange"],a=["onChange"],l=["onChange"];function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(){u=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new C(n||[]);return o(a,"_invoke",{value:k(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var g={};c(g,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==t&&r.call(b,a)&&(g=b);var w=v.prototype=h.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function i(o,a,l,s){var u=d(e[o],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,l,s)}),(function(e){i("throw",e,l,s)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return i("throw",e,l,s)}))}s(u.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=d(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=d(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.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 O(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},_(x.prototype),c(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),c(w,s,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,C.prototype={constructor:C,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(E),!e)for(var t in this)"t"===t.charAt(0)&&r.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 n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function c(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){c(i,n,o,a,l,"next",e)}function l(e){c(i,n,o,a,l,"throw",e)}a(void 0)}))}}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(e,t)}(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 v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var g=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var y=r(5893),b=r(7363),w=r(930),_=r(6486),x=g(r(4184)),k=g(r(2419)),S=g(r(787)),O=g(r(6789)),E=g(r(4526)),C=g(r(9114)),T=g(r(911)),L=r(5528),M=r(4587),A=r(8136),j=r(7466),P=r(13),I=r(9861),R=r(6705),N=g(r(6309)),D=g(r(1472)),z=g(r(2981));r(2524);t.default=function(e){var t,r=(0,w.useFormContext)(),n=r.register,c=r.control,d=r.setValue,v=r.getValues,g=m((0,b.useState)(!1),2),F=g[0],H=g[1],B=m((0,b.useState)(""),2),W=B[0],U=B[1],V=m((0,b.useState)({width:!1,height:!1}),2),q=V[0],$=V[1],G=m((0,b.useState)(null!==(t=v("prompt"))&&void 0!==t?t:""),2),K=G[0],Y=G[1],Q=m((0,b.useState)(!1),2),Z=Q[0],X=Q[1],J=(0,j.useAppDispatch)(),ee=(0,j.useAppSelector)(M.selectAdditionalInfo),te=(0,j.useAppSelector)(M.selectContext),re=m((0,P.useGeneratePromptMutation)(),1)[0],ne=(0,j.useAppSelector)(M.selectImageReference),oe=(0,j.useAppSelector)(M.selectImageQuery);(0,b.useEffect)((function(){var t=(null==ne?void 0:ne.base64)||"";""!==t&&d("referenceImageBase64",t),e.triggerFormSubmit&&e.triggerFormSubmit()}),[]);var ie,ae,le,se,ue,ce,fe,de,pe=function(e,t){me(e),"custom"!==v("aspectRatio")&&(isNaN(t)||("width"===e&&d("imageHeight",he(e,t)),"height"===e&&d("imageWidth",he(e,t))))},he=function(e,t){var r,n,o;switch("width"===e?(n=t/3*4,o=t/8*5):(n=t/4*3,o=t/5*8),v("aspectRatio")){case"portrait":r=n;break;case"landscape":r=o;break;default:r=t}return Math.floor(r)},me=function(e){var t=p(p({},q),{},h({},e,!0));t.width&&t.height&&d("aspectRatio","custom"),U(e),$(t)},ve=function(){var e=f(u().mark((function e(){var t,r,n,o,i,a,l,s,c,f,p,h;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(t=ee||{}).module,n=t.fields,o=window.et_ai_data,i=o.site_name,a=o.site_description,l={},d("prompt",""),H(!0),n.map((function(e){var t=e.name,r=e.defaultValue;l[t]=(0,_.isUndefined)(r)?"":r})),s={site_name:i,site_description:a,module_name:r,content_type:"image",module_fields:l,page_content:te.page},e.prev=7,e.next=10,re(s);case 10:c=e.sent,f=(0,_.get)(c,"data.prompt",""),(p=(0,_.get)(c,"error",!1))&&J((0,A.showError)(p)),f&&(h=(0,I.stripDoubleQuotes)(f),d("prompt",h),Y(h)),H(!1),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(7),console.log(e.t0);case 21:case"end":return e.stop()}}),e,null,[[7,18]])})));return function(){return e.apply(this,arguments)}}(),ge=function(){var e,t;X(!1);var r=null===(e=window)||void 0===e||null===(t=e.top)||void 0===t?void 0:t.wp.media;if(r)var n=r({title:"Upload Image",multiple:!1}).open().on("select",f(u().mark((function e(){var t,r,o,i,a,l,s,c,f;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.state().get("selection").first().toJSON(),l=(null==a||null===(t=a.sizes)||void 0===t||null===(r=t.full)||void 0===r?void 0:r.height)||512,s=(null==a||null===(o=a.sizes)||void 0===o||null===(i=o.full)||void 0===i?void 0:i.width)||512,c={name:a.filename,size:a.filesizeInBytes,type:a.mime,url:a.url,height:l,width:s},!(a.filesizeInBytes&&a.filesizeInBytes>1e7)){e.next=7;break}return X(!0),e.abrupt("return");case 7:f=function(e){var t=p(p({},ne),{},{url:c.url,base64:e});J((0,A.setImageReference)(t)),J((0,A.updateImageQuery)(p(p({},oe),{},{width:s,height:l}))),d("referenceImageBase64",e),d("imageHeight",l),d("imageWidth",s)},(0,I.convertImageToBase64)(c,f);case 9:case"end":return e.stop()}}),e)}))))},ye=function(){J((0,A.setImageReference)({url:"",base64:"",influence:0})),d("referenceImageBase64","")};return(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)("div",{className:"et-fb-form__toggle",children:[(0,y.jsxs)("div",{className:"et-fb-form__group",children:[(0,y.jsx)(L.FieldLabel,{label:(0,S.default)("userPrompt","Image Style"),hint:(0,S.default)("userPrompt","$imageStyleHint")}),(0,y.jsx)(w.Controller,{name:"imageStyle",control:c,render:function(e){var t=e.field,r=t.onChange,n=s(t,l);return(0,y.jsx)(R.ImageStyleThumbs,p(p({},n),{},{onThumbChange:function(e,t){r(t)}}))}})]})," ",(0,y.jsx)("div",{className:"et-fb-form__group",children:(0,y.jsx)(L.FieldLabel,{label:(0,S.default)("userPrompt","Image Description"),hint:(0,S.default)("userPrompt","$imagePromptHint")})})," ",(0,y.jsxs)("div",{className:"et-ai-input-with-icon",children:[(0,y.jsx)(C.default,{id:"et-ai-prompt-desc-generate"}),F?(0,y.jsxs)("p",{className:"et-ai-prompt-loading",children:[(0,S.default)("userPrompt","Generating"),"..."]}):(0,y.jsx)(O.default,{icon:"divi-ai",viewBox:"0 0 28 28","data-testid":"et-ai-prompt-desc-generate","data-for":"et-ai-prompt-desc-generate","data-tip":(0,S.default)("userPrompt","Generate Prompt With AI"),onClick:ve}),(0,y.jsx)("textarea",p({className:"et-ai-control-textarea et-fb-disabled-global-shortcuts",placeholder:(0,S.default)("userPrompt","$imagePlaceholder"),rows:5,maxLength:200,onInput:function(e){return Y(e.currentTarget.value)}},n("prompt"))),(0,y.jsx)("span",{className:"et-ai-chars-counter",children:"".concat(K.length,"/200")})," "]}),(ue=""!==ne.url,ce=(0,y.jsx)(L.FieldLabel,{label:(0,S.default)("userPrompt","Reference Image (Optional)"),hint:(0,S.default)("userPrompt","$referenceImageHint")}),fe=ue&&""!==(ie=ne.url)&&(0,y.jsx)(N.default,{name:"reference_image",type:"image",className:"et-fb-settings-option-upload-type-image",previewStyle:(le={},le.backgroundColor=z.default.uploadImagePreview,le),showAddButton:!1,showEditButton:!1,showRemoveButton:!0,showResetButton:!1,onClickCanvas:_.noop,onClickAddButton:_.noop,onClickEditButton:_.noop,onClickRemoveButton:ye,onClickResetButton:_.noop,children:(ae=ie,(0,y.jsx)("img",{src:ae}))}),de=!ue&&(0,y.jsx)(T.default,{type:"button",className:"et-common-button et-common-button--reference_image",onClick:ge,children:(0,S.default)("userPrompt","Upload a Reference Image")}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"et-fb-form__group",children:[ce,(se=(0,x.default)({"et-fb-form__error":Z}),Z?(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("p",{className:se,children:(0,S.default)("userPrompt","The size of the image must be less than 10MB")})}):null),fe,(0,y.jsx)("input",p({type:"hidden"},n("referenceImageBase64"))),de]})," "]})),function(){if(!(""!==ne.url))return!1;var e=(0,y.jsx)(L.FieldLabel,{label:(0,S.default)("userPrompt","Reference Image Influence"),hint:(0,S.default)("userPrompt","$referenceImageInfluenceHint")}),t=(0,y.jsx)(w.Controller,{name:"referenceImageInfluence",control:c,defaultValue:.3,render:function(e){var t=e.field.onChange;return(0,y.jsx)(D.default,{default_unit:"%",name:"reference_image_influence",_onChange:function(e,r){!function(e,t,r){var n=parseInt(t)||0,o={url:ne.url,base64:ne.base64,influence:n};J((0,A.setImageReference)(o)),r(n=n>0?n/100:0)}(0,r,t)},default:50,value:ne.influence})}});return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"et-fb-form__group",children:[e,t]})," "]})}(),""!==ne.url?null:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"et-fb-form__group",children:[(0,y.jsx)(L.FieldLabel,{label:(0,S.default)("userPrompt","Aspect Ratio"),hint:(0,S.default)("userPrompt","$aspectRatioHint")}),(0,y.jsx)(w.Controller,{name:"aspectRatio",control:c,render:function(e){var t=e.field,r=t.onChange,n=s(t,o);return(0,y.jsx)(k.default,p(p({},n),{},{_onChange:function(e,t){r(t),function(){if($({width:!1,height:!1}),"width"===W){var e=he(W,v("imageWidth"));e&&e>0&&d("imageHeight",e)}if("height"===W){var t=he(W,v("imageHeight"));t&&t>0&&d("imageWidth",t)}}()},options:p({},(0,S.default)("userPrompt","aspectRatio"))}))}})]})," "]}),""!==ne.url?null:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"et-fb-form__group",children:[(0,y.jsx)(L.FieldLabel,{label:(0,S.default)("userPrompt","Size"),hint:(0,S.default)("userPrompt","$sizeHint")}),(0,y.jsxs)("div",{className:"et-fb-form-group-in-row",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)(w.Controller,{name:"imageWidth",control:c,render:function(e){var t=e.field,r=t.onChange,n=s(t,i);return(0,y.jsx)(E.default,p(p({role:"imageWidth",className:"et-fb-disabled-global-shortcuts"},n),{},{onChange:function(e){var t=e.target.value;r(t),pe("width",parseInt(t))},type:"number",min:"512",step:"1",value:v("imageWidth")||"",placeholder:(0,I.getDefaultDimensions)(v("aspectRatio")).width}))}}),(0,y.jsx)("span",{children:(0,S.default)("userPrompt","Width")})]}),(0,y.jsx)(O.default,{icon:"close"}),(0,y.jsxs)("div",{children:[(0,y.jsx)(w.Controller,{name:"imageHeight",control:c,render:function(e){var t=e.field,r=t.onChange,n=s(t,a);return(0,y.jsx)(E.default,p(p({role:"imageHeight",className:"et-fb-disabled-global-shortcuts"},n),{},{onChange:function(e){var t=e.target.value;r(t),pe("height",parseInt(t))},type:"number",min:"512",step:"1",value:v("imageHeight")||"",placeholder:(0,I.getDefaultDimensions)(v("aspectRatio")).height}))}}),(0,y.jsx)("span",{children:(0,S.default)("userPrompt","Height")})]})]})]})," "]})]})})}},6183:function(e,t,r){"use strict";function n(e){return n="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},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=r(5893),u=r(930),c=r(5528),f=l(r(787)),d=r(7466),p=r(9695);r(1403);t.default=function(){var e=(0,u.useFormContext)(),t=e.register,r=(e.control,(0,d.useAppSelector)(p.etAccount));return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"et-fb-form__toggle",children:[(0,s.jsxs)("div",{className:"et-fb-form__group et-fb-form__authentication_header",children:[(0,s.jsx)("h1",{children:(0,f.default)("authorization","Authentication Required")}),null!=r&&r.errorMessage&&""!==(null==r?void 0:r.errorMessage)?(0,s.jsx)("h3",{className:"et-fb-auth-error",children:(0,f.default)("authorization","$authErrorMessage")}):null,(0,s.jsx)("p",{children:(0,f.default)("authorization","$authenticationPrompt")})]}),(0,s.jsxs)("div",{className:"et-fb-form__group",children:[(0,s.jsx)(c.FieldLabel,{label:"".concat((0,f.default)("authorization","Username")),hint:(0,f.default)("authorization","$usernamePromptHint"),htmlFor:"et_username"}),(0,s.jsx)("input",i({type:"text",className:"et-common-input-text",id:"et_username"},t("et_username")))]}),(0,s.jsxs)("div",{className:"et-fb-form__group",children:[(0,s.jsx)(c.FieldLabel,{label:"".concat((0,f.default)("authorization","API Key")),hint:(0,f.default)("authorization","$apiKeyPromptHint"),htmlFor:"et_api_key"}),(0,s.jsx)("input",i({type:"password",className:"et-common-input-text",id:"et_api_key"},t("et_api_key")))]})]})})}},4236:function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageProgressBar=void 0;var a=r(5893),l=r(7363),s=i(r(787));r(654);t.ImageProgressBar=function(e){var t=e.estimatedTime,r=t<2?t:t-1,o=n((0,l.useState)(r),2),i=o[0],u=o[1],c=(0,l.useRef)();(0,l.useEffect)((function(){if(c.current=!0,!(2>t))return f(),function(){c.current=!1}}),[]);var f=function e(){i<1||setTimeout((function(){c.current&&(u((function(e){return--e})),e())}),1e3)},d=(0,l.useMemo)((function(){var e=100*(1-i/t);return Math.floor(e)}),[i]),p=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"et-common-progress-bar",children:(0,a.jsx)("span",{className:"et-common-loader et-common-loader-success"})}),(0,a.jsx)("p",{children:(0,s.default)("userPrompt","$finalizeImage")})]}),h=i<1;return 2>t?null:(0,a.jsxs)("div",{className:"image-countdown-timer",children:[h&&p,!h&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("h4",{children:[(0,s.default)("userPrompt","Generating Images"),"..."]}),(0,a.jsx)("div",{className:"image-countdown-timer-bar",children:(0,a.jsx)("div",{className:"image-countdown-timer-bar-progress",style:{width:"".concat(d,"%")}})}),(0,a.jsxs)("div",{className:"image-countdown-info",children:[(0,a.jsx)("p",{className:"image-countdown-info-percentage",children:"".concat(d,"%")}),(0,a.jsx)("p",{children:(0,s.default)("userPrompt","$imagesETAMessage",i)})]})]})]})}},8900:function(e,t,r){"use strict";function n(e){return n="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},n(e)}var o=["content"];function i(){i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new C(n||[]);return o(a,"_invoke",{value:k(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var g={};c(g,l,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==t&&r.call(b,l)&&(g=b);var w=v.prototype=h.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function i(o,a,l,s){var u=d(e[o],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,l,s)}),(function(e){i("throw",e,l,s)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return i("throw",e,l,s)}))}s(u.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=d(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=d(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.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 O(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},_(x.prototype),c(x.prototype,s,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),c(w,u,"Generator"),c(w,l,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,C.prototype={constructor:C,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(E),!e)for(var t in this)"t"===t.charAt(0)&&r.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 n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function c(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){c(i,n,o,a,l,"next",e)}function l(e){c(i,n,o,a,l,"throw",e)}a(void 0)}))}}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||p(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 p(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var m=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var v=r(5893),g=r(7363),y=r(930),b=r(6113),w=r(6486),_=m(r(4184)),x=m(r(2278)),k=m(r(6789)),S=m(r(2172)),O=m(r(911)),E=m(r(4526)),C=m(r(787)),T=r(13),L=r(4968),M=r(8136),A=m(r(3288)),j=r(5528),P=r(4587),I=r(8035),R=r(7466),N=r(9861),D=r(4236),z=m(r(2428));r(3347);var F=0,H={};t.default=function(e){var t=(0,y.useFormContext)(),r=t.control,n=t.register,a=t.setValue,c=t.getValues,h=(t.formState.isValid,(0,R.useAppSelector)(P.selectHistory)),m=(0,R.useAppSelector)(P.selectModuleQuery),B=(0,R.useAppSelector)(P.selectTextQuery),W=(0,R.useAppSelector)(P.selectSkipAutoAction),U=d((0,T.useRefineModuleMutation)(),1)[0],V=d((0,L.useUploadImageMutation)(),1)[0],q=(0,R.useAppSelector)(P.selectAdditionalInfo),$=(0,R.useAppSelector)(P.selectSelectedOption),G=(0,R.useAppSelector)(P.selectCurrent),K=(0,R.useAppSelector)(P.selectAIMenuContext),Y=d((0,T.useLazyRefineQuery)(),1)[0],Q=(0,R.useAppSelector)(P.selectModuleFields),Z=d((0,g.useState)(!1),2),X=Z[0],J=Z[1],ee=d((0,g.useState)(""),2),te=ee[0],re=ee[1],ne=d((0,g.useState)(""),2),oe=ne[0],ie=ne[1],ae=d((0,g.useState)(""),2),le=ae[0],se=ae[1],ue=d((0,g.useState)(!1),2),ce=ue[0],fe=ue[1],de=d((0,g.useState)(0),2),pe=de[0],he=de[1],me=(0,b.useDispatch)(),ve=(0,y.useWatch)({control:r,name:"rewrite"}),ge=q||{},ye=ge.intent,be=ge.fields,we=ge.field_name,_e=ge.excludeStep,xe=function(e){(0,w.forEach)(e,(function(e){if(!(0,w.includes)(N.aiSupportedImageFields,e.name))return null;F++}))},ke=function(e,t,r){(0,w.forEach)(e,(function(e){var n=e.name;if(!t)return null;var o=t[n];(0,w.includes)(N.aiSupportedImageFields,n)?(a(n,o),Te(n,{data:o},r)):a(n,(0,N.stripDoubleQuotes)((0,w.toString)(o)))}))};(0,g.useEffect)((function(){if(!W){var e=[I.TextOption.WRITE_WITH_AI,I.TextOption.IMPROVE_WITH_AI,I.TextOption.WRITE_AND_REPLACE,I.TextOption.RESULT];I.MODULE_FIELDS_AUTOFILL===ye||e.includes($)||Se($)}}),[]),(0,g.useEffect)((function(){if(h.length){var e=h.at(-1);if(I.MODULE_FIELDS_AUTOFILL===ye){if((0,w.isArray)((0,w.first)(be))){var t=h.at(-1);(0,w.forEach)(be,(function(e){return(0,w.isArray)(e)&&xe(e)}));var r,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=p(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}(be.entries());try{for(n.s();!(r=n.n()).done;){var o=d(r.value,2),i=o[0],l=o[1];(0,w.isArray)(l)&&ke(l,t[i],i)}}catch(e){n.e(e)}finally{n.f()}}else xe(be),ke(be,e);_e&&!F&&Oe()}else a("text",e?(0,N.stripDoubleQuotes)((0,w.toString)(e)):"")}}),[h]);var Se=function(){var e=f(i().mark((function e(t){var r,n,s,f,d,p,v,g,y,b,_,x,k;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=c(),n=r.tone,s=r.rewrite,f=r.more_option,J(!0),I.MODULE_FIELDS_AUTOFILL===ye){e.next=15;break}return d=B.content,p=u(B,o),v=l(l({},p),{},{previous_result:h.at(G)||d||"",previous_prompt:B.prompt,prompt:s,more_option:f,module_fields:Q}),(0,w.isObject)(t)&&(v=l(l({},v),t)),e.next=8,Y(v);case 8:return g=e.sent,y=g.data,(b=g.error)&&me((0,M.showError)(b)),(i=null==y?void 0:y.content)&&(a("text",(0,N.stripDoubleQuotes)(i)),me((0,M.updateHistory)(i))),J(!1),e.abrupt("return");case 15:return e.next=17,U(l(l({},l(l({},m),{},{tone:n})),{},{prompt:s,previous_result:h.at(G)},t));case 17:if(_=e.sent,(x=(0,w.get)(_,"error",!1))&&me((0,M.showError)(x)),J(!1),k=(0,w.get)(_,"data")){e.next=24;break}return e.abrupt("return");case 24:me((0,M.updateHistory)(k)),be.map((function(e){var t=e.name;a(t,null!=k&&k[t]?(0,N.stripDoubleQuotes)(k[t]):"")}));case 26:case"end":return e.stop()}var i}),e)})));return function(t){return e.apply(this,arguments)}}(),Oe=function(){var t=null==we?void 0:we.match(/__hover|_tablet|_phone/),r=be.find((function(e){var r=e.name;return null!=t&&t.length&&(r+=(0,w.first)(t)),r===we})),n={};if(r){var o=r.selectedText,i=r.defaultValue;n=o?{text:i.replace(o,c("text")),fieldName:we}:{text:c("text"),fieldName:we}}else n={text:c("text"),fieldName:we};I.MODULE_FIELDS_AUTOFILL===ye&&(n=function(){var e={intent:ye,settings:{}};if((0,w.isArray)((0,w.first)(be))){var t=h.at(-1);e.settings=[],(0,w.forEach)(be,(function(r,n){(0,w.isArray)(r)&&(0,w.forEach)(r,(function(r){var o=r.name,i=(0,w.get)(t,n,{})[o];(0,w.includes)(N.aiSupportedImageFields,o)&&(i=(0,w.get)(H,n,"")),(0,w.isUndefined)(e.settings[n])&&(e.settings[n]={}),e.settings[n][o]=i}))}))}else be.forEach((function(t){var r=t.name;e.settings[r]=c(r)}));return e}()),window.dispatchEvent(new CustomEvent("ai_prompt_use_text_click",{detail:n})),e.closePrompt()},Ee={"et-ai-module-fields":!0},Ce=function(){var e=f(i().mark((function e(t){var r,n,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,V({url:encodeURIComponent(t),action:"et_ai_upload_image",nonce:window.et_ai_data.nonces.et_ai_upload_image});case 5:return o=e.sent,e.abrupt("return",null==o||null===(r=o.data)||void 0===r||null===(n=r.data)||void 0===n?void 0:n.localImageURL);case 9:e.prev=9,e.t0=e.catch(2),console.log(e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t){return e.apply(this,arguments)}}(),Te=function(){var e=f(i().mark((function e(t,r,n){var o,u,c,d,p,m;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=(0,w.get)(r,"data.content",[]),u=(0,w.get)(r,"error",!1),c=(0,w.get)(r,"data.eta",0),d=(0,w.get)(r,"data.status",""),p=Math.ceil((0,w.toNumber)(c)),m=(0,w.isNaN)(p)?0:1e3*p+2e3,u&&me((0,M.showError)(u)),"busy"===d?(J(!1),me((0,M.showError)({status:"busy",error:(0,C.default)("userPrompt","$serverBusy")}))):(J(!0),fe(!0),he(m/1e3),setTimeout(f(i().mark((function e(){var r,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.length){e.next=7;break}return e.next=3,Ce((0,w.first)(o));case 3:r=e.sent,(0,w.isUndefined)(n)?re(r):H=l(l({},H),s({},n,r)),a(t,r),I.MODULE_FIELDS_AUTOFILL!==ye&&(u=l(l({},h[G]),s({},t,r)),me((0,M.updateHistoryAtIndex)({index:G,value:u})));case 7:J(!1),fe(!1),_e&&(F&&F--,F||Oe());case 10:case"end":return e.stop()}}),e)}))),m));case 8:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}();if(X)return(0,v.jsx)("div",{className:"et-ai-modal-spinner-container",children:(0,v.jsx)(z.default,{})});if(_e)return null;var Le={"et-ai-content-results-prompt":!0,"et-ai-modal-disabled":X||ce};return(0,v.jsxs)(v.Fragment,{children:[ce&&(0,v.jsx)(D.ImageProgressBar,{estimatedTime:pe},pe),(0,v.jsxs)("div",{className:(0,_.default)(Le),children:[(0,v.jsx)("div",{className:"et-fb-form__toggle et-fb-form__description-toggle",children:(0,v.jsxs)("div",{className:"et-ai-content-results-prompt__description",children:[I.MODULE_FIELDS_AUTOFILL===ye?be.map((function(e){var t=e.name,n=e.label,o=e.type;return e.original?(0,v.jsx)("div",{className:(0,_.default)(Ee),children:(0,v.jsxs)("div",{className:"et-fb-form__group",children:[(0,v.jsx)(j.FieldLabel,{label:n}),(0,v.jsx)(y.Controller,{name:t,control:r,render:function(e){var t=e.field;return function(e,t){if("tiny_mce"===e)return(0,v.jsx)(S.default,l(l({},t),{},{className:"et-ai-control-textarea et-fb-disabled-global-shortcuts",rows:5,disabled:!0}));if("upload"===e&&t.value){if(!te)return(0,v.jsx)(E.default,{value:""});if((0,w.isString)(t.value))return(0,v.jsx)("div",{className:"et-ai-control-image",children:(0,v.jsx)("img",{src:t.value,alt:""})})}return(0,v.jsx)(E.default,l(l({},t),{},{value:t.value?(0,N.stripDoubleQuotes)(t.value):"",disabled:!0}))}(o,t)}})]})},t):null})):(0,v.jsx)(y.Controller,{name:"text",control:r,render:function(e){var t=e.field;return(0,v.jsx)(S.default,l(l({},t),{},{className:"et-ai-control-textarea et-fb-disabled-global-shortcuts",placeholder:(0,C.default)("userPrompt","$contentPlaceholder"),rows:5,disabled:!0}))}}),(0,v.jsx)(A.default,{}),(0,v.jsx)(O.default,{className:"et-common-button--primary",onClick:Oe,children:(0,C.default)("userPrompt","Use This Text")})]})}),(0,v.jsxs)("div",{className:"et-fb-form__toggle",children:[(0,v.jsxs)("div",{className:"et-ai-content-results-prompt__tags",children:[(0,v.jsx)(j.FieldLabel,{label:(0,C.default)("userPrompt","Modify With AI")}),(0,v.jsxs)("div",{className:"et-ai-content-results-prompt__tags-pill",children:[h.length>0&&(0,v.jsxs)("label",{className:"et-ai-content-results-prompt__tag",htmlFor:"tag",children:[(0,C.default)("userPrompt","tags.Retry"),(0,v.jsx)("input",l(l({id:"tag",type:"radio",value:"retry"},n("tag")),{},{onClick:function(){return Se({tag:"retry"})}}))]}),(0,v.jsx)("div",{className:"et-ai-content-results-prompt__tone",children:(0,v.jsx)(x.default,{button:(0,v.jsxs)(v.Fragment,{children:[oe||"Improve With AI",(0,v.jsx)(k.default,{icon:"arrow-down-dense"})]}),value:le,onSelect:function(e){var t=e.parentValue,r=e.value,n=e.name;return ie(n),se(r),Se(t&&t!==r?{tag:[t,r]}:{tag:r})},context:K})})]})]}),(0,v.jsxs)("div",{className:"et-ai-content-results-prompt__regenerate",children:[(0,v.jsx)(j.FieldLabel,{label:(0,C.default)("userPrompt","Refine Result"),hint:(0,C.default)("userPrompt","$refineHint"),htmlFor:"refineResult"}),(0,v.jsxs)("div",{className:"et-ai-content-results-prompt__rewrite",children:[(0,v.jsx)(y.Controller,{name:"rewrite",control:r,render:function(e){var t=e.field;return(0,v.jsx)(E.default,l(l({},t),{},{id:"refineResult",value:t.value||"",placeholder:"Rewrite to be more engaging",onKeyDown:function(e){return(0,N.handleEnterKeyCallback)(e,(function(){return Se({tag:"retry"})}),""===ve)}}))}}),(0,v.jsx)(O.default,{onClick:function(){return Se({tag:"retry"})},ripple:!1,disabled:""===ve,className:"et-common-button--meta",children:(0,C.default)("userPrompt","Regenerate")})]})]})]})]})]})}},3288:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(5893),i=r(930),a=n(r(4184)),l=r(8136),s=r(4587),u=n(r(6789)),c=n(r(787)),f=r(8035),d=r(7466);r(3426);t.default=function(e){var t=(0,i.useFormContext)().setValue,r=(0,d.useAppSelector)(s.selectCurrent),n=(0,d.useAppSelector)(s.selectHistory),p=(0,d.useAppSelector)(s.selectAdditionalInfo),h=(0,d.useAppDispatch)(),m=p||{},v=m.intent,g=m.fields,y=function(r){e.onChange?e.onChange(r):f.MODULE_FIELDS_AUTOFILL===v?g.map((function(e){var o=e.name;t(o,n[r][o])})):t("text",n[r]),h((0,l.updateCurrent)(r))},b=(0,a.default)({"et-ai-content-results-prompt__history__prev":!0,"et-ai-content-results-prompt__history__prev--enabled":r>0}),w=(0,a.default)({"et-ai-content-results-prompt__history__next":!0,"et-ai-content-results-prompt__history__next--enabled":r>=0&&r<n.length-1});return n.length<2?null:(0,o.jsxs)("div",{className:"et-ai-content-results-prompt__history",children:[(0,o.jsx)("div",{className:b,role:"previous-history",onClick:function(){1>r||y(r-1)},children:(0,o.jsx)(u.default,{icon:"left-arrow",viewBox:"0 0 13 13"})}),(0,o.jsx)("div",{className:w,role:"next-history",onClick:function(){r>=n.length-1||y(r+1)},children:(0,o.jsx)(u.default,{icon:"right-arrow",viewBox:"0 0 13 13"})}),(0,o.jsxs)("div",{className:"et-ai-content-results-prompt__history__count",children:[r+1," ",(0,o.jsx)("span",{children:"/"})," ",n.length," ",(0,c.default)("userPrompt","Results")]})]})}},7485:function(e,t,r){"use strict";function n(e){return n="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},n(e)}var o=["onChange"],i=["onChange"],a=["onChange"],l=["onChange"],s=["onChange"],u=["onChange","value"];function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function h(){h=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new C(n||[]);return o(a,"_invoke",{value:k(e,r,l)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function p(){}function m(){}function v(){}var g={};u(g,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==t&&r.call(b,a)&&(g=b);var w=v.prototype=p.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function i(o,a,l,s){var u=f(e[o],e,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,l,s)}),(function(e){i("throw",e,l,s)})):t.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return i("throw",e,l,s)}))}s(u.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=f(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.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,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function O(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:m,configurable:!0}),m.displayName=u(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},_(x.prototype),u(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),u(w,s,"Generator"),u(w,a,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,C.prototype={constructor:C,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(E),!e)for(var t in this)"t"===t.charAt(0)&&r.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 n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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,d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function m(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,t)}(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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var y=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var b=r(5893),w=r(7363),_=r(930),x=r(6486),k=y(r(2419)),S=y(r(787)),O=y(r(6789)),E=y(r(9114)),C=r(5528),T=r(4587),L=r(8136),M=r(7466),A=r(13),j=r(9861),P=y(r(905));t.default=function(){var e=(0,_.useFormContext)(),t=e.register,r=e.control,n=e.setValue,c=v((0,w.useState)(!1),2),d=c[0],g=c[1],y=v((0,w.useState)(!1),2),I=y[0],R=y[1],N=(0,M.useAppDispatch)(),D=(0,M.useAppSelector)(T.selectAdditionalInfo),z=(0,M.useAppSelector)(T.selectContext),F=v((0,A.useGeneratePromptMutation)(),1)[0],H=window.et_ai_data.available_languages,B=function(){var e,t=(e=h().mark((function e(){var t,r,o,i,a,l,s,u,c,f,d,p,m;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(t=D||{}).module,o=t.fields,i=t.field_name,a=window.et_ai_data,l=a.site_name,s=a.site_description,u=a.site_language,c={},n("prompt",""),R(!0),o.map((function(e){var t=e.name,r=e.defaultValue;c[t]=(0,x.isUndefined)(r)?"":r})),f={site_name:l,site_description:s,module_name:r,content_type:i,module_fields:c,page_content:z.page,language:u},e.prev=7,e.next=10,F(f);case 10:d=e.sent,p=(0,x.get)(d,"data.prompt",""),(m=(0,x.get)(d,"error",!1))&&N((0,L.showError)(m)),p&&n("prompt",(0,j.stripDoubleQuotes)(p)),R(!1),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(7),console.log(e.t0);case 21:case"end":return e.stop()}}),e,null,[[7,18]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){m(i,n,o,a,l,"next",e)}function l(e){m(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"et-fb-form__toggle",children:[(0,b.jsxs)("div",{className:"et-fb-form__group",children:[(0,b.jsx)(C.FieldLabel,{label:"".concat((0,S.default)("userPrompt","Content Type")),hint:(0,S.default)("userPrompt","$contentTypeHint")}),(0,b.jsx)(_.Controller,{name:"content_type",control:r,render:function(e){var t=e.field,r=t.onChange,n=p(t,o);return(0,b.jsx)(k.default,f(f({},n),{},{_onChange:function(e,t){return r(t)},options:(0,S.default)("userPrompt","fieldTypes")}))}})]})," ",(0,b.jsx)("div",{className:"et-fb-form__group",children:(0,b.jsx)(C.FieldLabel,{label:(0,S.default)("userPrompt","What are you writing about?"),hint:(0,S.default)("userPrompt","$contentPromptHint")})})," ",(0,b.jsxs)("div",{className:"et-ai-input-with-icon",children:[(0,b.jsx)(E.default,{id:"et-ai-prompt-desc-generate"}),I?(0,b.jsxs)("p",{className:"et-ai-prompt-loading",children:[(0,S.default)("userPrompt","Generating"),"..."]}):(0,b.jsx)(O.default,{icon:"divi-ai",viewBox:"0 0 28 28","data-testid":"et-ai-prompt-desc-generate","data-for":"et-ai-prompt-desc-generate","data-tip":(0,S.default)("userPrompt","Generate Prompt With AI"),onClick:B}),(0,b.jsx)("textarea",f({className:"et-ai-control-textarea et-fb-disabled-global-shortcuts",placeholder:(0,S.default)("userPrompt","$contentPlaceholder"),rows:5},t("prompt")))," "]}),(0,b.jsxs)("div",{className:"et-fb-form__group",children:[(0,b.jsx)(C.FieldLabel,{label:(0,S.default)("userPrompt","Added Context"),hint:(0,S.default)("userPrompt","$contextHint")}),(0,b.jsx)(_.Controller,{name:"context",control:r,render:function(e){var t=e.field,r=t.onChange,n=p(t,i);return(0,b.jsx)(k.default,f(f({},n),{},{_onChange:function(e,t){return r(t)},options:(0,S.default)("userPrompt","contextTypes")}))}})]})," ",(0,b.jsxs)("p",{className:"et-ai-advanced-toggler",onClick:function(){return g(!d)},children:[(0,S.default)("userPrompt","Guide Me"),(0,b.jsx)("span",{className:"triangle-".concat(d?"up":"down")})]})]}),d&&(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)("div",{className:"et-fb-form__toggle",children:[(0,b.jsxs)("div",{className:"et-fb-form__group",children:[(0,b.jsx)(C.FieldLabel,{label:(0,S.default)("userPrompt","Tone of Voice"),hint:(0,S.default)("userPrompt","$toneHint")}),(0,b.jsx)(_.Controller,{name:"tone",control:r,render:function(e){var t=e.field,r=t.onChange,n=p(t,a);return(0,b.jsx)(k.default,f(f({},n),{},{_onChange:function(e,t){return r(t)},options:(0,S.default)("userPrompt","toneOfVoice")}))}})]})," ",(0,b.jsxs)("div",{className:"et-fb-form__group",children:[(0,b.jsx)(C.FieldLabel,{label:(0,S.default)("userPrompt","Must Use Keywords"),hint:(0,S.default)("userPrompt","$mustUseHint")}),(0,b.jsx)("input",f({type:"text",className:"et-common-input-text"},t("must_use_words")))]})," ",(0,b.jsxs)("div",{className:"et-fb-form__group",children:[(0,b.jsx)(C.FieldLabel,{label:(0,S.default)("userPrompt","length.ContentLength"),hint:(0,S.default)("userPrompt","$numberWordsHint")}),(0,b.jsxs)("div",{className:"ai-content-length-inputs",children:[(0,b.jsx)("div",{className:"ai-content-length-inputs--select",children:(0,b.jsx)(_.Controller,{name:"length.condition",control:r,render:function(e){var t=e.field,r=t.onChange,n=p(t,l);return(0,b.jsx)(k.default,f(f({},n),{},{_onChange:function(e,t){return r(t)},options:{Exactly:(0,S.default)("userPrompt","length.Exactly"),Maximum:(0,S.default)("userPrompt","length.Maximum"),"At least":(0,S.default)("userPrompt","length.AtLeast"),About:(0,S.default)("userPrompt","length.About")}}))}})}),(0,b.jsx)("input",f(f({type:"number"},t("length.count")),{},{className:"et-common-input-text et-fb-disabled-global-shortcuts",placeholder:"#"})),(0,b.jsx)("div",{className:"ai-content-length-inputs--select",children:(0,b.jsx)(_.Controller,{name:"length.units",control:r,render:function(e){var t=e.field,r=t.onChange,n=p(t,s);return(0,b.jsx)(k.default,f(f({},n),{},{_onChange:function(e,t){return r(t)},options:{Words:(0,S.default)("userPrompt","length.Words"),Characters:(0,S.default)("userPrompt","length.Characters"),Sentences:(0,S.default)("userPrompt","length.Sentences"),Paragraphs:(0,S.default)("userPrompt","length.Paragraphs"),"List items":(0,S.default)("userPrompt","length.ListItems")}}))}})})]})]})," ",(0,b.jsxs)("div",{className:"et-fb-form__group",children:[(0,b.jsx)(C.FieldLabel,{label:(0,S.default)("userPrompt","language.Language"),hint:(0,S.default)("userPrompt","language.$languageHint")}),(0,b.jsx)(_.Controller,{name:"language",control:r,defaultValue:"",render:function(e){var t,r=e.field,o=(r.onChange,r.value);p(r,u);return(0,b.jsx)(P.default,{button:(t=o||(0,S.default)("userPrompt","language.LanugageOfPrompt"),(0,b.jsx)("div",{className:"et-fb-settings-custom-select-wrapper-outer et-fb-settings-context-select-wrapper-outer",children:(0,b.jsx)("div",{id:"et-fb-context",className:"et-fb-settings-custom-select-wrapper et-fb-settings-option-select-closed",children:(0,b.jsx)("ul",{className:"et-fb-settings-option-select et-fb-settings-option-select-advanced et-fb-main-setting",style:{maxHeight:"none"},children:(0,b.jsxs)("li",{className:"select-option-item et-fb-selected-item select-option-item-creative","data-value":"creative",children:[(0,b.jsx)("span",{className:"select-option-item__name",children:t}),(0,b.jsx)("span",{className:"et-fb-select-marker",children:(0,b.jsx)("div",{className:"et-common-icon et-common-icon--menu-expand",style:{fill:"rgb(190, 201, 213)",width:"28px",minWidth:"28px",height:"28px",margin:"-6px"},children:(0,b.jsx)("svg",{viewBox:"0 0 28 28",preserveAspectRatio:"xMidYMid meet",shapeRendering:"geometricPrecision",children:(0,b.jsx)("g",{fillRule:"evenodd",children:(0,b.jsx)("path",{d:"M14 20l-3-5h6zM14 8l3 5h-6z",fillRule:"evenodd"})})})})})]})})})})),value:o,options:f({"":(0,S.default)("userPrompt","language.LanugageOfPrompt"),website_language:(0,S.default)("userPrompt","language.LanguageOfWebsite")},H),onSelect:function(e){var t=e.value;n("language",t)},showSearchField:!0,useOriginalButton:!0,scrollableParentMenu:!0})}})]})," "]})})]})}},8505:function(e,t,r){"use strict";function n(e){return n="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},n(e)}function o(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(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.")}()}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(){s=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new C(n||[]);return o(a,"_invoke",{value:k(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var g={};c(g,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==t&&r.call(b,a)&&(g=b);var w=v.prototype=h.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function i(o,a,l,s){var u=d(e[o],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,l,s)}),(function(e){i("throw",e,l,s)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return i("throw",e,l,s)}))}s(u.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=d(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=d(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.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 O(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},_(x.prototype),c(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),c(w,u,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,C.prototype={constructor:C,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(E),!e)for(var t in this)"t"===t.charAt(0)&&r.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 n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function u(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){u(i,n,o,a,l,"next",e)}function l(e){u(i,n,o,a,l,"throw",e)}a(void 0)}))}}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||d(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 d(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e){var t,r,n,o=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);o--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new m(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function m(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return m=function(e){this.s=e,this.n=e.next},m.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new m(e)}function v(e){var t,r;function n(t,r){try{var i=e[t](r),a=i.value,l=a instanceof g;Promise.resolve(l?a.v:a).then((function(r){if(l){var s="return"===t?"return":"next";if(!a.k||r.done)return n(s,r);r=e[s](r).value}o(i.done?"return":"normal",r)}),(function(e){n("throw",e)}))}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,o){return new Promise((function(i,a){var l={key:e,arg:o,resolve:i,reject:a,next:null};r?r=r.next=l:(t=r=l,n(e,o))}))},"function"!=typeof e.return&&(this.return=void 0)}function g(e,t){this.v=e,this.k=t}v.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},v.prototype.next=function(e){return this._invoke("next",e)},v.prototype.throw=function(e){return this._invoke("throw",e)},v.prototype.return=function(e){return this._invoke("return",e)};var y=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var b=r(5893),w=r(7363),_=r(930),x=y(r(4184)),k=r(6486),S=y(r(9114)),O=y(r(4134)),E=y(r(4842)),C=y(r(6516)),T=y(r(911)),L=y(r(2428)),M=y(r(4197)),A=r(8136),j=r(4587),P=r(9548),I=y(r(8900)),R=y(r(7485)),N=y(r(6183)),D=y(r(787)),z=r(8035),F=r(13),H=r(4255),B=r(7466),W=y(r(8018)),U=r(4587),V=r(9695),q=y(r(4410)),$=y(r(234)),G=y(r(2895)),K=y(r(5463)),Y=r(9861);r(7259);t.default=function(){var e=(0,B.useAppDispatch)(),t=(0,B.useAppSelector)(U.selectAdditionalInfo),r=(0,B.useAppSelector)(U.selectLoadingState),n=(0,B.useAppSelector)(U.selectPrefilledContentType),i=(0,B.useAppSelector)(U.selectControlLabel),u=(0,B.useAppSelector)(U.selectAiMode),d=(0,B.useAppSelector)(U.selectModuleFields),p=(0,B.useAppSelector)(j.selectPromptHistories),m=(0,B.useAppSelector)(U.selectUpgradeModal),y=(0,B.useAppSelector)(U.selectError),Q=(0,B.useAppSelector)(j.selectUpgradeTip),Z=(0,B.useAppSelector)(j.selectImageReference),X=(0,B.useAppSelector)(U.selectIsBackButtonVisible),J=(0,B.useAppSelector)(j.selectProcessedKey),ee=(0,B.useAppSelector)(j.selectContextHTMLReceived),te=f((0,W.default)(),1)[0],re=(0,B.useAppSelector)(U.selectEditorInsertMode),ne=(0,B.useAppSelector)(j.selectEditorValue),oe=f((0,w.useState)(!1),2),ie=oe[0],ae=oe[1],le=f((0,w.useState)(!1),2),se=le[0],ue=le[1],ce=f((0,w.useState)(!1),2),fe=ce[0],de=ce[1],pe=window.et_ai_data,he=pe.site_name,me=pe.site_description,ve=pe.site_language,ge=(0,_.useForm)({defaultValues:{content_type:n,context:"page",et_api_key:"",et_username:"",field_name:i,prompt:"",page_content:"",tone:"creative",must_use_words:"",length:{condition:"Exactly",count:null,units:"words"},rewrite:"",tag:"",temperature:null,text:"",top_p:null,aspectRatio:"square",imageStyle:"photo",site_name:he,site_description:me,referenceImageBase64:Z.base64,imageWidth:"",imageHeight:""}}),ye=f((0,F.useGenerateFieldMutation)(),1)[0],be=f((0,F.useGenerateModuleMutation)(),1)[0],we=f((0,H.useUpdateETAccountLocalMutation)(),1)[0],_e=f((0,F.useGenerateImageMutation)(),1)[0],xe=f((0,F.useGenerateCodeMutation)(),1)[0],ke=f((0,F.useLazyUserQuery)(),1)[0],Se=(0,F.useUserQuery)(),Oe=Se.data,Ee=Se.error,Ce=(0,B.useAppSelector)(U.selectOpenPromptType),Te=(0,B.useAppSelector)(U.selectSelectedOption),Le=(0,B.useAppSelector)(V.selectShowAuthorizationModal),Me=(0,B.useAppSelector)(U.selectContext),Ae=ge.handleSubmit,je=t||{},Pe=je.intent,Ie=je.module,Re=je.fields,Ne=je.excludeStep,De=function(){return(0,k.get)(y,"data.ai_error_message","")},ze=function(){return De().endsWith("Please upgrade your subscription.")},Fe=!(0,k.isUndefined)(Oe)&&"active"===Oe.subscription,He=ze()||!(0,k.isUndefined)(Oe)&&!Fe&&!Oe.remainingRequests,Be=function(t,r){setTimeout((function(){return e((0,A.showError)({data:{error:t,ai_error_message:r}}))}),50)},We=function(){z.MODULE_FIELDS_AUTOFILL===Pe&&((0,k.isArray)((0,k.first)(Re))?Ze():Xe()),[z.TextOption.WRITE_AUTOMATICALLY,z.TextOption.WRITE_AND_REPLACE].includes(Te)&&ge.handleSubmit($e)()},Ue=function(t){var r=t.detail.module_html;r&&(e((0,A.setContextHTMLReceived)(!0)),e((0,A.setContextModule)(r)),e((0,A.updateLoading)(!1)))};(0,w.useEffect)((function(){se&&fe||!se||!r&&"code"===u&&""!==Me.module&&ee&&(ge.handleSubmit($e)(),de(!0))}),[r,se,ee,Me.module]),(0,w.useEffect)((function(){var e=401===(0,k.get)(Ee,"status")&&(0,k.get)(Ee,"data.ai_error_message"),t=404===(0,k.get)(Ee,"originalStatus");e&&!Le?Be("401_user",(0,k.get)(Ee,"data.ai_error_message","")):t&&Be("404_user",(0,D.default)("userPrompt","You have to update Divi in order to use AI"))}),[Ee]),(0,w.useEffect)((function(){return We(),window.addEventListener("et_ai_code_module_html_ready",(function(e){return Ue(e)})),function(){window.removeEventListener("et_ai_code_module_html_ready",Ue)}}),[]);var Ve=function(){te({insertMode:z.AICodeInsertMode.REPLACE})},qe=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(m)return e((0,A.showUpgradeModal)(!1)),void(ze()&&e((0,A.showError)({show:!1,status:"",data:{error:"",ai_error_message:""}})));t&&Ve(),e((0,A.hideModal)())},$e=function(){var t=c(s().mark((function t(n){var o,i,a,l,c,f,p,h,m,v,g,y,b,w,_,x,S,O,E,C,T,L,M,j,I;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("code"!==u||null!=n&&n.prompt&&""!==(null==n?void 0:n.prompt.trim())){t.next=3;break}return ae(!0),t.abrupt("return");case 3:if("code"!==u||ee){t.next=7;break}return e((0,A.updateLoading)(!0)),ue(!0),t.abrupt("return");case 7:if(!r){t.next=9;break}return t.abrupt("return",!1);case 9:if(e((0,A.updateLoading)(!0)),"image"!==u){t.next=13;break}return Ge(n),t.abrupt("return");case 13:if("code"!==u){t.next=17;break}return ue(!1),Ke(n),t.abrupt("return");case 17:return o=n.content_type,i=n.field_name,a=n.prompt,l=n.context,c=n.tone,f=n.must_use_words,p=n.length,h=p.condition,m=p.count,v=p.units,g=n.override_prompt,y=n.model_id,b=n.temperature,w=n.top_p,_=n.presence_penalty,x=n.frequency_penalty,S=n.site_name,O=n.site_description,E=n.language,C=null!=l?l:"page",T=(0,k.isUndefined)(E)||"website_language"===E?ve:E,L={content_type:o,field_name:i,prompt:a,page_content:"empty"===C?"":Me[C],module_name:Ie,tone:c,must_use_words:f?[f]:void 0,length:{condition:h,count:m,units:v},override_prompt:g,model_id:y,temperature:b,top_p:w,presence_penalty:_,frequency_penalty:x,site_name:"empty"===C?"":S,site_description:"empty"===C?"":O,language:T,module_fields:d},e((0,A.updateTextQuery)(L)),t.prev=22,t.next=25,ye(L);case 25:M=t.sent,401===(0,k.get)(M,"error.originalStatus")?e((0,P.setETAccount)({errorMessage:"Invalid API Key or Username"})):(j=(0,k.get)(M,"data.content",""),(I=(0,k.get)(M,"error",!1))&&e((0,A.showError)(I)),j&&e((0,A.updateHistory)((0,Y.stripDoubleQuotes)(j)))),e((0,A.updateLoading)(!1)),t.next=33;break;case 30:t.prev=30,t.t0=t.catch(22),console.log(t.t0);case 33:e((0,A.updateSelectedOption)(z.TextOption.RESULT));case 34:case"end":return t.stop()}}),t,null,[[22,30]])})));return function(e){return t.apply(this,arguments)}}(),Ge=function(){var t=c(s().mark((function t(r){var n,i,u,c,f,d,h,m,v,g,y,b,w,_,x,S,O,E,C,T,L,M,j,I,R,N,F;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.prompt,i=r.imageWidth,u=r.imageHeight,c=r.imageType,f=r.imageStyle,d=r.imageMood,h=r.referenceImageBase64,m=r.referenceImageInfluence,v=r.aspectRatio,g=i&&""!==i?i:(0,Y.getDefaultDimensions)(v).width,y=u&&""!==u?u:(0,Y.getDefaultDimensions)(v).height,b=1,""!==h){t.next=11;break}w=(0,Y.getSizeWithUpscaleRate)(g,y),_=w.width,x=w.height,S=w.scale,g=_,y=x,b=S,t.next=17;break;case 11:return t.next=13,(0,Y.getImageSizeByUrl)(Z.url);case 13:O=t.sent,E={width:O.sizes.full.width,height:O.sizes.full.height},g=(0,Y.getDivisibleByEight)(E.width),y=(0,Y.getDivisibleByEight)(E.height);case 17:return e((0,A.updateImageQuery)({imageMood:d,imageType:c,prompt:n,style:f,width:g,height:y,scale:b,image_base64:h,image_influence:m})),C=parseFloat(m)||0,e((0,A.setImageETA)(0)),t.prev=20,t.next=23,_e({height:parseInt(y),image_influence:C,image_base64:h,width:parseInt(g),prompt:n,style:f,scale:b});case 23:T=t.sent,401===(0,k.get)(T,"error.originalStatus")?e((0,P.setETAccount)({errorMessage:"Invalid API Key or Username"})):(L=(0,k.get)(T,"data.content",[]),(M=(0,k.get)(T,"error",!1))&&e((0,A.showError)(M)),L&&(j=(0,k.get)(p,n,[]),I=(0,k.get)(T,"data.eta",0),R=(0,k.get)(T,"data.status",""),N=Math.ceil((0,k.toNumber)(I)),F=(0,k.isNaN)(N)?0:1e3*N+2e3,"busy"===R?e((0,A.showError)({status:"busy",error:(0,D.default)("userPrompt","$serverBusy")})):(e((0,A.setImageETA)(F)),e((0,A.setPromptHistories)(a(a({},p),{},l({},n,[].concat(o(j),o(L)))))),e((0,A.updateImagesHistory)(L)),e((0,A.updateSelectedOption)(z.ImageOption.RESULT))))),e((0,A.updateLoading)(!1)),t.next=31;break;case 28:t.prev=28,t.t0=t.catch(20),console.log(t.t0);case 31:case"end":return t.stop()}}),t,null,[[20,28]])})));return function(e){return t.apply(this,arguments)}}(),Ke=function(){var t=c(s().mark((function t(r){var o,i,l,u,c;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=r.prompt,t.prev=1,i=a({prompt:o,code_language:n,module_html:(0,Y.getModuleHTMLForCode)(Me.module,n)},"before"===J||"after"===J?{pseudo_element:J}:{}),re!==z.AICodeInsertMode.REPLACE&&(i.existing_code=ne),t.next=6,xe(i);case 6:l=t.sent,u=(0,k.get)(l,"data.content",""),(c=(0,k.get)(l,"error",!1))&&(401===(0,k.get)(c,"originalStatus")?e((0,P.setETAccount)({errorMessage:(0,D.default)("authorization","$authErrorMessage")})):e((0,A.showError)(c))),u&&(e((0,A.setBackButtonVisibility)(!0)),e((0,A.updateHistory)(u)),e((0,A.updateSelectedOption)(z.CodeOption.RESULT))),e((0,A.updateLoading)(!1)),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(1),console.log(t.t0);case 17:case"end":return t.stop()}}),t,null,[[1,14]])})));return function(e){return t.apply(this,arguments)}}();function Ye(e){return Qe.apply(this,arguments)}function Qe(){var e;return e=s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new g(be(t),0);case 2:return e.next=4,e.sent;case 4:case"end":return e.stop()}}),e)})),Qe=function(){return new v(e.apply(this,arguments))},Qe.apply(this,arguments)}var Ze=function(){var t=c(s().mark((function t(){var r,n,o,i,a,l,u,c,d,p,m,v,g,y,b,w,_,x;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=window.et_ai_data,n=r.site_name,o=r.site_description,i=r.site_language,e((0,A.updateLoading)(!0)),a={site_name:n,site_description:o,module_name:"",module_fields:{},page_content:Me.page,tone:"creative",language:i},l=[],u=!1,c=!1,t.prev=6,p=h(Re.entries());case 8:return t.next=10,p.next();case 10:if(!(u=!(m=t.sent).done)){t.next=29;break}if(v=f(m.value,2),g=v[0],y=v[1],(0,k.isArray)(y)){t.next=14;break}return t.abrupt("continue",26);case 14:return a.module_name=Ie[g],a.module_fields=(0,Y.getFormattedFields)(y),b=Ye(a),t.next=19,b.next();case 19:if(w=t.sent.value,_=(0,k.get)(w,"data"),!(x=(0,k.get)(w,"error",!1))){t.next=25;break}return e((0,A.showError)(x)),t.abrupt("break",29);case 25:_&&l.push((0,Y.getCleanAIObject)(_));case 26:u=!1,t.next=8;break;case 29:t.next=35;break;case 31:t.prev=31,t.t0=t.catch(6),c=!0,d=t.t0;case 35:if(t.prev=35,t.prev=36,!u||null==p.return){t.next=40;break}return t.next=40,p.return();case 40:if(t.prev=40,!c){t.next=43;break}throw d;case 43:return t.finish(40);case 44:return t.finish(35);case 45:e((0,A.updateHistory)(l)),e((0,A.updateLoading)(!1));case 47:case"end":return t.stop()}}),t,null,[[6,31,35,45],[36,,40,44]])})));return function(){return t.apply(this,arguments)}}(),Xe=function(){var t=c(s().mark((function t(){var r,n,o,i,a,l,u,c;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=window.et_ai_data,n=r.site_name,o=r.site_description,i=r.site_language,e((0,A.updateLoading)(!0)),a={site_name:n,site_description:o,module_name:Ie,module_fields:d,page_content:Me.page,tone:"creative",language:i},e((0,A.updateModuleQuery)(a)),t.prev=4,t.next=7,be(a);case 7:l=t.sent,u=(0,k.get)(l,"data",""),c=(0,k.get)(l,"error",!1),e((0,A.updateLoading)(!1)),c&&e((0,A.showError)(c)),u&&e((0,A.updateHistory)((0,Y.getCleanAIObject)(u))),t.next=18;break;case 15:t.prev=15,t.t0=t.catch(4),console.log(t.t0);case 18:case"end":return t.stop()}}),t,null,[[4,15]])})));return function(){return t.apply(this,arguments)}}(),Je=function(){var t=c(s().mark((function t(r){var n,o,i,a;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.et_api_key.trim(),o=r.et_username.trim(),e((0,A.updateLoading)(!0)),e((0,P.setETAccount)({et_username:o,et_api_key:n,errorMessage:""})),t.prev=4,t.next=7,ke();case 7:if(i=t.sent,!(a=i.error)){t.next=13;break}return e((0,P.setETAccount)({errorMessage:(0,k.get)(a,"data.ai_error_message")})),e((0,A.updateLoading)(!1)),t.abrupt("return");case 13:return t.next=15,we({et_username:o,et_api_key:n,action:"et_builder_update_et_account_local",nonce:window.et_ai_data.nonces.et_builder_update_et_account});case 15:e((0,A.updateLoading)(!1)),We(),t.next=22;break;case 19:t.prev=19,t.t0=t.catch(4),console.log(t.t0);case 22:case"end":return t.stop()}}),t,null,[[4,19]])})));return function(e){return t.apply(this,arguments)}}(),et=ge.formState.isDirty,tt=Ce===z.PromptType.Generate&&!r&&!m,rt=(0,x.default)({"et-ai-user-prompt":!0,"et-ai-spinner":r,"et-ai-upgrade-modal-wrapper":m,"et-ai-modal-no-footer":!tt});return(0,b.jsx)(_.FormProvider,a(a({},ge),{},{children:(0,b.jsxs)("form",{id:"et-ai-user-prompt-form",className:rt,onSubmit:ge.handleSubmit($e),children:[(0,b.jsxs)(C.default,{draggable:"code"===u,modalKey:"et_ai_user_prompt",children:[(0,b.jsxs)(C.default.Header,{className:(0,x.default)({"et-ai-content-results-prompt__header":Ce===z.PromptType.Refine,"et-ai-upgrade-prompt__header":m}),onClose:qe,onBack:function(){if(X){if("code"===u)return function(){Ve(),e((0,A.setBackButtonVisibility)(!1)),e((0,A.updateSelectedOption)(z.CodeOption.CODE_WITH_AI))}}else if("code"!==u&&z.PromptType.Refine===Ce&&z.TextOption.RESULT===Te)return function(){return e((0,A.updateSelectedOption)(z.TextOption.WRITE_WITH_AI))}}(),children:[Q&&(0,b.jsxs)(S.default,{id:"ai-subscription-message",children:[(0,D.default)("userPrompt","upgradeTipPart1")," ",(0,b.jsx)("br",{}),(0,D.default)("userPrompt","upgradeTipPart2")," ",(0,b.jsx)("br",{}),(0,D.default)("userPrompt","upgradeTipPart3")]}),!m&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"left",children:m?null:Le?(0,D.default)("authorization","Authentication"):"image"===u?(0,D.default)("userPrompt","Generate Image With AI",i):"code"===u?i:z.PromptType.Generate===Ce?(0,D.default)("userPrompt","Write %s With AI",i):z.PromptType.Refine===Ce?(0,D.default)("userPrompt","Content Results"):void 0}),(0,b.jsx)("div",{className:"right",children:Le||Ne||Fe?null:(He&&e((0,A.showUpgradeModal)(!0)),(0,b.jsx)(E.default,{}))})]})]}),(0,b.jsx)(C.default.Content,{children:(0,b.jsx)("div",{className:"ai-content-wrapper",children:function(){if(r)return(0,b.jsx)(L.default,{});if(Le)return(0,b.jsx)(N.default,{});if(m)return(0,b.jsx)(O.default,{error:De()});switch(Ce){case z.PromptType.Generate:return"image"===u?(0,b.jsx)(q.default,{}):"code"===u?(0,b.jsx)(G.default,{isMissingPrompt:ie}):(0,b.jsx)(R.default,{});case z.PromptType.Refine:return"image"===u?(0,b.jsx)($.default,{closePrompt:qe}):"code"===u?(0,b.jsx)(K.default,{closePrompt:qe}):(0,b.jsx)(I.default,{closePrompt:qe})}}()})}),tt&&(0,b.jsx)(C.default.Actions,{children:!Le&&(0,b.jsx)(T.default,{"data-testid":"generate-button",type:"submit",className:"et-common-button et-common-button--primary",onClick:Ae($e),children:function(){var e;switch(u){case"image":e=(0,D.default)("userPrompt","Generate");break;case"code":e=(0,D.default)("userPrompt","Generate Code");break;default:e=(0,D.default)("userPrompt","Generate Text")}return e}()})}),Le&&(0,b.jsx)(C.default.Actions,{children:(0,b.jsx)(T.default,{type:"submit",className:"et-common-button et-common-button--primary",disabled:Le&&!et,onClick:Ae(Je),children:(0,D.default)("authorization","Submit")})})]}),(0,b.jsx)(M.default,{})]})}))}},7466:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useAppSelector=t.useAppDispatch=void 0;var n=r(6113);t.useAppDispatch=n.useDispatch,t.useAppSelector=n.useSelector},8018:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0});var a=r(4587),l=r(7466);t.default=function(){var e=(0,l.useAppSelector)(a.selectAiMode),t=(0,l.useAppSelector)(a.selectEditorValue),r=(0,l.useAppSelector)(a.selectEditorName),n=(0,l.useAppSelector)(a.selectEditorInsertMode),s=(0,l.useAppSelector)(a.selectEditorCursor);return[function(a){if("code"===e){var l,u=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({code:null!==(l=null==a?void 0:a.code)&&void 0!==l?l:t,name:r,previousCode:t,insertMode:n,cursor:s},a);window.dispatchEvent(new CustomEvent("ai_prompt_use_code",{detail:u}))}}]}},8035:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.AICodeInsertMode=t.DefaultImageReferenceSize=t.CodeContentType=t.ContentType=t.MODULE_FIELDS_AUTOFILL=t.Tags=t.CodeOption=t.ImageOption=t.TextOption=t.PromptType=void 0,function(e){e[e.Generate=0]="Generate",e[e.Refine=1]="Refine"}(r||(t.PromptType=r={})),t.TextOption={WRITE_WITH_AI:"write_with_ai",IMPROVE_WITH_AI:"improve_with_ai",WRITE_AUTOMATICALLY:"write_automatically",RESULT:"result",WRITE_AND_REPLACE:"write_and_replace"},t.ImageOption={GENERATE_WITH_AI:"generate_with_ai",GENERATE_AUTOMATICALLY:"generate_automatically",IMPROVE_WITH_AI:"improve_with_ai",GENERATE_AND_REPLACE:"generate_and_replace",REIMAGINE:"reimagine",RESULT:"result"},t.CodeOption={CODE_WITH_AI:"code_with_ai",IMPROVE_CODE_WITH_AI:"improve_code_with_ai",RESULT:"result"},t.Tags={Retry:"retry",Simplify:"simplify",Shorten:"shorten",Lengthen:"lengthen"},t.MODULE_FIELDS_AUTOFILL="module_fields_autofill",t.ContentType={paragraph:"paragraph",title:"title",button:"button"},t.CodeContentType={code_css:"css",code_html:"html",code_css_no_selector:"css-declarations",code_css_free_form:"free-form-css"},t.DefaultImageReferenceSize={width:512,height:512},t.AICodeInsertMode={APPEND:"append",INSERT:"insert",REPLACE:"replace"}},9861:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.handleEnterKeyCallback=t.getModuleHTMLForCode=t.getImageSizeByUrl=t.convertImageToBase64=t.getFieldCleanValue=t.getSizeWithUpscaleRate=t.getCleanAIObject=t.stripDoubleQuotes=t.getDefaultDimensions=t.getDivisibleByEight=t.removeLoremIpsum=t.isLoremIpsum=t.getFormattedFields=t.getValidPrefilledContentType=t.aiSupportedImageFields=void 0;var l=r(6486),s=r(8035),u="lorem|ipsum|dolor|sit|amet|consectetur|adipiscing|elit|nunc|fringilla|nisl|neque|vitae|accumsan|eros|posuere|vel|pulvinar|nulla|sed|sodales|felis|ante|auctor|molestie|vivamus|pharetra|tempor|erat|semper|vestibulum|primis|faucibus|orci|luctus|ultrices|cubilia|curae|tortor|pretium|mollis|enim|non|maximus|tellus|ultricies|ligula|imperdiet|duis|euamet|quam|ullamcorper|consequat|donec|porttitor|libero|ex|vulputate|laoreet|lectus|interdum|mattis|maecenas|leo|scelerisque|aenean|dictum|nullam|arcu|lobortis|aliquam|augue|finibus|venenatis|eget|urna|quis|velit|fusce|tristique|cursus|morbi|sapien|suscipit|nibh|cras|efficitur|fermentum|commodo|proin|ligula|facilisis|mauris|tempus|ligula|risus|phasellus|vitae|eleifend|tellus|gravida|condimentum|vitae|placerat|malesuada|fermentum|commodo|scelerisque|augue|feugiat|ornare|tempor|dictum|ultrices|vestibulum|metus|felis|condimentum|mollis|quam|vel|erat|tellus|aliquam|pulvinar|massa|tristique|condimentum|blandit|rutrum|lacus|auctor|lorem|id|porttitor|imperdiet|volutpat|duis|consequat|tincidunt|euismod|sodales|malesuada|placerat|vitae|tincidunt|maximus|aliquam|tincidunt|fermentum|commodo|proin|scelerisque|luctus|proin|dolor|commodo|vulputate|nulla|mi|varius|iuculis|dignissim|quis|vivamus|placerat|suspendisse|egestas|diam";t.aiSupportedImageFields=["src","logo","image","image_url","portrait_url","logo_image_url","header_image_url"],t.getValidPrefilledContentType=function(e){var t=s.ContentType.paragraph;switch(e){case"text":t=s.ContentType.title;break;case"content":t=s.ContentType.paragraph;break;case"button":t=s.ContentType.button;break;case"code_css":t=s.CodeContentType.code_css;break;case"code_html":t=s.CodeContentType.code_html;break;case"code_css_no_selector":t=s.CodeContentType.code_css_no_selector;break;case"code_css_free_form":t=s.CodeContentType.code_css_free_form}return t};function c(e){return new RegExp("\\b(".concat(u,")\\b"),"gi").test(e)}function f(e){if(!e)return 0;var t=e%8;return 0===t?e:e+(8-t)}t.getFormattedFields=function(e){var t={};return e.map((function(e){var r=e.name,n=e.defaultValue;t[r]=(0,l.isUndefined)(n)?"":n})),t},t.isLoremIpsum=c,t.removeLoremIpsum=function(e){var t=new RegExp("\\b(".concat(u,")\\b"),"gi");return e.replace(t,"")},t.getDivisibleByEight=f;function d(e){return e&&(0,l.isString)(e)?e.replace(/(^"|"$)/g,""):""}t.getDefaultDimensions=function(e){switch(e){case"portrait":return{width:512,height:f(682)};case"landscape":return{width:f(819),height:512};default:return{width:512,height:512}}},t.stripDoubleQuotes=d,t.getCleanAIObject=function(e){var r={};return(0,l.forEach)(e,(function(e,n){r[n]=(0,l.includes)(t.aiSupportedImageFields,n)?e:d(e)})),r};t.getSizeWithUpscaleRate=function(e,t){var r=""!==e?parseInt(e):0,n=""!==t?parseInt(t):0,o=1;if(r<512&&n<512&&(e="512",t="512",r=512,n=512),r<1024&&n<1024)return{width:f(r),height:f(n),scale:o};var i=Math.max(r,n);o=Math.floor(i/512);var a=Math.ceil(r/o),l=Math.ceil(n/o);return{width:f(a),height:f(l),scale:o}};t.getFieldCleanValue=function(e){var t=e.defaultValue,r=void 0===t?"":t;return r=c(r)?"":r,i(i({},e),{},{defaultValue:r})};t.convertImageToBase64=function(e,t){var r=new Image,n=document.createElement("canvas"),o=n.getContext("2d");r.onload=function(){n.width=r.width,n.height=r.height,null==o||o.drawImage(r,0,0);var i=["image/jpeg","image/png"].includes(e.type)?e.type:"image/jpeg",a=n.toDataURL(i);t(a)},r.crossOrigin="anonymous",r.src="".concat(e.url,"?").concat(Date.now())};t.getImageSizeByUrl=function(e){return new Promise((function(t,r){var n=new Image;n.onload=function(){var e={sizes:{full:{width:n.width,height:n.height}}};t(e)},n.onerror=function(e){r(e)},n.src=e}))};t.getModuleHTMLForCode=function(e,t){return("free-form-css"===t?e.replace(/class="[^"]*"/,'class="selector"'):e)||""};t.handleEnterKeyCallback=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.stopPropagation(),"Enter"===e.key)return e.preventDefault(),r||t(),!1}},9695:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectShowAuthorizationModal=t.etAccountStatus=t.etAccount=void 0;var n=r(4268);t.etAccount=function(e){return e.diviAIOptions.etAccount};t.etAccountStatus=function(e){return e.diviAIOptions.etAccount.status},t.selectShowAuthorizationModal=(0,n.createSelector)(t.etAccount,(function(e){return(null==e?void 0:e.errorMessage)&&""!==(null==e?void 0:e.errorMessage)||!e.username||!e.apiKey}))},9548:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setETAccount=t.diviAIOptionsSlice=void 0;var n=r(4268);t.diviAIOptionsSlice=(0,n.createSlice)({name:"diviAIOptions",initialState:{etAccount:{username:"",apiKey:"",status:"not_active",errorMessage:""}},reducers:{setETAccount:function(e,t){var r,n;e.etAccount.username=null!==(r=t.payload.et_username)&&void 0!==r?r:e.etAccount.username,e.etAccount.apiKey=null!==(n=t.payload.et_api_key)&&void 0!==n?n:e.etAccount.apiKey,e.etAccount.status=t.payload.status,e.etAccount.errorMessage=t.payload.errorMessage}}}),t.setETAccount=t.diviAIOptionsSlice.actions.setETAccount,t.default=t.diviAIOptionsSlice.reducer},4587:(e,t,r)=>{"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){s=!0,a=e},f:function(){try{l||null==r.return||r.return()}finally{if(s)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.selectLastCodeRequestType=t.selectContextHTMLReceived=t.selectIsBackButtonVisible=t.selectAIMenuContext=t.selectProcessedKey=t.selectEditorCursor=t.selectEditorInsertMode=t.selectEditorName=t.selectEditorValue=t.selectImageReference=t.selectUpgradeTip=t.selectUpgradeModal=t.selectError=t.selectModuleFields=t.selectImageQuery=t.selectImageETA=t.selectAiMode=t.selectPrefilledContentType=t.selectAdditionalInfo=t.selectLoadingState=t.selectCodeQuery=t.selectTextQuery=t.selectModuleQuery=t.selectControlLabel=t.selectOpenPromptType=t.selectContext=t.selectSkipAutoAction=t.selectSelectedOption=t.selectDownloadedImages=t.selectPromptHistories=t.selectImagePrompt=t.selectImagesHistory=t.selectHistory=t.selectCurrent=void 0;var i=r(4268),a=r(8035);t.selectCurrent=function(e){return e.promptModal.current};t.selectHistory=function(e){return e.promptModal.history};t.selectImagesHistory=function(e){return e.promptModal.imagesHistory};t.selectImagePrompt=function(e){return e.promptModal.imagePrompt};t.selectPromptHistories=function(e){return e.promptModal.promptHistories};t.selectDownloadedImages=function(e){return e.promptModal.downloadedImages};t.selectSelectedOption=function(e){return e.promptModal.selectedOption};t.selectSkipAutoAction=function(e){return e.promptModal.skipAutoAction};t.selectContext=function(e){return e.promptModal.context},t.selectOpenPromptType=(0,i.createSelector)(t.selectSelectedOption,(function(e){return[a.TextOption.WRITE_AUTOMATICALLY,a.TextOption.WRITE_WITH_AI,a.TextOption.WRITE_AND_REPLACE,a.CodeOption.CODE_WITH_AI,a.ImageOption.GENERATE_WITH_AI,a.ImageOption.IMPROVE_WITH_AI].includes(e)?a.PromptType.Generate:a.PromptType.Refine}));t.selectControlLabel=function(e){return e.promptModal.controlLabel};t.selectModuleQuery=function(e){return e.promptModal.moduleQuery};t.selectTextQuery=function(e){return e.promptModal.textQuery};t.selectCodeQuery=function(e){return e.promptModal.codeQuery};t.selectLoadingState=function(e){return e.promptModal.isLoading};t.selectAdditionalInfo=function(e){return e.promptModal.additionalInfo};t.selectPrefilledContentType=function(e){return e.promptModal.prefilledContentType};t.selectAiMode=function(e){return e.promptModal.aiMode};t.selectImageETA=function(e){return e.promptModal.imageETA};t.selectImageQuery=function(e){return e.promptModal.imageQuery},t.selectModuleFields=(0,i.createSelector)(t.selectAdditionalInfo,(function(e){var t,r={},o=n(e.fields);try{for(o.s();!(t=o.n()).done;){var i=t.value,a=i.defaultValue,l=i.name,s=i.selectedText;(a=a||"")&&s&&(a=s),r[l]=a}}catch(e){o.e(e)}finally{o.f()}return r}));t.selectError=function(e){return e.promptModal.errorObject};t.selectUpgradeModal=function(e){return e.promptModal.upgradeModal};t.selectUpgradeTip=function(e){return e.promptModal.upgradeTip};t.selectImageReference=function(e){return e.promptModal.imageReference};t.selectEditorValue=function(e){var t,r;return null===(t=e.promptModal)||void 0===t||null===(r=t.code)||void 0===r?void 0:r.editorValue};t.selectEditorName=function(e){var t,r;return null===(t=e.promptModal)||void 0===t||null===(r=t.code)||void 0===r?void 0:r.editorName};t.selectEditorInsertMode=function(e){var t,r;return null===(t=e.promptModal)||void 0===t||null===(r=t.code)||void 0===r?void 0:r.insertMode};t.selectEditorCursor=function(e){var t,r;return null===(t=e.promptModal)||void 0===t||null===(r=t.code)||void 0===r?void 0:r.cursor};t.selectProcessedKey=function(e){var t,r;return null===(t=e.promptModal)||void 0===t||null===(r=t.code)||void 0===r?void 0:r.processedKey},t.selectAIMenuContext=(0,i.createSelector)(t.selectAiMode,t.selectPrefilledContentType,(function(e,t){return"code"===e?t:e}));t.selectIsBackButtonVisible=function(e){return e.promptModal.isBackButtonVisible};t.selectContextHTMLReceived=function(e){return e.promptModal.contextHTMLReceived};t.selectLastCodeRequestType=function(e){return e.promptModal.lastCodeRequestType}},8136:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(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.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u;Object.defineProperty(t,"__esModule",{value:!0}),t.promptModalListenerMiddleware=t.setLastCodeRequestType=t.setContextModule=t.setContextHTMLReceived=t.setBackButtonVisibility=t.setCodeEditorInsertMode=t.setImageETA=t.updateTextQuery=t.updateSelectedOption=t.updateModuleQuery=t.updateLoading=t.updateImagesHistory=t.updateImageQuery=t.updateHistoryAtIndex=t.updateHistory=t.updateDownloadedImages=t.updateCurrent=t.showUpgradeTip=t.showUpgradeModal=t.showModal=t.showError=t.setSelectedPrompt=t.setPromptHistories=t.setImageReference=t.initUserPromptModal=t.hideModal=t.promptModalSlice=void 0;var c=r(4268),f=r(8035),d=r(9861),p=r(6486),h={aiMode:"text",display:!0,isLoading:!1,errorObject:{show:!1,status:"",data:{error:"",ai_error_message:""}},current:0,history:[],imagesHistory:[],downloadedImages:[],imagePrompt:"",promptHistories:{},openPromptType:f.PromptType.Generate,prefilledContentType:f.ContentType.paragraph,controlLabel:"",selectedOption:f.TextOption.WRITE_WITH_AI,upgradeModal:!1,upgradeTip:!1,additionalInfo:{intent:"",module:"",fields:[],excludeStep:!1},moduleQuery:{site_name:"",site_description:"",module_name:"",module_fields:{},page_content:"",tone:""},context:{page:"",section:"",module:""},contextHTMLReceived:!0,textQuery:{module_name:""},codeQuery:{content:""},imageQuery:{prompt:"",width:f.DefaultImageReferenceSize.width,height:f.DefaultImageReferenceSize.height,scale:1},imageReference:{url:"",base64:"",influence:30},imageETA:0,skipAutoAction:!1,code:{editorName:"",editorValue:"",insertMode:null,cursor:{line:0,ch:0},processedKey:""},isBackButtonVisible:!1,lastCodeRequestType:""};t.promptModalSlice=(0,c.createSlice)({name:"promptModal",initialState:h,reducers:{showModal:function(e){e.display=!0},hideModal:function(e){e.display=!1,e.upgradeModal=!1,e.upgradeTip=!1,e.history.length=0,e.current=0,e.controlLabel="",e.selectedOption=f.TextOption.WRITE_WITH_AI,e.skipAutoAction=!1,e.imagesHistory=[],e.imageQuery={prompt:"",width:f.DefaultImageReferenceSize.width,height:f.DefaultImageReferenceSize.height},e.imageReference={url:"",base64:"",influence:30},e.promptHistories={},e.moduleQuery={site_name:"",site_description:"",module_name:"",module_fields:{},page_content:"",tone:""},e.textQuery={content:"",module_name:""},e.codeQuery={content:""},e.contextHTMLReceived=!0},updateCurrent:function(e,t){e.current=t.payload},setImageETA:function(e,t){e.imageETA=t.payload},updateLoading:function(e,t){e.isLoading=t.payload},updateHistory:function(e,t){e.current=e.history.length,e.history.push(t.payload)},updateHistoryAtIndex:function(e,t){e.history[t.payload.index]=t.payload.value},updateImagesHistory:function(e,t){e.imagesHistory=[].concat(l(e.imagesHistory),l(t.payload))},updateDownloadedImages:function(e,t){e.downloadedImages=[].concat(l(e.downloadedImages),l(t.payload))},updateSelectedOption:function(e,t){e.selectedOption=t.payload},updateModuleQuery:function(e,t){e.moduleQuery=t.payload},updateTextQuery:function(e,t){e.textQuery=t.payload},updateImageQuery:function(e,t){e.imageQuery=t.payload},setSelectedPrompt:function(e,t){e.imagePrompt=t.payload},setPromptHistories:function(e,t){e.promptHistories=t.payload},setBackButtonVisibility:function(e,t){e.isBackButtonVisible=t.payload},initUserPromptModal:function(e,t){var r=t.payload;for(var n in e.selectedOption=r.selectedOption,e.controlLabel=r.controlLabel,e.prefilledContentType=r.prefilledContentType,e.aiMode=r.aiMode||"text",e.isBackButtonVisible=!1,r.errorObject&&(e.errorObject=r.errorObject),r.context){var o=r.context[n].replaceAll(/\n|\t/g,"");r.context[n]=(0,d.removeLoremIpsum)(o)}e.context=r.context;var a=r.content;r.content&&(a="text"===r.aiMode&&(0,d.isLoremIpsum)(a)?"":a,[f.TextOption.IMPROVE_WITH_AI,f.CodeOption.IMPROVE_CODE_WITH_AI].includes(r.selectedOption)&&(e.history[0]=a));var l=r.additionalInfo.fields.map((function(e){return(0,p.isArray)(e)?e.map((function(e){return(0,d.getFieldCleanValue)(e)})):(0,d.getFieldCleanValue)(e)}));e.textQuery={content:a,module_name:r.additionalInfo.module,field_name:r.controlLabel,content_type:r.prefilledContentType,page_content:r.context.page,site_name:window.et_ai_data.site_name,site_description:window.et_ai_data.site_description},e.codeQuery={content:a},e.additionalInfo=i(i({},r.additionalInfo),{},{fields:l}),r.code&&(e.code=r.code),e.contextHTMLReceived=r.contextHTMLReceived},showError:function(e,t){var r=!1!==t.payload.show;e.errorObject=i(i({},t.payload),{},{show:r})},showUpgradeModal:function(e,t){!t.payload&&(e.skipAutoAction=!0),e.upgradeModal=t.payload},showUpgradeTip:function(e,t){e.upgradeTip=t.payload},setImageReference:function(e,t){e.imageReference=t.payload},setCodeEditorInsertMode:function(e,t){e.code&&(e.code.insertMode=t.payload)},setContextHTMLReceived:function(e,t){e.contextHTMLReceived=t.payload},setContextModule:function(e,t){e.context.module=t.payload},setLastCodeRequestType:function(e,t){e.lastCodeRequestType=t.payload}}}),u=t.promptModalSlice.actions,t.hideModal=u.hideModal,t.initUserPromptModal=u.initUserPromptModal,t.setImageReference=u.setImageReference,t.setPromptHistories=u.setPromptHistories,t.setSelectedPrompt=u.setSelectedPrompt,t.showError=u.showError,t.showModal=u.showModal,t.showUpgradeModal=u.showUpgradeModal,t.showUpgradeTip=u.showUpgradeTip,t.updateCurrent=u.updateCurrent,t.updateDownloadedImages=u.updateDownloadedImages,t.updateHistory=u.updateHistory,t.updateHistoryAtIndex=u.updateHistoryAtIndex,t.updateImageQuery=u.updateImageQuery,t.updateImagesHistory=u.updateImagesHistory,t.updateLoading=u.updateLoading,t.updateModuleQuery=u.updateModuleQuery,t.updateSelectedOption=u.updateSelectedOption,t.updateTextQuery=u.updateTextQuery,t.setImageETA=u.setImageETA,t.setCodeEditorInsertMode=u.setCodeEditorInsertMode,t.setBackButtonVisibility=u.setBackButtonVisibility,t.setContextHTMLReceived=u.setContextHTMLReceived,t.setContextModule=u.setContextModule,t.setLastCodeRequestType=u.setLastCodeRequestType,t.promptModalListenerMiddleware=(0,c.createListenerMiddleware)(),t.promptModalListenerMiddleware.startListening({matcher:(0,c.isAnyOf)(t.showModal,t.initUserPromptModal),effect:function(){window.dispatchEvent(new CustomEvent("ai_prompt_show_modal"))}}),t.promptModalListenerMiddleware.startListening({matcher:(0,c.isAnyOf)(t.hideModal),effect:function(){window.dispatchEvent(new CustomEvent("ai_prompt_hide_modal"))}}),t.default=t.promptModalSlice.reducer},9590:function(e,t,r){"use strict";var n;function o(e){return o="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},o(e)}function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.store=t.setupStore=void 0;var c=r(4268),f=u(r(13)),d=u(r(4968)),p=u(r(9548)),h=s(r(8136)),m=(0,c.combineReducers)((i(n={},f.default.reducerPath,f.default.reducer),i(n,d.default.reducerPath,d.default.reducer),i(n,"promptModal",h.default),i(n,"diviAIOptions",p.default),n));t.setupStore=function(e){return(0,c.configureStore)({reducer:m,middleware:function(e){return e().concat(f.default.middleware,d.default.middleware,h.promptModalListenerMiddleware.middleware)},preloadedState:e})},t.store=(0,t.setupStore)()},3572:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(5893),i=r(1533),a=r(6113),l=n(r(5311)),s=r(9590),u=r(8136),c=n(r(483)),f=r(9548),d=r(9861),p=r(8035);(0,l.default)(window).on("et_ai_container_ready",(function(e,t,r){var n,h,m,v,g=window.parent?window.parent.document.querySelector("body"):document.querySelector("body"),y="#".concat(r);if(null!==(n=""!==(null==t?void 0:t.type))&&void 0!==n&&n){if(t.imageReference&&t.imageReference.url){var b=t.imageReference;s.store.dispatch((0,u.setImageReference)(b))}if(t.imageReferenceSizes){var w={prompt:"",width:(null==t?void 0:t.imageReferenceSizes.sizes.full.width)||p.DefaultImageReferenceSize.width,height:(null==t?void 0:t.imageReferenceSizes.sizes.full.height)||p.DefaultImageReferenceSize.height,scale:1};s.store.dispatch((0,u.updateImageQuery)(w))}}if(g){var _=(0,d.getValidPrefilledContentType)(null!==(h=null==t?void 0:t.prefilledContentType)&&void 0!==h?h:"");s.store.dispatch((0,u.initUserPromptModal)({controlLabel:null==t?void 0:t.label,selectedOption:null==t?void 0:t.type,content:null!==(m=null==t?void 0:t.content)&&void 0!==m?m:null,context:null==t?void 0:t.contextData,additionalInfo:null==t?void 0:t.additionalInfo,aiMode:null==t?void 0:t.aiMode,errorObject:null==t?void 0:t.errorObject,prefilledContentType:_,code:null==t?void 0:t.code,contextHTMLReceived:null===(v=null==t?void 0:t.contextHTMLReceived)||void 0===v||v})),g.querySelector(y)?s.store.dispatch((0,u.showModal)()):(t.etAccount&&s.store.dispatch((0,f.setETAccount)(t.etAccount)),(0,l.default)(g).append('<div id="'.concat(r,'"></div>')),(0,l.default)(y).css({width:"auto",height:"auto"}),(0,i.render)((0,o.jsx)(a.Provider,{store:s.store,children:(0,o.jsx)(c.default,{})}),g.querySelector(y)))}}))},6789:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(7363),o=r.n(n),i=(r(1193),r(4480)),a=r.n(i),l=r(8618),s=r.n(l),u=r(2211),c=r.n(u);function f(e){return f="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},f(e)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===f(i)?i:String(i)),n)}var o,i}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(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 r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=function(e){!function(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&&p(e,t)}(l,e);var t,r,n,i=h(l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.apply(this,arguments)}return t=l,(r=[{key:"_renderGraphics",value:function(){var e,t=null!==(e=this.props.svgId)&&void 0!==e?e:"";switch(this.props.icon){case"delete":return o().createElement("g",null,o().createElement("path",{d:"M19 9h-3V8a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v1H9a1 1 0 1 0 0 2h10a1 1 0 0 0 .004-2H19zM9 20c.021.543.457.979 1 1h8c.55-.004.996-.45 1-1v-7H9v7zm2.02-4.985h2v4h-2v-4zm4 0h2v4h-2v-4z",fillRule:"evenodd"}));case"close":return o().createElement("g",null,o().createElement("path",{d:"M15.59 14l4.08-4.082a1.124 1.124 0 0 0-1.587-1.588L14 12.411 9.918 8.329A1.124 1.124 0 0 0 8.33 9.92L12.411 14l-4.082 4.082a1.124 1.124 0 0 0 1.59 1.589L14 15.589l4.082 4.082a1.124 1.124 0 0 0 1.589-1.59L15.589 14h.001z",fillRule:"evenodd"}));case"exit":return o().createElement("g",null,o().createElement("path",{d:"M19.71 16.857l-2.85-2.854 2.85-2.854c.39-.395.39-1.03 0-1.426l-1.43-1.427a1 1 0 0 0-1.42 0L14 11.15l-2.85-2.854a1.013 1.013 0 0 0-1.43 0L8.3 9.723a1 1 0 0 0 0 1.426l2.85 2.854-2.85 2.853a1 1 0 0 0 0 1.427l1.42 1.427a1.011 1.011 0 0 0 1.43 0L14 16.856l2.86 2.854a1 1 0 0 0 1.42 0l1.43-1.427c.39-.395.39-1.03 0-1.426z",fillRule:"evenodd"}));case"check":return o().createElement("g",null,o().createElement("path",{d:"M19.203 9.21a.677.677 0 0 0-.98 0l-5.71 5.9-2.85-2.95a.675.675 0 0 0-.98 0l-1.48 1.523a.737.737 0 0 0 0 1.015l4.82 4.979a.677.677 0 0 0 .98 0l7.68-7.927a.737.737 0 0 0 0-1.015l-1.48-1.525z",fillRule:"evenodd"}));case"three-dots":return o().createElement("g",null,o().createElement("path",{d:"M2.001 4.5a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fillRule:"evenodd"}));case"tag":return o().createElement("g",null,o().createElement("path",{d:"M14.83,5h6.6A1.57,1.57,0,0,1,23,6.57v6.59a1.45,1.45,0,0,1-.35.66l-8.83,8.83a1.2,1.2,0,0,1-1.69,0L5.35,15.87a1.2,1.2,0,0,1,0-1.7l8.82-8.82A2,2,0,0,1,14.83,5Zm4.67,5A1.5,1.5,0,1,0,18,8.5,1.5,1.5,0,0,0,19.5,10Z"}));case"pack":return o().createElement("g",null,o().createElement("rect",{x:"6",y:"12",width:"16",height:"10",rx:"1",ry:"1"}),o().createElement("path",{d:"M21 6a1 1 0 0 1 1 1v3H6V9a1 1 0 0 1 1-1h5.66C13.31 7.13 14 6 15 6z"}));case"list":return o().createElement("g",null,o().createElement("rect",{x:"6",y:"6",width:"4",height:"4",rx:"1",ry:"1"}),o().createElement("rect",{x:"6",y:"12",width:"4",height:"4",rx:"1",ry:"1"}),o().createElement("rect",{x:"6",y:"18",width:"4",height:"4",rx:"1",ry:"1"}),o().createElement("rect",{x:"12",y:"6",width:"10",height:"4",rx:"1",ry:"1"}),o().createElement("rect",{x:"12",y:"12",width:"10",height:"4",rx:"1",ry:"1"}),o().createElement("rect",{x:"12",y:"18",width:"10",height:"4",rx:"1",ry:"1"}));case"grid":return o().createElement("g",null,o().createElement("rect",{x:"6",y:"6",width:"4",height:"4",rx:"1",ry:"1"}),o().createElement("rect",{x:"6",y:"12",width:"4",height:"4",rx:"1",ry:"1"}),o().createElement("rect",{x:"6",y:"18",width:"4",height:"4",rx:"1",ry:"1"}),o().createElement("rect",{x:"18",y:"6",width:"4",height:"4",rx:"1",ry:"1"}),o().createElement("rect",{x:"18",y:"12",width:"4",height:"4",rx:"1",ry:"1"}),o().createElement("rect",{x:"18",y:"18",width:"4",height:"4",rx:"1",ry:"1"}),o().createElement("rect",{x:"12",y:"6",width:"4",height:"4",rx:"1",ry:"1"}),o().createElement("rect",{x:"12",y:"12",width:"4",height:"4",rx:"1",ry:"1"}),o().createElement("rect",{x:"12",y:"18",width:"4",height:"4",rx:"1",ry:"1"}));case"back":return o().createElement("g",null,o().createElement("path",{d:"M14.988 10.963h-3v-2.52a.393.393 0 0 0-.63-.361l-5.2 4.5a.491.491 0 0 0 0 .72l5.2 4.5a.393.393 0 0 0 .63-.36v-2.52h2.99a2.992 2.992 0 0 1 2.99 2.972v1.287a.7.7 0 0 0 .7.694h2.59a.7.7 0 0 0 .7-.694v-1.3a6.948 6.948 0 0 0-6.97-6.918z",fillRule:"evenodd"}));case"placeholder":return o().createElement("g",null,o().createElement("path",{d:"M1 24h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1zM25 0h6a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1zM1 12h30a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1zm12 12h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H13a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1zM1 0h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1z",fill:"#e7eef5"}));case"cloud":return o().createElement("g",null,o().createElement("path",{d:"M5.48,23a5.5,5.5,0,0,1-.26-11A9,9,0,0,1,23,14h.5a4.5,4.5,0,0,1,0,9Z"}));case"menu-expand":return o().createElement("g",{fillRule:"evenodd"},o().createElement("path",{d:"M14 20l-3-5h6zM14 8l3 5h-6z",fillRule:"evenodd"}));case"arrow-down-dense":return o().createElement("g",{fillRule:"evenodd"},o().createElement("path",{d:"M3.44987 3.77347L5.90448 0.672666C6.00166 0.555503 6.0272 0.385363 5.96951 0.239402C5.91182 0.0934417 5.78188 -0.000569066 5.63861 2.59252e-06H0.359701C0.217594 0.000439083 0.0889622 0.0937073 0.0311752 0.238209C-0.0266118 0.382711 -0.00278329 0.551512 0.092034 0.669326L2.54904 3.77347C2.66298 3.91748 2.82706 4 2.99946 4C3.17186 4 3.33593 3.91748 3.44987 3.77347Z"}));case"caret-solid-right":return o().createElement("g",null,o().createElement("path",{d:"M6.65873 4.25043L2.00753 0.160427C1.83179 -0.00150394 1.57658 -0.0440559 1.35764 0.0520706C1.1387 0.148197 0.997682 0.364711 0.998539 0.603427L0.998539 9.39943C0.999194 9.63621 1.1391 9.85055 1.35585 9.94683C1.5726 10.0431 1.8258 10.0034 2.00252 9.84543L6.65873 5.75143C6.87475 5.56158 6.99854 5.28819 6.99854 5.00093C6.99854 4.71366 6.87475 4.44027 6.65873 4.25043Z"}));case"heart":return o().createElement("g",null,o().createElement("path",{d:"M4,10.66A5.67,5.67,0,0,1,9.51,5Q12.92,5,14,7.37C14.72,5.79,16.21,5,18.49,5A5.67,5.67,0,0,1,24,10.65C24,14,22.87,17.31,14,23,5.13,17.31,4,14,4,10.66Z"}));case"globe":return o().createElement("g",null,o().createElement("path",{d:"M14 4C8.477 4 4 8.477 4 14s4.477 10 10 10 10-4.477 10-10S19.523 4 14 4zm.01 18c-4.411 0-8-3.589-8-8 0-.783.118-1.539.329-2.255.258.507.628.965.995 1.38.958 1.083.883 1.267.883 1.267.577 1.658 3.275.854 3.627 2.076s1.328.859.906 2.437c-.438 1.636.683 2.553 1.491 3.083-.077.003-.153.012-.231.012zm6.406-3.228c-.025-.011-.047-.027-.072-.037-1.754-.721-2.514-2.467-3.884-2.467s-2.113.532-2.882.436-.723-.917-1.276-1.373c-.553-.457-.457-.312-1.49-.697-1.033-.385-.24-2.307.481-1.971.721.336 1.304-.324 1.52.229.216.553.695 1.298.647.577-.048-.721.189-1.431.79-1.984s.096-.649.216-1.538 2.211.505 2.211-.312.361-.721.961-1.394c.528-.591.368-.882-.217-1.465a8.04 8.04 0 0 1 3.317 2.914c-1.041.174-1.418.809-1.953 1.92-.951 1.975 1.465 3.142 2.808 3.96.08.049.157.08.234.118a7.963 7.963 0 0 1-1.411 3.084z"}));case"help":return o().createElement("g",null,o().createElement("path",{d:"M14 22a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm0-3.6a.8.8 0 1 0 0-1.6.8.8 0 0 0 0 1.6zm-.8-3.2a.744.744 0 0 0 .8.8.744.744 0 0 0 .8-.8c.08-.343.305-.634.616-.8a2.976 2.976 0 0 0 1.784-2.8A2.944 2.944 0 0 0 14 8.8a3.112 3.112 0 0 0-3.2 2.4c-.096.48.264.8.8.8s.704-.32.8-.8c0-.04.216-.8 1.6-.8 1.24 0 1.6.8 1.6 1.2 0 .816-.536 1.088-1.128 1.456A2.536 2.536 0 0 0 13.2 15.2z"}));case"layout-placeholder":return o().createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("path",{d:"M102,188 C107.522847,188 112,192.477153 112,198 L112,234 C112,239.522847 107.522847,244 102,244 L50,244 C44.4771525,244 40,239.522847 40,234 L40,198 C40,192.477153 44.4771525,188 50,188 L102,188 Z M350,188 C355.522847,188 360,192.477153 360,198 L360,234 C360,239.522847 355.522847,244 350,244 L140,244 C134.477153,244 130,239.522847 130,234 L130,198 C130,192.477153 134.477153,188 140,188 L350,188 Z M350,114 C355.522847,114 360,118.477153 360,124 L360,160 C360,165.522847 355.522847,170 350,170 L50,170 C44.4771525,170 40,165.522847 40,160 L40,124 C40,118.477153 44.4771525,114 50,114 L350,114 Z M211,40 C216.522847,40 221,44.4771525 221,50 L221,86 C221,91.5228475 216.522847,96 211,96 L50,96 C44.4771525,96 40,91.5228475 40,86 L40,50 C40,44.4771525 44.4771525,40 50,40 L211,40 Z M350,40 C355.522847,40 360,44.4771525 360,50 L360,86 C360,91.5228475 355.522847,96 350,96 L249,96 C243.477153,96 239,91.5228475 239,86 L239,50 C239,44.4771525 243.477153,40 249,40 L350,40 Z"}));case"background-image":return o().createElement("g",null,o().createElement("path",{d:"M309,78V206H91V78H309m8-16H83a8,8,0,0,0-8,8V214a8,8,0,0,0,8,8H317a8,8,0,0,0,8-8V70a8,8,0,0,0-8-8Z",fill:"#e7eef5"}),o().createElement("circle",{cx:"160",cy:"111",r:"12",fill:"#e7eef5"}),o().createElement("path",{d:"M105.37,190.83H295.63V151.08l-47.77-47.77a8,8,0,0,0-11.32,0l-65.2,65.2-15.75-15.74a8,8,0,0,0-11.24-.06Z",fill:"#e7eef5"}));case"folder-open":return o().createElement("g",null,o().createElement("path",{d:"M3.72076 6H17.6126L15.2792 13L1.38743 13L3.72076 6Z",fill:"#2B87DA",stroke:"#2B87DA",strokeWidth:"2"}),o().createElement("path",{d:"M7.00087 1.00001L7.00293 1C7.17604 0.999623 7.29258 1.04456 7.40366 1.12166C7.53485 1.21271 7.67711 1.36286 7.85596 1.60786L7.93916 1.72478L8.39713 2.40217L8.40492 2.4137L8.41303 2.425L8.52694 2.58378L8.82621 3.00095L9.33962 3.00087L15 3.00003V13H1V3.02273L1.00097 3.00138L1.0028 2.96112L1.00138 2.92084L1.00073 2.90238V1.02984L1.00233 1.0024L1.02999 1.00082L7.00087 1.00001Z",stroke:"#2B87DA",strokeWidth:"2"}));case"folder-close":return o().createElement("g",null,o().createElement("mask",{id:"path-1-inside-1_0_3891",fill:"white"},o().createElement("rect",{y:"2",width:"16",height:"12",rx:"1"})),o().createElement("rect",{y:"2",width:"16",height:"12",rx:"1",fill:"#737E89",stroke:"#737E89",strokeWidth:"4",mask:"url(#path-1-inside-1_0_3891)"}),o().createElement("path",{d:"M7.00184 0.500018C5.56659 0.503188 2.56668 0.501792 1.00092 0.500763C0.724748 0.500582 0.500739 0.724357 0.500739 1.0009V2.92021C0.500739 3.21507 0.746868 3.44071 1.03311 3.41833C2.56852 3.29832 5.46237 3.06926 7.76508 2.87025C8.32065 2.82224 8.84065 2.77608 9.29826 2.73369C9.0211 2.44434 8.80329 2.11638 8.61409 1.83149C8.60153 1.81259 8.58911 1.79387 8.5768 1.77537C8.04592 0.977625 7.68891 0.4985 7.00184 0.500018Z",fill:"#737E89",stroke:"#737E89"}));case"portability":return o().createElement("g",null,o().createElement("path",{d:"M9.6 20.8c0.2 0.3 0.7 0.3 0.9 0l2.1-3.5c0.2-0.3 0-0.8-0.4-0.8H11V8c0-0.6-0.4-1-1-1C9.4 7 9 7.4 9 8v8.5H7.9c-0.4 0-0.6 0.4-0.4 0.8L9.6 20.8z",fillRule:"evenodd"}),o().createElement("path",{d:"M18.4 7.2c-0.2-0.3-0.7-0.3-0.9 0l-2.1 3.5c-0.2 0.3 0 0.8 0.4 0.8H17V20c0 0.6 0.4 1 1 1 0.6 0 1-0.4 1-1v-8.5h1.1c0.4 0 0.6-0.4 0.4-0.8L18.4 7.2z",fillRule:"evenodd"}));case"right-arrow":return o().createElement("g",null,o().createElement("rect",{width:"2.5",height:"9",rx:"1.25",transform:"matrix(-0.707107 0.707107 0.707107 0.707107 6.5 0.135986)",fill:"#737E89"}),o().createElement("rect",{width:"2.5",height:"9",rx:"1.25",transform:"matrix(0.707107 0.707107 0.707107 -0.707107 4.73218 11.0962)",fill:"#737E89"}));case"left-arrow":return o().createElement("g",null,o().createElement("rect",{x:"6.5",y:"0.135986",width:"2.5",height:"9",rx:"1.25",transform:"rotate(45 6.5 0.135986)",fill:"#737E89"}),o().createElement("rect",{x:"8.26782",y:"11.0962",width:"2.5",height:"9",rx:"1.25",transform:"rotate(135 8.26782 11.0962)",fill:"#737E89"}));case"magnifying-glass":return o().createElement("g",null,o().createElement("rect",{width:"28",height:"28",rx:"14",fill:"white"}),o().createElement("circle",{cx:"14",cy:"14",r:"4",stroke:"#32373C",strokeWidth:"2"}),o().createElement("rect",{x:"10.9492",y:"15.6367",width:"2",height:"4.72877",rx:"1",transform:"rotate(45 10.9492 15.6367)",fill:"#32373C"}));case"divi-ai-light":return o().createElement(o().Fragment,null,o().createElement("defs",null,o().createElement("linearGradient",{id:"divi-ai-light-linear-gradient",x1:"10.77",y1:"10.73",x2:"17.1",y2:"18.31",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{offset:"0",stopColor:"aqua"}),o().createElement("stop",{offset:"1",stopColor:"#5200ff"}))),o().createElement("g",null,o().createElement("path",{className:"cls-2",d:"M5,11c0-2.83,0-4.24,.88-5.12,.88-.88,2.29-.88,5.12-.88h6c2.83,0,4.24,0,5.12,.88,.88,.88,.88,2.29,.88,5.12v6c0,2.83,0,4.24-.88,5.12s-2.29,.88-5.12,.88h-6c-2.83,0-4.24,0-5.12-.88-.88-.88-.88-2.29-.88-5.12v-6Z"})),o().createElement("g",null,o().createElement("path",{className:"cls-1",d:"M16,11c0-.55,.45-1,1-1s1,.45,1,1v6c0,.55-.45,1-1,1s-1-.45-1-1v-6Zm-1.05,5.68l-2-6c-.14-.41-.52-.68-.95-.68s-.81,.28-.95,.68l-2,6c-.17,.52,.11,1.09,.63,1.26,.52,.17,1.09-.11,1.26-.63l.44-1.32h1.23l.44,1.32c.17,.52,.74,.81,1.26,.63,.52-.17,.81-.74,.63-1.26Z"})));case"divi-ai":return o().createElement(o().Fragment,null,o().createElement("defs",null,o().createElement("linearGradient",{id:"divi-ai-linear-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%"},o().createElement("stop",{offset:"0%",stopColor:"aqua"}),o().createElement("stop",{offset:"100%",stopColor:"#5200ff"}))),o().createElement("g",null,o().createElement("path",{d:"M22.12,5.88c-.88-.88-2.29-.88-5.12-.88h-6c-2.83,0-4.24,0-5.12,.88-.88,.88-.88,2.29-.88,5.12v6c0,2.83,0,4.24,.88,5.12s2.29,.88,5.12,.88h6c2.83,0,4.24,0,5.12-.88,.88-.88,.88-2.29,.88-5.12v-6c0-2.83,0-4.24-.88-5.12Zm-7.8,12.07c-.52,.17-1.09-.11-1.26-.63l-.44-1.32h-1.23l-.44,1.32c-.17,.52-.74,.81-1.26,.63-.52-.17-.81-.74-.63-1.26l2-6c.14-.41,.52-.68,.95-.68s.81,.28,.95,.68l2,6c.17,.52-.11,1.09-.63,1.26Zm3.68-.95c0,.55-.45,1-1,1s-1-.45-1-1v-6c0-.55,.45-1,1-1s1,.45,1,1v6Z"})));case"divi-ai-code":return o().createElement(o().Fragment,null,o().createElement("rect",{x:"5",y:"5",width:"18",height:"18",rx:"3",fill:"white"}),o().createElement("path",{d:"M16 11C16 10.4477 16.4477 10 17 10C17.5523 10 18 10.4477 18 11V17C18 17.5523 17.5523 18 17 18C16.4477 18 16 17.5523 16 17V11Z",fill:"url(#paint0_linear_654_6159_".concat(t,")")}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 10C12.4305 10 12.8126 10.2754 12.9487 10.6838L14.9487 16.6838C15.1234 17.2077 14.8402 17.774 14.3163 17.9487C13.7923 18.1233 13.226 17.8402 13.0513 17.3162L12 14.1623L10.9487 17.3162C10.7741 17.8402 10.2077 18.1233 9.6838 17.9487C9.15986 17.774 8.8767 17.2077 9.05134 16.6838L11.0513 10.6838C11.1875 10.2754 11.5696 10 12 10Z",fill:"url(#paint1_linear_654_6159_".concat(t,")")}),o().createElement("path",{d:"M11 14H13V16H11V14Z",fill:"url(#paint2_linear_654_6159_".concat(t,")")}),o().createElement("defs",null,o().createElement("linearGradient",{id:"paint0_linear_654_6159_".concat(t),x1:"8.99976",y1:"10",x2:"16.9449",y2:"18.9382",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#4C5563"}),o().createElement("stop",{offset:"1",stopColor:"#5200FF"})),o().createElement("linearGradient",{id:"paint1_linear_654_6159_".concat(t),x1:"8.99976",y1:"10",x2:"16.9449",y2:"18.9382",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#4C5563"}),o().createElement("stop",{offset:"1",stopColor:"#5200FF"})),o().createElement("linearGradient",{id:"paint2_linear_654_6159_".concat(t),x1:"8.99976",y1:"10",x2:"16.9449",y2:"18.9382",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#4C5563"}),o().createElement("stop",{offset:"1",stopColor:"#5200FF"}))));case"divi-ai-code-hover":return o().createElement(o().Fragment,null,o().createElement("rect",{width:"28",height:"28",rx:"3",fill:"white",fillOpacity:"0.16"}),o().createElement("rect",{x:"5",y:"5",width:"18",height:"18",rx:"3",fill:"white"}),o().createElement("path",{d:"M16 11C16 10.4477 16.4477 10 17 10C17.5523 10 18 10.4477 18 11V17C18 17.5523 17.5523 18 17 18C16.4477 18 16 17.5523 16 17V11Z",fill:"url(#paint0_linear_655_5811_".concat(t,")")}),o().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 10C12.4305 10 12.8126 10.2754 12.9487 10.6838L14.9487 16.6838C15.1234 17.2077 14.8402 17.774 14.3163 17.9487C13.7923 18.1233 13.226 17.8402 13.0513 17.3162L12 14.1623L10.9487 17.3162C10.7741 17.8402 10.2077 18.1233 9.6838 17.9487C9.15986 17.774 8.8767 17.2077 9.05134 16.6838L11.0513 10.6838C11.1875 10.2754 11.5696 10 12 10Z",fill:"url(#paint1_linear_655_5811_".concat(t,")")}),o().createElement("path",{d:"M11 14H13V16H11V14Z",fill:"url(#paint2_linear_655_5811_".concat(t,")")}),o().createElement("defs",null,o().createElement("linearGradient",{id:"paint0_linear_655_5811_".concat(t),x1:"8.99976",y1:"10",x2:"16.9449",y2:"18.9382",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#00FFFF"}),o().createElement("stop",{offset:"1",stopColor:"#5200FF"})),o().createElement("linearGradient",{id:"paint1_linear_655_5811_".concat(t),x1:"8.99976",y1:"10",x2:"16.9449",y2:"18.9382",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#00FFFF"}),o().createElement("stop",{offset:"1",stopColor:"#5200FF"})),o().createElement("linearGradient",{id:"paint2_linear_655_5811_".concat(t),x1:"8.99976",y1:"10",x2:"16.9449",y2:"18.9382",gradientUnits:"userSpaceOnUse"},o().createElement("stop",{stopColor:"#00FFFF"}),o().createElement("stop",{offset:"1",stopColor:"#5200FF"}))));case"save":return o().createElement("g",null,o().createElement("path",{d:"M18.95 9.051a1 1 0 1 0-1.414 1.414 5 5 0 1 1-7.07 0A1 1 0 0 0 9.05 9.051a7 7 0 1 0 9.9.001v-.001zm-5.378 8.235a.5.5 0 0 0 .857 0l2.117-3.528a.5.5 0 0 0-.429-.758H15V8a1 1 0 0 0-2 0v5h-1.117a.5.5 0 0 0-.428.758l2.117 3.528z",fillRule:"evenodd"}))}}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.color,n=e.icon,i=e.size,l=e.viewBox,u=e.margin,f=e.onClick,d=e.elementType;if(!n)return!1;var p={fill:r,width:2*i,minWidth:2*i,height:2*i,margin:c()(u)||!1===u?-(i-8):u},h="et-common-icon--".concat(n),m=a()({"et-common-icon":!0},h,t),v=this._renderGraphics();return v||(p={}),o().createElement(d,{className:m,style:s()(p,this.props.style),onClick:f,"data-testid":this.props["data-for"]},o().createElement("svg",{viewBox:l,preserveAspectRatio:"xMidYMid meet",shapeRendering:"geometricPrecision"},v))}}])&&d(t.prototype,r),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(n.PureComponent);v.defaultProps={color:"#4c5866",size:14,viewBox:"0 0 28 28",elementType:"div"};const g=v},2278:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>T});var n=r(7363),o=r(905),i=r(2952),a=r.n(i),l=function(e,t){for(var r=a()(e,t,""),n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];if(o.length>0){var l=a()(window,"wp.i18n.sprintf");return l?l.apply(void 0,[r].concat(o)):r.replace("%s",o[0])}return r};const s=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return l.apply(void 0,[window.et_common_data.i18n,[e,t]].concat(n))},u=window.et_common_data.config;function c(e){return c="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},c(e)}var f,d;function p(){p=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function u(e,t,r,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new C(o||[]);return n(a,"_invoke",{value:k(e,r,l)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function h(){}function m(){}function v(){}var g={};s(g,i,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==t&&r.call(b,i)&&(g=b);var w=v.prototype=h.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(n,i,a,l){var s=f(e[n],e,i);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==c(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,a,l)}),(function(e){o("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,l)}))}l(s.arg)}var i;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return i=i?i.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=f(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.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,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function O(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(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 n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.prototype=v,n(w,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:m,configurable:!0}),m.displayName=s(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},_(x.prototype),s(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(u(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(w),s(w,l,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,C.prototype={constructor:C,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(E),!e)for(var t in this)"t"===t.charAt(0)&&r.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 n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;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,d):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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function h(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function m(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){h(i,n,o,a,l,"next",e)}function l(e){h(i,n,o,a,l,"throw",e)}a(void 0)}))}}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,t)}(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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var y=(null!==(f=null!==(d=window.et_ai_data)&&void 0!==d?d:window.top.et_ai_data)&&void 0!==f?f:{}).ai_server_url,b=function(){var e=u.availableLanguages,t={};return Object.entries(e).forEach((function(e){var r=v(e,2),n=r[0],o=r[1];t[n]={name:o}})),{translate:{name:s("ai","Translate"),items:t}}},w=function(){var e=m(p().mark((function e(){var t,r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=sessionStorage.getItem("aiDataOptions"))){e.next=3;break}return e.abrupt("return",JSON.parse(t).options);case 3:return e.next=5,fetch("".concat(y,"/data"));case 5:return r=e.sent,e.next=8,r.json();case 8:return t=e.sent,sessionStorage.setItem("aiDataOptions",JSON.stringify(t)),e.abrupt("return",t.options);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_=function(){var e=m(p().mark((function e(t){var r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w();case 2:r=e.sent,e.t0=t,e.next="text"===e.t0?6:"image"===e.t0?7:"css-declarations"===e.t0||"code_css_no_selector"===e.t0?8:"css"===e.t0||"code_css"===e.t0?9:"code_css_free_form"===e.t0||"free-form-css"===e.t0?10:"html"===e.t0||"code_html"===e.t0?11:12;break;case 6:return e.abrupt("return",r.text);case 7:return e.abrupt("return",r.image);case 8:return e.abrupt("return",r.cssDeclarations);case 9:return e.abrupt("return",r.css);case 10:return e.abrupt("return",r.freeFormCss);case 11:return e.abrupt("return",r.html);case 12:return e.abrupt("return",r);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function x(e){return x="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},x(e)}function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==x(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===x(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C(e,t)}(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 C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function T(e){var t=E((0,n.useState)({}),2),r=t[0],i=t[1],a=(0,n.useRef)();(0,n.useEffect)((function(){return a.current=!0,_(e.context).then((function(e){a.current&&i(e.refine)})),function(){a.current=!1}}),[]);var l=(0,n.useMemo)((function(){return"text"!==e.context?r:S(S({},r),b())}),[e.context,r]);return React.createElement(o.default,{button:e.button,value:e.value,options:l,onSelect:e.onSelect})}},2428:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(7363),o=r.n(n),i=r(4480),a=r.n(i);function l(e){var t=e.className,r=void 0===t?"":t;return o().createElement("div",{className:a()("et-common-app-spinner-block",r),"data-testid":"Spinner"},o().createElement("div",{className:"et-common-app-spinner-block__spinner"}))}const s=o().memo(l)},2981:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={black:"#000000",white:"#FFFFFF",default:"#F1F5F9",checkMark:"#37C4AA",success:"#29C4A9",successAlt:"#70C3A9",primary:"#6C2EB9",primaryAlt:"#7D3BCF",info:"#2B87DA",infoAlt:"#00B9DC",danger:"#EF5555",dangerAlt:"#EB3D00",inverse:"#4C5866",warning:"#FF9232",warningAlt:"#F3CB57",globalitem:"#97d000",optionTabIcon:"#BEC9D5",activeTabIcon:"#2B96E1",abTestingTimeFilter:"#A1A9B2",disabledSubject:"#E1E4EA",inactiveGrey:"#BEC9D6",shuttleGrey:"#5C6978",fiord:"#3E5062",uploadImagePreview:"#333B44",bfbPreviewActive:"#5C6979",bfbPreview:"#9FA5AC",enabledDeviceIcon:"#42E1A7",disabledDeviceIcon:"#EF5555",coreModalButtonBlue:"#008BDA",historyActiveButton:"#99CF02",uiActiveIcon:"#4191DE",uiInactiveIcon:"#bec9d6",moduleItemControlIcons:"#737e89",selectPositionGray:"#E6ECF2",cadetBlue:"#A2B0C1",layerBackground:"#f0f5f9",activeCloud:"#0088E1",activeFav:"#FF454E",button:"#a3b0c2"}},911:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>M});var n=r(7363),o=r.n(n),i=r(1193),a=r.n(i),l=r(4911),s=r.n(l),u=r(6057),c=r.n(u);function f(e){return f="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},f(e)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===f(i)?i:String(i)),n)}var o,i}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(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 r,n=m(e);if(t){var o=m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v={width:"200%",height:"200%",top:"-50%",left:"-50%"};const g=function(e){!function(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&&p(e,t)}(a,e);var t,r,n,i=h(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){return o().createElement(c(),{radius:150,duration:1200,background:!1,options:{background:!1},style:v})}}])&&d(t.prototype,r),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.PureComponent);function y(e){return y="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},y(e)}var b=["tip","ripple","className","children","forwardedRef"];function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(this,arguments)}function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e,t,r){return(t=O(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,O(n.key),n)}}function O(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===y(t)?t:String(t)}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function C(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 r,n=T(e);if(t){var o=T(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var L=function(e){!function(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&&E(e,t)}(a,e);var t,r,n,i=C(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,r=[{key:"render",value:function(){var e=this.props,t=e.tip,r=e.ripple,n=e.className,i=e.children,a=e.forwardedRef,l=k(e,b),s=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({type:"button",className:"et-common-button ".concat(n)},l);return""!==t&&(s["data-tip"]=t),o().createElement("button",w({ref:a},s),i,r&&o().createElement(g,null))}}],r&&S(t.prototype,r),n&&S(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.PureComponent);L.propTypes={tip:a().string,ripple:a().bool,className:a().string,forwardedRef:a().func},L.defaultProps={tip:"",ripple:!0,className:"",forwardedRef:s()};const M=o().forwardRef((function(e,t){return o().createElement(L,w({},e,{forwardedRef:t}))}))},9353:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>he});var n=r(8743),o=r(7363),i=r.n(o),a=r(1193),l=r.n(a),s=r(418),u=r.n(s),c=r(7606),f=r.n(c),d=r(2211),p=r.n(d),h=r(8546),m=r.n(h),v=r(3708),g=r.n(v),y=r(2952),b=r.n(y),w=r(5961),_=r.n(w),x=r(1587),k=r.n(x),S=r(8925),O=r.n(S),E=r(8232),C=r.n(E),T=r(6810),L=r.n(T),M=r(4480),A=r.n(M),j=(r(2384),r(7530),r(372),r(6728),r(4491),r(5812),r(1413),r(9805),r(7437),r(5930),r(9546),r(1863),r(9427),r(1528),r(1691),r(6283),r(1347),r(7886)),P=r.n(j),I=r(8961),R=r.n(I),N=r(4436);function D(e){return D="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},D(e)}function z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==D(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===D(i)?i:String(i)),n)}var o,i}var F={"known-properties":1,"duplicate-properties":1},H={coverGutter:!1,noHScroll:!0},B=function(e){var t=e.message,r=e.line,n=e.type;return{description:t.replace(/ \w+ \w+ \d+, \w+ \d+\.$/,"."),line:r,type:n}},W=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.mode=t,this.editor=r,this.delay=n,this.timer=0,this.lineWidgets=[],this.doLint=this.doLint.bind(this),this.removeLineWidget=this.removeLineWidget.bind(this),this.showErrors=this.showErrors.bind(this),this.showError=this.showError.bind(this)}var t,r,n;return t=e,r=[{key:"lint",value:function(e){clearTimeout(this.timer);var t=p()(e)?this.delay:e;0===t?this.doLint():this.timer=setTimeout(this.doLint,t)}},{key:"doLint",value:function(){this.editor&&this.editor.operation(this.showErrors)}},{key:"getErrors",value:function(){var e,t=this.editor.getValue();if("css"===this.mode.name){var r=this.mode.inline?"p {".concat(t,"}"):t,n=N.u.verify(r,F).messages;e=P()(n,R()).map(B)}else e=[];return e}},{key:"removeLineWidget",value:function(e){this.editor.removeLineWidget(e)}},{key:"showError",value:function(e){var t=this.editor,r=e.description,n=e.line,o=e.type,i=document.createElement("div");return i.appendChild(document.createTextNode("".concat(r))),i.className="codemirror-lint-".concat(o),t.addLineWidget(n-1,i,H)}},{key:"showErrors",value:function(){u()(this.lineWidgets)||C()(this.lineWidgets,this.removeLineWidget);var e=this.getErrors();u()(e)?this.lineWidgets=[]:this.lineWidgets=e.map(this.showError)}},{key:"destroy",value:function(){clearTimeout(this.timer),this.editor=!1}}],r&&z(t.prototype,r),n&&z(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();const U=W;function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach((function(t){$(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $(e,t,r){return(t=te(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G(e,t){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},G(e,t)}function K(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 r,n=Q(e);if(t){var o=Q(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===Z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Y(e)}(this,r)}}function Y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q(e){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Q(e)}function Z(e){return Z="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},Z(e)}function X(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,te(n.key),n)}}function ee(e,t,r){return t&&J(e.prototype,t),r&&J(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function te(e){var t=function(e,t){if("object"!==Z(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Z(t)?t:String(t)}var re=100,ne=500,oe=2e3,ie={common:{keyMap:"sublime",autofocus:!1,cursorBlinkRate:0,viewportMargin:1/0,theme:"et",styleActiveLine:!0,matchBrackets:!0,autoCloseBrackets:!0,autoCloseTags:!0,lineWrapping:!0,lineNumbers:!0,indentUnit:2,tabSize:2},modes:{css:{mode:{name:"css",inline:!0},colorpicker:{mode:"edit"},lineBreakPlaceholder:/\|\||<!-- \[et_pb_line_break_holder\] -->/},html:{mode:{name:"htmlmixed"},colorpicker:{mode:"edit"},matchTags:{bothTags:!0},lineBreakPlaceholder:/<!-- \[et_pb_line_break_holder\] -->/}}},ae={line:0,ch:0},le={ignoreKeys:[13,37,39],prefix:{css:/[A-z-]/,default:/[A-z]/},tokens:{xml:["attribute","tag"]}},se=function(e){var t=b()(e,e.is_fb_content?"content":"value");return t===e.default?"":t},ue=function(e){e.hideCompletion(),e.hideColorPicker()},ce=new(function(){function e(){X(this,e),this.instances=[],this.listener=!1,this.$window=jQuery(window),this.onScroll=this.onScroll.bind(this)}return ee(e,[{key:"add",value:function(e){this.instances.push(e),this.check()}},{key:"remove",value:function(e){L()(this.instances,e),this.check()}},{key:"onScroll",value:function(){C()(this.instances,ue)}},{key:"check",value:function(){this.instances.length>0?this.listener||(this.$window.on("wheel scroll",this.onScroll),this.listener=!0):this.listener&&(this.$window.off("wheel scroll",this.onScroll),this.listener=!1)}}]),e}()),fe=0;function de(e){var t=this,r=e.lineNo,n=e.ch,o=e.nameColor,i=e.color;if(this.colorpicker){var a=i,l=this.cm.charCoords({line:r,ch:n},"window");this.colorpicker.show({left:l.left,top:l.bottom+fe,isShortCut:e.isShortCut||!1,hideDelay:this.opt.hideDelay||2e3},o||i,(function(e){t.cm.replaceRange(e,{line:r,ch:n},{line:r,ch:n+a.length},"*colorpicker"),a=e})),jQuery(this.colorpicker.$root.el).css({top:"".concat(l.bottom+fe,"px"),left:m()(l.left)?"".concat(l.left,"px"):l.left})}}var pe=function(e){!function(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&&G(e,t)}(r,e);var t=K(r);function r(e){var n;X(this,r),(n=t.call(this,e)).editor=!1,n.dirty=!1,n.markers=[],n.mode=b()(e,"mode","css"),n.options=q(q(q({},ie.common),b()(ie.modes,n.mode,{})),{},{readOnly:b()(e,"readOnly",!1),cursorBlinkRate:b()(e,"cursorBlinkRate",ie.cursorBlinkRate),lint:b()(e,"lint",!0)}),k()(n.options,"mode.inline")&&k()(e,"inline")&&(n.options.mode.inline=e.inline),n.completion=b()(le.prefix,n.mode,le.prefix.default),n.onChange=n.onChange.bind(Y(n)),n.onClick=n.onClick.bind(Y(n)),n.onKeyUp=n.onKeyUp.bind(Y(n)),n.onKeyDown=n.onKeyDown.bind(Y(n)),n._onFocus=n._onFocus.bind(Y(n)),n._onBlur=n._onBlur.bind(Y(n)),n.onBeforeChange=n.onBeforeChange.bind(Y(n)),n.editorDidMount=n.editorDidMount.bind(Y(n)),n.activateEditor=n.activateEditor.bind(Y(n)),n.getEditor=n.getEditor.bind(Y(n)),n.debouncedShowCompletion=g()(n.showCompletion,ne),n.debouncedUpdateSettings=g()(n.updateSettings,re),n.incrementalKey=0;var o=n.addLineBreaks(se(e)),i=n.addLineBreaks(n.props.default);return n.state={value:o,default:i,enabled:!u()(o)||!u()(i),focused:!1},n}return ee(r,[{key:"componentDidMount",value:function(){ce.add(this)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.addLineBreaks(se(e));if(this.state.enabled||u()(t)&&u()(this.state.default)||this.enableEditor(),this.state.value!==t||e.activeTabMode!==this.props.activeTabMode){var r=this.addLineBreaks(e.default);this.setState({default:r}),this.dirty||(this.incrementalKey++,this.setValue(t))}}},{key:"componentDidUpdate",value:function(){if(this.editor){var e=this.editor;if(C()(this.markers,(function(e){e.clear()})),this.markers=[],u()(b()(this,"props.search")))return;for(var t=e.getSearchCursor(this.props.search);t.findNext();)this.markers.push(e.doc.markText(t.from(),t.to(),{className:"cm-searching",clearOnEnter:!0}))}}},{key:"componentWillUnmount",value:function(){this.hideCompletion(),this.hideColorPicker(),ce.remove(this),this.debouncedShowCompletion.cancel(),this.debouncedUpdateSettings.flush(),this.editor=!1,this.linter&&this.linter.destroy()}},{key:"onBeforeChange",value:function(e,t,r){this.dirty=!0,this.setValue(r)}},{key:"onChange",value:function(){re>0?this.debouncedUpdateSettings():this.updateSettings(),this.lint()}},{key:"onKeyUp",value:function(e,t){this.checkCompletion(e,t)}},{key:"onKeyDown",value:function(e,t){"Enter"!==t.key&&13!==t.keyCode||t.stopPropagation()}},{key:"onClick",value:function(){this.options.autofocus=!0,this.enableEditor()}},{key:"setValue",value:function(e){this.setState({value:e})}},{key:"addLineBreaks",value:function(e){if(p()(e)||!f()(e))return e;var t=this.options.lineBreakPlaceholder;return e.match(t)?e.split(t).join("\n"):e}},{key:"enableEditor",value:function(){this.setState({enabled:!0})}},{key:"lint",value:function(e){this.linter&&this.linter.lint(e)}},{key:"editorDidMount",value:function(e){this.editor=e;var t=e.state.colorpicker;t&&_()(t,"open_color_picker",de.bind(t)),this.props.lint&&(this.linter=new U(this.options.mode,e,oe),this.lint(0))}},{key:"updateSettings",value:function(){var e=this.props;e._onChange(e.name,this.state.value,e.type),this.dirty=!1}},{key:"hideCompletion",value:function(){this.debouncedShowCompletion.cancel(),this.editor&&this.editor.state.completionActive&&this.editor.state.completionActive.close()}},{key:"hideColorPicker",value:function(){this.editor&&this.editor.state.colorpicker&&this.editor.state.colorpicker.close_color_picker()}},{key:"checkCompletion",value:function(e,t){if(O()(le.ignoreKeys,t.keyCode))this.hideCompletion();else{var r=e.doc,n=r.getCursor(),o=n.line,i=n.ch,a=b()(e.getModeAt(n),"name"),l=r.getLine(o),s=l.substr(Math.max(i-1,0),1),u=l.substr(i,1);if(this.completion.test(s)&&!this.completion.test(u)){var c=b()(le,"tokens.".concat(a));if(c){var f=e.getTokenTypeAt(n);if(!O()(c,f))return void this.hideCompletion()}this.debouncedShowCompletion()}else this.hideCompletion()}}},{key:"showCompletion",value:function(){if(!this.editor.state.completionActive){var e=window.parent.body;this.editor.showHint({completeSingle:!1,container:e})}}},{key:"activateEditor",value:function(){this.enableEditor()}},{key:"getEditor",value:function(){return this.editor}},{key:"render",value:function(){var e,t=this.props,r=t.name,o=t.classList,a=q(q({},this.options),{},{lineNumbers:this.state.focused||!u()(this.state.value)||u()(this.state.default),placeholder:this.state.default});e=i().createElement(n.fk,{key:this.incrementalKey,value:this.state.value,options:a,cursor:this.options.autofocus?ae:null,autoFocus:this.options.autofocus,name:r,id:"et-common-".concat(r),onChange:this.onChange,onBeforeChange:this.onBeforeChange,onKeyUp:this.onKeyUp,onKeyDown:this.onKeyDown,editorDidMount:this.editorDidMount,onFocus:this._onFocus,onBlur:this._onBlur});var l=q(q({},o),{},{"et-common-codemirror":!0});return i().createElement("div",{className:A()(l)},e)}},{key:"_onFocus",value:function(){this.setState({focused:!0})}},{key:"_onBlur",value:function(){this.setState({focused:!1})}}]),r}(i().PureComponent);pe.propTypes={className:l().string,inline:l().bool,lint:l().bool,name:l().string.isRequired,search:l().string,value:l().string},pe.defaultProps={className:"",inline:!0,lint:!0,search:"",value:""};const he=pe},1149:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(7363),o=r.n(n),i=r(1193),a=r.n(i),l=r(4480),s=r.n(l);function u(e){return u="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},u(e)}var c=["positive","value","checked","className","children"];function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===u(i)?i:String(i)),n)}var o,i}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function m(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 r,n=v(e);if(t){var o=v(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var g=function(e){!function(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&&h(e,t)}(a,e);var t,r,n,i=m(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.positive,r=e.value,n=e.checked,i=e.className,a=e.children,l=d(e,c);return o().createElement("label",{className:"et-common-checkbox ".concat(i)},o().createElement("input",f({type:"checkbox",value:r,checked:n,className:s()({"et-common-checkbox__input":!0,"et-common-checkbox__input--danger":!t})},l)),o().createElement("span",{className:"et-common-checkbox__label"},a))}}])&&p(t.prototype,r),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.PureComponent);g.propTypes={positive:a().bool,value:a().oneOfType([a().string,a().number]).isRequired,checked:a().bool.isRequired,className:a().string},g.defaultProps={value:1,positive:!0,className:""};const y=g},4526:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(7363),o=r.n(n),i=r(1193),a=r.n(i);function l(e){return 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},l(e)}var s=["className","type"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===l(i)?i:String(i)),n)}var o,i}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(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 r,n=h(e);if(t){var o=h(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var m=function(e){!function(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&&d(e,t)}(a,e);var t,r,n,i=p(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.className,r=e.type,n=c(e,s);return o().createElement("input",u({type:r,className:"et-common-input-text ".concat(t)},n))}}])&&f(t.prototype,r),n&&f(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.PureComponent);m.propTypes={className:a().string,type:a().string},m.defaultProps={className:"",type:"text"};const v=m},2172:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(7363),o=r.n(n),i=["className"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}function l(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const s=(0,n.forwardRef)((function(e,t){var r=e.className,n=l(e,i);return o().createElement("textarea",a({className:"et-common-textarea ".concat(r)},n,{ref:t}))}))},6309:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>X});var n=r(7363),o=r.n(n),i=r(1193),a=r.n(i),l=r(4480),s=r.n(l),u=r(9070),c=r(418),f=r.n(c),d=r(1009),p=r.n(d),h=r(4082),m=r.n(h),v=r(7606),g=r.n(v),y=(r(2406),r(8232),r(8925),r(1733),r(2211)),b=r.n(y);function w(e){return w="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},w(e)}function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==w(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===w(i)?i:String(i)),n)}var o,i}const x=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{key:"isColorValid",value:function(e){return!b()(this.getColorType(e))}}],(r=null)&&_(t.prototype,r),n&&_(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();var k=r(911),S=r(8618),O=r.n(S);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function C(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==E(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===E(i)?i:String(i)),n)}var o,i}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function L(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 r,n=M(e);if(t){var o=M(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}var A=function(e){!function(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&&T(e,t)}(a,e);var t,r,n,i=L(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,r=[{key:"_renderGraphics",value:function(){switch(this.props.icon){case"add":return o().createElement("g",null,o().createElement("path",{d:"M18 13h-3v-3a1 1 0 0 0-2 0v3h-3a1 1 0 0 0 0 2h3v3a1 1 0 0 0 2 0v-3h3a1 1 0 0 0 0-2z",fillRule:"evenodd"}));case"back":return o().createElement("g",null,o().createElement("path",{d:"M14.988 10.963h-3v-2.52a.393.393 0 0 0-.63-.361l-5.2 4.5a.491.491 0 0 0 0 .72l5.2 4.5a.393.393 0 0 0 .63-.36v-2.52h2.99a2.992 2.992 0 0 1 2.99 2.972v1.287a.7.7 0 0 0 .7.694h2.59a.7.7 0 0 0 .7-.694v-1.3a6.948 6.948 0 0 0-6.97-6.918z",fillRule:"evenodd"}));case"check":return o().createElement("g",null,o().createElement("path",{d:"M19.203 9.21a.677.677 0 0 0-.98 0l-5.71 5.9-2.85-2.95a.675.675 0 0 0-.98 0l-1.48 1.523a.737.737 0 0 0 0 1.015l4.82 4.979a.677.677 0 0 0 .98 0l7.68-7.927a.737.737 0 0 0 0-1.015l-1.48-1.525z",fillRule:"evenodd"}));case"close":case"close-small":case"multiply-by":return o().createElement("g",null,o().createElement("path",{d:"M15.59 14l4.08-4.082a1.124 1.124 0 0 0-1.587-1.588L14 12.411 9.918 8.329A1.124 1.124 0 0 0 8.33 9.92L12.411 14l-4.082 4.082a1.124 1.124 0 0 0 1.59 1.589L14 15.589l4.082 4.082a1.124 1.124 0 0 0 1.589-1.59L15.589 14h.001z",fillRule:"evenodd"}));case"column":return o().createElement("g",null,o().createElement("path",{d:"M20 8H8a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9a1 1 0 0 0-1-.999V8zm-7 2h2v8h-2v-8zm-2 8H9v-8h2v8zm6-8h2v8h-2v-8z",fillRule:"evenodd"}));case"contract":return o().createElement("g",null,o().createElement("path",{d:"M20 19L20 9C20 8.5 19.5 8 19 8L9 8C8.5 8 8 8.5 8 9L8 19C8 19.5 8.5 20 9 20L19 20C19.5 20 20 19.5 20 19L20 19ZM18 18L10 18 10 10 18 10 18 18 18 18Z",fillRule:"evenodd"}),o().createElement("path",{d:"M11.5 13.5C11.8 13.5 12 13.3 12 13L12 12 13 12C13.3 12 13.5 11.8 13.5 11.5 13.5 11.2 13.3 11 13 11L11.5 11C11.2 11 11 11.2 11 11.5L11 13C11 13.3 11.2 13.5 11.5 13.5L11.5 13.5Z",fillRule:"evenodd"}),o().createElement("path",{d:"M16.5 11L15 11C14.7 11 14.5 11.2 14.5 11.5 14.5 11.8 14.7 12 15 12L16 12 16 13C16 13.3 16.2 13.5 16.5 13.5 16.8 13.5 17 13.3 17 13L17 11.5C17 11.2 16.8 11 16.5 11L16.5 11Z",fillRule:"evenodd"}),o().createElement("path",{d:"M13 16L12 16 12 15C12 14.7 11.8 14.5 11.5 14.5 11.2 14.5 11 14.7 11 15L11 16.5C11 16.8 11.2 17 11.5 17L13 17C13.3 17 13.5 16.8 13.5 16.5 13.5 16.2 13.3 16 13 16L13 16Z",fillRule:"evenodd"}),o().createElement("path",{d:"M16.5 14.5C16.2 14.5 16 14.7 16 15L16 16 15 16C14.7 16 14.5 16.2 14.5 16.5 14.5 16.8 14.7 17 15 17L16.5 17C16.8 17 17 16.8 17 16.5L17 15C17 14.7 16.8 14.5 16.5 14.5L16.5 14.5Z",fillRule:"evenodd"}));case"copy":return o().createElement("g",null,o().createElement("path",{d:"M16.919 15.391c.05-.124.074-.257.072-.39v-6a1.02 1.02 0 0 0-.072-.389.969.969 0 0 0-.893-.612H7.969a.97.97 0 0 0-.893.611c-.05.124-.076.256-.076.39v6c0 .134.026.266.076.39.146.365.5.604.893.605h8.057a.968.968 0 0 0 .893-.605zm3.074-3.413a1 1 0 0 0-1 1v5.011h-7.008a1 1 0 1 0 0 2h8a1 1 0 0 0 1-1v-6.013a1 1 0 0 0-.992-.998zm-5.016 2.013H8.991v-3.988h5.986v3.993-.005z",fillRule:"evenodd"}));case"delete":return o().createElement("g",null,o().createElement("path",{d:"M19 9h-3V8a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v1H9a1 1 0 1 0 0 2h10a1 1 0 0 0 .004-2H19zM9 20c.021.543.457.979 1 1h8c.55-.004.996-.45 1-1v-7H9v7zm2.02-4.985h2v4h-2v-4zm4 0h2v4h-2v-4z",fillRule:"evenodd"}));case"desktop":return o().createElement("g",null,o().createElement("path",{d:"M20 7H8C7.5 7 7 7.5 7 8v10c0 0.5 0.5 1 1 1h5v1h-1c-0.5 0-1 0.5-1 1s0.5 1 1 1h4c0.5 0 1-0.5 1-1s-0.5-1-1-1h-1v-1h5c0.5 0 1-0.5 1-1V8C21 7.5 20.5 7 20 7zM15 18h-2v-1h2V18zM19 16H9V9h10V16z",fillRule:"evenodd"}));case"grid":return o().createElement("g",null,o().createElement("path",{d:"M20 7H8C7.5 7 7 7.5 7 8v12c0 0.5 0.5 1 1 1h12c0.5 0 1-0.5 1-1V8C21 7.5 20.5 7 20 7zM15 9v2h-2V9H15zM15 13v2h-2v-2H15zM9 9h2v2H9V9zM9 13h2v2H9V13zM9 19v-2h2v2H9zM13 19v-2h2v2H13zM19 19h-2v-2h2V19zM19 15h-2v-2h2V15zM19 11h-2V9h2V11z",fillRule:"evenodd"}));case"wireframe":return o().createElement("g",null,o().createElement("path",{d:"M20 7H8C7.5 7 7 7.5 7 8v4c0 0.5 0.5 1 1 1h12c0.5 0 1-0.5 1-1V8C21 7.5 20.5 7 20 7zM19 11H9V9h10V11z",fillRule:"evenodd"}),o().createElement("path",{d:"M12 15H8c-0.5 0-1 0.5-1 1v4c0 0.5 0.5 1 1 1h4c0.5 0 1-0.5 1-1v-4C13 15.5 12.5 15 12 15zM11 19H9v-2h2V19z",fillRule:"evenodd"}),o().createElement("path",{d:"M20 15h-4c-0.5 0-1 0.5-1 1v4c0 0.5 0.5 1 1 1h4c0.5 0 1-0.5 1-1v-4C21 15.5 20.5 15 20 15zM19 19h-2v-2h2V19z",fillRule:"evenodd"}));case"exit":return o().createElement("g",null,o().createElement("path",{d:"M19.71 16.857l-2.85-2.854 2.85-2.854c.39-.395.39-1.03 0-1.426l-1.43-1.427a1 1 0 0 0-1.42 0L14 11.15l-2.85-2.854a1.013 1.013 0 0 0-1.43 0L8.3 9.723a1 1 0 0 0 0 1.426l2.85 2.854-2.85 2.853a1 1 0 0 0 0 1.427l1.42 1.427a1.011 1.011 0 0 0 1.43 0L14 16.856l2.86 2.854a1 1 0 0 0 1.42 0l1.43-1.427c.39-.395.39-1.03 0-1.426z",fillRule:"evenodd"}));case"expand":return o().createElement("g",null,o().createElement("path",{d:"M17 16L17 12C17 11.5 16.5 11 16 11L12 11C11.5 11 11 11.5 11 12L11 16C11 16.5 11.5 17 12 17L16 17C16.5 17 17 16.5 17 16L17 16ZM15 15L13 15 13 13 15 13 15 15 15 15Z",fillRule:"evenodd"}),o().createElement("path",{d:"M8.5 12C8.8 12 9 11.8 9 11.5L9 9 11.5 9C11.8 9 12 8.8 12 8.5 12 8.2 11.8 8 11.5 8L8.5 8C8.2 8 8 8.2 8 8.5L8 11.5C8 11.8 8.2 12 8.5 12L8.5 12Z",fillRule:"evenodd"}),o().createElement("path",{d:"M19.5 8L16.5 8C16.2 8 16 8.2 16 8.5 16 8.8 16.2 9 16.5 9L19 9 19 11.5C19 11.8 19.2 12 19.5 12 19.8 12 20 11.8 20 11.5L20 8.5C20 8.2 19.8 8 19.5 8L19.5 8Z",fillRule:"evenodd"}),o().createElement("path",{d:"M11.5 19L9 19 9 16.5C9 16.2 8.8 16 8.5 16 8.2 16 8 16.2 8 16.5L8 19.5C8 19.8 8.2 20 8.5 20L11.5 20C11.8 20 12 19.8 12 19.5 12 19.2 11.8 19 11.5 19L11.5 19Z",fillRule:"evenodd"}),o().createElement("path",{d:"M19.5 16C19.2 16 19 16.2 19 16.5L19 19 16.5 19C16.2 19 16 19.2 16 19.5 16 19.8 16.2 20 16.5 20L19.5 20C19.8 20 20 19.8 20 19.5L20 16.5C20 16.2 19.8 16 19.5 16L19.5 16Z",fillRule:"evenodd"}));case"heading-four":return o().createElement("g",null,o().createElement("path",{d:"M8 12.983h5V9a1 1 0 0 1 2 0v9.956a1 1 0 0 1-2 0v-3.973H8v3.973a1 1 0 0 1-2 0V9a1 1 0 1 1 2 0v3.983zm14 5.66h-.75v1.288h-1.29v-1.288h-2.67v-.914l2.74-4.013h1.22v3.907H22v1.02zm-2.04-1.02v-1.055c0-.175.01-.431.02-.764s.03-.529.03-.584h-.03a5.039 5.039 0 0 1-.38.681l-1.14 1.722h1.5z",fillRule:"evenodd"}));case"heading-one":return o().createElement("g",null,o().createElement("path",{d:"M13 14.983H8v3.973a1 1 0 0 1-2 0V9a1 1 0 1 1 2 0v3.983h5V9a1 1 0 0 1 2 0v9.956a1 1 0 0 1-2 0v-3.973zm8.1 4.951h-1.32v-3.6l.01-.591.02-.645c-.146.15-.3.294-.46.428l-.71.574-.64-.79 2.01-1.594h1.09v6.218z",fillRule:"evenodd"}));case"heading-three":return o().createElement("g",null,o().createElement("path",{d:"M13 14.983H8v3.973a1 1 0 0 1-2 0V9a1 1 0 1 1 2 0v3.983h5V9a1 1 0 0 1 2 0v9.956a1 1 0 0 1-2 0v-3.973zm8.65.125c.01.364-.12.718-.36.991-.26.29-.608.487-.99.561v.026a1.97 1.97 0 0 1 1.14.456c.265.256.407.613.39.981.03.546-.214 1.07-.65 1.4a3.04 3.04 0 0 1-1.87.5 4.6 4.6 0 0 1-1.8-.336v-1.118c.256.127.524.228.8.3.28.075.57.114.86.115a1.7 1.7 0 0 0 .97-.221.8.8 0 0 0 .31-.709.642.642 0 0 0-.36-.622 2.669 2.669 0 0 0-1.14-.183h-.48v-1.007h.49c.363.023.727-.042 1.06-.189a.687.687 0 0 0 .33-.648.714.714 0 0 0-.89-.706c-.21 0-.42.035-.62.1-.25.087-.49.206-.71.353l-.61-.906a3.419 3.419 0 0 1 2.04-.612 2.652 2.652 0 0 1 1.53.392c.36.24.572.649.56 1.082z",fillRule:"evenodd"}));case"heading-two":return o().createElement("g",null,o().createElement("path",{d:"M13 14.983H8v3.973a1 1 0 0 1-2 0V9a1 1 0 1 1 2 0v3.983h5V9a1 1 0 0 1 2 0v9.956a1 1 0 0 1-2 0v-3.973zm8.99 4.951h-4.36v-.914l1.57-1.577c.46-.474.76-.8.91-.985a2.1 2.1 0 0 0 .3-.508c.063-.154.097-.318.1-.484a.7.7 0 0 0-.21-.557.8.8 0 0 0-.55-.183c-.246 0-.49.057-.71.166a3.6 3.6 0 0 0-.71.471l-.72-.845a4.47 4.47 0 0 1 .77-.553c.209-.11.43-.194.66-.249.262-.06.53-.09.8-.087.355-.008.707.065 1.03.213.285.13.527.339.7.6.165.262.252.566.25.876.002.275-.049.549-.15.805-.122.277-.28.536-.47.772-.35.398-.725.774-1.12 1.127l-.81.752v.059h2.72v1.106-.005z",fillRule:"evenodd"}));case"help":return o().createElement("g",null,o().createElement("circle",{cx:"14",cy:"19",r:"1"}),o().createElement("path",{d:"M13 16a3.17 3.17 0 0 1 1.59-2.68c.74-.46 1.41-.8 1.41-1.82 0-.5-.45-1.5-2-1.5-1.73 0-2 .95-2 1-.12.6-.33 1-1 1-.67 0-1.12-.4-1-1a3.89 3.89 0 0 1 4-3 3.68 3.68 0 0 1 4 3.5 3.72 3.72 0 0 1-2.23 3.5 1.53 1.53 0 0 0-.77 1 .93.93 0 0 1-1 1 .93.93 0 0 1-1-1z"}));case"help-circle":return o().createElement("g",null,o().createElement("path",{d:"M14 22a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm0-3.6a.8.8 0 1 0 0-1.6.8.8 0 0 0 0 1.6zm-.8-3.2a.744.744 0 0 0 .8.8.744.744 0 0 0 .8-.8c.08-.343.305-.634.616-.8a2.976 2.976 0 0 0 1.784-2.8A2.944 2.944 0 0 0 14 8.8a3.112 3.112 0 0 0-3.2 2.4c-.096.48.264.8.8.8s.704-.32.8-.8c0-.04.216-.8 1.6-.8 1.24 0 1.6.8 1.6 1.2 0 .816-.536 1.088-1.128 1.456A2.536 2.536 0 0 0 13.2 15.2z"}));case"history":return o().createElement("g",null,o().createElement("path",{d:"M14 6.5C9.9 6.5 6.5 9.9 6.5 14 6.5 18.1 9.9 21.5 14 21.5 18.1 21.5 21.5 18.1 21.5 14 21.5 9.9 18.1 6.5 14 6.5L14 6.5ZM14 19.5C11 19.5 8.5 17 8.5 14 8.5 11 11 8.5 14 8.5 17 8.5 19.5 11 19.5 14 19.5 17 17 19.5 14 19.5L14 19.5Z",fillRule:"evenodd"}),o().createElement("path",{d:"M17 13L15 13 15 11C15 10.5 14.5 10 14 10 13.5 10 13 10.5 13 11L13 14C13 14.5 13.5 15 14 15L17 15C17.5 15 18 14.5 18 14 18 13.5 17.5 13 17 13L17 13Z",fillRule:"evenodd"}));case"indent":return o().createElement("g",null,o().createElement("path",{d:"M20 10H8a1 1 0 1 1 0-2h12a1 1 0 1 1 0 2zm0 10H8a1 1 0 0 1 0-2h12a1 1 0 1 1 0 2zm0-5h-7a1 1 0 0 1 0-2h7a1 1 0 1 1 0 2zM7.77 11.978l2.55 1.6a.5.5 0 0 1 0 .848l-2.55 1.6a.5.5 0 0 1-.77-.424v-3.2a.5.5 0 0 1 .77-.424z",fillRule:"evenodd"}));case"letter-spacing-small":return o().createElement("g",null,o().createElement("path",{d:"M15 19V9a1 1 0 0 1 2 0v10a1 1 0 0 1-2 0zm-4 0V9a1 1 0 0 1 2 0v10a1 1 0 0 1-2 0z",fillRule:"evenodd"}));case"letter-spacing":return o().createElement("g",null,o().createElement("path",{d:"M18 19V9a1 1 0 0 1 2 0v10a1 1 0 0 1-2 0zM8 19V9a1 1 0 1 1 2 0v10a1 1 0 0 1-2 0z",fillRule:"evenodd"}));case"line-height-small":return o().createElement("g",null,o().createElement("path",{d:"M19 13H9a1 1 0 0 1 0-2h10a1 1 0 0 1 0 2zm0 4H9a1 1 0 0 1 0-2h10a1 1 0 0 1 0 2z",fillRule:"evenodd"}));case"line-height":return o().createElement("g",null,o().createElement("path",{d:"M19 10H9a1 1 0 1 1 0-2h10a1 1 0 0 1 0 2zm0 10H9a1 1 0 0 1 0-2h10a1 1 0 0 1 0 2z",fillRule:"evenodd"}));case"list":return o().createElement("g",null,o().createElement("path",{d:"M7 10a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm0 5a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm0 5a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm11-10h-7a1 1 0 0 1 0-2h7a1 1 0 0 1 0 2zm2 5h-9a1 1 0 0 1 0-2h9a1 1 0 0 1 0 2zm-2 5h-7a1 1 0 0 1 0-2h7a1 1 0 0 1 0 2z",fillRule:"evenodd"}));case"loading":return o().createElement("g",null,o().createElement("circle",{className:"et-fb-icon__circle et-fb-icon__circle--1",cx:"2",cy:"2",r:"2",transform:"translate(4 12)"}),o().createElement("circle",{className:"et-fb-icon__circle et-fb-icon__circle--2",cx:"2.3",cy:"2.7",r:"2",transform:"rotate(72 4.397 10.865)"}),o().createElement("circle",{className:"et-fb-icon__circle et-fb-icon__circle--3",cx:"2.3",cy:"2.2",r:"2",transform:"rotate(144 10.216 8.724)"}),o().createElement("circle",{className:"et-fb-icon__circle et-fb-icon__circle--4",cx:"2.6",cy:"2",r:"2",transform:"rotate(-144 14.235 7.453)"}),o().createElement("circle",{className:"et-fb-icon__circle et-fb-icon__circle--5",cx:"2.8",cy:"2.1",r:"2",transform:"rotate(-72 20.635 5.838)"}));case"move":return o().createElement("g",null,o().createElement("path",{d:"M20.91,13.78l-1.85-1.85c-0.14-0.14-0.33-0.22-0.53-0.22c-0.2,0-0.39,0.08-0.53,0.22c-0.14,0.14-0.22,0.33-0.22,0.53S17.86,12.86,18,13v0h-2.94v-2.96c0.13,0.11,0.3,0.19,0.48,0.19c0.2,0,0.39-0.08,0.53-0.22c0.14-0.14,0.22-0.33,0.22-0.53s-0.08-0.39-0.22-0.53l-1.85-1.85C14.17,7.03,14.09,7,14,7s-0.16,0.03-0.22,0.09l-1.85,1.85c-0.14,0.14-0.22,0.33-0.22,0.53s0.08,0.39,0.22,0.53c0.14,0.14,0.33,0.22,0.53,0.22S12.86,10.14,13,10h0.06v3H10v0c0.14-0.14,0.22-0.33,0.22-0.53s-0.08-0.39-0.22-0.53c-0.14-0.14-0.33-0.22-0.53-0.22c-0.2,0-0.39,0.08-0.53,0.22L7.1,13.78C7.04,13.84,7,13.92,7,14c0,0.08,0.03,0.16,0.09,0.22l1.85,1.85c0.14,0.14,0.33,0.22,0.53,0.22c0.2,0,0.39-0.08,0.53-0.22c0.14-0.14,0.22-0.33,0.22-0.53c0-0.2-0.08-0.39-0.22-0.53v0h3.06v3H13c-0.14-0.14-0.33-0.22-0.53-0.22s-0.39,0.08-0.53,0.22c-0.14,0.14-0.22,0.33-0.22,0.53c0,0.2,0.08,0.39,0.22,0.53l1.85,1.85C13.84,20.97,13.92,21,14,21s0.16-0.03,0.22-0.09l1.85-1.85c0.14-0.14,0.22-0.33,0.22-0.53c0-0.2-0.08-0.39-0.22-0.53c-0.14-0.14-0.33-0.22-0.53-0.22c-0.18,0-0.34,0.07-0.48,0.19V15H18v0c-0.14,0.14-0.22,0.33-0.22,0.53c0,0.2,0.08,0.39,0.22,0.53c0.14,0.14,0.33,0.22,0.53,0.22c0.2,0,0.39-0.08,0.53-0.22l1.85-1.85C20.97,14.16,21,14.08,21,14C21,13.92,20.97,13.84,20.91,13.78z"}));case"position-move":return o().createElement("g",null,o().createElement("path",{d:"M21,14a.31.31,0,0,1-.09.22l-1.85,1.85a.75.75,0,0,1-1.28-.53A.77.77,0,0,1,18,15h0a1.42,1.42,0,0,0,0-2h0a.77.77,0,0,1-.22-.54.75.75,0,0,1,1.28-.53l1.85,1.85A.31.31,0,0,1,21,14Zm-4.93,4a.75.75,0,0,0-.53-.22.77.77,0,0,0-.48.18L15,18a1.41,1.41,0,0,1-2,0l0,0a.75.75,0,0,0-1.06,0,.73.73,0,0,0,0,1.06l1.84,1.85A.31.31,0,0,0,14,21a.28.28,0,0,0,.22-.09l1.85-1.85a.75.75,0,0,0,0-1.06ZM10,15a1.42,1.42,0,0,1,0-2h0a.78.78,0,0,0,.23-.54.75.75,0,0,0-.22-.53.77.77,0,0,0-.54-.22.75.75,0,0,0-.53.22L7.1,13.78a.29.29,0,0,0,0,.44l1.84,1.85a.75.75,0,0,0,.53.22.77.77,0,0,0,.54-.22.75.75,0,0,0,.22-.53A.78.78,0,0,0,10,15Zm6.07-6.06L14.22,7.09A.28.28,0,0,0,14,7a.31.31,0,0,0-.22.09L11.94,8.94a.73.73,0,0,0,0,1.06A.75.75,0,0,0,13,10l0,0a1.41,1.41,0,0,1,2,0l.05.06a.77.77,0,0,0,.48.18.75.75,0,0,0,.53-1.28Zm0,5.06a2,2,0,1,0-2,2A2,2,0,0,0,16.06,14Z"}));case"position-horizontal":return o().createElement("g",null,o().createElement("path",{d:"M21,14a.31.31,0,0,1-.09.22l-1.85,1.85a.75.75,0,0,1-1.28-.53A.77.77,0,0,1,18,15h0a1.42,1.42,0,0,0,0-2h0a.77.77,0,0,1-.22-.54.75.75,0,0,1,1.28-.53l1.85,1.85A.31.31,0,0,1,21,14ZM10,15a1.42,1.42,0,0,1,0-2h0a.78.78,0,0,0,.23-.54.75.75,0,0,0-.22-.53.77.77,0,0,0-.54-.22.75.75,0,0,0-.53.22L7.1,13.78a.29.29,0,0,0,0,.44l1.84,1.85a.75.75,0,0,0,.53.22.77.77,0,0,0,.54-.22.75.75,0,0,0,.22-.53A.78.78,0,0,0,10,15Zm6.06-1a2,2,0,1,0-2,2A2,2,0,0,0,16.06,14Z"}),o().createElement("path",{style:{opacity:.2},d:"M16.29,18.53a.75.75,0,0,1-.22.53l-1.85,1.85A.28.28,0,0,1,14,21a.31.31,0,0,1-.22-.09l-1.84-1.85a.73.73,0,0,1,0-1.06A.75.75,0,0,1,13,18l0,0a1.41,1.41,0,0,0,2,0l.05-.06a.77.77,0,0,1,.48-.18.75.75,0,0,1,.75.75Zm-.22-9.59L14.22,7.09A.28.28,0,0,0,14,7a.31.31,0,0,0-.22.09L11.94,8.94a.73.73,0,0,0,0,1.06A.75.75,0,0,0,13,10l0,0a1.41,1.41,0,0,1,2,0l.05.06a.77.77,0,0,0,.48.18.75.75,0,0,0,.53-1.28Z"}));case"position-vertical":return o().createElement("g",null,o().createElement("path",{style:{opacity:.2},d:"M21,14a.31.31,0,0,1-.09.22l-1.85,1.85a.75.75,0,0,1-1.28-.53A.77.77,0,0,1,18,15h0a1.42,1.42,0,0,0,0-2h0a.77.77,0,0,1-.22-.54.75.75,0,0,1,1.28-.53l1.85,1.85A.31.31,0,0,1,21,14ZM10,15a1.42,1.42,0,0,1,0-2h0a.78.78,0,0,0,.23-.54.75.75,0,0,0-.22-.53.77.77,0,0,0-.54-.22.75.75,0,0,0-.53.22L7.1,13.78a.29.29,0,0,0,0,.44l1.84,1.85a.75.75,0,0,0,.53.22.77.77,0,0,0,.54-.22.75.75,0,0,0,.22-.53A.78.78,0,0,0,10,15Z"}),o().createElement("path",{d:"M14.06,16a2,2,0,1,1,2-2A2,2,0,0,1,14.06,16Zm2,2a.75.75,0,0,0-.53-.22.77.77,0,0,0-.48.18L15,18a1.41,1.41,0,0,1-2,0l0,0a.75.75,0,0,0-1.06,0,.73.73,0,0,0,0,1.06l1.84,1.85A.31.31,0,0,0,14,21a.28.28,0,0,0,.22-.09l1.85-1.85a.75.75,0,0,0,0-1.06Zm0-9.06L14.22,7.09A.28.28,0,0,0,14,7a.31.31,0,0,0-.22.09L11.94,8.94a.73.73,0,0,0,0,1.06A.75.75,0,0,0,13,10l0,0a1.41,1.41,0,0,1,2,0l.05.06a.77.77,0,0,0,.48.18.75.75,0,0,0,.53-1.28Z"}));case"numbered-list":return o().createElement("g",null,o().createElement("path",{d:"M9.08 20H7.5a.5.5 0 1 1 0-1h.78l-.14-.146a.492.492 0 0 1 0-.707L8.28 18H7.5a.5.5 0 1 1 0-1h1.58a.653.653 0 0 1 .61.412.672.672 0 0 1-.14.726l-.36.362.36.362a.672.672 0 0 1 .14.726.653.653 0 0 1-.61.412zm8.91-10h-5a1 1 0 1 1 0-2h5a1 1 0 0 1 0 2zm3 5h-8a1 1 0 1 1 0-2h8a1 1 0 0 1 0 2zm-3 5h-5a1 1 0 1 1 0-2h5a1 1 0 0 1 0 2zm-8.51-5H7.5a.482.482 0 0 1-.46-.309.5.5 0 0 1 .1-.544L8.28 13H7.5a.5.5 0 1 1 0-1h1.59a.661.661 0 0 1 .47 1.126L8.69 14h.79a.5.5 0 0 1 0 1zm-.99-4a.5.5 0 0 1-.5-.5V9a.5.5 0 1 1 0-1h.5a.5.5 0 0 1 .49.5v2a.5.5 0 0 1-.49.5z",fillRule:"evenodd"}));case"paint":return o().createElement("g",null,o().createElement("path",{d:"M14.489 8.364a.9.9 0 0 0-.641-.26c-.281.003-.55.117-.746.318l-1.611 1.615-1.8-1.8a1 1 0 0 0-1.408 1.41l1.8 1.8-2.767 2.776a.988.988 0 0 0-.057 1.39l4.56 4.573a.9.9 0 0 0 .64.26 1.06 1.06 0 0 0 .747-.317l6.052-6.068a.624.624 0 0 0 .036-.875l-4.805-4.822zm1.07 6.583a4.34 4.34 0 0 1-6.15 0l2.082-2.087 1.017 1.019a1 1 0 1 0 1.408-1.411l-1.017-1.02.925-.928 3.075 3.084-1.34 1.343zm2.39 4.388a1.5 1.5 0 1 0 2.986 0c0-1.278-1.493-4.4-1.493-4.4s-1.493 3.067-1.493 4.4z",fillRule:"evenodd"}));case"phone":return o().createElement("g",null,o().createElement("path",{d:"M17 7h-6c-0.5 0-1 0.5-1 1v12c0 0.5 0.5 1 1 1h6c0.5 0 1-0.5 1-1V8C18 7.5 17.5 7 17 7zM15 20h-2v-1h2V20zM16 18h-4V9h4V18z",fillRule:"evenodd"}));case"preview-link":return o().createElement("g",null,o().createElement("path",{d:"M17.586 9l-4.536 4.535a1 1 0 1 0 1.414 1.415L19 10.415V12a1 1 0 0 0 2 0V8a.997.997 0 0 0-1-1h-4a1 1 0 0 0 0 2h1.586zm3.121 11.707A.997.997 0 0 1 20 21H8a.997.997 0 0 1-1-1V8a.997.997 0 0 1 1-1h4a1 1 0 0 1 0 2H9v10h10v-3a1 1 0 0 1 2 0v4a.997.997 0 0 1-.293.707z"}));case"redo":return o().createElement("g",null,o().createElement("path",{d:"M20.986 7l-1.78 1.78c-1.255-.967-2.835-1.501-4.575-1.527-3.845-.057-7.195 2.624-7.59 6.45C6.577 18.2 10.092 22 14.493 22c1.94 0 3.701-.736 5.031-1.945a.674.674 0 0 0 .032-.979l-1.184-1.175a.655.655 0 0 0-.901-.026c-.791.72-1.83 1.182-2.978 1.182-2.671 0-4.798-2.258-4.46-5.008.273-2.22 2.299-3.831 4.534-3.8a4.51 4.51 0 0 1 2.44.734l-2.014 2.014c0 .552.447.999.999.999h4.994a.998.998 0 0 0 1-1V8a1 1 0 0 0-1-1z",fillRule:"evenodd"}));case"reset":return o().createElement("g",null,o().createElement("path",{d:"M9.596 8.95a6.811 6.811 0 0 1 9.384-.15 6.661 6.661 0 0 1 .08 9.477 6.421 6.421 0 0 1-4.62 1.931c-.21 0-.42 0-.63-.017A6.084 6.084 0 0 1 9 17.151l5.45.005a3.274 3.274 0 0 0 3.26-3.3 3.418 3.418 0 0 0-3.41-3.314c-.83 0-1.626.321-2.224.89l1.764 1.755a.556.556 0 0 1-.4.948H7.56A.557.557 0 0 1 7 13.58V7.695a.557.557 0 0 1 .95-.393L9.596 8.95z",fillRule:"evenodd"}));case"resize":return o().createElement("g",null,o().createElement("path",{d:"M11.715 12.858l-2.292-2.291a1.885 1.885 0 0 1-1.381 1.524A1.041 1.041 0 0 1 7 11.049V7.431C7 7.193 7.193 7 7.431 7h3.618c.575 0 1.041.467 1.042 1.042a1.884 1.884 0 0 1-1.523 1.38l2.292 2.291 5.728 5.728a1.886 1.886 0 0 1 1.37-1.532c.575 0 1.041.467 1.042 1.042v3.618a.431.431 0 0 1-.431.431h-3.618a1.043 1.043 0 0 1-1.042-1.042 1.887 1.887 0 0 1 1.533-1.371l-5.728-5.728z",fillRule:"evenodd"}));case"save":return o().createElement("g",null,o().createElement("path",{d:"M18.95 9.051a1 1 0 1 0-1.414 1.414 5 5 0 1 1-7.07 0A1 1 0 0 0 9.05 9.051a7 7 0 1 0 9.9.001v-.001zm-5.378 8.235a.5.5 0 0 0 .857 0l2.117-3.528a.5.5 0 0 0-.429-.758H15V8a1 1 0 0 0-2 0v5h-1.117a.5.5 0 0 0-.428.758l2.117 3.528z",fillRule:"evenodd"}));case"setting":return o().createElement("g",null,o().createElement("path",{d:"M20.426 13.088l-1.383-.362a.874.874 0 0 1-.589-.514l-.043-.107a.871.871 0 0 1 .053-.779l.721-1.234a.766.766 0 0 0-.116-.917 6.682 6.682 0 0 0-.252-.253.768.768 0 0 0-.917-.116l-1.234.722a.877.877 0 0 1-.779.053l-.107-.044a.87.87 0 0 1-.513-.587l-.362-1.383a.767.767 0 0 0-.73-.567h-.358a.768.768 0 0 0-.73.567l-.362 1.383a.878.878 0 0 1-.513.589l-.107.044a.875.875 0 0 1-.778-.054l-1.234-.722a.769.769 0 0 0-.918.117c-.086.082-.17.166-.253.253a.766.766 0 0 0-.115.916l.721 1.234a.87.87 0 0 1 .053.779l-.043.106a.874.874 0 0 1-.589.514l-1.382.362a.766.766 0 0 0-.567.731v.357a.766.766 0 0 0 .567.731l1.383.362c.266.07.483.26.588.513l.043.107a.87.87 0 0 1-.053.779l-.721 1.233a.767.767 0 0 0 .115.917c.083.087.167.171.253.253a.77.77 0 0 0 .918.116l1.234-.721a.87.87 0 0 1 .779-.054l.107.044a.878.878 0 0 1 .513.589l.362 1.383a.77.77 0 0 0 .731.567h.356a.766.766 0 0 0 .73-.567l.362-1.383a.878.878 0 0 1 .515-.589l.107-.044a.875.875 0 0 1 .778.054l1.234.721c.297.17.672.123.917-.117.087-.082.171-.166.253-.253a.766.766 0 0 0 .116-.917l-.721-1.234a.874.874 0 0 1-.054-.779l.044-.107a.88.88 0 0 1 .589-.513l1.383-.362a.77.77 0 0 0 .567-.731v-.357a.772.772 0 0 0-.569-.724v-.005zm-6.43 3.9a2.986 2.986 0 1 1 2.985-2.986 3 3 0 0 1-2.985 2.987v-.001z",fillRule:"evenodd"}));case"sidebar":return o().createElement("g",null,o().createElement("path",{d:"M19 8L9 8C8.5 8 8 8.5 8 9L8 19C8 19.5 8.5 20 9 20L19 20C19.5 20 20 19.5 20 19L20 9C20 8.5 19.5 8 19 8L19 8ZM10 10L12 10 12 12 10 12 10 10 10 10ZM10 13L12 13 12 15 10 15 10 13 10 13ZM10 18L10 16 12 16 12 18 10 18 10 18ZM18 18L14 18 14 10 18 10 18 18 18 18Z",fillRule:"evenodd"}));case"tablet":return o().createElement("g",null,o().createElement("path",{d:"M19 7H9C8.5 7 8 7.5 8 8v12c0 0.5 0.5 1 1 1h10c0.5 0 1-0.5 1-1V8C20 7.5 19.5 7 19 7zM15 20h-2v-1h2V20zM18 18h-8V9h8V18z",fillRule:"evenodd"}));case"text-bold":return o().createElement("g",null,o().createElement("path",{d:"M17.337 13.535c.43-.591.662-1.304.663-2.035A3.51 3.51 0 0 0 14.5 8h-3c-.114 0-.221.023-.333.034A.933.933 0 0 0 11 8a.969.969 0 0 0-.53.174A.982.982 0 0 0 10 9v10c.005.338.182.65.47.827.156.108.34.168.53.173a.933.933 0 0 0 .167-.034c.112.011.219.034.333.034h4a3.51 3.51 0 0 0 3.5-3.5 3.494 3.494 0 0 0-1.667-2.965h.004zM16 11.5a1.5 1.5 0 0 1-1.5 1.5H12v-3h2.5a1.5 1.5 0 0 1 1.5 1.5zm1 5a1.5 1.5 0 0 1-1.5 1.5H12v-3h3.5a1.5 1.5 0 0 1 1.5 1.5z",fillRule:"evenodd"}));case"text-center":return o().createElement("g",null,o().createElement("path",{d:"M18 10h-8a1 1 0 1 1 0-2h8a1 1 0 0 1 0 2zm2 5H8a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2zm-2 5h-8a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2z",fillRule:"evenodd"}));case"text-italic":return o().createElement("g",null,o().createElement("path",{d:"M17 8h-5c-.6 0-1 .4-1 1s.4 1 1 1h1.3l-2.1 8H10c-.6 0-1 .4-1 1s.4 1 1 1h5c.6 0 1-.4 1-1s-.4-1-1-1h-1.7l2.1-8H17c.6 0 1-.4 1-1s-.4-1-1-1z",fillRule:"evenodd"}));case"text-justify":return o().createElement("g",null,o().createElement("path",{d:"M20 20H8a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2zm0-10H8a1 1 0 1 1 0-2h12a1 1 0 0 1 0 2zM8 15a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2H8z",fillRule:"evenodd"}));case"text-large":return o().createElement("g",null,o().createElement("path",{d:"M15.38 8.96a1.006 1.006 0 0 0-.65-.9.942.942 0 0 0-.28-.046c-.03 0-.06-.013-.09-.014-.03 0-.06.011-.09.014a.942.942 0 0 0-.28.045.991.991 0 0 0-.65.9l-4.28 9.622c-.187.52.075 1.093.59 1.291a.992.992 0 0 0 1.28-.592l1.19-2.272h4.47l1.2 2.272a.994.994 0 1 0 1.86-.7l-4.27-9.62zm-2.52 6.042l1.5-3.039 1.5 3.04h-3z",fillRule:"evenodd"}));case"text-left":return o().createElement("g",null,o().createElement("path",{d:"M16 20H8a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2zm0-10H8a1 1 0 1 1 0-2h8a1 1 0 0 1 0 2zm4 5H8a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z",fillRule:"evenodd"}));case"text-link":return o().createElement("g",null,o().createElement("path",{d:"M20.726 7.274a.935.935 0 0 0-1.322 0l-1.849 1.85-.67-.67a3.06 3.06 0 0 0-4.226 0l-4.225 4.225a2.998 2.998 0 0 0 0 4.227l.669.67-1.85 1.85a.935.935 0 0 0 1.322 1.321l1.85-1.85.668.67a2.99 2.99 0 0 0 4.228 0l4.224-4.225a2.998 2.998 0 0 0 0-4.227l-.67-.67 1.85-1.85a.935.935 0 0 0 .001-1.321zm-2.498 5.162a1.123 1.123 0 0 1 0 1.584l-4.223 4.225a1.146 1.146 0 0 1-1.583 0l-.669-.67 1.581-1.582a.937.937 0 1 0-1.328-1.321l-1.582 1.581-.669-.669a1.122 1.122 0 0 1 0-1.584l4.225-4.224a1.12 1.12 0 0 1 1.583 0l.67.67-1.582 1.58a.935.935 0 0 0 1.322 1.322l1.581-1.582.674.67z",fillRule:"evenodd"}));case"text-quote":return o().createElement("g",null,o().createElement("path",{d:"M9.437 9.049a2 2 0 1 0 1.186 3.116c.264.574.394 1.2.381 1.833 0 2.116-1.118 3.998-1.999 3.998a1 1 0 1 0 0 2c2.392 0 3.999-3.1 3.999-5.998 0-2.709-1.48-4.698-3.567-4.949zm7.997 0a2 2 0 1 0 1.186 3.116c.263.574.393 1.2.38 1.833 0 2.116-1.117 3.998-1.998 3.998a1 1 0 1 0 0 2c2.392 0 3.998-3.1 3.998-5.998 0-2.709-1.48-4.698-3.566-4.949z",fillRule:"evenodd"}));case"text-right":return o().createElement("g",null,o().createElement("path",{d:"M20 15H8a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2zm0-5h-8a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2zm0 10h-8a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2z",fillRule:"evenodd"}));case"text-small":return o().createElement("g",null,o().createElement("path",{d:"M14.168 10.639a.672.672 0 0 0-.424-.6.6.6 0 0 0-.186-.03c-.02 0-.038-.009-.057-.009a.521.521 0 0 0-.057.009.6.6 0 0 0-.186.03.672.672 0 0 0-.424.6l-2.792 6.448a.681.681 0 0 0 .384.865.645.645 0 0 0 .836-.4L12 15.997h3l.738 1.558a.646.646 0 0 0 .837.4.68.68 0 0 0 .383-.865l-2.791-6.451zm-1.645 4.315l.978-2.3.978 2.3h-1.956z",fillRule:"evenodd"}));case"text-underline":return o().createElement("g",null,o().createElement("path",{d:"M8 21h12c.6 0 1 .4 1 1s-.4 1-1 1H8c-.6 0-1-.4-1-1s.4-1 1-1zM10 8c.6 0 1 .4 1 1v6c0 1.7 1.3 3 3 3s3-1.3 3-3V9c0-.6.4-1 1-1s1 .4 1 1v6c0 2.8-2.2 5-5 5s-5-2.2-5-5V9c0-.6.4-1 1-1z",fillRule:"evenodd"}));case"text-underline-double":return o().createElement("g",null,o().createElement("path",{d:"M8.5 23h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1 0-1zM8.5 21h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1 0-1zM10 8a1 1 0 0 1 1 1v6a3 3 0 1 0 6 0V9a1 1 0 0 1 2 0v6a5 5 0 0 1-10 0V9a1 1 0 0 1 1-1z",fillRule:"evenodd"}));case"text-strikethrough":return o().createElement("g",null,o().createElement("path",{d:"M14.8 13c-.1 0-.2-.1-.3-.1C11.6 11.7 11 10 12.1 9c.9-.9 3.4-.4 3.7.5.2.5.7.8 1.3.6.5-.2.8-.7.6-1.3-.8-2.4-5.1-3.3-7-1.3-1.6 1.6-1.4 3.8.3 5.5H7c-.6 0-1 .4-1 1s.4 1 1 1h7.3c2.3 1.1 2.7 2.5 1.7 3.7-1.1 1.3-3.4 1.2-4.7-.8-.3-.5-.9-.6-1.4-.3-.5.3-.6.9-.3 1.4 2 3.2 5.9 3.3 7.9 1 1.3-1.5 1.3-3.4 0-5H21c.6 0 1-.4 1-1s-.4-1-1-1h-6.2z",fillRule:"evenodd"}));case"text-smallcaps":return o().createElement("g",null,o().createElement("path",{d:"M11 10h2c.6 0 1-.4 1-1s-.4-1-1-1H7c-.6 0-1 .4-1 1s.4 1 1 1h2v9c0 .6.4 1 1 1s1-.4 1-1v-9zm8 4v5c0 .6-.4 1-1 1s-1-.4-1-1v-5h-2c-.6 0-1-.4-1-1s.4-1 1-1h6c.6 0 1 .4 1 1s-.4 1-1 1h-2z",fillRule:"evenodd"}));case"text-uppercase":return o().createElement("g",null,o().createElement("path",{d:"M10 10h2c.6 0 1-.4 1-1s-.4-1-1-1H6c-.6 0-1 .4-1 1s.4 1 1 1h2v9c0 .6.4 1 1 1s1-.4 1-1v-9zm10 0v9c0 .6-.4 1-1 1s-1-.4-1-1v-9h-2c-.6 0-1-.4-1-1s.4-1 1-1h6c.6 0 1 .4 1 1s-.4 1-1 1h-2z",fillRule:"evenodd"}));case"text-h1":return o().createElement("g",null,o().createElement("path",{d:"M21 19.934h-1.32v-3.6l.01-.591.02-.645c-.146.15-.3.294-.46.428l-.71.574-.64-.79 2.01-1.594H21v6.218zM13 9v4H8V9a1 1 0 0 0-2 0v10a1 1 0 0 0 2 0v-4h5v4a1 1 0 0 0 2 0V9a1 1 0 0 0-2 0z",fillRule:"evenodd"}));case"text-h2":return o().createElement("g",null,o().createElement("path",{d:"M21.99 19.934h-4.36v-.914l1.57-1.577c.46-.474.76-.8.91-.985.123-.154.224-.325.3-.508.063-.154.097-.318.1-.484a.702.702 0 0 0-.21-.557.797.797 0 0 0-.55-.183c-.246 0-.49.057-.71.166a3.574 3.574 0 0 0-.71.471l-.72-.845a4.47 4.47 0 0 1 .77-.553c.209-.11.43-.194.66-.249.262-.06.53-.09.8-.087.355-.008.707.065 1.03.213.285.13.527.339.7.6.165.262.252.566.25.876.002.275-.049.549-.15.805-.122.277-.28.536-.47.772-.35.398-.725.774-1.12 1.127l-.81.752v.059h2.72v1.106-.005zM13 9v4H8V9a1 1 0 0 0-2 0v10a1 1 0 0 0 2 0v-4h5v4a1 1 0 0 0 2 0V9a1 1 0 0 0-2 0z",fillRule:"evenodd"}));case"text-h3":return o().createElement("g",null,o().createElement("path",{d:"M21.65 15.108c.01.364-.12.718-.36.991-.26.29-.608.487-.99.561v.026a1.97 1.97 0 0 1 1.14.456c.265.256.407.613.39.981.03.546-.214 1.07-.65 1.4a3.037 3.037 0 0 1-1.87.5 4.587 4.587 0 0 1-1.8-.336v-1.118c.256.127.524.228.8.3.28.075.57.114.86.115.338.025.676-.052.97-.221a.802.802 0 0 0 .31-.709.642.642 0 0 0-.36-.622 2.674 2.674 0 0 0-1.14-.183h-.48v-1.007h.49c.363.023.727-.042 1.06-.189a.686.686 0 0 0 .33-.648.715.715 0 0 0-.89-.706c-.21 0-.42.035-.62.1-.25.087-.49.206-.71.353l-.61-.906a3.42 3.42 0 0 1 2.04-.612 2.65 2.65 0 0 1 1.53.392c.36.24.572.649.56 1.082zM13 9v4H8V9a1 1 0 0 0-2 0v10a1 1 0 0 0 2 0v-4h5v4a1 1 0 0 0 2 0V9a1 1 0 0 0-2 0z",fillRule:"evenodd"}));case"text-h4":return o().createElement("g",null,o().createElement("path",{d:"M21.25 17.623v-3.907h-1.22l-2.74 4.013v.914h2.67v1.288h1.29v-1.288H22v-1.02h-.75zm-1.27-1.819c-.01.333-.02.589-.02.764v1.055h-1.5l1.14-1.722c.144-.217.271-.445.38-.681h.03c0 .055-.02.251-.03.584zM13 9v4H8V9a1 1 0 0 0-2 0v10a1 1 0 0 0 2 0v-4h5v4a1 1 0 0 0 2 0V9a1 1 0 0 0-2 0z",fillRule:"evenodd"}));case"text-h5":return o().createElement("g",null,o().createElement("path",{d:"M20.259 15.73c.621 0 1.115.174 1.483.523.368.349.552.826.552 1.433 0 .718-.221 1.27-.664 1.657-.442.387-1.075.58-1.898.58-.715 0-1.292-.116-1.731-.347v-1.173c.231.123.501.223.809.301.308.078.599.117.875.117.829 0 1.244-.34 1.244-1.02 0-.647-.429-.971-1.288-.971-.155 0-.327.015-.514.046-.188.031-.34.064-.457.099l-.541-.29.242-3.274h3.485v1.151H19.56l-.119 1.261.154-.031c.179-.041.4-.062.664-.062z",fillRule:"evenodd"}),o().createElement("path",{d:"M13 9v4H8V9a1 1 0 0 0-2 0v10a1 1 0 0 0 2 0v-4h5v4a1 1 0 0 0 2 0V9a1 1 0 0 0-2 0z",fillRule:"evenodd"}));case"text-h6":return o().createElement("g",null,o().createElement("path",{d:"M22.047 16.275c-.325-.36-.775-.541-1.349-.541-.639 0-1.103.249-1.393.747h-.057c.026-.507.113-.898.259-1.173s.367-.483.661-.624.675-.211 1.14-.211c.255 0 .513.029.773.088v-1.085a4.374 4.374 0 0 0-.861-.066c-1.072 0-1.877.311-2.415.932S18 15.909 18 17.18c0 .595.096 1.103.288 1.525s.464.743.817.962.767.33 1.241.33c.686 0 1.222-.2 1.608-.6s.58-.943.58-1.628c.001-.635-.161-1.133-.487-1.494zm-1.059 2.345c-.155.195-.378.292-.668.292-.281 0-.513-.12-.697-.36s-.275-.535-.275-.883c0-.237.097-.445.292-.624s.43-.268.705-.268c.293 0 .512.09.657.27s.218.427.218.74c.001.36-.076.638-.232.833z",fillRule:"evenodd"}),o().createElement("path",{d:"M13 9v4H8V9a1 1 0 0 0-2 0v10a1 1 0 0 0 2 0v-4h5v4a1 1 0 0 0 2 0V9a1 1 0 0 0-2 0z",fillRule:"evenodd"}));case"text":return o().createElement("g",null,o().createElement("path",{d:"M9.4 8h-.3c-.4.2-.5.5-.6 1l-4.4 9.7c-.2.5.1 1.1.6 1.3.5.2 1.1-.1 1.3-.6L7 17h5l1 2.3c.2.5.8.8 1.3.6.5-.2.8-.8.6-1.3L10.5 9c-.1-.5-.2-.8-.6-.9-.1-.1-.2-.1-.3-.1h-.2zM8 15l1.5-3 1.5 3H8zm15.5 0v-1c0-1.7-1.3-3-3-3h-3c-.5 0-1.2.4-1.2 1s.6 1 1.2 1h3c.6 0 1 .4 1 1h-3c-1.6 0-3 1.3-3 3 0 1.6 1.3 3 3 3h2c.8 0 1.4-.3 2-.9.1.5.5.9 1 .9s1-.5 1-1-.4-1-1-1v-3zm-2 2c0 .6-.4 1-1 1h-2c-.6 0-1-.5-1-1s.5-1 1-1h3v1z",fillRule:"evenodd"}));case"undent":return o().createElement("g",null,o().createElement("path",{d:"M10.24 16.022l-2.56-1.6a.5.5 0 0 1 0-.848l2.56-1.6a.5.5 0 0 1 .76.424v3.2a.5.5 0 0 1-.76.424zM20 10H8a1 1 0 1 1 0-2h12a1 1 0 0 1 0 2zm0 5h-6a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2zm0 5H8a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z",fillRule:"evenodd"}));case"undo":case"rotate-90-degree":return o().createElement("g",null,o().createElement("path",{d:"M14.355 7.253c-1.74.026-3.321.559-4.576 1.528L7.999 7A1 1 0 0 0 7 8v4.998c0 .552.447.999.999.999h4.995a1 1 0 0 0 .999-.999l-2.014-2.016a4.51 4.51 0 0 1 2.44-.733c2.235-.032 4.261 1.58 4.534 3.799.338 2.751-1.789 5.009-4.46 5.009-1.149 0-2.186-.462-2.978-1.182a.654.654 0 0 0-.902.026l-1.184 1.175a.674.674 0 0 0 .032.979A7.443 7.443 0 0 0 14.493 22c4.401 0 7.915-3.8 7.452-8.297-.395-3.826-3.745-6.507-7.59-6.45z",fillRule:"evenodd"}));case"zoom-in":return o().createElement("g",null,o().createElement("path",{d:"M15.508 7a5.511 5.511 0 0 0-5.505 5.5 5.426 5.426 0 0 0 .847 2.92l-3.737 2.67c-.389.39.32 1.74.708 2.13.39.39 1.764 1.06 2.153.67l2.646-3.71A5.5 5.5 0 1 0 15.508 7zm0 9.01a3.505 3.505 0 1 1 3.5-3.51 3.514 3.514 0 0 1-3.5 3.51zm.5-5.01h-1v1h-1v1h1v1h1v-1h1v-1h-1v-1z",fillRule:"evenodd"}));case"zoom-out":return o().createElement("g",null,o().createElement("path",{d:"M15.508 7a5.5 5.5 0 0 0-4.658 8.43L7.113 18.1c-.389.39.32 1.73.708 2.12.39.39 1.764 1.07 2.153.68l2.646-3.71A5.5 5.5 0 1 0 15.508 7zm0 9.01a3.505 3.505 0 1 1-.01-7.01 3.505 3.505 0 0 1 .01 7.01zm-1.5-3h3v-1h-3v1z",fillRule:"evenodd"}));case"lock":return o().createElement("g",null,o().createElement("path",{d:"M20 12C19.9 11.7 19.3 11 19 11L18 11C18 8.1 16.2 6 14 6 11.8 6 10 8.1 10 11L9 11C8.6 11 8.1 11.6 8 12L8 13 8 19 8 20C8.1 20.3 8.7 20.9 9 21L19 21C19.4 21 19.9 20.4 20 20L20 19 20 14 20 12 20 12ZM14 8C15.1 8 16 9.4 16 11.1L12 11.1C12 9.4 12.9 8 14 8L14 8ZM18 19L10 19 10 13 18 13 18 19 18 19Z",fillRule:"evenodd"}),o().createElement("path",{d:"M14 18C14.6 18 15 17.6 15 17L15 15C15 14.4 14.6 14 14 14 13.4 14 13 14.4 13 15L13 15 13 17C13 17.6 13.4 18 14 18L14 18Z",fillRule:"evenodd"}));case"previous":return o().createElement("g",null,o().createElement("path",{d:"M15.2 14L18.7 10C19.1 9.6 19.1 9 18.7 8.6 18.3 8.2 17.7 8.2 17.3 8.6L13.3 13.1C13.1 13.3 13 13.7 13 14 12.9 14.3 13 14.6 13.3 14.9L17.3 19.4C17.7 19.8 18.3 19.8 18.7 19.4 19.1 19 19.1 18.4 18.7 18L15.2 14 15.2 14Z",fillRule:"evenodd"}));case"next":return o().createElement("g",null,o().createElement("path",{d:"M15.8 14L12.3 18C11.9 18.4 11.9 19 12.3 19.4 12.7 19.8 13.3 19.8 13.7 19.4L17.7 14.9C17.9 14.7 18 14.3 18 14 18.1 13.7 18 13.4 17.7 13.1L13.7 8.6C13.3 8.2 12.7 8.2 12.3 8.6 11.9 9 11.9 9.6 12.3 10L15.8 14 15.8 14Z",fillRule:"evenodd"}));case"sync":return o().createElement("g",null,o().createElement("path",{d:"M19.1 11.7L19.1 11.7c-0.3 0.3-0.4 0.6-0.3 0.9 0.1 0.4 0.2 0.9 0.2 1.3 0 2.8-2.2 5-5 5v2c3.9 0 7-3.1 7-7 0-0.6-0.1-1.3-0.2-1.8C20.6 11.4 19.6 11.2 19.1 11.7z",fillRule:"evenodd"}),o().createElement("path",{d:"M14 9V7c-3.9 0-7 3.1-7 7 0 0.6 0.1 1.2 0.2 1.8 0.2 0.7 1.1 1 1.7 0.4l0 0c0.2-0.2 0.4-0.6 0.3-0.9C9.1 14.9 9 14.5 9 14 9 11.2 11.2 9 14 9z",fillRule:"evenodd"}),o().createElement("path",{d:"M18.2 8.6c0.4-0.3 0.4-0.9 0-1.2l-3.4-2.8C14.4 4.3 14 4.4 14 5v6c0 0.6 0.4 0.7 0.8 0.4L18.2 8.6z",fillRule:"evenodd"}),o().createElement("path",{d:"M9.8 19.4c-0.4 0.3-0.4 0.9 0 1.2l3.4 2.8c0.4 0.3 0.8 0.2 0.8-0.4v-6c0-0.5-0.4-0.7-0.8-0.4L9.8 19.4z",fillRule:"evenodd"}));case"portability":return o().createElement("g",null,o().createElement("path",{d:"M9.6 20.8c0.2 0.3 0.7 0.3 0.9 0l2.1-3.5c0.2-0.3 0-0.8-0.4-0.8H11V8c0-0.6-0.4-1-1-1C9.4 7 9 7.4 9 8v8.5H7.9c-0.4 0-0.6 0.4-0.4 0.8L9.6 20.8z",fillRule:"evenodd"}),o().createElement("path",{d:"M18.4 7.2c-0.2-0.3-0.7-0.3-0.9 0l-2.1 3.5c-0.2 0.3 0 0.8 0.4 0.8H17V20c0 0.6 0.4 1 1 1 0.6 0 1-0.4 1-1v-8.5h1.1c0.4 0 0.6-0.4 0.4-0.8L18.4 7.2z",fillRule:"evenodd"}));case"background-color":return o().createElement("g",null,o().createElement("path",{d:"M19.4 14.6c0 0-1.5 3.1-1.5 4.4 0 0.9 0.7 1.6 1.5 1.6 0.8 0 1.5-0.7 1.5-1.6C20.9 17.6 19.4 14.6 19.4 14.6zM19.3 12.8l-4.8-4.8c-0.2-0.2-0.4-0.3-0.6-0.3 -0.3 0-0.5 0.1-0.7 0.3l-1.6 1.6L9.8 7.8c-0.4-0.4-1-0.4-1.4 0C8 8.1 8 8.8 8.4 9.1l1.8 1.8 -2.8 2.8c-0.4 0.4-0.4 1-0.1 1.4l4.6 4.6c0.2 0.2 0.4 0.3 0.6 0.3 0.3 0 0.5-0.1 0.7-0.3l6.1-6.1C19.5 13.4 19.5 13.1 19.3 12.8zM15.6 14.6c-1.7 1.7-4.5 1.7-6.2 0l2.1-2.1 1 1c0.4 0.4 1 0.4 1.4 0 0.4-0.4 0.4-1 0-1.4l-1-1 0.9-0.9 3.1 3.1L15.6 14.6z",fillRule:"evenodd"}));case"background-image":return o().createElement("g",null,o().createElement("path",{d:"M22.9 7.5c-0.1-0.3-0.5-0.6-0.8-0.6H5.9c-0.4 0-0.7 0.2-0.8 0.6C5.1 7.6 5 7.7 5 7.9v12.2c0 0.1 0 0.2 0.1 0.4 0.1 0.3 0.5 0.5 0.8 0.6h16.2c0.4 0 0.7-0.2 0.8-0.6 0-0.1 0.1-0.2 0.1-0.4V7.9C23 7.7 23 7.6 22.9 7.5zM21 18.9H7v-10h14V18.9z",fillRule:"evenodd"}),o().createElement("circle",{cx:"10.5",cy:"12.4",r:"1.5"}),o().createElement("polygon",{points:"15 16.9 13 13.9 11 16.9 "}),o().createElement("polygon",{points:"17 10.9 15 16.9 19 16.9 "}));case"background-video":return o().createElement("g",null,o().createElement("path",{d:"M22.9 7.5c-0.1-0.3-0.5-0.6-0.8-0.6H5.9c-0.4 0-0.7 0.2-0.8 0.6C5.1 7.6 5 7.7 5 7.9v12.2c0 0.1 0 0.2 0.1 0.4 0.1 0.3 0.5 0.5 0.8 0.6h16.2c0.4 0 0.7-0.2 0.8-0.6 0-0.1 0.1-0.2 0.1-0.4V7.9C23 7.7 23 7.6 22.9 7.5zM21 18.9H7v-10h14V18.9z",fillRule:"evenodd"}),o().createElement("polygon",{points:"13 10.9 13 16.9 17 13.9 "}));case"background-gradient":return o().createElement("g",null,o().createElement("path",{d:"M22.9 7.5c-0.1-0.3-0.5-0.6-0.8-0.6H5.9c-0.4 0-0.7 0.2-0.8 0.6C5.1 7.6 5 7.7 5 7.9v12.2c0 0.1 0 0.2 0.1 0.4 0.1 0.3 0.5 0.5 0.8 0.6h16.2c0.4 0 0.7-0.2 0.8-0.6 0-0.1 0.1-0.2 0.1-0.4V7.9C23 7.7 23 7.6 22.9 7.5zM21 18.9L7 8.9h14V18.9z",fillRule:"evenodd"}));case"background-pattern":return o().createElement("g",null,o().createElement("path",{d:"M22,7H6A1,1,0,0,0,5,8V20a1,1,0,0,0,1,1H22a1,1,0,0,0,1-1V8A1,1,0,0,0,22,7ZM19.71,19l-2-2L20,14.71l1,1v2.58l-.71.71Zm-6,0-2-2L14,14.71,16.29,17l-2,2Zm-6,0L7,18.29V15.71l1-1L10.29,17l-2,2ZM7,9.71,7.71,9h.58l2,2L8,13.29l-1-1ZM8.71,14,11,11.71,13.29,14,11,16.29Zm5.58-5,2,2L14,13.29,11.71,11l2-2Zm.42,5L17,11.71,19.29,14,17,16.29Zm5.58-5,.71.71v2.58l-1,1L17.71,11l2-2ZM21,14.29,20.71,14l.29-.29ZM18.29,9,17,10.29,15.71,9Zm-6,0L11,10.29,9.71,9ZM7,13.71l.29.29L7,14.29ZM9.71,19,11,17.71,12.29,19Zm6,0L17,17.71,18.29,19Z"}));case"background-mask":return o().createElement("g",null,o().createElement("path",{d:"M22,7H6A1,1,0,0,0,5,8V20a1,1,0,0,0,1,1H22a1,1,0,0,0,1-1V8A1,1,0,0,0,22,7ZM21,19H7V16.77A8.76,8.76,0,0,0,9,17a9,9,0,0,0,8.94-8H21Z"}));case"swap":return o().createElement("g",null,o().createElement("path",{d:"M19 12h-3V9c0-0.5-0.5-1-1-1H8C7.5 8 7 8.5 7 9v7c0 0.5 0.5 1 1 1h3v3c0 0.5 0.5 1 1 1h7c0.5 0 1-0.5 1-1v-7C20 12.5 19.5 12 19 12zM18 19h-5v-2h2c0.5 0 1-0.5 1-1v-2h2V19z",fillRule:"evenodd"}));case"none":return o().createElement("g",null,o().createElement("path",{d:"M14 24c5.5 0 10-4.5 10-10S19.5 4 14 4 4 8.5 4 14s4.5 10 10 10zm0-17.5c4.1 0 7.5 3.4 7.5 7.5 0 1.5-.5 2.9-1.2 4.1L9.9 7.7c1.2-.7 2.6-1.2 4.1-1.2zM7.7 9.9l10.4 10.4c-1.2.8-2.6 1.2-4.1 1.2-4.1 0-7.5-3.4-7.5-7.5 0-1.5.5-2.9 1.2-4.1z"}));case"animation-bounce":return o().createElement("g",{fillRule:"evenodd"},o().createElement("circle",{cx:"21.5",cy:"8.5",r:"3.5"}),o().createElement("circle",{cx:"16",cy:"12",r:"1.7"}),o().createElement("circle",{cx:"13",cy:"15",r:"1.2"}),o().createElement("circle",{cx:"11",cy:"18",r:"1"}),o().createElement("circle",{cx:"9",cy:"22",r:"1"}),o().createElement("circle",{cx:"7",cy:"19",r:"1"}),o().createElement("circle",{cx:"4",cy:"17",r:"1"}));case"animation-fade":return o().createElement("g",{fillRule:"evenodd"},o().createElement("circle",{cx:"8.5",cy:"19.5",r:"1.5"}),o().createElement("circle",{cx:"8.5",cy:"14.5",r:"1.5"}),o().createElement("circle",{cx:"5",cy:"12",r:"1"}),o().createElement("circle",{cx:"5",cy:"17",r:"1"}),o().createElement("circle",{cx:"8.5",cy:"9.5",r:"1.5"}),o().createElement("path",{d:"M15.7 4c-.4 0-.8.1-1.2.3-.6.3-.5.7-1.5.7-1.1 0-2 .9-2 2s.9 2 2 2c.3 0 .5.2.5.5s-.2.5-.5.5c-1.1 0-2 .9-2 2s.9 2 2 2c.3 0 .5.2.5.5s-.2.5-.5.5c-1.1 0-2 .9-2 2s.9 2 2 2c.3 0 .5.2.5.5s-.2.5-.5.5c-1.1 0-2 .9-2 2s.9 2 2 2c1 0 .9.4 1.4.7.4.2.8.3 1.2.3 4.3-.4 8.3-5.3 8.3-10.5s-4-10-8.2-10.5z"}));case"animation-flip":return o().createElement("g",{fillRule:"evenodd"},o().createElement("path",{d:"M22 2.4l-7 2.9V7h-2v-.8L7.6 8.7c-.4.2-.6.5-.6.9v8.7c0 .4.2.7.6.9l5.4 2.5V21h2v1.7l7 2.9c.5.2 1-.2 1-.7V3.1c0-.5-.5-.9-1-.7zM15 19h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zM13 2h2v2.5h-2zM13 23.5h2V26h-2z"}));case"animation-fold":return o().createElement("g",{fillRule:"evenodd"},o().createElement("path",{d:"M24 7h-4V3.4c0-.8-.6-1.4-1.3-1.4-.2 0-.5.1-.7.2l-6.5 3.9c-.9.6-1.5 1.6-1.5 2.6V23c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm-6 10.5c0 .2-.1.4-.3.5L12 21.5V8.7c0-.4.2-.7.5-.9L18 4.5v13zM6 7h2v2H6zM6 23h2v2H6zM2.6 7.1c-.1 0-.1.1-.2.1v.1l-.1.1-.1.1c-.1.1-.2.3-.2.5v1h2V7H3c-.1 0-.2 0-.4.1zM2 23v1c0 .4.3.8.7.9.1.1.2.1.3.1h1v-2H2zM2 11h2v2H2zM2 19h2v2H2zM2 15h2v2H2z"}));case"animation-none":return o().createElement("g",{fillRule:"evenodd"},o().createElement("path",{d:"M14 24c5.5 0 10-4.5 10-10S19.5 4 14 4 4 8.5 4 14s4.5 10 10 10zm0-17.5c4.1 0 7.5 3.4 7.5 7.5 0 1.5-.5 2.9-1.2 4.1L9.9 7.7c1.2-.7 2.6-1.2 4.1-1.2zM7.7 9.9l10.4 10.4c-1.2.8-2.6 1.2-4.1 1.2-4.1 0-7.5-3.4-7.5-7.5 0-1.5.5-2.9 1.2-4.1z"}));case"animation-roll":return o().createElement("g",{fillRule:"evenodd"},o().createElement("path",{d:"M18.8 5c-5.3-2.7-11.8.2-14 5.6-1.1 2.8-1 6 .2 8.8.4 1 3.9 6.5 5 3.6.5-1.2-1.3-2.2-1.9-3-.8-1.2-1.4-2.5-1.6-3.9-.4-2.7.5-5.5 2.4-7.4 4-4 11.6-2.5 12.6 3.4.4 2.7-.9 5.5-3.4 6.6-2.6 1.1-6 0-6.8-2.8-.7-2.4 1.2-5.7 4-4.8 1.1.3 2 1.5 1.5 2.7-.3.7-1.7 1.2-1.6.1 0-.3.2-.4.2-.8-.1-.4-.5-.6-.9-.6-1.1.1-1.6 1.6-1.3 2.5.3 1.2 1.5 1.9 2.7 1.9 2.9 0 4.2-3.4 3.1-5.7-1.2-2.6-4.6-3.4-7-2.2-2.6 1.3-3.8 4.4-3.1 7.2 1.6 5.9 9.3 6.8 13.1 2.5 3.8-4.2 1.9-11.1-3.2-13.7z"}));case"animation-zoom":return o().createElement("g",{fillRule:"evenodd"},o().createElement("path",{d:"M23.7 4.3c-.1-.1-.2-.2-.3-.2-.1-.1-.3-.1-.4-.1h-5c-.6 0-1 .4-1 1s.4 1 1 1h2.6l-3.1 3.1c-.2-.1-.3-.1-.5-.1h-6c-.2 0-.3 0-.5.1L7.4 6H10c.6 0 1-.4 1-1s-.4-1-1-1H5c-.1 0-.3 0-.4.1-.2.1-.4.3-.5.5-.1.1-.1.3-.1.4v5c0 .6.4 1 1 1s1-.4 1-1V7.4l3.1 3.1c-.1.2-.1.3-.1.5v6c0 .2 0 .3.1.5L6 20.6V18c0-.6-.4-1-1-1s-1 .4-1 1v5c0 .1 0 .3.1.4.1.2.3.4.5.5.1.1.3.1.4.1h5c.6 0 1-.4 1-1s-.4-1-1-1H7.4l3.1-3.1c.2 0 .3.1.5.1h6c.2 0 .3 0 .5-.1l3.1 3.1H18c-.6 0-1 .4-1 1s.4 1 1 1h5c.1 0 .3 0 .4-.1.2-.1.4-.3.5-.5.1-.1.1-.3.1-.4v-5c0-.6-.4-1-1-1s-1 .4-1 1v2.6l-3.1-3.1c0-.2.1-.3.1-.5v-6c0-.2 0-.3-.1-.5L22 7.4V10c0 .6.4 1 1 1s1-.4 1-1V5c0-.1 0-.3-.1-.4 0-.1-.1-.2-.2-.3z"}));case"animation-slide":return o().createElement("g",{fillRule:"evenodd"},o().createElement("path",{d:"M22 4h-5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h5c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM10 14c0 .6.4 1 1 1h.6L10 16.6c-.4.4-.4 1 0 1.4.4.4 1 .4 1.4 0l3.3-3.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7L11.4 10c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4l1.6 1.6H11c-.6 0-1 .4-1 1z"}),o().createElement("circle",{cx:"7",cy:"14",r:"1.5"}),o().createElement("circle",{cx:"3",cy:"14",r:"1"}));case"align-left":return o().createElement("g",null,o().createElement("path",{d:"M5 13h2v2H5zM5 21h2v2H5zM5 17h2v2H5zM5 9h2v2H5zM5 5h2v2H5z"}),o().createElement("path",{d:"M7.339 13.25a1 1 0 0 0 0 1.501l4.642 4.09a.6.6 0 0 0 1.007-.442V16h9a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-9V9.602a.601.601 0 0 0-1.002-.446L7.339 13.25z"}));case"align-center":return o().createElement("g",null,o().createElement("path",{d:"M5 13h2v2H5zM5 9h2v2H5zM5 17h2v2H5zM5 5h2v2H5zM5 21h2v2H5zM21 9h2v2h-2zM21 5h2v2h-2zM21 13h2v2h-2zM15 8h-2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1zM21 17h2v2h-2zM21 21h2v2h-2z"}));case"align-right":return o().createElement("g",null,o().createElement("path",{d:"M21 21h2v2h-2zM21 17h2v2h-2zM21 9h2v2h-2zM21 5h2v2h-2zM21 13h2v2h-2z"}),o().createElement("path",{d:"M20.649 13.249l-4.642-4.09A.6.6 0 0 0 15 9.602V12H6a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h9v2.398a.601.601 0 0 0 1.002.446l4.647-4.094a1 1 0 0 0 0-1.501z"}));case"click":return o().createElement("g",{fillRule:"evenodd"},o().createElement("path",{d:"M15 10V8c0-.6-.4-1-1-1s-1 .4-1 1v2c0 .3.2.6.4.8.2 0 .5.1.7.2.5-.1.9-.5.9-1zM20 15c.6 0 1-.4 1-1s-.4-1-1-1h-2c-.4 0-.7.2-.9.6l1.6 1.4H20zM10 13H8c-.6 0-1 .4-1 1s.4 1 1 1h2c.6 0 1-.4 1-1s-.4-1-1-1zM9.8 11.2c.2.2.5.3.7.3s.5-.1.7-.3c.4-.4.4-1 0-1.4l-1-1c-.4-.4-1-.4-1.4 0s-.4 1 0 1.4l1 1zM9.8 16.8l-1.1 1.1c-.4.4-.4 1 0 1.4.2.2.5.3.7.3s.5-.1.7-.3l.9-.9v-1.8c-.4-.2-.9-.1-1.2.2zM17.5 11.5c.3 0 .5-.1.7-.3l1-1c.4-.4.4-1 0-1.4s-1-.4-1.4 0l-1 1c-.4.4-.4 1 0 1.4.2.2.4.3.7.3zM13.4 12.9s-.1-.1-.2-.1-.3.1-.3.3v7.4c0 .3.3.6.6.6h.2l1.4-.6.8 2c.2.4.5.6.9.6.1 0 .3 0 .4-.1.5-.2.7-.8.5-1.3l-.8-2 1.9-.8c.3-.1.3-.5.1-.7l-5.5-5.3z",fillRule:"evenodd"}));case"hover":return o().createElement("g",{fillRule:"evenodd"},o().createElement("path",{d:"M17.1 18.1l-5.7-5.2c-.2-.1-.4 0-.4.2v7.4c0 .4.4.7.8.6l1.4-.6.8 2c.2.5.8.7 1.3.5.5-.2.7-.8.5-1.3l-.8-2 1.9-.8c.3-.3.4-.6.2-.8zM20 10c-.6 0-1-.4-1-1-.6 0-1-.4-1-1s.4-1 1-1c1.1 0 2 .9 2 2 0 .6-.4 1-1 1zM8 10c-.6 0-1-.4-1-1 0-1.1.9-2 2-2 .6 0 1 .4 1 1s-.4 1-1 1c0 .6-.4 1-1 1zM9 20c-1.1 0-2-.9-2-2 0-.6.4-1 1-1s1 .4 1 1c.6 0 1 .4 1 1s-.4 1-1 1zM19 20c-.6 0-1-.4-1-1s.4-1 1-1c0-.6.4-1 1-1s1 .4 1 1c0 1.1-.9 2-2 2zM14.8 9h-1.5c-.6 0-1-.4-1-1s.4-1 1-1h1.5c.6 0 1 .4 1 1s-.5 1-1 1zM20 15c-.6 0-1-.4-1-1v-1c0-.6.4-1 1-1s1 .4 1 1v1c0 .6-.4 1-1 1zM8 15c-.6 0-1-.4-1-1v-1c0-.6.4-1 1-1s1 .4 1 1v1c0 .6-.4 1-1 1z",fillRule:"evenodd"}));case"menu-expand":return o().createElement("g",{fillRule:"evenodd"},o().createElement("path",{d:"M14 20l-3-5h6zM14 8l3 5h-6z",fillRule:"evenodd"}));case"border-all":return o().createElement("g",null,o().createElement("path",{d:"M22 5H6a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1zm-2 15H8V8h12z"}));case"border-top":return o().createElement("g",null,o().createElement("path",{d:"M17 21h2v2h-2zM5 9h2v2H5zM21 17h2v2h-2zM21 9h2v2h-2zM21 13h2v2h-2zM21 23h1a1 1 0 0 0 1-1v-1h-2zM5 17h2v2H5zM5 13h2v2H5zM13 21h2v2h-2zM9 21h2v2H9zM5 21v1a1 1 0 0 0 1 1h1v-2zM22 5H6a1 1 0 0 0-1 1v2h18V6a1 1 0 0 0-1-1z"}));case"border-right":return o().createElement("g",null,o().createElement("path",{d:"M13 5h2v2h-2zM5 9h2v2H5zM9 5h2v2H9zM7 5H6a1 1 0 0 0-1 1v1h2zM5 13h2v2H5zM13 21h2v2h-2zM5 17h2v2H5zM9 21h2v2H9zM17 5h2v2h-2zM5 21v1a1 1 0 0 0 1 1h1v-2zM22 5h-2v18h2a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1zM17 21h2v2h-2z"}));case"border-bottom":return o().createElement("g",null,o().createElement("path",{d:"M9 5h2v2H9zM7 20H5v2a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-2H7zM17 5h2v2h-2zM5 13h2v2H5zM5 9h2v2H5zM13 5h2v2h-2zM5 17h2v2H5zM21 9h2v2h-2zM21 17h2v2h-2zM22 5h-1v2h2V6a1 1 0 0 0-1-1zM21 13h2v2h-2zM7 5H6a1 1 0 0 0-1 1v1h2z"}));case"border-left":return o().createElement("g",null,o().createElement("path",{d:"M22 5h-1v2h2V6a1 1 0 0 0-1-1zM9 21h2v2H9zM21 17h2v2h-2zM13 21h2v2h-2zM21 13h2v2h-2zM9 5h2v2H9zM17 21h2v2h-2zM17 5h2v2h-2zM21 9h2v2h-2zM8 7V5H6a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h2V7zM21 23h1a1 1 0 0 0 1-1v-1h-2zM13 5h2v2h-2z"}));case"border-link":return o().createElement("g",null,o().createElement("path",{d:"M14.71 17.71a3 3 0 0 1-2.12-.88l-.71-.71a1 1 0 0 1 1.41-1.41l.71.71a1 1 0 0 0 1.41 0l5-4.95a1 1 0 0 0 0-1.41l-1.46-1.42a1 1 0 0 0-1.41 0L16.1 9.07a1 1 0 0 1-1.41-1.41l1.43-1.43a3.07 3.07 0 0 1 4.24 0l1.41 1.41a3 3 0 0 1 0 4.24l-5 4.95a3 3 0 0 1-2.06.88z"}),o().createElement("path",{d:"M9.76 22.66a3 3 0 0 1-2.12-.88l-1.42-1.42a3 3 0 0 1 0-4.24l5-4.95a3.07 3.07 0 0 1 4.24 0l.71.71a1 1 0 0 1-1.41 1.41l-.76-.7a1 1 0 0 0-1.41 0l-5 4.95a1 1 0 0 0 0 1.41L9 20.36a1 1 0 0 0 1.41 0L11.82 19a1 1 0 0 1 1.41 1.41l-1.36 1.36a3 3 0 0 1-2.11.89z"}));case"window-undock":return o().createElement("g",null,o().createElement("path",{d:"M9 10H8a1 1 0 0 0-1 1v1a1 1 0 0 0 2 0 1 1 0 0 0 0-2zM13 19h-1a1 1 0 0 0 0 2h1a1 1 0 0 0 0-2zM9 19a1 1 0 0 0-2 0v1a1 1 0 0 0 1 1h1a1 1 0 0 0 0-2zM20 7h-8a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1zm-1 2v6h-6V9zM17 18a1 1 0 0 0-1 1 1 1 0 0 0 0 2h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1zM8 17a1 1 0 0 0 1-1v-1a1 1 0 0 0-2 0v1a1 1 0 0 0 1 1z"}));case"chevron-right":return o().createElement("g",null,o().createElement("path",{d:"M13.38 19.48l4.6-4.6a1.25 1.25 0 0 0 0-1.77l-4.6-4.6a1.25 1.25 0 1 0-1.77 1.77L15.32 14l-3.71 3.71a1.25 1.25 0 1 0 1.77 1.77z",fillRule:"evenodd"}));case"chevron-left":return o().createElement("g",null,o().createElement("path",{d:"M14.62 8.52L10 13.12a1.25 1.25 0 0 0 0 1.77l4.6 4.6a1.25 1.25 0 0 0 1.77-1.77L12.68 14l3.71-3.71a1.25 1.25 0 1 0-1.77-1.77z",fillRule:"evenodd"}));case"chevron-up":return o().createElement("g",null,o().createElement("path",{d:"M20 14.62L15.38 10a1.25 1.25 0 0 0-1.77 0L9 14.62a1.25 1.25 0 0 0 1.77 1.77l3.71-3.71 3.71 3.71A1.25 1.25 0 1 0 20 14.62z",fillRule:"evenodd"}));case"chevron-down":return o().createElement("g",null,o().createElement("path",{d:"M19.98 11.616a1.25 1.25 0 0 0-1.768 0L14.5 15.328l-3.712-3.712a1.25 1.25 0 0 0-1.768 1.768l4.596 4.596a1.25 1.25 0 0 0 1.768 0l4.596-4.596a1.25 1.25 0 0 0 0-1.768z",fillRule:"evenodd"}));case"flip-horizontally":return o().createElement("g",null,o().createElement("path",{d:"M22 8.229a.995.995 0 0 0-.665.253L15 14.122l6.348 5.458A1 1 0 0 0 23 18.822V9.229a1 1 0 0 0-1-1zM7 11.458l2.963 2.638L7 16.643v-5.185M6 8.229a.996.996 0 0 0-1 1v9.592a1 1 0 0 0 1.652.758L13 14.122l-6.335-5.64A1 1 0 0 0 6 8.229zM13 5h2v2h-2zM13 9h2v2h-2zM13 13h2v2h-2zM13 17h2v2h-2zM13 21h2v2h-2z",fillRule:"evenodd"}));case"flip-vertically":return o().createElement("g",null,o().createElement("path",{d:"M13.878 15L8.42 21.348A1 1 0 0 0 9.178 23h9.592a1 1 0 0 0 .747-1.665L13.878 15zM16.542 7l-2.638 2.963L11.357 7h5.185m2.229-2H9.178a1 1 0 0 0-.758 1.652L13.878 13l5.64-6.335A1 1 0 0 0 18.771 5zM5 13h2v2H5zM9 13h2v2H9zM13 13h2v2h-2zM17 13h2v2h-2zM21 13h2v2h-2z",fillRule:"evenodd"}));case"invert":return o().createElement("g",null,o().createElement("path",{d:"m19.469855,14c0,-3.063118 -2.406736,-5.469854 -5.469854,-5.469854l0,10.939709c3.063118,0 5.469854,-2.406736 5.469854,-5.469854zm2.187942,-9.845738l-15.315592,0c-1.203368,0 -2.187942,0.984574 -2.187942,2.187942l0,15.315592c0,1.203368 0.984574,2.187942 2.187942,2.187942l15.315592,0c1.203368,0 2.187942,-0.984574 2.187942,-2.187942l0,-15.315592c0,-1.203368 -0.984574,-2.187942 -2.187942,-2.187942zm0,17.503534l-7.657796,0l0,-2.187942c-3.063118,0 -5.469854,-2.406736 -5.469854,-5.469854c0,-3.063118 2.406736,-5.469854 5.469854,-5.469854l0,-2.187942l7.657796,0l0,15.315592z"}));case"aspect-ratio-landscape":return o().createElement("g",null,o().createElement("rect",{x:"2",y:"6",width:"24",height:"16",rx:"2"}));case"aspect-ratio-square":return o().createElement("g",null,o().createElement("rect",{x:"6",y:"6",width:"16",height:"16",rx:"2"}));case"aspect-ratio-portrait":return o().createElement("g",null,o().createElement("rect",{x:"6",y:"2",width:"16",height:"24",rx:"2"}));case"eye":return o().createElement("g",null,o().createElement("path",{d:"M14,16a2,2,0,1,1,2-2A2,2,0,0,1,14,16Zm0,2a6.24,6.24,0,0,0,5.91-4A6.35,6.35,0,0,0,8.09,14,6.24,6.24,0,0,0,14,18ZM14,8a8.22,8.22,0,0,1,8,6A8.33,8.33,0,0,1,6,14,8.22,8.22,0,0,1,14,8Z"}));case"closed-eye":return o().createElement("g",null,o().createElement("path",{d:"M9.89,16.69l2.18-2.17A1.81,1.81,0,0,1,12,14a2,2,0,0,1,2-2,1.81,1.81,0,0,1,.52.07l1.67-1.68A6.43,6.43,0,0,0,14,10a6.3,6.3,0,0,0-5.91,4.1A6.28,6.28,0,0,0,9.89,16.69ZM12.37,20l1.85-1.84a6.24,6.24,0,0,0,5.69-4.1A6.24,6.24,0,0,0,19.39,13l1.45-1.45A8.41,8.41,0,0,1,22,14.1a8.3,8.3,0,0,1-8,6.1A8.83,8.83,0,0,1,12.37,20Zm-2.1-.73-.11,0L8.34,21.07,6.93,19.66,8.48,18.1A8.36,8.36,0,0,1,6,14.1,8.24,8.24,0,0,1,14,8a8.11,8.11,0,0,1,3.72.87l1.94-1.94,1.41,1.41L19.42,10l.09.08L18.08,11.5,18,11.42l-2.06,2.06a.7.7,0,0,1,0,.14L13.62,16a.7.7,0,0,1-.14,0l-1.83,1.83.13,0Z"}));case"linked":return o().createElement("g",null,o().createElement("path",{d:"M8 14a1 1 0 0 1 0 2h-.5A2.5 2.5 0 0 1 5 13.5v-2A2.5 2.5 0 0 1 7.5 9h8a2.5 2.5 0 0 1 2.5 2.5v2a2.5 2.5 0 0 1-2.5 2.5H15a1 1 0 0 1 0-2h.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5z",fillRule:"evenodd"}),o().createElement("path",{d:"M20 14a1 1 0 0 1 0-2h.5a2.5 2.5 0 0 1 2.5 2.5v2a2.5 2.5 0 0 1-2.5 2.5h-8a2.5 2.5 0 0 1-2.5-2.5v-2a2.5 2.5 0 0 1 2.5-2.5h.5a1 1 0 0 1 0 2h-.5a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5z",fillRule:"evenodd"}));case"unlinked":return o().createElement("g",null,o().createElement("path",{d:"M16.75 9.14a1 1 0 0 1 .37 1.39l-4.5 8a1 1 0 0 1-1.37.37 1 1 0 0 1-.37-1.39l4.5-8a1 1 0 0 1 1.37-.37zM19.71 10H20a3 3 0 0 1 3 3v2a3 3 0 0 1-3 3h-4.81l1.13-2H20a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-1.42zM12.81 10l-1.13 2H8a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h1.42l-1.13 2H8a3 3 0 0 1-3-3v-2a3 3 0 0 1 3-3z",fillRule:"evenodd"}));case"app-setting":return o().createElement("g",null,o().createElement("path",{d:"M2.001 4.5a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fillRule:"evenodd"}));case"expand-palette":return o().createElement("g",null,o().createElement("circle",{cx:"14",cy:"20",r:"2"}),o().createElement("circle",{cx:"14",cy:"13",r:"2"}),o().createElement("circle",{cx:"14",cy:"6",r:"2"}));case"paint-brush":return o().createElement("g",null,o().createElement("path",{d:"M12.635 16.21c-.907-.787.159-3.439 2.38-5.92 2.22-2.482 4.756-3.855 5.663-3.068s-.16 3.44-2.38 5.922c-2.223 2.482-4.757 3.854-5.663 3.066zm.254 2.022a2.133 2.133 0 0 1-.7 1.718c-1.458 1.446-3.712 1.274-4.9.242a.84.84 0 0 1-.287-.576.844.844 0 0 1 .796-.89h.01c.077.001.553-.008.716-.513.009-.123.026-.242.054-.36a2.182 2.182 0 0 1 1.988-1.639c1.208-.073 2.247.83 2.323 2.018z",fillRule:"evenodd"}));case"dynamic":return o().createElement("g",null,o().createElement("path",{d:"M14 13c3.87 0 7-1.34 7-3s-3.13-3-7-3-7 1.34-7 3 3.13 3 7 3zM9.72 9.44A11.35 11.35 0 0 1 14 8.7a11.35 11.35 0 0 1 4.28.74 3.26 3.26 0 0 1 .93.56 3.26 3.26 0 0 1-.93.56 11.35 11.35 0 0 1-4.28.74 11.35 11.35 0 0 1-4.28-.74 3.26 3.26 0 0 1-.93-.56 3.26 3.26 0 0 1 .93-.56zM14 19a11.06 11.06 0 0 1-4.16-.72l-.16-.08a9.17 9.17 0 0 1-2.41-1A1.48 1.48 0 0 0 7 18c0 1.66 3.13 3 7 3a15.86 15.86 0 0 0 1.9-.11 5 5 0 0 1-.81-1.89H14zM9.84 14.28l-.16-.08a9.17 9.17 0 0 1-2.41-1A1.48 1.48 0 0 0 7 14c0 1.66 3.13 3 7 3h1.14a4.22 4.22 0 0 1 1-2 3.29 3.29 0 0 1 .26-.23A13.27 13.27 0 0 1 14 15a11.06 11.06 0 0 1-4.16-.72zM21 17v-2h-2v2h-2v2h2v2h2v-2h2v-2h-2z",fillRule:"evenodd"}));case"search":return o().createElement("g",null,o().createElement("path",{d:"M12.13,5a4.88,4.88,0,0,0-4.18,7.39L5.23,15.11a.78.78,0,0,0,0,1.11l.55.55a.78.78,0,0,0,1.11,0l2.72-2.72A4.88,4.88,0,1,0,12.13,5Zm0,7.75A2.88,2.88,0,1,1,15,9.88,2.87,2.87,0,0,1,12.13,12.75Z"}));case"skew":return o().createElement("g",null,o().createElement("path",{d:"M23.28 7H12.16a2 2 0 0 0-1.74 1L3.85 19.5a1 1 0 0 0 .87 1.5h11.12a2 2 0 0 0 1.74-1l6.57-11.5a1 1 0 0 0-.87-1.5zm-7.69 12H6.7l5.71-10h8.89z",fillRule:"evenodd"}));case"rotate":return o().createElement("g",null,o().createElement("path",{d:"M19.66 10.73a1.15 1.15 0 0 0-.48 1.55A5.85 5.85 0 1 1 14 9.15v2.54a.5.5 0 0 0 .85.35l3.36-3.37a1 1 0 0 0 0-1.41L14.85 3.9a.5.5 0 0 0-.85.35v2.6a8.15 8.15 0 1 0 7.22 4.36 1.15 1.15 0 0 0-1.56-.48z",fillRule:"evenodd"}));case"transform-origin":return o().createElement("g",null,o().createElement("path",{d:"M24 7V5a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1h-4a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1H8a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1v4a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1v4a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1h4a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1h4a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1v-4a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1V8a1 1 0 0 0 1-1zm-3 5a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1v4a1 1 0 0 0-1 1h-4a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1H8a1 1 0 0 0-1-1v-4a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1V8a1 1 0 0 0 1-1h4a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1h4a1 1 0 0 0 1 1z",fillRule:"evenodd"}),o().createElement("path",{d:"M16 13v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1z",fillRule:"evenodd"}));case"divi-logo":return o().createElement("g",null,o().createElement("path",{d:"M15.764 10c0.864 0 1.624 0.142 2.258 0.42 0.626 0.276 1.156 0.664 1.578 1.152 0.444 0.514 0.788 1.14 1.024 1.86 0.25 0.758 0.376 1.614 0.376 2.542 0 0.916-0.124 1.766-0.366 2.528-0.232 0.724-0.57 1.354-1.006 1.874-0.418 0.498-0.952 0.896-1.584 1.186-0.638 0.29-1.404 0.438-2.28 0.438h-2.764v-12h2.764zM15.764 8h-3.764c-0.552 0-1 0.448-1 1v14c0 0.55 0.45 1 1 1h3.764c1.162 0 2.208-0.208 3.11-0.62 0.904-0.414 1.672-0.99 2.284-1.718 0.606-0.72 1.070-1.58 1.38-2.552 0.306-0.96 0.462-2.014 0.462-3.136 0-1.142-0.16-2.206-0.476-3.166-0.32-0.972-0.794-1.826-1.41-2.542-0.62-0.716-1.388-1.28-2.284-1.676-0.89-0.39-1.922-0.59-3.066-0.59v0z",fillRule:"evenodd"}),o().createElement("path",{d:"M16 2c7.72 0 14 6.28 14 14s-6.28 14-14 14-14-6.28-14-14 6.28-14 14-14zM16 0c-8.836 0-16 7.164-16 16s7.164 16 16 16 16-7.164 16-16-7.164-16-16-16v0z",fillRule:"evenodd"}));case"global-presets-open":return o().createElement("g",null,o().createElement("path",{d:"M20.42 18.77h-.08c-1.75-.73-2.51-2.47-3.88-2.47s-2.11.53-2.88.43-.73-.91-1.28-1.37-.46-.31-1.49-.7-.24-2.3.48-2 1.31-.32 1.52.23.7 1.3.65.58a2.4 2.4 0 0 1 .79-2c.6-.56.1-.65.22-1.54s2.21.5 2.21-.32.36-.72 1-1.39.37-.88-.22-1.46a8 8 0 0 1 3.32 2.91c-1 .17-1.42.81-2 1.92-1 2 1.47 3.14 2.81 4l.24.12a8.08 8.08 0 0 1-1.41 3.06zM14 22a8 8 0 0 1-7.66-10.26 6.92 6.92 0 0 0 1 1.38c1 1.09.89 1.27.89 1.27.57 1.66 3.27.86 3.62 2.08s1.33.86.91 2.43a2.72 2.72 0 0 0 1.48 3.1zm0-18a10 10 0 1 0 10 10A10 10 0 0 0 14 4z"}));case"global-presets-return":return o().createElement("g",null,o().createElement("path",{d:"M17.69 16a7.15 7.15 0 0 0 .6-4.46l2.22-.77a.93.93 0 0 0-.43-1.24l-3.71-1.86a.93.93 0 0 0-1.25.42l-1.87 3.83a1 1 0 0 0 .43 1.25l1.86-.74a4.23 4.23 0 0 1-.38 2.35c-.89 1.89-3.16 3.16-5.05 2.22-1.23-.6-4.89 1.2-.93 2.65A6.85 6.85 0 0 0 17.69 16z"}));case"responsive-orientation-portrait":return o().createElement("g",null,o().createElement("path",{className:"opacity-half",d:"M21,14H7a2,2,0,0,0-2,2v5a2,2,0,0,0,2,2H21a2,2,0,0,0,2-2V16A2,2,0,0,0,21,14Zm0,7H7V16H21Z"}),o().createElement("path",{d:"M12,5H7A2,2,0,0,0,5,7V21a2,2,0,0,0,2,2h5a2,2,0,0,0,2-2V7A2,2,0,0,0,12,5Zm0,16H7V7h5ZM22.94,9.75a.75.75,0,0,1-.22.53l-2.19,2.19a.75.75,0,0,1-1.06,0l-2.19-2.19A.75.75,0,0,1,17.81,9H19a2,2,0,0,0-2-2,1,1,0,0,1,0-2,4,4,0,0,1,4,4h1.19A.76.76,0,0,1,22.94,9.75Z"}));case"responsive-orientation-landscape":return o().createElement("g",null,o().createElement("path",{className:"opacity-half",d:"M7,7V21h5V7ZM7,5h5a2,2,0,0,1,2,2V21a2,2,0,0,1-2,2H7a2,2,0,0,1-2-2V7A2,2,0,0,1,7,5Z"}),o().createElement("path",{d:"M7,16v5H21V16Zm0-2H21a2,2,0,0,1,2,2v5a2,2,0,0,1-2,2H7a2,2,0,0,1-2-2V16A2,2,0,0,1,7,14Zm16-3a1,1,0,0,1-2,0,2,2,0,0,0-2-2v1.19a.75.75,0,0,1-1.28.53L15.53,8.53a.75.75,0,0,1,0-1.06l2.19-2.19A.75.75,0,0,1,19,5.81V7A4,4,0,0,1,23,11Z"}));case"pencil":return o().createElement("g",null,o().createElement("path",{transform:"scale(-1, 1) translate(-28, 0)",d:"M10.64,13.07l2.43-2.43,6.73,6.73L21,21l-3.63-1.2ZM7.52,7.52a1.78,1.78,0,0,1,2.51,0l1.21,1.26L8.73,11.29,7.52,10A1.78,1.78,0,0,1,7.52,7.52Z"}));case"blur":return o().createElement("g",null,o().createElement("path",{d:"M14.37,6.4a.51.51,0,0,0-.74,0Q8,12.64,8,15.9c0,3.37,2,6.1,6,6.1s6-2.73,6-6.1Q20,12.65,14.37,6.4ZM14,20c-3.61,0-4-2.86-4-4.1,0-.69.42-2.66,4-6.88,3.58,4.22,4,6.19,4,6.88C18,17.14,17.61,20,14,20Z"}));case"horizontal-motion":return o().createElement("g",null,o().createElement("path",{d:"M22.8,17.5a.56.56,0,0,1,0,.9l-3.5,2.1c-.4.2-.8,0-.8-.4V19H10a1,1,0,0,1,0-2h8.5V15.8a.52.52,0,0,1,.8-.4ZM19,10a.94.94,0,0,1-1,1H9.5v1.2a.52.52,0,0,1-.8.4L5.2,10.5a.56.56,0,0,1,0-.9L8.7,7.5c.4-.2.8,0,.8.4V9H18A.94.94,0,0,1,19,10Z"}));case"vertical-motion":return o().createElement("g",null,o().createElement("path",{d:"M17.5,5.2a.56.56,0,0,1,.9,0l2.1,3.5c.2.4,0,.8-.4.8H19V18a1,1,0,0,1-2,0V9.5H15.8a.52.52,0,0,1-.4-.8ZM10,9a.94.94,0,0,1,1,1v8.5h1.2a.52.52,0,0,1,.4.8l-2.1,3.5a.56.56,0,0,1-.9,0L7.5,19.3c-.2-.4,0-.8.4-.8H9V10A.94.94,0,0,1,10,9Z"}));case"cursor":return o().createElement("g",null,o().createElement("path",{d:"M11.8,7.1c0.2,0,0.5,0.1,0.6,0.3l6.4,7.8c0.2,0.2,0.2,0.6-0.1,0.8c0,0-0.1,0.1-0.1,0.1L16.4,17l1.5,3.6 c0.2,0.6,0,1.3-0.6,1.5c-0.5,0.2-1.2,0-1.5-0.5l-0.1-0.1l-1.5-3.6l-2.5,1c-0.3,0.1-0.6,0-0.8-0.3c0-0.1-0.1-0.2-0.1-0.2V7.9 C11,7.5,11.4,7.1,11.8,7.1z"}));case"pin":return o().createElement("g",null,o().createElement("path",{d:"M17,13.3c1.2,0.3,2,0.7,2,1.2c0,0.7-1.7,1.3-4,1.5v3l-1,2l-1-2v-3c-2.3-0.1-4-0.7-4-1.5c0-0.5,0.8-0.9,2-1.2V9.7 C9.8,9.4,9,9,9,8.5C9,7.7,11.2,7,14,7s5,0.7,5,1.5c0,0.5-0.8,0.9-2,1.2V13.3z"}));case"caret-down":case"caret-left":case"caret-right":case"caret-up":return o().createElement("g",null,o().createElement("path",{d:"M13.4,16.66,10.13,12a.71.71,0,0,1-.09-.65.49.49,0,0,1,.44-.36h7a.49.49,0,0,1,.44.36.72.72,0,0,1-.08.64L14.6,16.66a.7.7,0,0,1-1.2,0Z"}));case"overflow":return o().createElement("g",null,o().createElement("path",{d:"M6,9.5A1.5,1.5,0,1,1,7.5,11,1.5,1.5,0,0,1,6,9.5ZM7.5,16A1.5,1.5,0,1,0,6,14.5,1.5,1.5,0,0,0,7.5,16Zm0,5A1.5,1.5,0,1,0,6,19.5,1.5,1.5,0,0,0,7.5,21Z"}));case"layers-view":return o().createElement("g",null,o().createElement("path",{d:"M19.89,15.66,19,15.13l-4.48,2.69a1,1,0,0,1-1,0L9,15.13l-.88.53a.39.39,0,0,0,0,.68l5.37,3.23a1,1,0,0,0,1,0l5.37-3.23A.39.39,0,0,0,19.89,15.66Z"}),o().createElement("path",{d:"M13.49,15.57a1,1,0,0,0,1,0l5.37-3.23a.4.4,0,0,0,0-.68L14.51,8.43a1,1,0,0,0-1,0L8.11,11.66a.4.4,0,0,0,0,.68ZM14,9.87,17.54,12,14,14.13,10.46,12Z"}));case"update-with-current-styles":return o().createElement("g",null,o().createElement("path",{d:"M18.55,8a.93.93,0,0,1,.28.28L21,11.45a1,1,0,0,1-.27,1.38,1,1,0,0,1-.56.17H19v7a1,1,0,0,1-.88,1H10a1,1,0,0,1-1-.88V10a1,1,0,0,1,2-.12V19h6V13H15.87a1,1,0,0,1-1-1,1,1,0,0,1,.17-.55l2.13-3.2A1,1,0,0,1,18.55,8Z"}));case"star":return o().createElement("g",null,o().createElement("path",{d:"M20.46,12.07l-3.82-.56a.55.55,0,0,1-.42-.3l-1.71-3.4a.56.56,0,0,0-1,0l-1.74,3.4a.53.53,0,0,1-.42.3l-3.81.56a.56.56,0,0,0-.31,1L10,15.62a.56.56,0,0,1,.17.5L9.5,19.84a.56.56,0,0,0,.8.6L14,18.55h0l3.69,1.89a.55.55,0,0,0,.8-.59l-.63-3.73a.56.56,0,0,1,.17-.5L20.77,13A.56.56,0,0,0,20.46,12.07Z"}));default:return!1}}},{key:"render",value:function(){var e=this.props,t=e.block,r=e.children,n=e.className,i=e.color,a=e.icon,l=e.iconSvg,u=e.size,c=e.viewBox;if(!a&&!l)return!1;var f={fill:i,width:2*u,minWidth:2*u,height:2*u,margin:-(u-8)};switch(a){case"caret-left":f=O()(f,{transform:"rotate(90deg)"});break;case"caret-right":f=O()(f,{transform:"rotate(-90deg)"});break;case"caret-up":f=O()(f,{transform:"rotate(180deg)"})}var d=a?"et-fb-icon--".concat(a):"et-fb-icon--svg",p=s()({"et-fb-icon":!0,"et-fb-icon--block":t},d,n);if(l)return o().createElement("div",{className:p,style:O()(f,this.props.style),dangerouslySetInnerHTML:{__html:l}});var h=this._renderGraphics();return h||(f={}),o().createElement("div",{className:p,style:O()(f,this.props.style)},h?o().createElement("svg",{viewBox:c,preserveAspectRatio:"xMidYMid meet",shapeRendering:"geometricPrecision"},h):r)}}],r&&C(t.prototype,r),n&&C(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.PureComponent);A.defaultProps={color:"#4c5866",size:14,viewBox:"0 0 28 28"},A.propTypes={className:a().string,color:a().string,block:a().bool,icon:a().string,iconSvg:a().string,size:a().oneOfType([a().string,a().number]),style:a().object,viewBox:a().string};const j=A;var P=r(6459),I=r(2419);function R(e){return 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},R(e)}function N(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==R(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===R(i)?i:String(i)),n)}var o,i}function D(e,t){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},D(e,t)}function z(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 r,n=F(e);if(t){var o=F(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}var H=function(e){!function(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&&D(e,t)}(i,e);var t,r,n,o=z(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).loadAIModal=function(e){var r=t.props,n=r.label,o=r.type,i=r.name,a=r.value,l=o,s={aiMode:(0,P.includes)(["upload","background"],o)?"image":"text",type:e,etAccount:{},label:n,prefilledContentType:l,contextData:{},additionalInfo:{field_name:i,module:undefined,fields:[]},content:t.props.selectedText||a};jQuery(window).trigger("et_ai_container_ready",[s,"et-ai-app"])},t.handleAIButtonMenuChange=function(e){var r=t.props,n=r.name,o=r.onHandleAIButtonMenuChange;o&&o({fieldName:n}),t.loadAIModal(e)},t}return t=i,(r=[{key:"getAITextFieldOptions",value:function(e){var t={};return(0,P.forEach)(ETBuilderBackend[e],(function(e){var r=e.group?e.group:"Default",n=e.slug;(0,P.isUndefined)(t[r])&&(t[r]={}),t[r][n]=e.label})),t}},{key:"getAIImageFieldOptions",value:function(){return this.getAITextFieldOptions("aiImageFieldOptions")}},{key:"getAITextFieldEmptyOptions",value:function(){return this.getAITextFieldOptions("aiTextFieldEmptyOptions")}},{key:"getAITextFieldNonEmptyOptions",value:function(){return this.props.selectedText?this.getAITextFieldOptions("aiTextFieldSelectedTextOptions"):this.getAITextFieldOptions("aiTextFieldOptions")}},{key:"render",value:function(){var e=this,t=this.props,r=t.name,n=t.value,o=t.fieldRef,i=t.optionsFn,a=t.fieldID;return(0,P.isNil)(r)?null:React.createElement("div",{className:"et-fb-settings-option-select-discrete"},React.createElement(I.default,{ref:o,name:"".concat(r,"_ai_content"),value:n,options:this[i](),selectFirst:!1,__onChange:function(t){return e.handleAIButtonMenuChange(t)},fieldID:a,onOpen:this.props.onOpen,onClose:this.props.onClose}))}}])&&N(t.prototype,r),n&&N(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.Component);H.defaultProps={selectedText:"",onOpen:function(){},onClose:function(){}};const B=H;function W(e){return W="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},W(e)}function U(e,t,r){return(t=q(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,q(n.key),n)}}function q(e){var t=function(e,t){if("object"!==W(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==W(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===W(t)?t:String(t)}function $(e,t){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$(e,t)}function G(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 r,n=Y(e);if(t){var o=Y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===W(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return K(e)}(this,r)}}function K(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y(e){return Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Y(e)}var Q={stiffness:300,damping:20},Z=function(e){!function(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&&$(e,t)}(a,e);var t,r,n,i=G(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).AISelectRef=null,t._onClickAIButton=function(){t.AISelectRef.toggleMenu({target:null})},t.state={isHovered:!1},t._onClickCanvas=t._onClickCanvas.bind(K(t)),t._onClickAddButton=t._onClickAddButton.bind(K(t)),t._onClickEditButton=t._onClickEditButton.bind(K(t)),t._onClickRemoveButton=t._onClickRemoveButton.bind(K(t)),t._onClickResetButton=t._onClickResetButton.bind(K(t)),t._onMouseEnter=t._onMouseEnter.bind(K(t)),t._onMouseLeave=t._onMouseLeave.bind(K(t)),t._classNameBase="et-fb-settings-option-preview",t}return t=a,(r=[{key:"_onClickCanvas",value:function(e){e.preventDefault();var t=this.props,r=t.onClickCanvas,n=t.name;p()(r)&&r(n)}},{key:"_onClickAddButton",value:function(){var e=this.props,t=e.onClickAddButton,r=e.name;p()(t)&&t(r)}},{key:"_onClickEditButton",value:function(){var e=this.props,t=e.onClickEditButton,r=e.name;p()(t)&&t(r)}},{key:"_onClickRemoveButton",value:function(){var e=this.props,t=e.onClickRemoveButton,r=e.name;p()(t)&&t(r)}},{key:"_onClickResetButton",value:function(){var e=this.props,t=e.onClickResetButton,r=e.name;p()(t)&&t(r)}},{key:"_onMouseEnter",value:function(){this.setState({isHovered:!0});var e=this.props,t=e.onMouseEnterPreview,r=e.name;p()(t)&&t(r)}},{key:"_onMouseLeave",value:function(){this.setState({isHovered:!1});var e=this.props,t=e.onMouseLeavePreview,r=e.name;p()(t)&&t(r)}},{key:"_isHasPreviewStyle",value:function(){return!f()(this._getPreviewStyle())}},{key:"_isHasPreviewContent",value:function(){return!f()(this.props.children)}},{key:"_isHasValue",value:function(){return this._isHasPreviewStyle()||this._isHasPreviewContent()}},{key:"_getPreviewStyle",value:function(){var e=this.props.previewStyle;return!f()(e)&&m()(e)?e:!f()(e)&&g()(e)?x.isColorValid(e.toLowerCase())?{backgroundColor:e}:{backgroundImage:"url(".concat(e,")")}:{}}},{key:"_getButtonMotionStyle",value:function(){return this.state.isHovered?{opacity:(0,u.ST)(1,Q),scale:(0,u.ST)(1,Q),top:(0,u.ST)(0,Q)}:{opacity:(0,u.ST)(0,Q),scale:(0,u.ST)(0,Q),top:(0,u.ST)(-30,Q)}}},{key:"_getButtonClassName",value:function(e){return"".concat(this._classNameBase,"--button ").concat(this._classNameBase,"--button--").concat(e)}},{key:"_getControlButtons",value:function(){var e=this.props,t=e.showEditButton,r=(e.showSwapButton,e.showRemoveButton),n=e.showResetButton;return e.hideAIButton,[{name:"edit",icon:"setting",enabled:t,onClick:this._onClickEditButton},{name:"remove",icon:"delete",enabled:r,onClick:this._onClickRemoveButton},{name:"reset",icon:"reset",enabled:n,onClick:this._onClickResetButton}].filter((function(e){return e.enabled}))}},{key:"_renderControlButtons",value:function(){var e=this;return this.props.hideAIButton,this._getControlButtons().map((function(t){return o().createElement(u.y_,{key:t.name,style:e._getButtonMotionStyle()},(function(r){return o().createElement(k.default,{className:e._getButtonClassName(t.name),style:{opacity:r.opacity,transform:"scale( ".concat(r.scale," )"),top:r.top},onClick:t.onClick},o().createElement(j,{icon:t.icon,color:"#fff"}))}))}))}},{key:"render",value:function(){var e,t=this,r=this.props,n=r.name,i=r.type,a=r.className,l=r.children,u=(U(e={},this._classNameBase,!0),U(e,"".concat(this._classNameBase,"--empty"),!this._isHasValue()),e);a&&(u[a]=!0);var c=n&&!["background_video_mp4","background_video_webm","reference_image"].includes(n);return o().createElement(o().Fragment,null,o().createElement("div",{className:s()(u),onMouseEnter:this._onMouseEnter,onMouseLeave:this._onMouseLeave,onClick:this._onClickCanvas,style:this._getPreviewStyle()},l,o().createElement("div",{className:"".concat(this._classNameBase,"__buttons-wrapper")},c&&o().createElement(B,{fieldRef:function(e){return t.AISelectRef=e},name:n,label:"Image",type:i,optionsFn:"getAIImageFieldOptions",onHandleAIButtonMenuChange:function(){}}),this._renderControlButtons())))}}])&&V(t.prototype,r),n&&V(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.PureComponent);Z.propTypes={name:a().string,type:a().string,className:a().string,addTitle:a().string,previewStyle:a().oneOfType([a().string,a().object]),showAddButton:a().bool,showEditButton:a().bool,showRemoveButton:a().bool,showResetButton:a().bool,onClickCanvas:a().func,onClickAddButton:a().func,onClickEditButton:a().func,onClickSwapButton:a().func,onClickRemoveButton:a().func,onClickResetButton:a().func,onMouseEnterPreview:a().func,onMouseLeavePreview:a().func},Z.defaultProps={showAddButton:!1,showEditButton:!1,showSwapButton:!1,showRemoveButton:!1,showResetButton:!1,hideAIButton:!1};const X=Z},1472:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>O});var n=r(7363),o=r.n(n),i=r(1193),a=r.n(i),l=r(4480),s=r.n(l),u=r(2211),c=r.n(u),f=r(3708),d=r.n(f),p=r(3156),h=r.n(p),m=r(2952),v=r.n(m);function g(e){return g="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},g(e)}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==g(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===g(i)?i:String(i)),n)}var o,i}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function w(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 r,n=x(e);if(t){var o=x(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _(e)}(this,r)}}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var k=function(e){!function(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&&b(e,t)}(a,e);var t,r,n,i=w(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=i.call(this,e),S.call(_(t));var r=v()(_(t),"props.range_settings",{min:0,max:100,step:1}),n=h()(t.props.value);return t.state={rangeMin:r.min,rangeMax:r.max,rangeStep:r.step,value:t.emptyIfDefault(n)},t}return t=a,(r=[{key:"componentDidMount",value:function(){var e=this.props.value;this.deferredUpdate=d()(this.updateOptionAndState,700),parseFloat(this.state.rangeStep)>.1&&parseFloat(e)%1>0&&this.setState({rangeStep:"0.1"}),this.checkRangeBoundaries(this.state.value)}},{key:"componentDidUpdate",value:function(e){var t=this.emptyIfDefault(this.props.value);e.value===t||this.userUpdate||this.setState({value:t}),this.userUpdate=!1}},{key:"componentWillUnmount",value:function(){this.deferredUpdate.cancel()}},{key:"getDefaultValue",value:function(){return this.addUnit(h()(this.props.default))}},{key:"emptyIfDefault",value:function(e){return e===this.getDefaultValue()?"":e}},{key:"addUnit",value:function(e){var t=this.props.default_unit;return""===e?"0".concat(t):"".concat(e).concat(t)}},{key:"removeUnit",value:function(e){var t=this.props.default_unit;return e.replace("".concat(t),"")}},{key:"checkRangeBoundaries",value:function(e){if(h()(e)){var t=parseFloat(e);t>this.state.rangeMax&&this.setState({rangeMax:t}),t<this.state.rangeMin&&this.setState({rangeMin:t}),parseFloat(this.state.rangeStep)>.1&&t%1>0&&this.setState({rangeStep:"0.1"})}}},{key:"_renderInput",value:function(){var e=this.props.id||"et-fb-".concat(this.props.name),t=this.props.name,r=this.emptyIfDefault(this.state.value);r=this.addUnit(r);var n=this.getDefaultValue(),i=""===this.removeUnit(r)?n:this.removeUnit(r);return o().createElement("div",{className:"et-fb-settings-option-inputs-wrap"},o().createElement("input",{id:e,name:t,type:"range",min:this.state.rangeMin,max:this.state.rangeMax,step:this.state.rangeStep,className:"et-fb-range",value:parseFloat(i),"data-shortcuts-allowed":!0,onChange:this._updateFromRange}),o().createElement("div",{className:"et-fb-range-number"},o().createElement("input",{type:"text",value:r,placeholder:n,onChange:this._onChange,className:"et-fb-settings-option-input"})))}},{key:"render",value:function(){return this.getDefaultValue(),this.props.value,o().createElement("div",{className:s()({"et-fb-settings-option-inner":!0,"et-fb-settings-option-inner-range":!0})},this._renderInput())}}])&&y(t.prototype,r),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.PureComponent);k.defaultProps={default_unit:""},k.propTypes={name:a().string.isRequired,default_unit:a().string,precision:a().number};var S=function(){var e=this;this.isChangingRange=!1,this.updateOptionAndState=function(t){t=c()(t)?e.state.value:t,e.userUpdate=!0,e.setState({value:t}),e.props._onChange(e.props.name,t)},this._updateFromRange=function(t){var r=v()(t,"target.value");r=e.removeUnit(r),e.isChangingRange=!0,e.updateOptionAndState(r),e.isChangingRange=!1},this._onChange=function(t){var r=v()(t,"target.value");r=e.removeUnit(r),e.updateOptionAndState(r),e.checkRangeBoundaries(r)}};const O=k},2419:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Oe});var n=r(7363),o=r.n(n),i=r(1193),a=r.n(i),l=r(4480),s=r.n(l),u=r(9070),c=r(5077),f=r.n(c),d=r(7606),p=r.n(d),h=r(8546),m=r.n(h),v=r(2211),g=r.n(v),y=r(3858),b=r.n(y),w=r(1009),_=r.n(w),x=r(4082),k=r.n(x),S=r(1329),O=r.n(S),E=r(1839),C=r.n(E),T=r(3109),L=r.n(T),M=r(418),A=r.n(M),j=r(8961),P=r.n(j),I=r(9608),R=r.n(I),N=r(9021),D=r.n(N),z=r(2406),F=r.n(z),H=r(8925),B=r.n(H),W=r(1733),U=r.n(W),V=r(2952),q=r.n(V),$=r(8232),G=r.n($),K=r(8993),Y=r.n(K),Q=r(1587),Z=r.n(Q),X=r(3167),J=r.n(X),ee=r(1641),te=r.n(ee),re=r(4911),ne=r.n(re),oe=r(6789);function ie(e){return ie="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},ie(e)}function ae(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==ie(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===ie(i)?i:String(i)),n)}var o,i}function le(e,t){return le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},le(e,t)}function se(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 r,n=ce(e);if(t){var o=ce(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===ie(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ue(e)}(this,r)}}function ue(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ce(e){return ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ce(e)}var fe={isMenuActive:a().bool,isItemHovered:a().bool,itemIndex:a().number,value:a().string,name:a().oneOfType([a().string,a().element]),selectedOption:a().string,_onChange:a().func,_setHoveredItem:a().func,hoverAction:a().oneOfType([a().func,a().bool]),additionalContentFirst:a().bool},de=function(e){!function(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&&le(e,t)}(a,e);var t,r,n,i=se(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).onChangeValue=t.onChangeValue.bind(ue(t)),t.updateActiveItemIndex=t.updateActiveItemIndex.bind(ue(t)),t.onMarkerClick=t.onMarkerClick.bind(ue(t)),t.resetActiveItemIndex=t.resetActiveItemIndex.bind(ue(t)),t.markerToIconMapping={recent:"history",uploaded:"delete",menuArrow:"menu-expand",arrowDownDense:"arrow-down-dense"},t}return t=a,(r=[{key:"componentDidUpdate",value:function(e,t){var r=this;!e.isItemHovered&&this.props.isItemHovered&&(this.props._setHoveredItem(this.props.itemIndex,this.props.value),this.props.hoverAction&&setTimeout((function(){r.props.isItemHovered&&r.props.hoverAction(r.props.value)}),250))}},{key:"onChangeValue",value:function(e){if(jQuery(e.target).closest(".et-fb-select-marker, .et-fb-select-additional-content-container, .et-fb-font-removal-activated").length>0&&this.props.customMarkerAction)return!1;this.props._onChange({},this.props.value)}},{key:"updateActiveItemIndex",value:function(){this.props._setHoveredItem(this.props.itemIndex,this.props.value)}},{key:"resetActiveItemIndex",value:function(e){jQuery(e.relatedTarget).closest(".select-option-item").length<1&&this.props._resetHoveredItem()}},{key:"onMarkerClick",value:function(){this.props.customMarkerAction&&this.props.customMarkerAction(this.props.value)}},{key:"render",value:function(){if(!this.props.isMenuActive&&this.props.selectedOption!==this.props.value)return!1;if(k()(this.props.value)||g()(this.props.value))return!1;var e=this.props.selectedOption===this.props.value,t=s()({"select-option-item":!0,"select-option-item-hovered":this.props.isItemHovered,"et-fb-selected-item":e},"select-option-item-".concat(this.props.value.replace(/ /g,"_")),this.props.classNames),r=this.props.isItemHovered?"#FFFFFF":"#37C4AA",n=this.props.isItemHovered?"#FFFFFF":"#BEC9D5",i=e&&this.props.displayCheckMark&&this.props.isMenuActive?o().createElement(oe.default,{icon:"check",color:r}):"",a=this.props.customMarker&&""===i?o().createElement("span",{onClick:this.onMarkerClick,className:"et-fb-select-marker"},o().createElement(oe.default,{icon:this.markerToIconMapping[this.props.customMarker],color:n})):"",l=g()(this.props.additionalContent)||""===this.props.additionalContent?"":this.props.additionalContent,u=this.props.additionalContentFirst;return o().createElement("li",{className:t,onClick:this.onChangeValue,onMouseOver:this.updateActiveItemIndex,onMouseLeave:this.resetActiveItemIndex,"data-value":this.props.value,"data-testid":"select-option-".concat(this.props.value)},u?l:"",o().createElement("span",{className:"select-option-item__name"},this.props.name),i,a,u?"":l)}}])&&ae(t.prototype,r),n&&ae(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o().Component);de.propTypes=fe,de.defaultProps={additionalContentFirst:!1};const pe=de;var he=r(6823);function me(e){return me="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},me(e)}function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ve.apply(this,arguments)}function ge(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ye(n.key),n)}}function ye(e){var t=function(e,t){if("object"!==me(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==me(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===me(t)?t:String(t)}function be(e,t){return be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},be(e,t)}function we(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 r,n=xe(e);if(t){var o=xe(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===me(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _e(e)}(this,r)}}function _e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xe(e){return xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xe(e)}var ke={ON:"on",OFF:"off",AUTO:"auto"},Se=function(e){!function(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&&be(e,t)}(l,e);var t,r,i,a=we(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).divRef=(0,n.createRef)(),t.updateMenuPosition=function(){t.heightPreserverRef&&jQuery(t.heightPreserverRef).addClass("et-fb-select__height-preserver--hidden");var e=jQuery(t.divRef.current),r=!t.state.active&&t.state.isControlSelectSVG,n=e.find(".et-fb-settings-custom-select-wrapper-inner:first").outerHeight();if(r&&Math.max(n,t.state.menuHeight)<241){var o=e.find(".et-fb-settings-custom-select-wrapper-inner").find(".et-fb-select__svg-height-preserver--hidden:first");o.length&&(n=o.css({display:"block"}).outerHeight(),o.css({display:"none"}))}var i=Math.max(n,t.state.menuHeight),a=(0,he.Nr)(jQuery(window.top),e,e,i),l=t.heightPreserverRef&&i>n,s=t.props.preserveHeight===ke.ON||!a.flags.fitsInBottomSpace;l&&s&&jQuery(t.heightPreserverRef).height(Math.ceil(i-n)).removeClass("et-fb-select__height-preserver--hidden"),t.setState({menuPosition:a.position.top,menuWidth:a.size.width,menuHeight:a.size.height})},t.isSocialMediaItem=function(){return"et_pb_social_media_follow_network"===q()(t.props,"module.props.module.props.type","")},t.renderNoResults=function(){return o().createElement("li",{className:"select-option-item et-fb-selected-item"},ETBuilderBackend.i18n.selectControl.noResults)},t.state={iconPickerMenuCustomStyling:void 0!==t.props.iconPickerMenuCustomStyling,isControlSelectSVG:void 0!==e.isControlSelectSVG,active:e.activeOnLoad||!1,hoveredItemIndex:0,lastHoveredItem:0,filterValue:"",deleteConfirmation:"",menuHeight:0},t._render_options=t._render_options.bind(_e(t)),t._onChange=t._onChange.bind(_e(t)),t.toggleMenu=t.toggleMenu.bind(_e(t)),t.isSelectedOption=t.isSelectedOption.bind(_e(t)),t._renderActiveOption=t._renderActiveOption.bind(_e(t)),t.maybeCloseMenu=t.maybeCloseMenu.bind(_e(t)),t.maybeNavigate=t.maybeNavigate.bind(_e(t)),t._onFilterInput=t._onFilterInput.bind(_e(t)),t.updateActiveItemIndex=t.updateActiveItemIndex.bind(_e(t)),t.deleteFont=t.deleteFont.bind(_e(t)),t._performScrolling=t._performScrolling.bind(_e(t)),t.openFontUploader=t.openFontUploader.bind(_e(t)),t.resetHoveredItem=t.resetHoveredItem.bind(_e(t)),t._closeMenu=t._closeMenu.bind(_e(t)),t.getSelectedOption=t.getSelectedOption.bind(_e(t)),t.fonUploaderFinishedCallback=t.fonUploaderFinishedCallback.bind(_e(t)),t.cancelFontRemove=t.cancelFontRemove.bind(_e(t)),t.itemIndex=0,t}return t=l,r=[{key:"shouldComponentUpdate",value:function(e,t){return!P()(e,this.props)||!P()(t,this.state)}},{key:"componentDidMount",value:function(){window.top.addEventListener("mousedown",this.maybeCloseMenu),window.top.addEventListener("keydown",this.maybeNavigate),window.top.addEventListener("resize",this.updateMenuPosition),(this.state.iconPickerMenuCustomStyling||this.state.isControlSelectSVG)&&this.updateMenuPosition(),this.state.active&&this.props.onOpen()}},{key:"componentWillUnmount",value:function(){window.top.removeEventListener("mousedown",this.maybeCloseMenu),window.top.removeEventListener("keydown",this.maybeNavigate),window.top.removeEventListener("resize",this.updateMenuPosition)}},{key:"componentDidUpdate",value:function(e,t){var r=this.state.active&&!t.active,n=!P()(e.options,this.props.options);(r||n)&&this.updateMenuPosition(),t.active&&this.state.active}},{key:"isSelectedOption",value:function(e,t){return t===this.getSelectedOption()}},{key:"_onFilterInput",value:function(e,t){this.setState({filterValue:t})}},{key:"deleteFont",value:function(e){this.setState({deleteConfirmation:e})}},{key:"cancelFontRemove",value:function(){this.setState({deleteConfirmation:""})}},{key:"openFontUploader",value:function(){this._closeMenu()}},{key:"fonUploaderFinishedCallback",value:function(e){this._onChange("",e)}},{key:"getSelectedOption",value:function(){return this._getSelectedOptionItem(this._flattenOptions(this.props.options))}},{key:"_getSelectedOptionItem",value:function(e){var t=this.props.value,r=!g()(t)&&""!==t,n=!g()(this.props.additionalOptions)&&!A()(this.props.additionalOptions)&&this.props.additionalOptions;if(g()(t))return"";if(r&&(r=b()(e)?-1!==Y()(e,t):!g()(e[t])),!r&&!A()(n)&&Z()(n,"uploaded")){var o=n.uploaded.filter((function(e){return t===e}));if(!A()(o)&&b()(o))return o[0]}return r||(t=this.props.selectFirst?b()(e)?e[0]:F()(e,(function(e){return!A()(e)})):null),t}},{key:"_renderActiveOption",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(this.state.active&&(!this.props.searchable||""!==this.state.filterValue))return!1;var r=this.getSelectedOption(),n=b()(e)?{0:r}:O()(e,this.isSelectedOption);if(!A()(n)){var i=C()(n)[0],a=L()(n)[0],l=b()(e)?a:i,s=i;""!==t&&(s="".concat(t,"-").concat(s));var u=o().createElement(pe,{key:s,additionalContent:"",value:l,name:this._getLabelForOption(a,l),isMenuActive:this.state.active,selectedOption:r,_onChange:this._onChange,_setHoveredItem:this.updateActiveItemIndex,_resetHoveredItem:this.resetHoveredItem,itemIndex:0,isItemHovered:!1,_closeMenu:this._closeMenu,displayCheckMark:!0,customMarker:this.props.customMarker});return this.state.active?o().createElement("li",{className:"et-fb-option-subgroup",key:s},o().createElement("ul",null,u)):u}return"select_product"===this.props.type&&this.renderNoResults()}},{key:"_flattenOptions",value:function(e){var t=this,r=b()(e)?[]:{};return G()(e,(function(e,n){k()(e)||b()(e)?t.isSocialMediaItem()?r[n]=e.value:G()(e,(function(e,t){r[t]=e})):r[n]=e})),r}},{key:"_isOptionsGrouped",value:function(){return!P()(this._flattenOptions(this.props.options),this.props.options)}},{key:"_render_options_svg",value:function(e){var t=this;if(!this.state.isControlSelectSVG||this.state.active)return null;var r=b()(e),n=r?e:C()(e),o=this.getSelectedOption();return f()(n,(function(n,i){var a=r?i:n,l=q()(e,a);return t._renderOptionsItem(l,a,o,"","-svg")}))}},{key:"_render_options",value:function(e){var t=this;if(!this.state.active)return!1;var r=b()(e),n=r?e:C()(e),i=this.props;if(!A()(i.order)){var a=f()(i.order,String);n=D()(te()(a,n),J()(n,a))}var l=this.getSelectedOption();return f()(n,(function(n,i){var a=r?i:n,u=q()(e,a);if(!t.isSocialMediaItem()&&(k()(u)||b()(u))){var c=f()(u,(function(e,r){return t._renderOptionsItem(e,r,l,a)})),d=Z()(t.props.optionGroups,a)?t.props.optionGroups[a]:a,p={"et-fb-option-subgroup":!0,"et-fb-option-subgroup-separator":!!g()(t.props.groupSeparator)||t.props.groupSeparator};return o().createElement("li",{className:s()(p),key:a},o().createElement("p",{className:"et-fb-subgroup-title"},d),o().createElement("ul",null,c))}return t._renderOptionsItem(u,a,l)}))}},{key:"_getLabelForOption",value:function(e,t){var r=A()(e)&&!A()(this.props.emptyLabel)?this.props.emptyLabel:e;return U()(this.props.labelFilter)||(r=this.props.labelFilter(r,t)),r}},{key:"_renderOptionsItem",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=m()(t)?e:t,l=""!==n?"".concat(n,"-").concat(a).concat(i):"".concat(a).concat(i),s="";if(!p()(e)&&this.isSocialMediaItem()&&(e=e.value),-1!==e.toLowerCase().indexOf(this.state.filterValue.toLowerCase())){this.itemIndex++;var u=this.state.hoveredItemIndex===this.itemIndex&&"divider"!==this.props.type||this.state.hoveredItemIndex===this.itemIndex&&1===this.itemIndex,c=this.props.getSvgContent;if(_()(c)){var f=u||r===a,d=q()(this.props,"transformValues","");s=c(a,f,this.props.type,d)}return o().createElement(pe,{key:l,additionalContent:s,value:a,name:this._getLabelForOption(e,a),isMenuActive:this.state.active||""!==i,selectedOption:r,_onChange:this._onChange,_setHoveredItem:this.updateActiveItemIndex,_resetHoveredItem:this.resetHoveredItem,itemIndex:this.itemIndex,isItemHovered:u,_closeMenu:this._closeMenu,displayCheckMark:!0,customMarker:!1,hoverAction:this.props._hoverAction,additionalContentFirst:this.props.additionalContentFirst})}}},{key:"_renderHeightPreserver",value:function(){var e=this;return o().createElement("li",{ref:function(t){return e.heightPreserverRef=t},className:"et-fb-select-options-filter select-option-item et-fb-select__height-preserver"})}},{key:"toggleMenu",value:function(e){var t=this;window.top.jQuery(e.target).closest(".et-fb-select-options-filter, .et-fb-upload-font, .et-common-icon--delete, .et-fb-font-removal-activated").length>0||this.setState({active:!this.state.active,menuHeight:0,deleteConfirmation:"",filterValue:""},(function(){t.state.active?t.props.onOpen():t.props.onClose()}))}},{key:"maybeCloseMenu",value:function(e){this.state.active&&jQuery(e.target).closest(jQuery(this.divRef.current)).length<1&&this._closeMenu()}},{key:"_performScrolling",value:function(e){var t="down"===e?"+=".concat(26):"-=".concat(26);jQuery(this.divRef.current).find(".et-fb-settings-option-select").animate({scrollTop:t},0)}},{key:"maybeNavigate",value:function(e){if(B()([38,40,13],e.keyCode)&&!(jQuery(".et-fb-settings-option-select-advanced").closest(".et-fb-tabs__panel--active").length<1)){13===e.keyCode&&(-1!==this.state.hoveredItemIndex&&this.state.hoveredItemValue&&this._onChange(e,this.state.hoveredItemValue),this._closeMenu());var t=R()(this._flattenOptions(this.props.options)),r=-1===this.state.hoveredItemIndex?this.state.lastHoveredItem:this.state.hoveredItemIndex;40===e.keyCode&&(r=r===t?t:r+1,this._performScrolling("down"),event.preventDefault()),38===e.keyCode&&(r=r<=0?0:r-1,this._performScrolling("up"),event.preventDefault()),this.updateActiveItemIndex(r)}}},{key:"updateActiveItemIndex",value:function(e,t){var r=!g()(t)&&t;this.setState({hoveredItemIndex:e,hoveredItemValue:r})}},{key:"_onChange",value:function(e,t,r){if(t!==this.getSelectedOption())if(g()(this.props.__onChange)){var n=this.props.name,o=g()(t)?e.target.value:t;this.props._onChange(n,o)}else this.props.__onChange(t);r&&this._closeMenu()}},{key:"_onChangeAdditional",value:function(){this._closeMenu()}},{key:"_closeMenu",value:function(){this.setState({active:!1,menuHeight:0,deleteConfirmation:""},this.props.onClose);var e=jQuery(window.top.document.body),t=e.css("display"),r="initial"===t?"block":"initial";e.css({display:r}),setTimeout((function(){e.css({display:t})}),0)}},{key:"resetHoveredItem",value:function(){var e=this.state.hoveredItemIndex;this.setState({hoveredItemIndex:-1,lastHoveredItem:e})}},{key:"render",value:function(){var e,t,r=this,n=this.state.menuHeight,i=this.state.active&&!this.props.activeOnLoad?o().createElement("div",{className:"et-fb-settings-option-select-advanced-placeholder"}):"",a={};this.itemIndex=0;var l={"et-fb-settings-option-select":!0,"et-fb-allow-mouse-wheel":this.state.active,"et-fb-settings-option-select-advanced":!0},c={"et-fb-settings-custom-select-wrapper":!0,"et-fb-settings-option-select-active":this.state.active,"et-fb-settings-option-select-closed":!this.state.active,"et-fb-settings-option-select-searchable":this.state.active&&this.props.searchable,"et-fb-settings-option-select-grouped-options":this.state.active&&this._isOptionsGrouped(),"et-fb-settings-option-select-readonly":this.props.readonly};"column_structure"===this.props.processedKey&&(l["et-fb-settings-option-select--column-structure"]=!0),this.props.className?l[this.props.className]=!0:l["et-fb-main-setting"]=!0,t=this._renderActiveOption(this._flattenOptions(this.props.options)),e=this._render_options(this.props.options),this.state.active&&(a.top=this.state.menuPosition,a.width=this.state.menuWidth,this.state.iconPickerMenuCustomStyling&&a.width&&(a.marginLeft=a.width-145));var f=-1!==[ke.ON,ke.AUTO].indexOf(this.props.preserveHeight)&&this._renderHeightPreserver();if(this.state.isControlSelectSVG&&!this.state.active){var d=this._render_options_svg(this.props.options);t=o().createElement("li",{className:"et-fb-settings-custom-select-wrapper-inner"},o().createElement("ul",null,t,o().createElement("li",{className:"et-fb-select__height-preserver--hidden"},o().createElement("ul",null,d))))}var p=this.state.active?o().createElement(u.y_,{defaultStyle:{size:.8,opacity:0},style:{size:(0,u.ST)(1,{stiffness:300,damping:20}),opacity:(0,u.ST)(1,{stiffness:300,damping:20})}},(function(i){return o().createElement("ul",{className:s()(l),style:{maxHeight:n>0?n:"none",opacity:i.opacity,transform:"scale( ".concat(i.size," )")},role:r.props.role},o().createElement("li",{className:"et-fb-settings-custom-select-wrapper-inner et-fb-allow-mouse-wheel-form"},o().createElement("ul",null,r.props.beforeList(),t,void 0,e,r.props.afterList(f))))})):this.props.activeOnLoad?null:o().createElement("ul",{className:s()(l),style:{maxHeight:n>0?n:"none"}},t),h={onClick:this.toggleMenu};this.props.readonly&&delete h.onClick;var m,v,g,y=(m={"et-fb-settings-custom-select-wrapper-outer":!0},v="et-fb-settings-".concat(this.props.name,"-select-wrapper-outer"),g=!0,(v=ye(v))in m?Object.defineProperty(m,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):m[v]=g,m);return o().createElement("div",{className:s()(y),ref:this.divRef},i,o().createElement("div",ve({id:"et-fb-".concat(this.props.name),className:s()(c),style:a},h),p))}}],r&&ge(t.prototype,r),i&&ge(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(o().Component);Se.propTypes={selectFirst:a().bool,emptyLabel:a().string,role:a().string,labelFilter:a().func,preserveHeight:a().oneOf(L()(ke)),beforeList:a().func,afterList:a().func,onOpen:a().func,onClose:a().func,getSvgContent:a().oneOfType([a().bool,a().func]),customMarker:a().string,additionalContentFirst:a().bool},Se.defaultProps={selectFirst:!0,emptyLabel:"",role:"",labelFilter:null,preserveHeight:ke.AUTO,beforeList:ne(),afterList:ne(),onOpen:ne(),onClose:ne(),getSvgContent:!1,customMarker:"menuArrow",additionalContentFirst:!1};const Oe=Se},905:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Ae});var n=r(7363),o=r.n(n),i=r(4480),a=r.n(i),l=r(5298);const s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,u=(e,t,r)=>{s((()=>{if(e)return;const n=t.current;return r(n,!0),()=>{r(n)}}),[e,t,r])},c="szh-menu",f="item",d=(0,n.createContext)(),p=(0,n.createContext)({}),h=(0,n.createContext)({}),m=(0,n.createContext)({}),v=(0,n.createContext)({}),g=(0,n.createContext)({}),y=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),b=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),w=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),_=Object.freeze({FIRST:"first",LAST:"last"}),x=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),k="absolute",S="presentation",O="menuitem",E={"aria-hidden":!0,role:O},C=(e,t,r,o)=>{const{submenuCloseDelay:i}=(0,n.useContext)(g),{isParentOpen:a,submenuCtx:l,dispatch:s,updateItems:c}=(0,n.useContext)(p),f=()=>{!r&&!o&&s(b.SET,e.current)},d=()=>{!o&&s(b.UNSET,e.current)};return u(o,e,c),(0,n.useEffect)((()=>{r&&a&&t.current&&t.current.focus()}),[t,r,a]),{setHover:f,onBlur:e=>{r&&!e.currentTarget.contains(e.relatedTarget)&&d()},onPointerMove:e=>{o||(e.stopPropagation(),l.on(i,f,f))},onPointerLeave:(e,t)=>{l.off(),!t&&d()}}};function T(e,t){"function"==typeof e?e(t):e.current=t}const L=(e,t)=>(0,n.useMemo)((()=>e?t?r=>{T(e,r),T(t,r)}:e:t),[e,t]),M=({block:e,element:t,modifiers:r,className:o})=>(0,n.useMemo)((()=>{const n=t?`${e}__${t}`:e;let i=n;r&&Object.keys(r).forEach((e=>{const t=r[e];t&&(i+=` ${n}--${!0===t?e:`${e}-${t}`}`)}));let a="function"==typeof o?o(r):o;return"string"==typeof a&&(a=a.trim(),a&&(i+=` ${a}`)),i}),[e,t,r,o]),A=(e,t)=>{const r=(0,n.memo)(t),o=(0,n.forwardRef)(((e,t)=>{const o=(0,n.useRef)(null);return(0,l.jsx)(r,{...e,itemRef:o,externalRef:t,isHovering:(0,n.useContext)(d)===o.current})}));return o.displayName=`WithHovering(${e})`,o};var j=r(1533);const P=e=>!!e&&"o"===e[0],I=j.unstable_batchedUpdates||(e=>e()),R=(Object.values,(e,t,r=1e-4)=>Math.abs(e-t)<r),N=(e,t)=>!0===e||!(!e||!e[t]),D=(e,t)=>"function"==typeof e?e(t):e,z="_szhsinMenu",F=(e,t)=>Object.defineProperty(t,z,{value:e}),H=(e,t)=>(t&&Object.keys(t).forEach((r=>{const n=e[r],o=t[r];e[r]="function"==typeof o&&n?(...e)=>{o(...e),n(...e)}:o})),e),B=e=>{for(;e;){if(!(e=e.parentNode)||e===document.body||!e.parentNode)return;const{overflow:t,overflowX:r,overflowY:n}=getComputedStyle(e);if(/auto|scroll|overlay|hidden/.test(t+n+r))return e}};function W(e,t){return{"aria-disabled":e||void 0,tabIndex:t?0:-1}}function U(e,t){for(let r=0;r<e.length;r++)if(e[r]===t)return r;return-1}const V=A("FocusableItem",(function({className:e,disabled:t,children:r,isHovering:o,itemRef:i,externalRef:a,...s}){const u=!!t,d=(0,n.useRef)(null),{setHover:p,onPointerLeave:h,...v}=C(i,d,o,u),{handleClose:g}=(0,n.useContext)(m),y=(0,n.useMemo)((()=>({disabled:u,hover:o,focusable:!0})),[u,o]),b=(0,n.useMemo)((()=>D(r,{...y,ref:d,closeMenu:g})),[r,y,g]),w=H({...v,onPointerLeave:e=>h(e,!0),onFocus:p},s);return(0,l.jsx)("li",{role:O,...W(u),...w,ref:L(a,i),className:M({block:c,element:f,modifiers:y,className:e}),children:b})})),q=(0,n.memo)((0,n.forwardRef)((function({className:e,...t},r){return(0,l.jsx)("li",{role:"separator",...t,ref:r,className:M({block:c,element:"divider",className:e})})}))),$=F("MenuButton",(0,n.forwardRef)((function({className:e,isOpen:t,disabled:r,children:o,...i},a){const s=(0,n.useMemo)((()=>({open:t})),[t]);return(0,l.jsx)("button",{"aria-haspopup":!0,"aria-expanded":t,"aria-disabled":r||void 0,type:"button",disabled:r,...i,ref:a,className:M({block:"szh-menu-button",modifiers:s,className:e}),children:o})}))),G=({className:e,containerRef:t,containerProps:r,children:o,isOpen:i,theming:a,transition:s,onClose:u})=>{const c=N(s,"item");return(0,l.jsx)("div",{...H({onKeyDown:({key:e})=>{if(e===y.ESC)D(u,{key:e,reason:w.CANCEL})},onBlur:e=>{i&&!e.currentTarget.contains(e.relatedTarget||document.activeElement)&&D(u,{reason:w.BLUR})}},r),className:M({block:"szh-menu-container",modifiers:(0,n.useMemo)((()=>({theme:a,itemTransition:c})),[a,c]),className:e}),style:{position:"absolute",...null==r?void 0:r.style},ref:t,children:o})},K=()=>{let e,t=0;return{toggle:e=>{e?t++:t--,t=Math.max(t,0)},on:(r,n,o)=>{t?e||(e=setTimeout((()=>{e=0,n()}),r)):null==o||o()},off:()=>{e&&(clearTimeout(e),e=0)}}},Y=(e,t,r,n)=>{const o=t.current.getBoundingClientRect(),i=e.current.getBoundingClientRect(),a=r===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:r.getBoundingClientRect(),l=(e=>{if("string"!=typeof e)return{top:0,right:0,bottom:0,left:0};const t=e.trim().split(/\s+/,4).map(parseFloat),r=isNaN(t[0])?0:t[0],n=isNaN(t[1])?r:t[1];return{top:r,right:n,bottom:isNaN(t[2])?r:t[2],left:isNaN(t[3])?n:t[3]}})(n),s=e=>e+i.left-a.left-l.left,u=e=>e+i.left+o.width-a.right+l.right,c=e=>e+i.top-a.top-l.top,f=e=>e+i.top+o.height-a.bottom+l.bottom;return{menuRect:o,containerRect:i,getLeftOverflow:s,getRightOverflow:u,getTopOverflow:c,getBottomOverflow:f,confineHorizontally:e=>{let t=s(e);if(t<0)e-=t;else{const r=u(e);r>0&&(t=s(e-=r),t<0&&(e-=t))}return e},confineVertically:e=>{let t=c(e);if(t<0)e-=t;else{const r=f(e);r>0&&(t=c(e-=r),t<0&&(e-=t))}return e}}},Q=({anchorRect:e,containerRect:t,menuRect:r,placeLeftorRightY:n,placeLeftX:o,placeRightX:i,getLeftOverflow:a,getRightOverflow:l,confineHorizontally:s,confineVertically:u,arrowRef:c,arrow:f,direction:d,position:p})=>{let h,m,v,g=d,y=n;"initial"!==p&&(y=u(y),"anchor"===p&&(y=Math.min(y,e.bottom-t.top),y=Math.max(y,e.top-t.top-r.height))),"left"===g?(h=o,"initial"!==p&&(m=a(h),m<0&&(v=l(i),(v<=0||-m>v)&&(h=i,g="right")))):(h=i,"initial"!==p&&(v=l(h),v>0&&(m=a(o),(m>=0||-m<v)&&(h=o,g="left")))),"auto"===p&&(h=s(h));const b=f?(({arrowRef:e,menuY:t,anchorRect:r,containerRect:n,menuRect:o})=>{let i=r.top-n.top-t+r.height/2;const a=1.25*e.current.offsetHeight;return i=Math.max(a,i),i=Math.min(i,o.height-a),i})({menuY:y,arrowRef:c,anchorRect:e,containerRect:t,menuRect:r}):void 0;return{arrowY:b,x:h,y,computedDirection:g}},Z=({anchorRect:e,containerRect:t,menuRect:r,placeToporBottomX:n,placeTopY:o,placeBottomY:i,getTopOverflow:a,getBottomOverflow:l,confineHorizontally:s,confineVertically:u,arrowRef:c,arrow:f,direction:d,position:p})=>{let h,m,v,g="top"===d?"top":"bottom",y=n;"initial"!==p&&(y=s(y),"anchor"===p&&(y=Math.min(y,e.right-t.left),y=Math.max(y,e.left-t.left-r.width))),"top"===g?(h=o,"initial"!==p&&(m=a(h),m<0&&(v=l(i),(v<=0||-m>v)&&(h=i,g="bottom")))):(h=i,"initial"!==p&&(v=l(h),v>0&&(m=a(o),(m>=0||-m<v)&&(h=o,g="top")))),"auto"===p&&(h=u(h));const b=f?(({arrowRef:e,menuX:t,anchorRect:r,containerRect:n,menuRect:o})=>{let i=r.left-n.left-t+r.width/2;const a=1.25*e.current.offsetWidth;return i=Math.max(a,i),i=Math.min(i,o.width-a),i})({menuX:y,arrowRef:c,anchorRect:e,containerRect:t,menuRect:r}):void 0;return{arrowX:b,x:y,y:h,computedDirection:g}},X=({ariaLabel:e,menuClassName:t,menuStyle:r,arrow:o,arrowProps:i={},anchorPoint:a,anchorRef:u,containerRef:f,containerProps:m,focusProps:v,externalRef:x,parentScrollingRef:S,align:O="start",direction:C="bottom",position:T="auto",overflow:A="visible",setDownOverflow:z,repositionFlag:F,captureFocus:V=!0,state:q,endTransition:$,isDisabled:X,menuItemFocus:J,gap:ee=0,shift:te=0,children:re,onClose:ne,...oe})=>{const[ie,ae]=(0,n.useState)({x:-9999,y:-9999}),[le,se]=(0,n.useState)({}),[ue,ce]=(0,n.useState)(),[fe,de]=(0,n.useState)(C),[pe]=(0,n.useState)(K),[he,me]=(0,n.useReducer)((e=>e+1),1),{transition:ve,boundingBoxRef:ge,boundingBoxPadding:ye,rootMenuRef:be,rootAnchorRef:we,scrollNodesRef:_e,reposition:xe,viewScroll:ke,submenuCloseDelay:Se}=(0,n.useContext)(g),{submenuCtx:Oe,reposSubmenu:Ee=F}=(0,n.useContext)(h),Ce=(0,n.useRef)(null),Te=(0,n.useRef)(),Le=(0,n.useRef)(),Me=(0,n.useRef)(!1),Ae=(0,n.useRef)({width:0,height:0}),je=(0,n.useRef)((()=>{})),{hoverItem:Pe,dispatch:Ie,updateItems:Re}=((e,t)=>{const[r,o]=(0,n.useState)(),i=(0,n.useRef)({items:[],hoverIndex:-1,sorted:!1}).current,a=(0,n.useCallback)(((e,r)=>{const{items:n}=i;if(e)if(r)n.push(e);else{const r=n.indexOf(e);r>-1&&(n.splice(r,1),e.contains(document.activeElement)&&(t.current.focus(),o()))}else i.items=[];i.hoverIndex=-1,i.sorted=!1}),[i,t]);return{hoverItem:r,dispatch:(0,n.useCallback)(((t,r,n)=>{const{items:a,hoverIndex:l}=i,s=()=>{if(i.sorted)return;const t=e.current.querySelectorAll(".szh-menu__item");a.sort(((e,r)=>U(t,e)-U(t,r))),i.sorted=!0};let u,c=-1;switch(t){case b.RESET:break;case b.SET:u=r;break;case b.UNSET:u=e=>e===r?void 0:e;break;case b.FIRST:s(),c=0,u=a[c];break;case b.LAST:s(),c=a.length-1,u=a[c];break;case b.SET_INDEX:s(),c=n,u=a[c];break;case b.INCREASE:s(),c=l,c<0&&(c=a.indexOf(r)),c++,c>=a.length&&(c=0),u=a[c];break;case b.DECREASE:s(),c=l,c<0&&(c=a.indexOf(r)),c--,c<0&&(c=a.length-1),u=a[c]}u||(c=-1),o(u),i.hoverIndex=c}),[e,i]),updateItems:a}})(Ce,Te),Ne=P(q),De=N(ve,"open"),ze=N(ve,"close"),Fe=_e.current,He=(0,n.useCallback)((e=>{var t;const r=u?null==(t=u.current)?void 0:t.getBoundingClientRect():a?{left:a.x,right:a.x,top:a.y,bottom:a.y,width:0,height:0}:null;if(!r)return void 0;Fe.menu||(Fe.menu=(ge?ge.current:B(be.current))||window);const n=Y(f,Ce,Fe.menu,ye);let{arrowX:i,arrowY:l,x:s,y:c,computedDirection:d}=(({arrow:e,align:t,direction:r,gap:n,shift:o,position:i,anchorRect:a,arrowRef:l,positionHelpers:s})=>{const{menuRect:u,containerRect:c}=s,f="left"===r||"right"===r;let d=f?n:o,p=f?o:n;if(e){const e=l.current;f?d+=e.offsetWidth:p+=e.offsetHeight}const h=a.left-c.left-u.width-d,m=a.right-c.left+d,v=a.top-c.top-u.height-p,g=a.bottom-c.top+p;let y,b;"end"===t?(y=a.right-c.left-u.width,b=a.bottom-c.top-u.height):"center"===t?(y=a.left-c.left-(u.width-a.width)/2,b=a.top-c.top-(u.height-a.height)/2):(y=a.left-c.left,b=a.top-c.top),y+=d,b+=p;const w={...s,anchorRect:a,placeLeftX:h,placeRightX:m,placeLeftorRightY:b,placeTopY:v,placeBottomY:g,placeToporBottomX:y,arrowRef:l,arrow:e,direction:r,position:i};switch(r){case"left":case"right":return Q(w);default:return Z(w)}})({arrow:o,align:O,direction:C,gap:ee,shift:te,position:T,anchorRect:r,arrowRef:Le,positionHelpers:n});const{menuRect:p}=n;let h=p.height;if(!e&&"visible"!==A){const{getTopOverflow:e,getBottomOverflow:t}=n;let r,o;const i=Ae.current.height,a=t(c);if(a>0||R(a,0)&&R(h,i))r=h-a,o=a;else{const t=e(c);(t<0||R(t,0)&&R(h,i))&&(r=h+t,o=0-t,r>=0&&(c-=t))}r>=0?(h=r,ce({height:r,overflowAmt:o})):ce()}o&&se({x:i,y:l}),ae({x:s,y:c}),de(d),Ae.current={width:p.width,height:h}}),[o,O,ye,C,ee,te,T,A,a,u,f,ge,be,Fe]);s((()=>{Ne&&(He(),Me.current&&me()),Me.current=Ne,je.current=He}),[Ne,He,Ee]),s((()=>{ue&&!z&&(Ce.current.scrollTop=0)}),[ue,z]),s((()=>Re),[Re]),(0,n.useEffect)((()=>{let{menu:e}=Fe;if(!Ne||!e)return;if(e=e.addEventListener?e:window,!Fe.anchors){Fe.anchors=[];let t=B(we&&we.current);for(;t&&t!==e;)Fe.anchors.push(t),t=B(t)}let t=ke;if(Fe.anchors.length&&"initial"===t&&(t="auto"),"initial"===t)return;const r=()=>{"auto"===t?I((()=>He(!0))):D(ne,{reason:w.SCROLL})},n=Fe.anchors.concat("initial"!==ke?e:[]);return n.forEach((e=>e.addEventListener("scroll",r))),()=>n.forEach((e=>e.removeEventListener("scroll",r)))}),[we,Fe,Ne,ne,ke,He]);const Be=!!ue&&ue.overflowAmt>0;(0,n.useEffect)((()=>{if(Be||!Ne||!S)return;const e=()=>I(He),t=S.current;return t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}),[Ne,Be,S,He]),(0,n.useEffect)((()=>{if("function"!=typeof ResizeObserver||"initial"===xe)return;const e=new ResizeObserver((([e])=>{const{borderBoxSize:t,target:r}=e;let n,o;if(t){const{inlineSize:e,blockSize:r}=t[0]||t;n=e,o=r}else{const e=r.getBoundingClientRect();n=e.width,o=e.height}0!==n&&0!==o&&(R(n,Ae.current.width,1)&&R(o,Ae.current.height,1)||(0,j.flushSync)((()=>{je.current(),me()})))})),t=Ce.current;return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}),[xe]),(0,n.useEffect)((()=>{if(!Ne)return Ie(b.RESET),void(ze||ce());const{position:e,alwaysUpdate:t}=J||{},r=()=>{e===_.FIRST?Ie(b.FIRST):e===_.LAST?Ie(b.LAST):e>=-1&&Ie(b.SET_INDEX,void 0,e)};if(t)r();else if(V){const e=setTimeout((()=>{Ce.current.contains(document.activeElement)||(Te.current.focus(),r())}),De?170:100);return()=>clearTimeout(e)}}),[Ne,De,ze,V,J,Ie]);const We=(0,n.useMemo)((()=>({isParentOpen:Ne,submenuCtx:pe,dispatch:Ie,updateItems:Re})),[Ne,pe,Ie,Re]);let Ue,Ve;ue&&(z?Ve=ue.overflowAmt:Ue=ue.height);const qe=(0,n.useMemo)((()=>({reposSubmenu:he,submenuCtx:pe,overflow:A,overflowAmt:Ve,parentMenuRef:Ce,parentDir:fe})),[he,pe,A,Ve,fe]),$e=Ue>=0?{maxHeight:Ue,overflow:A}:void 0,Ge=(0,n.useMemo)((()=>({state:q,dir:fe})),[q,fe]),Ke=(0,n.useMemo)((()=>({dir:fe})),[fe]),Ye=M({block:c,element:"arrow",modifiers:Ke,className:i.className}),Qe=(0,l.jsxs)("ul",{role:"menu","aria-label":e,...W(X),...H({onPointerEnter:null==Oe?void 0:Oe.off,onPointerMove:e=>{e.stopPropagation(),pe.on(Se,(()=>{Ie(b.RESET),Te.current.focus()}))},onPointerLeave:e=>{e.target===e.currentTarget&&pe.off()},onKeyDown:e=>{switch(e.key){case y.HOME:Ie(b.FIRST);break;case y.END:Ie(b.LAST);break;case y.UP:Ie(b.DECREASE,Pe);break;case y.DOWN:Ie(b.INCREASE,Pe);break;case y.SPACE:return void(e.target&&-1!==e.target.className.indexOf(c)&&e.preventDefault());default:return}e.preventDefault(),e.stopPropagation()},onAnimationEnd:()=>{"closing"===q&&ce(),D($)}},oe),ref:L(x,Ce),className:M({block:c,modifiers:Ge,className:t}),style:{...r,...$e,margin:0,display:"closed"===q?"none":void 0,position:k,left:ie.x,top:ie.y},children:[(0,l.jsx)("li",{tabIndex:-1,style:{position:k,left:0,top:0,display:"block",outline:"none"},ref:Te,...E,...v}),o&&(0,l.jsx)("li",{...E,...i,className:Ye,style:{display:"block",position:k,left:le.x,top:le.y,...i.style},ref:Le}),(0,l.jsx)(h.Provider,{value:qe,children:(0,l.jsx)(p.Provider,{value:We,children:(0,l.jsx)(d.Provider,{value:Pe,children:D(re,Ge)})})})]});return m?(0,l.jsx)(G,{...m,isOpen:Ne,children:Qe}):Qe},J=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],ee=e=>({_s:e,status:J[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}),te=e=>e?6:5,re=(e,t,r,n,o)=>{clearTimeout(n.current);const i=ee(e);t(i),r.current=i,o&&o({current:i})},ne=({enter:e=!0,exit:t=!0,preEnter:r,preExit:o,timeout:i,initialEntered:a,mountOnEnter:l,unmountOnExit:s,onStateChange:u}={})=>{const[c,f]=(0,n.useState)((()=>ee(a?2:te(l)))),d=(0,n.useRef)(c),p=(0,n.useRef)(),[h,m]=(e=>"object"==typeof e?[e.enter,e.exit]:[e,e])(i),v=(0,n.useCallback)((()=>{const e=((e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return te(t)}})(d.current._s,s);e&&re(e,f,d,p,u)}),[u,s]),g=(0,n.useCallback)((n=>{const i=e=>{switch(re(e,f,d,p,u),e){case 1:h>=0&&(p.current=setTimeout(v,h));break;case 4:m>=0&&(p.current=setTimeout(v,m));break;case 0:case 3:p.current=((e,t)=>setTimeout((()=>{isNaN(document.body.offsetTop)||e(t+1)}),0))(i,e)}},a=d.current.isEnter;"boolean"!=typeof n&&(n=!a),n?!a&&i(e?r?0:1:2):a&&i(t?o?3:4:te(s))}),[v,u,e,t,r,o,h,m,s]);return(0,n.useEffect)((()=>()=>clearTimeout(p.current)),[]),[c,g,v]},oe=e=>{const[t,r]=(({initialOpen:e,initialMounted:t,unmountOnClose:r,transition:n,transitionTimeout:o=500}={})=>{const[{status:i},a,l]=ne({initialEntered:e,mountOnEnter:!t,unmountOnExit:r,timeout:o,enter:N(n,"open"),exit:N(n,"close")});return[{state:x[i],endTransition:l},a]})(e),[o,i]=(0,n.useState)();return[{menuItemFocus:o,...t},r,(e,t)=>{i({position:e,alwaysUpdate:t}),r(!0)}]},ie=(e,t)=>{const r=(0,n.useRef)(t);(0,n.useEffect)((()=>{r.current!==t&&D(e,{open:t}),r.current=t}),[e,t])},ae=A("SubMenu",(function({"aria-label":e,className:t,disabled:r,direction:o,label:i,openTrigger:a,onMenuChange:s,isHovering:d,instanceRef:m,itemRef:v,captureFocus:w,repositionFlag:x,itemProps:k={},...E}){const C=(0,n.useContext)(g),{rootMenuRef:T,submenuOpenDelay:A,submenuCloseDelay:R}=C,{parentMenuRef:N,parentDir:z,overflow:F}=(0,n.useContext)(h),{isParentOpen:B,submenuCtx:U,dispatch:V,updateItems:q}=(0,n.useContext)(p),$="visible"!==F,[G,K,Y]=oe(C),{state:Q}=G,Z=!!r,J=P(Q),ee=(0,n.useRef)(null),[te]=(0,n.useState)({v:0}),re=()=>{U.off(),te.v&&(clearTimeout(te.v),te.v=0)},ne=(...e)=>{re(),ae(),!Z&&Y(...e)},ae=()=>!d&&!Z&&V(b.SET,v.current),le=e=>{ae(),a||(te.v=setTimeout((()=>I(ne)),Math.max(e,0)))};u(Z,v,q),ie(s,J),(0,n.useEffect)((()=>U.toggle(J)),[U,J]),(0,n.useEffect)((()=>()=>clearTimeout(te.v)),[te]),(0,n.useEffect)((()=>{d&&B?v.current.focus():K(!1)}),[d,B,K,v]),(0,n.useImperativeHandle)(m,(()=>({openMenu:(...e)=>{B&&ne(...e)},closeMenu:()=>{J&&(v.current.focus(),K(!1))}})));const se=(0,n.useMemo)((()=>({open:J,hover:d,disabled:Z,submenu:!0})),[J,d,Z]),{ref:ue,className:ce,...fe}=k,de=H({onPointerEnter:U.off,onPointerMove:e=>{Z||(e.stopPropagation(),te.v||J||U.on(R,(()=>le(A-R)),(()=>le(A))))},onPointerLeave:()=>{re(),J||V(b.UNSET,v.current)},onKeyDown:e=>{if(d)switch(e.key){case y.ENTER:e.preventDefault();case y.SPACE:case y.RIGHT:"none"!==a&&ne(_.FIRST)}},onClick:()=>"none"!==a&&ne()},fe);return(0,l.jsxs)("li",{className:M({block:c,element:"submenu",className:t}),style:{position:"relative"},role:S,ref:ee,onKeyDown:e=>{let t=!1;switch(e.key){case y.LEFT:J&&(v.current.focus(),K(!1),t=!0);break;case y.RIGHT:J||(t=!0)}t&&(e.preventDefault(),e.stopPropagation())},children:[(0,l.jsx)("div",{role:O,"aria-haspopup":!0,"aria-expanded":J,...W(Z,d),...de,ref:L(ue,v),className:M({block:c,element:f,modifiers:se,className:ce}),children:(0,n.useMemo)((()=>D(i,se)),[i,se])}),Q&&(()=>{const t=(0,l.jsx)(X,{...E,...G,ariaLabel:e||("string"==typeof i?i:"Submenu"),anchorRef:v,containerRef:$?T:ee,direction:o||("right"===z||"left"===z?z:"right"),parentScrollingRef:$&&N,isDisabled:Z}),r=T.current;return $&&r?(0,j.createPortal)(t,r):t})()]})})),le=A("MenuItem",(function({className:e,value:t,href:r,type:o,checked:i,disabled:a,children:s,onClick:u,isHovering:d,itemRef:p,externalRef:h,...g}){const b=!!a,{setHover:w,..._}=C(p,p,d,b),x=(0,n.useContext)(m),k=(0,n.useContext)(v),E="radio"===o,T="checkbox"===o,A=!(!r||b||E||T),j=E?k.value===t:!!T&&!!i,P=e=>{if(b)return e.stopPropagation(),void e.preventDefault();const r={value:t,syntheticEvent:e};void 0!==e.key&&(r.key=e.key),T&&(r.checked=!j),E&&(r.name=k.name),D(u,r),E&&D(k.onRadioChange,r),x.handleClick(r,T||E)},I=(0,n.useMemo)((()=>({type:o,disabled:b,hover:d,checked:j,anchor:A})),[o,b,d,j,A]),R=H({..._,onPointerDown:w,onKeyDown:e=>{if(d)switch(e.key){case y.ENTER:e.preventDefault();case y.SPACE:A?p.current.click():P(e)}},onClick:P},g),N={role:E?"menuitemradio":T?"menuitemcheckbox":O,"aria-checked":E||T?j:void 0,...W(b,d),...R,ref:L(h,p),className:M({block:c,element:f,modifiers:I,className:e}),children:(0,n.useMemo)((()=>D(s,I)),[s,I])};return A?(0,l.jsx)("li",{role:S,children:(0,l.jsx)("a",{href:r,...N})}):(0,l.jsx)("li",{...N})})),se=(0,n.forwardRef)((function({"aria-label":e,className:t,containerProps:r,initialMounted:o,unmountOnClose:i,transition:a,transitionTimeout:s,boundingBoxRef:u,boundingBoxPadding:c,reposition:f="auto",submenuOpenDelay:d=300,submenuCloseDelay:p=150,viewScroll:h="initial",portal:v,theming:b,onItemClick:_,...x},k){const S=(0,n.useRef)(null),O=(0,n.useRef)({}),{anchorRef:E,state:C,onClose:T}=x,L=(0,n.useMemo)((()=>({initialMounted:o,unmountOnClose:i,transition:a,transitionTimeout:s,boundingBoxRef:u,boundingBoxPadding:c,rootMenuRef:S,rootAnchorRef:E,scrollNodesRef:O,reposition:f,viewScroll:h,submenuOpenDelay:d,submenuCloseDelay:p})),[o,i,a,s,E,u,c,f,h,d,p]),M=(0,n.useMemo)((()=>({handleClick(e,t){e.stopPropagation||D(_,e);let r=e.keepOpen;void 0===r&&(r=t&&e.key===y.SPACE),r||D(T,{value:e.value,key:e.key,reason:w.CLICK})},handleClose(e){D(T,{key:e,reason:w.CLICK})}})),[_,T]);if(!C)return null;const A=(0,l.jsx)(g.Provider,{value:L,children:(0,l.jsx)(m.Provider,{value:M,children:(0,l.jsx)(X,{...x,ariaLabel:e||"Menu",externalRef:k,containerRef:S,containerProps:{className:t,containerRef:S,containerProps:r,theming:b,transition:a,onClose:T}})})});return!0===v&&"undefined"!=typeof document?(0,j.createPortal)(A,document.body):v?v.target?(0,j.createPortal)(A,v.target):v.stablePosition?null:A:A})),ue=(0,n.forwardRef)((function({"aria-label":e,captureFocus:t,initialOpen:r,menuButton:o,instanceRef:i,onMenuChange:a,...s},u){const[c,f,d]=oe(s),{state:p}=c,h=P(p),m=(0,n.useRef)(null),v=((e,t)=>{const[r]=(0,n.useState)({});return{onMouseDown:()=>{r.v=e&&"closed"!==e},onClick:e=>r.v?r.v=!1:t(!0,e)}})(p,((e,t)=>d(t.detail?void 0:_.FIRST))),g=(0,n.useCallback)((e=>{f(!1),e.key&&m.current.focus()}),[f]),b=D(o,{open:h});if(!b||!b.type)throw new Error("Menu requires a menuButton prop.");const w={ref:L(b.ref,m),...H({onKeyDown:e=>{switch(e.key){case y.UP:d(_.LAST);break;case y.DOWN:d(_.FIRST);break;default:return}e.preventDefault()},...v},b.props)};"MenuButton"===b.type[z]&&(w.isOpen=h);const x=(0,n.cloneElement)(b,w);return ie(a,h),(0,n.useImperativeHandle)(i,(()=>({openMenu:d,closeMenu:()=>f(!1)}))),(0,l.jsxs)(n.Fragment,{children:[x,(0,l.jsx)(se,{...s,...c,"aria-label":e||("string"==typeof b.props.children?b.props.children:"Menu"),anchorRef:m,ref:u,onClose:g})]})}));var ce=r(3379),fe=r.n(ce),de=r(7795),pe=r.n(de),he=r(569),me=r.n(he),ve=r(3565),ge=r.n(ve),ye=r(9216),be=r.n(ye),we=r(4589),_e=r.n(we),xe=r(4202),ke={};ke.styleTagTransform=_e(),ke.setAttributes=ge(),ke.insert=me().bind(null,"head"),ke.domAPI=pe(),ke.insertStyleElement=be();fe()(xe.Z,ke);xe.Z&&xe.Z.locals&&xe.Z.locals;var Se=r(6789);function Oe(e){return Oe="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},Oe(e)}function Ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(r),!0).forEach((function(t){Te(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Te(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Oe(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Oe(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Me(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Me(e,t)}(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 Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const Ae=function(e){var t=Le((0,n.useState)({}),2),r=t[0],i=t[1],l=Le((0,n.useState)(null),2),s=l[0],u=l[1],c=function(e){return o().createElement(o().Fragment,null,o().createElement(V,null,(function(t){var n,a=t.ref;return o().createElement("input",{ref:a,type:"text",placeholder:"Search",value:null!==(n=r[e])&&void 0!==n?n:"",onChange:function(t){i(Ce(Ce({},r),{},Te({},e,t.target.value)))}})})),o().createElement(q,null))},f=function(e,t){var n={};return null!=r&&r[e]?Object.entries(t).forEach((function(t){var o=Le(t,2),i=o[0],a=o[1];((null==a?void 0:a.name)||a).toLowerCase().includes(r[e].toLowerCase())&&(n[i]=a)})):n=t,n},d=function(e,t){var r=t.items||{},n=r,i=Object.keys(r).length;return i>10&&(n=f("main",r)),o().createElement(ae,{label:o().createElement(o().Fragment,null,o().createElement("span",{className:"szh-menu__item__name"},t.name),o().createElement(Se.default,{icon:"caret-solid-right"})),key:e,align:"center",position:"anchor"},i>10&&c(e),p(n,e))},p=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return null;var n=t;return e.showSearchField&&(n=f("main",t)),Object.entries(n).map((function(t){var n=Le(t,2),i=n[0],a=n[1];return a.hasOwnProperty("items")?d(i,a):o().createElement(le,{type:"radio",value:i,key:i,onClick:function(t){return function(t,r,n){e.onSelect({parentValue:n||t.value,value:t.value,name:r.name})}(t,a,r)}},o().createElement("span",{className:"szh-menu__item__name"},(null==a?void 0:a.name)||a),i===e.value&&o().createElement(Se.default,{icon:"check"}))}))},h=function(e){if(e.target){var t=e.target.getBoundingClientRect().top,r=window.top.innerHeight;u(r-t<400?t>=400?"top":"left":null)}},m=a()({"et-fb-scrollable-menu":e.scrollableParentMenu,"et-fb-select-menu":!0});return o().createElement("div",{className:"et-fb-select-menu-container"},o().createElement(ue,{menuButton:e.useOriginalButton?e.button:o().createElement($,{onClick:h},e.button),portal:{target:window.top.document.body},menuClassName:m,containerProps:{style:{zIndex:2000001,position:"fixed"}},transition:{open:!0,close:!1,item:!1},submenuCloseDelay:0,submenuOpenDelay:0,initialOpen:!0,initialMounted:!1,viewScroll:"auto",align:"center",direction:s},e.showSearchField&&c("main"),p(e.options)))}},6823:(e,t,r)=>{"use strict";r.d(t,{Nr:()=>n,nY:()=>s,np:()=>l});var n=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:30,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:100,l=i(e,r,0,t.offset().top,t.parent().width(),n,30,30,o,a);return{position:{left:l.left,top:l.top},size:{width:l.width,height:l.height},flags:{fitsInBottomSpace:l.fitsInBottomSpace,fitsInBottomAndTopSpace:l.fitsInBottomAndTopSpace,fitsWithScroll:l.fitsWithScroll}}},o=function(e,t,r,n,o,i){var a=t<=Math.min(n,r-o)-i,l=t<=r-o-i,s=Math.max(o,e),u=t;return a||(l?(s-=t-(n-i),u=t):(s=o,u=r-o-i)),{position:s,size:u,fitsInAfterSpace:a,fitsInBeforeAndAfterSpace:l}},i=function(e,t,r,n,i,a){var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:30,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:30,f=e.scrollLeft(),d=e.scrollTop(),p=e.width(),h=e.height(),m=p-((r=r>=f?r:f+l)-f),v=h-((n=n>=d?n:d+u)-d),g=t.parents().filter((function(){var e=jQuery(this).css("transform");return"none"!==e&&e.length>0})).first(),y=o(r-f,i,p,m,l,s),b=y.position,w=y.size,_=y.fitsInAfterSpace,x=y.fitsInBeforeAndAfterSpace,k=o(n-d,a,h,v,u,c),S=k.position,O=k.size,E=k.fitsInAfterSpace,C=k.fitsInBeforeAndAfterSpace;return g.length>0&&(b-=g.offset().left-f,S-=g.offset().top-d),{left:b,top:S,width:w,height:O,fitsInRightSpace:_,fitsInRightAndLeftSpace:x,fitsInBottomSpace:E,fitsInBottomAndTopSpace:C,fitsWithScroll:!E&&!C}},a=-1,l=function(){if(0<a)return a;var e=document.createElement("div"),t=document.createElement("div");e.style.visibility="hidden",e.style.width="100px",t.style.width="100%",t.style.height="100%",e.appendChild(t),document.body.appendChild(e);var r=e.offsetWidth;e.style.overflow="scroll";var n=t.offsetWidth;return document.body.removeChild(e),a=r-n},s=function(e){return e.document.body.scrollHeight>e.document.body.clientHeight}},6516:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>$});var n=r(7363),o=r.n(n),i=r(1193),a=r.n(i),l=r(418),s=r.n(l),u=r(6459),c=r(4480),f=r.n(c),d=r(5838),p=r.n(d),h=r(9070);function m(e){return m="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},m(e)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==m(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===m(i)?i:String(i)),n)}var o,i}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function y(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 r,n=_(e);if(t){var o=_(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return b(this,r)}}function b(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var x=function(e){!function(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&&g(e,t)}(a,e);var t,r,n,i=y(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return b(e,((e=i.call.apply(i,[this].concat(r))).getDefaultStyle=function(){return{size:e.props.scale,opacity:0}},e.getStyle=function(){return{size:e.props.enabled?(0,h.ST)(1,{stiffness:300,damping:20}):1,opacity:e.props.enabled?(0,h.ST)(1,{stiffness:300,damping:20}):1}},w(e)))}return t=a,(r=[{key:"render",value:function(){var e=this;return o().createElement(h.y_,{defaultStyle:this.getDefaultStyle(),style:this.getStyle(),onRest:this.props.onRest},(function(t){return e.props.children({opacity:t.opacity,transform:"scale(".concat(t.size,")")})}))}}])&&v(t.prototype,r),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.Component);x.propTypes={enabled:a().bool,scale:a().number,children:a().func.isRequired,onRest:a().func},x.defaultProps={enabled:!0,scale:.5,onRest:u.noop};const k=x;var S=r(911),O=r(6789),E=r(5311),C=r.n(E),T=r(547),L=r.n(T),M=r(3792),A=r.n(M),j=r(6823);function P(e){return P="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},P(e)}function I(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==P(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===P(i)?i:String(i)),n)}var o,i}function R(e,t){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},R(e,t)}function N(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 r,n=F(e);if(t){var o=F(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return D(this,r)}}function D(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return z(e)}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}var H=function(e){!function(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&&R(e,t)}(i,e);var t,r,n,o=N(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return D(e,((e=o.call.apply(o,[this].concat(r))).toggleBodyClass=function(){var t=C()("body"),r=C()(window),n=t.hasClass("rtl"),o=e.getLocks().length>0,i="et-common-scroll-lock--added-margin",a=parseInt(t.attr("data-et-common-scroll-lock-offset"))||0,l=t.find("#wpadminbar");if(o&&(0,j.nY)(window)){var s=(0,j.np)();t.addClass(i),t.css("margin".concat(n?"Left":"Right"),"".concat(s,"px")),l.length>0&&l.css("width","calc(100% - ".concat(s,"px)"))}!o&&t.hasClass(i)&&(t.removeClass(i),t.css("margin".concat(n?"Left":"Right"),""),l.length>0&&l.css("width","")),o&&0===a?t.attr("data-et-common-scroll-lock-offset",r.scrollTop()):o||0===a||(r.scrollTop(parseInt(t.attr("data-et-common-scroll-lock-offset"))||0),t.removeAttr("data-et-common-scroll-lock-offset")),t.toggleClass("et-common-scroll-lock",o)},e.getLocks=function(){return L()((C()("body").attr("data-et-common-scroll-locks")||"").split(","),(function(e){return!!e}))},e.setLocks=function(e){C()("body").attr("data-et-common-scroll-locks",e.join(","))},e.addLock=function(t){var r=e.getLocks();r.push(t),e.setLocks(A()(r))},e.removeLock=function(t){var r=e.getLocks();e.setLocks(L()(r,(function(e){return e!==t})))},z(e)))}return t=i,(r=[{key:"componentDidMount",value:function(){this.addLock(this.props.lockId),this.toggleBodyClass()}},{key:"componentDidUpdate",value:function(e){this.removeLock(e.lockId),this.addLock(this.props.lockId),this.toggleBodyClass()}},{key:"componentWillUnmount",value:function(){this.removeLock(this.props.lockId),this.toggleBodyClass()}},{key:"render",value:function(){return null}}])&&I(t.prototype,r),n&&I(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.PureComponent);H.propTypes={lockId:a().string.isRequired};const B=H;function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},W.apply(this,arguments)}function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return V(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return V(e,t)}(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 V(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var q=o().forwardRef((function(e,t){var r=e.animation,i=e.modalKey,a=e.children,l=e.draggable,u=U((0,n.useState)({x:0,y:0}),2),c=u[0],d=u[1],h=(0,n.useRef)(),m={enabled:r};s()(i)||(m.key=i);var v=function(){if(h.current){var e=window.top,t=h.current.getBoundingClientRect(),r=t.left,n=t.top;if(t.right>e.innerWidth&&(r=e.innerWidth-t.width),t.bottom>e.innerHeight&&(n=e.innerHeight-t.height),t.left<0&&(r=0),t.top<0&&(n=0),r!==t.left||n!==t.top){var o=r-t.left,i=n-t.top,a=h.current.style.transform.replace(/translate\((.*)px, (.*)px\)/,(function(e,t,r){var n=parseInt(t,10)+o,a=parseInt(r,10)+i;return d({x:n,y:a}),"translate(".concat(n,"px, ").concat(a,"px)")}));h.current.style.transform=a}}};(0,n.useEffect)((function(){var e=localStorage.getItem("".concat(i,"_position"));e&&d(JSON.parse(e));var t=h.current,r=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting||v()}))}),{root:null,rootMargin:"0px",threshold:0});t&&r.observe(t);var n=new ResizeObserver((function(){v()}));return t&&n.observe(t),function(){t&&(r.unobserve(t),n.unobserve(t))}}),[]);var g=function(e,t){var r={x:t.lastX,y:t.lastY};localStorage.setItem("".concat(i,"_position"),JSON.stringify(r)),d(r)},y=function(){return o().createElement("div",{className:"et-common-prompt__container",ref:h},a)},b=f()({"et-common-prompt":!0,"et-common-prompt-draggable":l});return o().createElement("div",{className:b,ref:t},!l&&o().createElement("div",{className:"et-common-prompt__overlay"}),o().createElement(k,W({},m,{onRest:v}),(function(e){return o().createElement("div",{className:"et-common-prompt__modal",style:e},l&&o().createElement(p(),{handle:".react-draggable > .et-common-prompt__header",bounds:"parent",position:c,onStop:g},y()),!l&&y())})),o().createElement(B,{lockId:"common-prompt"}))}));q.propTypes={animation:a().bool,modalKey:a().oneOfType([a().string,a().number]),draggable:a().bool},q.defaultProps={animation:!0,modalKey:"",draggable:!1},q.Header=o().memo((function(e){var t=e.children,r=e.render,n=e.onBack,i=e.onClose,a=e.className,l=void 0===a?"":a,s=f()({"et-common-prompt__header":!0,"et-common-prompt__header-back":n})+" ".concat(l);return o().createElement("div",{className:s},(0,u.isFunction)(n)&&o().createElement(S.default,{className:"et-common-button--round",onClick:n},o().createElement(O.default,{icon:"back",color:"#ffffff"})),o().createElement("span",null,t),(0,u.isFunction)(r)&&r(),(0,u.isFunction)(i)&&o().createElement("div",{className:"et-common-prompt__header-actions"},o().createElement(S.default,{className:"et-common-button--round",onClick:i,"data-testid":"ClosePrompt"},o().createElement(O.default,{icon:"close",color:"#ffffff"}))))})),q.Content=o().memo((function(e){var t=e.style,r=e.children;return o().createElement("div",{className:"et-common-prompt__body"},o().createElement("div",{className:"et-common-prompt__content",style:t},r))})),q.Content.propTypes={style:a().object},q.Content.defaultProps={style:{}},q.Actions=o().memo((function(e){var t=e.children;return o().createElement("div",{className:"et-common-prompt__footer"},t)}));const $=q},9114:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>gr});var n=r(7363),o=r.n(n),i=r(1193),a=r.n(i),l=r(3324),s=r.n(l),u="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),c=new Uint8Array(16);function f(){if(!u)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(c)}for(var d=[],p=0;p<256;++p)d[p]=(p+256).toString(16).substr(1);const h=function(e,t){var r=t||0,n=d;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")};const m=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||f)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||h(o)};function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),e}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(this,arguments)}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function S(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var O={HIDE:"__react_tooltip_hide_event",REBUILD:"__react_tooltip_rebuild_event",SHOW:"__react_tooltip_show_event"},E=function(e,t){var r;"function"==typeof window.CustomEvent?r=new window.CustomEvent(e,{detail:t}):(r=document.createEvent("Event")).initEvent(e,!1,!0,t),window.dispatchEvent(r)};var C=function(e,t){var r=this.state.show,n=this.props.id,o=this.isCapture(t.currentTarget),i=t.currentTarget.getAttribute("currentItem");o||t.stopPropagation(),r&&"true"===i?e||this.hideTooltip(t):(t.currentTarget.setAttribute("currentItem","true"),T(t.currentTarget,this.getTargetArray(n)),this.showTooltip(t))},T=function(e,t){for(var r=0;r<t.length;r++)e!==t[r]?t[r].setAttribute("currentItem","false"):t[r].setAttribute("currentItem","true")},L={id:"9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf",set:function(e,t,r){this.id in e?e[this.id][t]=r:Object.defineProperty(e,this.id,{configurable:!0,value:y({},t,r)})},get:function(e,t){var r=e[this.id];if(void 0!==r)return r[t]}};var M=function(e,t,r){var n=t.respectEffect,o=void 0!==n&&n,i=t.customEvent,a=void 0!==i&&i,l=this.props.id,s=r.target.getAttribute("data-tip")||null,u=r.target.getAttribute("data-for")||null,c=r.target;if(!this.isCustomEvent(c)||a){var f=null==l&&null==u||u===l;if(null!=s&&(!o||"float"===this.getEffect(c))&&f){var d=function(e){var t={};for(var r in e)"function"==typeof e[r]?t[r]=e[r].bind(e):t[r]=e[r];return t}(r);d.currentTarget=c,e(d)}}},A=function(e,t){var r={};return e.forEach((function(e){var n=e.getAttribute(t);n&&n.split(" ").forEach((function(e){return r[e]=!0}))})),r},j=function(){return document.getElementsByTagName("body")[0]};function P(e,t,r,n,o,i,a){for(var l=I(r),s=l.width,u=l.height,c=I(t),f=c.width,d=c.height,p=R(e,t,i),h=p.mouseX,m=p.mouseY,v=N(i,f,d,s,u),g=D(a),y=g.extraOffsetX,b=g.extraOffsetY,w=window.innerWidth,_=window.innerHeight,x=z(r),k=x.parentTop,S=x.parentLeft,O=function(e){var t=v[e].l;return h+t+y},E=function(e){var t=v[e].t;return m+t+b},C=function(e){return function(e){var t=v[e].r;return h+t+y}(e)>w},T=function(e){return function(e){var t=v[e].b;return m+t+b}(e)>_},L=function(e){return function(e){return O(e)<0}(e)||C(e)||function(e){return E(e)<0}(e)||T(e)},M=function(e){return!L(e)},A=["top","bottom","left","right"],j=[],P=0;P<4;P++){var F=A[P];M(F)&&j.push(F)}var H,B=!1,W=o!==n;return M(o)&&W?(B=!0,H=o):j.length>0&&L(o)&&L(n)&&(B=!0,H=j[0]),B?{isNewState:!0,newState:{place:H}}:{isNewState:!1,position:{left:parseInt(O(n)-S,10),top:parseInt(E(n)-k,10)}}}var I=function(e){var t=e.getBoundingClientRect(),r=t.height,n=t.width;return{height:parseInt(r,10),width:parseInt(n,10)}},R=function(e,t,r){var n=t.getBoundingClientRect(),o=n.top,i=n.left,a=I(t),l=a.width,s=a.height;return"float"===r?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:i+l/2,mouseY:o+s/2}},N=function(e,t,r,n,o){var i,a,l,s;return"float"===e?(i={l:-n/2,r:n/2,t:-(o+3+2),b:-3},l={l:-n/2,r:n/2,t:15,b:o+3+2+12},s={l:-(n+3+2),r:-3,t:-o/2,b:o/2},a={l:3,r:n+3+2,t:-o/2,b:o/2}):"solid"===e&&(i={l:-n/2,r:n/2,t:-(r/2+o+2),b:-r/2},l={l:-n/2,r:n/2,t:r/2,b:r/2+o+2},s={l:-(n+t/2+2),r:-t/2,t:-o/2,b:o/2},a={l:t/2,r:n+t/2+2,t:-o/2,b:o/2}),{top:i,bottom:l,left:s,right:a}},D=function(e){var t=0,r=0;for(var n in"[object String]"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/'/g,'"'))),e)"top"===n?r-=parseInt(e[n],10):"bottom"===n?r+=parseInt(e[n],10):"left"===n?t-=parseInt(e[n],10):"right"===n&&(t+=parseInt(e[n],10));return{extraOffsetX:t,extraOffsetY:r}},z=function(e){for(var t=e;t;){var r=window.getComputedStyle(t);if("none"!==r.getPropertyValue("transform")||"transform"===r.getPropertyValue("will-change"))break;t=t.parentElement}return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}};function F(e,t,r,n){if(t)return t;if(null!=r)return r;if(null===r)return null;var i=/<br\s*\/?>/;return n&&"false"!==n&&i.test(e)?e.split(i).map((function(e,t){return o().createElement("span",{key:t,className:"multi-line"},e)})):e}function H(e){var t={};return Object.keys(e).filter((function(e){return/(^aria-\w+$|^role$)/.test(e)})).forEach((function(r){t[r]=e[r]})),t}function B(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map((function(t){return e[t]}))}var W={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}};function U(e,t,r,n){return function(e,t){var r=t.text,n=t.background,o=t.border,i=t.arrow;return"\n \t.".concat(e," {\n\t color: ").concat(r,";\n\t background: ").concat(n,";\n\t border: 1px solid ").concat(o,";\n \t}\n\n \t.").concat(e,".place-top {\n margin-top: -10px;\n }\n .").concat(e,".place-top::before {\n border-top: 8px solid ").concat(o,";\n }\n .").concat(e,".place-top::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n bottom: -6px;\n left: 50%;\n margin-left: -8px;\n border-top-color: ").concat(i,";\n border-top-style: solid;\n border-top-width: 6px;\n }\n\n .").concat(e,".place-bottom {\n margin-top: 10px;\n }\n .").concat(e,".place-bottom::before {\n border-bottom: 8px solid ").concat(o,";\n }\n .").concat(e,".place-bottom::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n top: -6px;\n left: 50%;\n margin-left: -8px;\n border-bottom-color: ").concat(i,";\n border-bottom-style: solid;\n border-bottom-width: 6px;\n }\n\n .").concat(e,".place-left {\n margin-left: -10px;\n }\n .").concat(e,".place-left::before {\n border-left: 8px solid ").concat(o,";\n }\n .").concat(e,".place-left::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n right: -6px;\n top: 50%;\n margin-top: -4px;\n border-left-color: ").concat(i,";\n border-left-style: solid;\n border-left-width: 6px;\n }\n\n .").concat(e,".place-right {\n margin-left: 10px;\n }\n .").concat(e,".place-right::before {\n border-right: 8px solid ").concat(o,";\n }\n .").concat(e,".place-right::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n left: -6px;\n top: 50%;\n margin-top: -4px;\n border-right-color: ").concat(i,";\n border-right-style: solid;\n border-right-width: 6px;\n }\n ")}(e,function(e,t,r){var n=e.text,o=e.background,i=e.border,a=e.arrow?e.arrow:e.background,l=function(e){return W[e]?_({},W[e]):void 0}(t);n&&(l.text=n);o&&(l.background=o);r&&(l.border=i||("light"===t?"black":"white"));a&&(l.arrow=a);return l}(t,r,n))}var V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function q(e,t){return e(t={exports:{}},t.exports),t.exports}var $=function(e){return e&&e.Math==Math&&e},G=$("object"==typeof globalThis&&globalThis)||$("object"==typeof window&&window)||$("object"==typeof self&&self)||$("object"==typeof V&&V)||function(){return this}()||Function("return this")(),K=function(e){try{return!!e()}catch(e){return!0}},Y=!K((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Q={}.propertyIsEnumerable,Z=Object.getOwnPropertyDescriptor,X={f:Z&&!Q.call({1:2},1)?function(e){var t=Z(this,e);return!!t&&t.enumerable}:Q},J=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ee={}.toString,te=function(e){return ee.call(e).slice(8,-1)},re="".split,ne=K((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==te(e)?re.call(e,""):Object(e)}:Object,oe=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},ie=function(e){return ne(oe(e))},ae=function(e){return"object"==typeof e?null!==e:"function"==typeof e},le=function(e,t){if(!ae(e))return e;var r,n;if(t&&"function"==typeof(r=e.toString)&&!ae(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!ae(n=r.call(e)))return n;if(!t&&"function"==typeof(r=e.toString)&&!ae(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},se=function(e){return Object(oe(e))},ue={}.hasOwnProperty,ce=function(e,t){return ue.call(se(e),t)},fe=G.document,de=ae(fe)&&ae(fe.createElement),pe=function(e){return de?fe.createElement(e):{}},he=!Y&&!K((function(){return 7!=Object.defineProperty(pe("div"),"a",{get:function(){return 7}}).a})),me=Object.getOwnPropertyDescriptor,ve={f:Y?me:function(e,t){if(e=ie(e),t=le(t,!0),he)try{return me(e,t)}catch(e){}if(ce(e,t))return J(!X.f.call(e,t),e[t])}},ge=function(e){if(!ae(e))throw TypeError(String(e)+" is not an object");return e},ye=Object.defineProperty,be={f:Y?ye:function(e,t,r){if(ge(e),t=le(t,!0),ge(r),he)try{return ye(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},we=Y?function(e,t,r){return be.f(e,t,J(1,r))}:function(e,t,r){return e[t]=r,e},_e=function(e,t){try{we(G,e,t)}catch(r){G[e]=t}return t},xe="__core-js_shared__",ke=G[xe]||_e(xe,{}),Se=Function.toString;"function"!=typeof ke.inspectSource&&(ke.inspectSource=function(e){return Se.call(e)});var Oe,Ee,Ce,Te=ke.inspectSource,Le=G.WeakMap,Me="function"==typeof Le&&/native code/.test(Te(Le)),Ae=q((function(e){(e.exports=function(e,t){return ke[e]||(ke[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})})),je=0,Pe=Math.random(),Ie=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++je+Pe).toString(36)},Re=Ae("keys"),Ne=function(e){return Re[e]||(Re[e]=Ie(e))},De={},ze="Object already initialized",Fe=G.WeakMap;if(Me||ke.state){var He=ke.state||(ke.state=new Fe),Be=He.get,We=He.has,Ue=He.set;Oe=function(e,t){if(We.call(He,e))throw new TypeError(ze);return t.facade=e,Ue.call(He,e,t),t},Ee=function(e){return Be.call(He,e)||{}},Ce=function(e){return We.call(He,e)}}else{var Ve=Ne("state");De[Ve]=!0,Oe=function(e,t){if(ce(e,Ve))throw new TypeError(ze);return t.facade=e,we(e,Ve,t),t},Ee=function(e){return ce(e,Ve)?e[Ve]:{}},Ce=function(e){return ce(e,Ve)}}var qe,$e,Ge={set:Oe,get:Ee,has:Ce,enforce:function(e){return Ce(e)?Ee(e):Oe(e,{})},getterFor:function(e){return function(t){var r;if(!ae(t)||(r=Ee(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},Ke=q((function(e){var t=Ge.get,r=Ge.enforce,n=String(String).split("String");(e.exports=function(e,t,o,i){var a,l=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||ce(o,"name")||we(o,"name",t),(a=r(o)).source||(a.source=n.join("string"==typeof t?t:""))),e!==G?(l?!u&&e[t]&&(s=!0):delete e[t],s?e[t]=o:we(e,t,o)):s?e[t]=o:_e(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||Te(this)}))})),Ye=G,Qe=function(e){return"function"==typeof e?e:void 0},Ze=function(e,t){return arguments.length<2?Qe(Ye[e])||Qe(G[e]):Ye[e]&&Ye[e][t]||G[e]&&G[e][t]},Xe=Math.ceil,Je=Math.floor,et=function(e){return isNaN(e=+e)?0:(e>0?Je:Xe)(e)},tt=Math.min,rt=function(e){return e>0?tt(et(e),9007199254740991):0},nt=Math.max,ot=Math.min,it=function(e){return function(t,r,n){var o,i=ie(t),a=rt(i.length),l=function(e,t){var r=et(e);return r<0?nt(r+t,0):ot(r,t)}(n,a);if(e&&r!=r){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===r)return e||l||0;return!e&&-1}},at={includes:it(!0),indexOf:it(!1)}.indexOf,lt=function(e,t){var r,n=ie(e),o=0,i=[];for(r in n)!ce(De,r)&&ce(n,r)&&i.push(r);for(;t.length>o;)ce(n,r=t[o++])&&(~at(i,r)||i.push(r));return i},st=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ut=st.concat("length","prototype"),ct={f:Object.getOwnPropertyNames||function(e){return lt(e,ut)}},ft={f:Object.getOwnPropertySymbols},dt=Ze("Reflect","ownKeys")||function(e){var t=ct.f(ge(e)),r=ft.f;return r?t.concat(r(e)):t},pt=function(e,t){for(var r=dt(t),n=be.f,o=ve.f,i=0;i<r.length;i++){var a=r[i];ce(e,a)||n(e,a,o(t,a))}},ht=/#|\.prototype\./,mt=function(e,t){var r=gt[vt(e)];return r==bt||r!=yt&&("function"==typeof t?K(t):!!t)},vt=mt.normalize=function(e){return String(e).replace(ht,".").toLowerCase()},gt=mt.data={},yt=mt.NATIVE="N",bt=mt.POLYFILL="P",wt=mt,_t=ve.f,xt=function(e,t,r){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}},kt=Array.isArray||function(e){return"Array"==te(e)},St=Ze("navigator","userAgent")||"",Ot=G.process,Et=Ot&&Ot.versions,Ct=Et&&Et.v8;Ct?$e=(qe=Ct.split("."))[0]<4?1:qe[0]+qe[1]:St&&(!(qe=St.match(/Edge\/(\d+)/))||qe[1]>=74)&&(qe=St.match(/Chrome\/(\d+)/))&&($e=qe[1]);var Tt,Lt=$e&&+$e,Mt=!!Object.getOwnPropertySymbols&&!K((function(){return!String(Symbol())||!Symbol.sham&&Lt&&Lt<41})),At=Mt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,jt=Ae("wks"),Pt=G.Symbol,It=At?Pt:Pt&&Pt.withoutSetter||Ie,Rt=function(e){return ce(jt,e)&&(Mt||"string"==typeof jt[e])||(Mt&&ce(Pt,e)?jt[e]=Pt[e]:jt[e]=It("Symbol."+e)),jt[e]},Nt=Rt("species"),Dt=function(e,t){var r;return kt(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!kt(r.prototype)?ae(r)&&null===(r=r[Nt])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)},zt=[].push,Ft=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(s,u,c,f){for(var d,p,h=se(s),m=ne(h),v=xt(u,c,3),g=rt(m.length),y=0,b=f||Dt,w=t?b(s,g):r||a?b(s,0):void 0;g>y;y++)if((l||y in m)&&(p=v(d=m[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:zt.call(w,d)}else switch(e){case 4:return!1;case 7:zt.call(w,d)}return i?-1:n||o?o:w}},Ht={forEach:Ft(0),map:Ft(1),filter:Ft(2),some:Ft(3),every:Ft(4),find:Ft(5),findIndex:Ft(6),filterOut:Ft(7)},Bt=Object.keys||function(e){return lt(e,st)},Wt=Y?Object.defineProperties:function(e,t){ge(e);for(var r,n=Bt(t),o=n.length,i=0;o>i;)be.f(e,r=n[i++],t[r]);return e},Ut=Ze("document","documentElement"),Vt="prototype",qt="script",$t=Ne("IE_PROTO"),Gt=function(){},Kt=function(e){return"<"+qt+">"+e+"</"+qt+">"},Yt=function(){try{Tt=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t,r;Yt=Tt?function(e){e.write(Kt("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Tt):(t=pe("iframe"),r="java"+qt+":",t.style.display="none",Ut.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Kt("document.F=Object")),e.close(),e.F);for(var n=st.length;n--;)delete Yt[Vt][st[n]];return Yt()};De[$t]=!0;var Qt=Object.create||function(e,t){var r;return null!==e?(Gt[Vt]=ge(e),r=new Gt,Gt[Vt]=null,r[$t]=e):r=Yt(),void 0===t?r:Wt(r,t)},Zt=Rt("unscopables"),Xt=Array.prototype;null==Xt[Zt]&&be.f(Xt,Zt,{configurable:!0,value:Qt(null)});var Jt,er,tr,rr,nr=Ht.find,or="find",ir=!0;or in[]&&Array(1)[or]((function(){ir=!1})),function(e,t){var r,n,o,i,a,l=e.target,s=e.global,u=e.stat;if(r=s?G:u?G[l]||_e(l,{}):(G[l]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=_t(r,n))&&a.value:r[n],!wt(s?n:l+(u?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;pt(i,o)}(e.sham||o&&o.sham)&&we(i,"sham",!0),Ke(r,n,i,e)}}({target:"Array",proto:!0,forced:ir},{find:function(e){return nr(this,e,arguments.length>1?arguments[1]:void 0)}}),Jt=or,Xt[Zt][Jt]=!0;var ar,lr=function(e){e.hide=function(e){E(O.HIDE,{target:e})},e.rebuild=function(){E(O.REBUILD)},e.show=function(e){E(O.SHOW,{target:e})},e.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},e.prototype.globalShow=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.showTooltip({currentTarget:t&&e.detail.target},!0)}},e.prototype.globalHide=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.hideTooltip({currentTarget:t&&e.detail.target},t)}}}(er=function(e){e.prototype.bindWindowEvents=function(e){window.removeEventListener(O.HIDE,this.globalHide),window.addEventListener(O.HIDE,this.globalHide,!1),window.removeEventListener(O.REBUILD,this.globalRebuild),window.addEventListener(O.REBUILD,this.globalRebuild,!1),window.removeEventListener(O.SHOW,this.globalShow),window.addEventListener(O.SHOW,this.globalShow,!1),e&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},e.prototype.unbindWindowEvents=function(){window.removeEventListener(O.HIDE,this.globalHide),window.removeEventListener(O.REBUILD,this.globalRebuild),window.removeEventListener(O.SHOW,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},e.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}(er=function(e){e.prototype.isCustomEvent=function(e){return this.state.event||!!e.getAttribute("data-event")},e.prototype.customBindListener=function(e){var t=this,r=this.state,n=r.event,o=r.eventOff,i=e.getAttribute("data-event")||n,a=e.getAttribute("data-event-off")||o;i.split(" ").forEach((function(r){e.removeEventListener(r,L.get(e,r));var n=C.bind(t,a);L.set(e,r,n),e.addEventListener(r,n,!1)})),a&&a.split(" ").forEach((function(r){e.removeEventListener(r,t.hideTooltip),e.addEventListener(r,t.hideTooltip,!1)}))},e.prototype.customUnbindListener=function(e){var t=this.state,r=t.event,n=t.eventOff,o=r||e.getAttribute("data-event"),i=n||e.getAttribute("data-event-off");e.removeEventListener(o,L.get(e,r)),i&&e.removeEventListener(i,this.hideTooltip)}}(er=function(e){e.prototype.isCapture=function(e){return e&&"true"===e.getAttribute("data-iscapture")||this.props.isCapture||!1}}(er=function(e){e.prototype.getEffect=function(e){return e.getAttribute("data-effect")||this.props.effect||"float"}}(er=function(e){e.prototype.isBodyMode=function(){return!!this.props.bodyMode},e.prototype.bindBodyListener=function(e){var t=this,r=this.state,n=r.event,o=r.eventOff,i=r.possibleCustomEvents,a=r.possibleCustomEventsOff,l=j(),s=A(e,"data-event"),u=A(e,"data-event-off");null!=n&&(s[n]=!0),null!=o&&(u[o]=!0),i.split(" ").forEach((function(e){return s[e]=!0})),a.split(" ").forEach((function(e){return u[e]=!0})),this.unbindBodyListener(l);var c=this.bodyModeListeners={};for(var f in null==n&&(c.mouseover=M.bind(this,this.showTooltip,{}),c.mousemove=M.bind(this,this.updateTooltip,{respectEffect:!0}),c.mouseout=M.bind(this,this.hideTooltip,{})),s)c[f]=M.bind(this,(function(e){var r=e.currentTarget.getAttribute("data-event-off")||o;C.call(t,r,e)}),{customEvent:!0});for(var d in u)c[d]=M.bind(this,this.hideTooltip,{customEvent:!0});for(var p in c)l.addEventListener(p,c[p])},e.prototype.unbindBodyListener=function(e){e=e||j();var t=this.bodyModeListeners;for(var r in t)e.removeEventListener(r,t[r])}}((rr=tr=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=S(this,x(t).call(this,e))).state={uuid:e.uuid||"t"+m(),place:e.place||"top",desiredPlace:e.place||"top",type:"dark",effect:"float",show:!1,border:!1,customColors:{},offset:{},extraClass:"",html:!1,delayHide:0,delayShow:0,event:e.event||null,eventOff:e.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:H(e),isEmptyTip:!1,disable:!1,possibleCustomEvents:e.possibleCustomEvents||"",possibleCustomEventsOff:e.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},r.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),r.mount=!0,r.delayShowLoop=null,r.delayHideLoop=null,r.delayReshow=null,r.intervalUpdateContent=null,r}return function(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}}),t&&k(e,t)}(t,e),g(t,null,[{key:"propTypes",get:function(){return{uuid:s().string,children:s().any,place:s().string,type:s().string,effect:s().string,offset:s().object,multiline:s().bool,border:s().bool,textColor:s().string,backgroundColor:s().string,borderColor:s().string,arrowColor:s().string,insecure:s().bool,class:s().string,className:s().string,id:s().string,html:s().bool,delayHide:s().number,delayUpdate:s().number,delayShow:s().number,event:s().string,eventOff:s().string,isCapture:s().bool,globalEventOff:s().string,getContent:s().any,afterShow:s().func,afterHide:s().func,overridePosition:s().func,disable:s().bool,scrollHide:s().bool,resizeHide:s().bool,wrapper:s().string,bodyMode:s().bool,possibleCustomEvents:s().string,possibleCustomEventsOff:s().string,clickable:s().bool}}}]),g(t,[{key:"bind",value:function(e){var t=this;e.forEach((function(e){t[e]=t[e].bind(t)}))}},{key:"componentDidMount",value:function(){var e=this.props,t=(e.insecure,e.resizeHide);this.bindListener(),this.bindWindowEvents(t),this.injectStyles()}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(this.state.currentTarget),this.unbindWindowEvents()}},{key:"injectStyles",value:function(){var e=this.tooltipRef;if(e){for(var t,r=e.parentNode;r.parentNode;)r=r.parentNode;switch(r.constructor.name){case"Document":case"HTMLDocument":case void 0:t=r.head;break;default:t=r}if(!t.querySelector("style[data-react-tooltip]")){var n=document.createElement("style");n.textContent='.__react_component_tooltip {\n border-radius: 3px;\n display: inline-block;\n font-size: 13px;\n left: -999em;\n opacity: 0;\n padding: 8px 21px;\n position: fixed;\n pointer-events: none;\n transition: opacity 0.3s ease-out;\n top: -999em;\n visibility: hidden;\n z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n pointer-events: auto;\n}\n.__react_component_tooltip::before, .__react_component_tooltip::after {\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n}\n.__react_component_tooltip.show {\n opacity: 0.9;\n margin-top: 0;\n margin-left: 0;\n visibility: visible;\n}\n.__react_component_tooltip.place-top::before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n bottom: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-bottom::before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n top: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-left::before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n right: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip.place-right::before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n left: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip .multi-line {\n display: block;\n padding: 2px 0;\n text-align: center;\n}',n.setAttribute("data-react-tooltip","true"),t.appendChild(n)}}}},{key:"mouseOnToolTip",value:function(){return!(!this.state.show||!this.tooltipRef)&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(e){var t,r=[];if(e){var n=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');t='[data-tip][data-for="'.concat(n,'"]')}else t="[data-tip]:not([data-for])";return B(document.getElementsByTagName("*")).filter((function(e){return e.shadowRoot})).forEach((function(e){r=r.concat(B(e.shadowRoot.querySelectorAll(t)))})),r.concat(B(document.querySelectorAll(t)))}},{key:"bindListener",value:function(){var e=this,t=this.props,r=t.id,n=t.globalEventOff,o=t.isCapture,i=this.getTargetArray(r);i.forEach((function(t){null===t.getAttribute("currentItem")&&t.setAttribute("currentItem","false"),e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),this.isBodyMode()?this.bindBodyListener(i):i.forEach((function(t){var r=e.isCapture(t),n=e.getEffect(t);e.isCustomEvent(t)?e.customBindListener(t):(t.addEventListener("mouseenter",e.showTooltip,r),t.addEventListener("focus",e.showTooltip,r),"float"===n&&t.addEventListener("mousemove",e.updateTooltip,r),t.addEventListener("mouseleave",e.hideTooltip,r),t.addEventListener("blur",e.hideTooltip,r))})),n&&(window.removeEventListener(n,this.hideTooltip),window.addEventListener(n,this.hideTooltip,o)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var e=this,t=this.props,r=t.id,n=t.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(r).forEach((function(t){e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),n&&window.removeEventListener(n,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(e){var t=this.isCapture(e);e.removeEventListener("mouseenter",this.showTooltip,t),e.removeEventListener("mousemove",this.updateTooltip,t),e.removeEventListener("mouseleave",this.hideTooltip,t)}},{key:"getTooltipContent",value:function(){var e,t=this.props,r=t.getContent,n=t.children;return r&&(e=Array.isArray(r)?r[0]&&r[0](this.state.originTooltip):r(this.state.originTooltip)),F(this.state.originTooltip,n,e,this.state.isMultiline)}},{key:"isEmptyTip",value:function(e){return"string"==typeof e&&""===e||null===e}},{key:"showTooltip",value:function(e,t){if(this.tooltipRef){if(t&&!this.getTargetArray(this.props.id).some((function(t){return t===e.currentTarget})))return;var r=this.props,n=r.multiline,o=r.getContent,i=e.currentTarget.getAttribute("data-tip"),a=e.currentTarget.getAttribute("data-multiline")||n||!1,l=e instanceof window.FocusEvent||t,s=!0;e.currentTarget.getAttribute("data-scroll-hide")?s="true"===e.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(s=this.props.scrollHide),e&&e.currentTarget&&e.currentTarget.setAttribute&&e.currentTarget.setAttribute("aria-describedby",this.state.uuid);var u=e.currentTarget.getAttribute("data-place")||this.props.place||"top",c=l?"solid":this.getEffect(e.currentTarget),f=e.currentTarget.getAttribute("data-offset")||this.props.offset||{},d=P(e,e.currentTarget,this.tooltipRef,u,u,c,f);d.position&&this.props.overridePosition&&(d.position=this.props.overridePosition(d.position,e,e.currentTarget,this.tooltipRef,u,u,c,f));var p=d.isNewState?d.newState.place:u;this.clearTimer();var h=e.currentTarget,m=this.state.show?h.getAttribute("data-delay-update")||this.props.delayUpdate:0,v=this,g=function(){v.setState({originTooltip:i,isMultiline:a,desiredPlace:u,place:p,type:h.getAttribute("data-type")||v.props.type||"dark",customColors:{text:h.getAttribute("data-text-color")||v.props.textColor||null,background:h.getAttribute("data-background-color")||v.props.backgroundColor||null,border:h.getAttribute("data-border-color")||v.props.borderColor||null,arrow:h.getAttribute("data-arrow-color")||v.props.arrowColor||null},effect:c,offset:f,html:(h.getAttribute("data-html")?"true"===h.getAttribute("data-html"):v.props.html)||!1,delayShow:h.getAttribute("data-delay-show")||v.props.delayShow||0,delayHide:h.getAttribute("data-delay-hide")||v.props.delayHide||0,delayUpdate:h.getAttribute("data-delay-update")||v.props.delayUpdate||0,border:(h.getAttribute("data-border")?"true"===h.getAttribute("data-border"):v.props.border)||!1,extraClass:h.getAttribute("data-class")||v.props.class||v.props.className||"",disable:(h.getAttribute("data-tip-disable")?"true"===h.getAttribute("data-tip-disable"):v.props.disable)||!1,currentTarget:h},(function(){s&&v.addScrollListener(v.state.currentTarget),v.updateTooltip(e),o&&Array.isArray(o)&&(v.intervalUpdateContent=setInterval((function(){if(v.mount){var e=v.props.getContent,t=F(i,"",e[0](),a),r=v.isEmptyTip(t);v.setState({isEmptyTip:r}),v.updatePosition()}}),o[1]))}))};m?this.delayReshow=setTimeout(g,m):g()}}},{key:"updateTooltip",value:function(e){var t=this,r=this.state,n=r.delayShow,o=r.disable,i=this.props.afterShow,a=this.getTooltipContent(),l=e.currentTarget||e.target;if(!this.mouseOnToolTip()&&!this.isEmptyTip(a)&&!o){var s=this.state.show?0:parseInt(n,10),u=function(){if(Array.isArray(a)&&a.length>0||a){var r=!t.state.show;t.setState({currentEvent:e,currentTarget:l,show:!0},(function(){t.updatePosition(),r&&i&&i(e)}))}};clearTimeout(this.delayShowLoop),s?this.delayShowLoop=setTimeout(u,s):u()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},o=this.state.disable,i=n.isScroll?0:this.state.delayHide,a=this.props.afterHide,l=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(l)&&!o){if(t&&(!this.getTargetArray(this.props.id).some((function(t){return t===e.currentTarget}))||!this.state.show))return;e&&e.currentTarget&&e.currentTarget.removeAttribute&&e.currentTarget.removeAttribute("aria-describedby");var s=function(){var t=r.state.show;r.mouseOnToolTip()?r.listenForTooltipExit():(r.removeListenerForTooltipExit(),r.setState({show:!1},(function(){r.removeScrollListener(r.state.currentTarget),t&&a&&a(e)})))};this.clearTimer(),i?this.delayHideLoop=setTimeout(s,parseInt(i,10)):s()}}},{key:"hideTooltipOnScroll",value:function(e,t){this.hideTooltip(e,t,{isScroll:!0})}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"removeScrollListener",value:function(e){var t=this.isCapture(e);window.removeEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"updatePosition",value:function(){var e=this,t=this.state,r=t.currentEvent,n=t.currentTarget,o=t.place,i=t.desiredPlace,a=t.effect,l=t.offset,s=this.tooltipRef,u=P(r,n,s,o,i,a,l);if(u.position&&this.props.overridePosition&&(u.position=this.props.overridePosition(u.position,r,n,s,o,i,a,l)),u.isNewState)return this.setState(u.newState,(function(){e.updatePosition()}));s.style.left=u.position.left+"px",s.style.top=u.position.top+"px"}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"hasCustomColors",value:function(){var e=this;return Boolean(Object.keys(this.state.customColors).find((function(t){return"border"!==t&&e.state.customColors[t]}))||this.state.border&&this.state.customColors.border)}},{key:"render",value:function(){var e=this,r=this.state,n=r.extraClass,i=r.html,a=r.ariaProps,l=r.disable,s=r.uuid,u=this.getTooltipContent(),c=this.isEmptyTip(u),f=U(this.state.uuid,this.state.customColors,this.state.type,this.state.border),d="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||l||c?"":" show")+(this.state.border?" border":"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),p=this.props.wrapper;t.supportedWrappers.indexOf(p)<0&&(p=t.defaultProps.wrapper);var h=[d,n].filter(Boolean).join(" ");if(i){var m="".concat(u,'\n<style aria-hidden="true">').concat(f,"</style>");return o().createElement(p,b({className:"".concat(h),id:this.props.id||s,ref:function(t){return e.tooltipRef=t}},a,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:m}}))}return o().createElement(p,b({className:"".concat(h),id:this.props.id||s},a,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),o().createElement("style",{dangerouslySetInnerHTML:{__html:f},"aria-hidden":"true"}),u)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.ariaProps,n=H(e);return Object.keys(n).some((function(e){return n[e]!==r[e]}))?_({},t,{ariaProps:n}):null}}]),t}(o().Component),y(tr,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),y(tr,"supportedWrappers",["div","span"]),y(tr,"displayName","ReactTooltip"),(ar=er=rr).prototype.bindRemovalTracker=function(){var e=this,t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=t){var r=new t((function(t){for(var r=0;r<t.length;r++)for(var n=t[r],o=0;o<n.removedNodes.length;o++)if(n.removedNodes[o]===e.state.currentTarget)return void e.hideTooltip()}));r.observe(window.document,{childList:!0,subtree:!0}),this.removalTracker=r}},er=void(ar.prototype.unbindRemovalTracker=function(){this.removalTracker&&(this.removalTracker.disconnect(),this.removalTracker=null)})||er))||er)||er)||er)||er)||er)||er;const sr=lr;function ur(e){return ur="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},ur(e)}function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cr.apply(this,arguments)}function fr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dr(n.key),n)}}function dr(e){var t=function(e,t){if("object"!==ur(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ur(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ur(t)?t:String(t)}function pr(e,t){return pr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pr(e,t)}function hr(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 r,n=mr(e);if(t){var o=mr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===ur(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function mr(e){return mr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mr(e)}var vr=function(e){!function(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&&pr(e,t)}(a,e);var t,r,n,i=hr(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){return o().createElement(sr,cr({countTransform:!1,delayShow:700,globalEventOff:"click"},this.props,{className:"et-tb-tooltip ".concat(this.props.className)}))}}])&&fr(t.prototype,r),n&&fr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.PureComponent);vr.propTypes={className:a().string},vr.defaultProps={className:""};const gr=vr},4184:e=>{!function(){"use strict";var t={}.hasOwnProperty;function r(){for(var e=[],n=0;n<arguments.length;n++){var o=arguments[n];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=r.apply(null,o);a&&e.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&e.push(l)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],(function(){return r})):window.classNames=r}()},4925:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(8081),o=r.n(n),i=r(3645),a=r.n(i)()(o());a.push([e.id,".yarl__fullsize{height:100%;width:100%}.yarl__relative{position:relative}.yarl__portal{bottom:0;left:0;opacity:0;overflow:hidden;position:fixed;right:0;top:0;transition:opacity var(--yarl__fade_animation_duration,.25s) var(--yarl__fade_animation_timing_function,ease);z-index:var(--yarl__portal_zindex,9999)}.yarl__portal_open{opacity:1}.yarl__container{background-color:var(--yarl__container_background_color,var(--yarl__color_backdrop,#000));bottom:0;left:0;outline:0;overflow:hidden;overscroll-behavior:var(--yarl__controller_overscroll-behavior,contain);position:absolute;right:0;top:0;touch-action:var(--yarl__controller_touch_action,none);-webkit-user-select:none;-moz-user-select:none;user-select:none}.yarl__carousel{align-content:center;align-items:stretch;display:flex;flex:0 0 auto;height:100%;justify-content:center;opacity:var(--yarl__pull_down_opacity,1);-webkit-transform:translate(var(--yarl__swipe_offset,0),var(--yarl__pull_down_offset,0));transform:translate(var(--yarl__swipe_offset,0),var(--yarl__pull_down_offset,0));width:calc(100% + (var(--yarl__carousel_slides_count) - 1)*(100% + var(--yarl__carousel_spacing_px, 0)*1px + var(--yarl__carousel_spacing_percent, 0)*1%))}.yarl__carousel_with_slides{-webkit-column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%);-moz-column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%);column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%)}.yarl__flex_center{align-content:center;align-items:center;display:flex;justify-content:center}.yarl__slide{flex:1;overflow:hidden;padding:calc(var(--yarl__carousel_padding_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_padding_percent, 0)*1%);position:relative}[dir=rtl] .yarl__slide{--yarl__direction:-1}.yarl__slide_image{-webkit-touch-callout:none;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;touch-action:var(--yarl__controller_touch_action,none);-moz-user-select:none;user-select:none;-webkit-user-select:none}@media screen and (min-width:800px){.yarl__slide_image{-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);-webkit-transform-style:preserve-3d}}.yarl__slide_image_cover{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.yarl__slide_image_loading{opacity:0}.yarl__slide_placeholder{left:50%;line-height:0;position:absolute;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.yarl__slide_loading{-webkit-animation:yarl__delayed_fadein 1s linear;animation:yarl__delayed_fadein 1s linear;color:var(--yarl__slide_icon_loading_color,var(--yarl__color_button,hsla(0,0%,100%,.8)))}.yarl__slide_loading line{-webkit-animation:yarl__stroke_opacity 1s linear infinite;animation:yarl__stroke_opacity 1s linear infinite}.yarl__slide_loading line:first-of-type{-webkit-animation-delay:-1.875s;animation-delay:-1.875s}.yarl__slide_loading line:nth-of-type(2){-webkit-animation-delay:-1.75s;animation-delay:-1.75s}.yarl__slide_loading line:nth-of-type(3){-webkit-animation-delay:-1.625s;animation-delay:-1.625s}.yarl__slide_loading line:nth-of-type(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s}.yarl__slide_loading line:nth-of-type(5){-webkit-animation-delay:-1.375s;animation-delay:-1.375s}.yarl__slide_loading line:nth-of-type(6){-webkit-animation-delay:-1.25s;animation-delay:-1.25s}.yarl__slide_loading line:nth-of-type(7){-webkit-animation-delay:-1.125s;animation-delay:-1.125s}.yarl__slide_loading line:nth-of-type(8){-webkit-animation-delay:-1s;animation-delay:-1s}.yarl__slide_error{color:var(--yarl__slide_icon_error_color,red);height:var(--yarl__slide_icon_error_size,48px);width:var(--yarl__slide_icon_error_size,48px)}@media (prefers-reduced-motion){.yarl__portal,.yarl__slide{transition:unset}.yarl__slide_loading,.yarl__slide_loading line{-webkit-animation:unset;animation:unset}}.yarl__toolbar{bottom:auto;display:flex;justify-content:flex-end;left:auto;padding:var(--yarl__toolbar_padding,8px);position:absolute;right:0;top:0}[dir=rtl] .yarl__toolbar{bottom:auto;left:0;right:auto;top:0}.yarl__icon{height:var(--yarl__icon_size,32px);width:var(--yarl__icon_size,32px)}.yarl__button{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--yarl__button_background_color,transparent);border:var(--yarl__button_border,0);color:var(--yarl__color_button,hsla(0,0%,100%,.8));cursor:pointer;-webkit-filter:var(--yarl__button_filter,drop-shadow(2px 2px 2px rgba(0,0,0,.8)));filter:var(--yarl__button_filter,drop-shadow(2px 2px 2px rgba(0,0,0,.8)));line-height:0;margin:var(--yarl__button_margin,0);outline:none;padding:var(--yarl__button_padding,8px)}.yarl__button:focus{color:var(--yarl__color_button_active,#fff)}.yarl__button:focus:not(:focus-visible){color:var(--yarl__color_button,hsla(0,0%,100%,.8))}.yarl__button:focus-visible{color:var(--yarl__color_button_active,#fff)}@media (hover:hover){.yarl__button:focus-visible:hover,.yarl__button:focus:hover,.yarl__button:hover{color:var(--yarl__color_button_active,#fff)}}.yarl__button:disabled{color:var(--yarl__color_button_disabled,hsla(0,0%,100%,.4));cursor:default}.yarl__navigation_next,.yarl__navigation_prev{padding:var(--yarl__navigation_button_padding,24px 16px);position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.yarl__navigation_prev{left:0}[dir=rtl] .yarl__navigation_prev{left:unset;right:0;-webkit-transform:translateY(-50%) rotate(180deg);transform:translateY(-50%) rotate(180deg)}.yarl__navigation_next{right:0}[dir=rtl] .yarl__navigation_next{left:0;right:unset;-webkit-transform:translateY(-50%) rotate(180deg);transform:translateY(-50%) rotate(180deg)}.yarl__no_scroll{height:100%;overflow:hidden;overscroll-behavior:none}@-webkit-keyframes yarl__delayed_fadein{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes yarl__delayed_fadein{0%{opacity:0}80%{opacity:0}to{opacity:1}}@-webkit-keyframes yarl__stroke_opacity{0%{stroke-opacity:1}to{stroke-opacity:.125}}@keyframes yarl__stroke_opacity{0%{stroke-opacity:1}to{stroke-opacity:.125}}",""]);const l=a},4202:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(8081),o=r.n(n),i=r(3645),a=r.n(i)()(o());a.push([e.id,'@charset "UTF-8";\n.szh-menu {\n margin: 0;\n padding: 0;\n list-style: none;\n box-sizing: border-box;\n width: max-content;\n z-index: 100;\n border: 1px solid rgba(0, 0, 0, 0.1);\n background-color: #fff;\n}\n.szh-menu:focus {\n outline: none;\n}\n.szh-menu__arrow {\n box-sizing: border-box;\n width: 0.75rem;\n height: 0.75rem;\n background-color: #fff;\n border: 1px solid transparent;\n border-left-color: rgba(0, 0, 0, 0.1);\n border-top-color: rgba(0, 0, 0, 0.1);\n z-index: -1;\n}\n.szh-menu__arrow--dir-left {\n right: -0.375rem;\n transform: translateY(-50%) rotate(135deg);\n}\n.szh-menu__arrow--dir-right {\n left: -0.375rem;\n transform: translateY(-50%) rotate(-45deg);\n}\n.szh-menu__arrow--dir-top {\n bottom: -0.375rem;\n transform: translateX(-50%) rotate(-135deg);\n}\n.szh-menu__arrow--dir-bottom {\n top: -0.375rem;\n transform: translateX(-50%) rotate(45deg);\n}\n.szh-menu__item {\n cursor: pointer;\n}\n.szh-menu__item:focus {\n outline: none;\n}\n.szh-menu__item--hover {\n background-color: #ebebeb;\n}\n.szh-menu__item--focusable {\n cursor: default;\n background-color: inherit;\n}\n.szh-menu__item--disabled {\n cursor: default;\n color: #aaa;\n}\n.szh-menu__group {\n box-sizing: border-box;\n}\n.szh-menu__radio-group {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.szh-menu__divider {\n height: 1px;\n margin: 0.5rem 0;\n background-color: rgba(0, 0, 0, 0.12);\n}\n\n.szh-menu-button {\n box-sizing: border-box;\n}\n\n.szh-menu {\n user-select: none;\n color: #212529;\n border: none;\n border-radius: 0.25rem;\n box-shadow: 0 3px 7px rgba(0, 0, 0, 0.133), 0 0.6px 2px rgba(0, 0, 0, 0.1);\n min-width: 10rem;\n padding: 0.5rem 0;\n}\n.szh-menu__item {\n display: flex;\n align-items: center;\n position: relative;\n padding: 0.375rem 1.5rem;\n}\n.szh-menu-container--itemTransition .szh-menu__item {\n transition-property: background-color, color;\n transition-duration: 0.15s;\n transition-timing-function: ease-in-out;\n}\n.szh-menu__item--type-radio {\n padding-left: 2.2rem;\n}\n.szh-menu__item--type-radio::before {\n content: "\u25cb";\n position: absolute;\n left: 0.8rem;\n top: 0.55rem;\n font-size: 0.8rem;\n}\n.szh-menu__item--type-radio.szh-menu__item--checked::before {\n content: "\u25cf";\n}\n.szh-menu__item--type-checkbox {\n padding-left: 2.2rem;\n}\n.szh-menu__item--type-checkbox::before {\n position: absolute;\n left: 0.8rem;\n}\n.szh-menu__item--type-checkbox.szh-menu__item--checked::before {\n content: "\u2714";\n}\n.szh-menu__submenu > .szh-menu__item {\n padding-right: 2.5rem;\n}\n.szh-menu__submenu > .szh-menu__item::after {\n content: "\u276f";\n position: absolute;\n right: 1rem;\n}\n.szh-menu__header {\n color: #888;\n font-size: 0.8rem;\n padding: 0.2rem 1.5rem;\n text-transform: uppercase;\n}\n',""]);const l=a},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);n&&a[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),r&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=r):c[2]=r),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},8679:(e,t,r)=>{"use strict";var n=r(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return n.isMemo(e)?a:l[e.$$typeof]||o}l[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=c(r);f&&(a=a.concat(f(r)));for(var l=s(t),m=s(r),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||n&&n[g]||m&&m[g]||l&&l[g])){var y=d(r,g);try{u(t,g,y)}catch(e){}}}}return t}},1989:(e,t,r)=>{var n=r(1789),o=r(401),i=r(7667),a=r(1327),l=r(1866);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=l,e.exports=s},8407:(e,t,r)=>{var n=r(7040),o=r(4125),i=r(2117),a=r(7518),l=r(4705);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=l,e.exports=s},7071:(e,t,r)=>{var n=r(852)(r(5639),"Map");e.exports=n},3369:(e,t,r)=>{var n=r(4785),o=r(1285),i=r(6e3),a=r(9916),l=r(5265);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=l,e.exports=s},2705:(e,t,r)=>{var n=r(5639).Symbol;e.exports=n},9932:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},8470:(e,t,r)=>{var n=r(7813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},7786:(e,t,r)=>{var n=r(1811),o=r(327);e.exports=function(e,t){for(var r=0,i=(t=n(t,e)).length;null!=e&&r<i;)e=e[o(t[r++])];return r&&r==i?e:void 0}},4239:(e,t,r)=>{var n=r(2705),o=r(9607),i=r(2333),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},8458:(e,t,r)=>{var n=r(3560),o=r(5346),i=r(3218),a=r(346),l=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,c=s.toString,f=u.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?d:l).test(a(e))}},531:(e,t,r)=>{var n=r(2705),o=r(9932),i=r(1469),a=r(3448),l=n?n.prototype:void 0,s=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return s?s.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r}},1811:(e,t,r)=>{var n=r(1469),o=r(5403),i=r(5514),a=r(9833);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},4429:(e,t,r)=>{var n=r(5639)["__core-js_shared__"];e.exports=n},1957:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},5050:(e,t,r)=>{var n=r(7019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},852:(e,t,r)=>{var n=r(8458),o=r(7801);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},9607:(e,t,r)=>{var n=r(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),r=e[l];try{e[l]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[l]=r:delete e[l]),o}},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1789:(e,t,r)=>{var n=r(4536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},1327:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},1866:(e,t,r)=>{var n=r(4536);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5403:(e,t,r)=>{var n=r(1469),o=r(3448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,r)=>{var n,o=r(4429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,r)=>{var n=r(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},2117:(e,t,r)=>{var n=r(8470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7518:(e,t,r)=>{var n=r(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,r)=>{var n=r(8470);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},4785:(e,t,r)=>{var n=r(1989),o=r(8407),i=r(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},1285:(e,t,r)=>{var n=r(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,r)=>{var n=r(5050);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},4523:(e,t,r)=>{var n=r(8306);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},4536:(e,t,r)=>{var n=r(852)(Object,"create");e.exports=n},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5639:(e,t,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},5514:(e,t,r)=>{var n=r(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)})),t}));e.exports=a},327:(e,t,r)=>{var n=r(3448);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7361:(e,t,r)=>{var n=r(7786);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},1469:e=>{var t=Array.isArray;e.exports=t},3560:(e,t,r)=>{var n=r(4239),o=r(3218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3448:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},6486:function(e,t,r){e=r.nmd(e),function(){var n,o="Expected a function",i="__lodash_hash_undefined__",a="__lodash_placeholder__",l=16,s=32,u=64,c=128,f=256,d=1/0,p=9007199254740991,h=NaN,m=4294967295,v=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",s],["partialRight",u],["rearg",f]],g="[object Arguments]",y="[object Array]",b="[object Boolean]",w="[object Date]",_="[object Error]",x="[object Function]",k="[object GeneratorFunction]",S="[object Map]",O="[object Number]",E="[object Object]",C="[object Promise]",T="[object RegExp]",L="[object Set]",M="[object String]",A="[object Symbol]",j="[object WeakMap]",P="[object ArrayBuffer]",I="[object DataView]",R="[object Float32Array]",N="[object Float64Array]",D="[object Int8Array]",z="[object Int16Array]",F="[object Int32Array]",H="[object Uint8Array]",B="[object Uint8ClampedArray]",W="[object Uint16Array]",U="[object Uint32Array]",V=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Y=RegExp(G.source),Q=RegExp(K.source),Z=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ne.source),ie=/^\s+/,ae=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Le="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Me="['\u2019]",Ae="["+ke+"]",je="["+Le+"]",Pe="["+Se+"]",Ie="\\d+",Re="["+Oe+"]",Ne="["+Ee+"]",De="[^"+ke+Le+Ie+Oe+Ee+Ce+"]",ze="\\ud83c[\\udffb-\\udfff]",Fe="[^"+ke+"]",He="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+Ce+"]",Ue="\\u200d",Ve="(?:"+Ne+"|"+De+")",qe="(?:"+We+"|"+De+")",$e="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ge="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Pe+"|"+ze+")"+"?",Ye="["+Te+"]?",Qe=Ye+Ke+("(?:"+Ue+"(?:"+[Fe,He,Be].join("|")+")"+Ye+Ke+")*"),Ze="(?:"+[Re,He,Be].join("|")+")"+Qe,Xe="(?:"+[Fe+Pe+"?",Pe,He,Be,Ae].join("|")+")",Je=RegExp(Me,"g"),et=RegExp(Pe,"g"),tt=RegExp(ze+"(?="+ze+")|"+Xe+Qe,"g"),rt=RegExp([We+"?"+Ne+"+"+$e+"(?="+[je,We,"$"].join("|")+")",qe+"+"+Ge+"(?="+[je,We+Ve,"$"].join("|")+")",We+"?"+Ve+"+"+$e,We+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ze].join("|"),"g"),nt=RegExp("["+Ue+ke+Se+Te+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,lt={};lt[R]=lt[N]=lt[D]=lt[z]=lt[F]=lt[H]=lt[B]=lt[W]=lt[U]=!0,lt[g]=lt[y]=lt[P]=lt[b]=lt[I]=lt[w]=lt[_]=lt[x]=lt[S]=lt[O]=lt[E]=lt[T]=lt[L]=lt[M]=lt[j]=!1;var st={};st[g]=st[y]=st[P]=st[I]=st[b]=st[w]=st[R]=st[N]=st[D]=st[z]=st[F]=st[S]=st[O]=st[E]=st[T]=st[L]=st[M]=st[A]=st[H]=st[B]=st[W]=st[U]=!0,st[_]=st[x]=st[j]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ft=parseInt,dt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,pt="object"==typeof self&&self&&self.Object===Object&&self,ht=dt||pt||Function("return this")(),mt=t&&!t.nodeType&&t,vt=mt&&e&&!e.nodeType&&e,gt=vt&&vt.exports===mt,yt=gt&&dt.process,bt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),wt=bt&&bt.isArrayBuffer,_t=bt&&bt.isDate,xt=bt&&bt.isMap,kt=bt&&bt.isRegExp,St=bt&&bt.isSet,Ot=bt&&bt.isTypedArray;function Et(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Ct(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}function Tt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Lt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Mt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function At(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}function jt(e,t){return!!(null==e?0:e.length)&&Wt(e,t,0)>-1}function Pt(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function It(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function Rt(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function Nt(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function Dt(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function zt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Ft=$t("length");function Ht(e,t,r){var n;return r(e,(function(e,r,o){if(t(e,r,o))return n=r,!1})),n}function Bt(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Wt(e,t,r){return t==t?function(e,t,r){var n=r-1,o=e.length;for(;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):Bt(e,Vt,r)}function Ut(e,t,r,n){for(var o=r-1,i=e.length;++o<i;)if(n(e[o],t))return o;return-1}function Vt(e){return e!=e}function qt(e,t){var r=null==e?0:e.length;return r?Yt(e,t)/r:h}function $t(e){return function(t){return null==t?n:t[e]}}function Gt(e){return function(t){return null==e?n:e[t]}}function Kt(e,t,r,n,o){return o(e,(function(e,o,i){r=n?(n=!1,e):t(r,e,o,i)})),r}function Yt(e,t){for(var r,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==n&&(r=r===n?a:r+a)}return r}function Qt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Zt(e){return e?e.slice(0,hr(e)+1).replace(ie,""):e}function Xt(e){return function(t){return e(t)}}function Jt(e,t){return It(t,(function(t){return e[t]}))}function er(e,t){return e.has(t)}function tr(e,t){for(var r=-1,n=e.length;++r<n&&Wt(t,e[r],0)>-1;);return r}function rr(e,t){for(var r=e.length;r--&&Wt(t,e[r],0)>-1;);return r}var nr=Gt({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),or=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ir(e){return"\\"+ut[e]}function ar(e){return nt.test(e)}function lr(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function sr(e,t){return function(r){return e(t(r))}}function ur(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var l=e[r];l!==t&&l!==a||(e[r]=a,i[o++]=r)}return i}function cr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function fr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function dr(e){return ar(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Ft(e)}function pr(e){return ar(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function hr(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var mr=Gt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var vr=function e(t){var r,ae=(t=null==t?ht:vr.defaults(ht.Object(),t,vr.pick(ht,it))).Array,ke=t.Date,Se=t.Error,Oe=t.Function,Ee=t.Math,Ce=t.Object,Te=t.RegExp,Le=t.String,Me=t.TypeError,Ae=ae.prototype,je=Oe.prototype,Pe=Ce.prototype,Ie=t["__core-js_shared__"],Re=je.toString,Ne=Pe.hasOwnProperty,De=0,ze=(r=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Fe=Pe.toString,He=Re.call(Ce),Be=ht._,We=Te("^"+Re.call(Ne).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=gt?t.Buffer:n,Ve=t.Symbol,qe=t.Uint8Array,$e=Ue?Ue.allocUnsafe:n,Ge=sr(Ce.getPrototypeOf,Ce),Ke=Ce.create,Ye=Pe.propertyIsEnumerable,Qe=Ae.splice,Ze=Ve?Ve.isConcatSpreadable:n,Xe=Ve?Ve.iterator:n,tt=Ve?Ve.toStringTag:n,nt=function(){try{var e=pi(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),ut=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,dt=ke&&ke.now!==ht.Date.now&&ke.now,pt=t.setTimeout!==ht.setTimeout&&t.setTimeout,mt=Ee.ceil,vt=Ee.floor,yt=Ce.getOwnPropertySymbols,bt=Ue?Ue.isBuffer:n,Ft=t.isFinite,Gt=Ae.join,gr=sr(Ce.keys,Ce),yr=Ee.max,br=Ee.min,wr=ke.now,_r=t.parseInt,xr=Ee.random,kr=Ae.reverse,Sr=pi(t,"DataView"),Or=pi(t,"Map"),Er=pi(t,"Promise"),Cr=pi(t,"Set"),Tr=pi(t,"WeakMap"),Lr=pi(Ce,"create"),Mr=Tr&&new Tr,Ar={},jr=Fi(Sr),Pr=Fi(Or),Ir=Fi(Er),Rr=Fi(Cr),Nr=Fi(Tr),Dr=Ve?Ve.prototype:n,zr=Dr?Dr.valueOf:n,Fr=Dr?Dr.toString:n;function Hr(e){if(rl(e)&&!qa(e)&&!(e instanceof Vr)){if(e instanceof Ur)return e;if(Ne.call(e,"__wrapped__"))return Hi(e)}return new Ur(e)}var Br=function(){function e(){}return function(t){if(!tl(t))return{};if(Ke)return Ke(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Wr(){}function Ur(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Vr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function qr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function $r(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Gr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Kr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Gr;++t<r;)this.add(e[t])}function Yr(e){var t=this.__data__=new $r(e);this.size=t.size}function Qr(e,t){var r=qa(e),n=!r&&Va(e),o=!r&&!n&&Ya(e),i=!r&&!n&&!o&&cl(e),a=r||n||o||i,l=a?Qt(e.length,Le):[],s=l.length;for(var u in e)!t&&!Ne.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||wi(u,s))||l.push(u);return l}function Zr(e){var t=e.length;return t?e[Yn(0,t-1)]:n}function Xr(e,t){return Ni(Ao(e),sn(t,0,e.length))}function Jr(e){return Ni(Ao(e))}function en(e,t,r){(r!==n&&!Ba(e[t],r)||r===n&&!(t in e))&&an(e,t,r)}function tn(e,t,r){var o=e[t];Ne.call(e,t)&&Ba(o,r)&&(r!==n||t in e)||an(e,t,r)}function rn(e,t){for(var r=e.length;r--;)if(Ba(e[r][0],t))return r;return-1}function nn(e,t,r,n){return pn(e,(function(e,o,i){t(n,e,r(e),i)})),n}function on(e,t){return e&&jo(t,jl(t),e)}function an(e,t,r){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ln(e,t){for(var r=-1,o=t.length,i=ae(o),a=null==e;++r<o;)i[r]=a?n:Cl(e,t[r]);return i}function sn(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function un(e,t,r,o,i,a){var l,s=1&t,u=2&t,c=4&t;if(r&&(l=i?r(e,o,i,a):r(e)),l!==n)return l;if(!tl(e))return e;var f=qa(e);if(f){if(l=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!s)return Ao(e,l)}else{var d=vi(e),p=d==x||d==k;if(Ya(e))return Oo(e,s);if(d==E||d==g||p&&!i){if(l=u||p?{}:yi(e),!s)return u?function(e,t){return jo(e,mi(e),t)}(e,function(e,t){return e&&jo(t,Pl(t),e)}(l,e)):function(e,t){return jo(e,hi(e),t)}(e,on(l,e))}else{if(!st[d])return i?e:{};l=function(e,t,r){var n=e.constructor;switch(t){case P:return Eo(e);case b:case w:return new n(+e);case I:return function(e,t){var r=t?Eo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case R:case N:case D:case z:case F:case H:case B:case W:case U:return Co(e,r);case S:return new n;case O:case M:return new n(e);case T:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case L:return new n;case A:return o=e,zr?Ce(zr.call(o)):{}}var o}(e,d,s)}}a||(a=new Yr);var h=a.get(e);if(h)return h;a.set(e,l),ll(e)?e.forEach((function(n){l.add(un(n,t,r,n,e,a))})):nl(e)&&e.forEach((function(n,o){l.set(o,un(n,t,r,o,e,a))}));var m=f?n:(c?u?ai:ii:u?Pl:jl)(e);return Tt(m||e,(function(n,o){m&&(n=e[o=n]),tn(l,o,un(n,t,r,o,e,a))})),l}function cn(e,t,r){var o=r.length;if(null==e)return!o;for(e=Ce(e);o--;){var i=r[o],a=t[i],l=e[i];if(l===n&&!(i in e)||!a(l))return!1}return!0}function fn(e,t,r){if("function"!=typeof e)throw new Me(o);return ji((function(){e.apply(n,r)}),t)}function dn(e,t,r,n){var o=-1,i=jt,a=!0,l=e.length,s=[],u=t.length;if(!l)return s;r&&(t=It(t,Xt(r))),n?(i=Pt,a=!1):t.length>=200&&(i=er,a=!1,t=new Kr(t));e:for(;++o<l;){var c=e[o],f=null==r?c:r(c);if(c=n||0!==c?c:0,a&&f==f){for(var d=u;d--;)if(t[d]===f)continue e;s.push(c)}else i(t,f,n)||s.push(c)}return s}Hr.templateSettings={escape:Z,evaluate:X,interpolate:J,variable:"",imports:{_:Hr}},Hr.prototype=Wr.prototype,Hr.prototype.constructor=Hr,Ur.prototype=Br(Wr.prototype),Ur.prototype.constructor=Ur,Vr.prototype=Br(Wr.prototype),Vr.prototype.constructor=Vr,qr.prototype.clear=function(){this.__data__=Lr?Lr(null):{},this.size=0},qr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qr.prototype.get=function(e){var t=this.__data__;if(Lr){var r=t[e];return r===i?n:r}return Ne.call(t,e)?t[e]:n},qr.prototype.has=function(e){var t=this.__data__;return Lr?t[e]!==n:Ne.call(t,e)},qr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Lr&&t===n?i:t,this},$r.prototype.clear=function(){this.__data__=[],this.size=0},$r.prototype.delete=function(e){var t=this.__data__,r=rn(t,e);return!(r<0)&&(r==t.length-1?t.pop():Qe.call(t,r,1),--this.size,!0)},$r.prototype.get=function(e){var t=this.__data__,r=rn(t,e);return r<0?n:t[r][1]},$r.prototype.has=function(e){return rn(this.__data__,e)>-1},$r.prototype.set=function(e,t){var r=this.__data__,n=rn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Gr.prototype.clear=function(){this.size=0,this.__data__={hash:new qr,map:new(Or||$r),string:new qr}},Gr.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},Gr.prototype.get=function(e){return fi(this,e).get(e)},Gr.prototype.has=function(e){return fi(this,e).has(e)},Gr.prototype.set=function(e,t){var r=fi(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Kr.prototype.add=Kr.prototype.push=function(e){return this.__data__.set(e,i),this},Kr.prototype.has=function(e){return this.__data__.has(e)},Yr.prototype.clear=function(){this.__data__=new $r,this.size=0},Yr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Yr.prototype.get=function(e){return this.__data__.get(e)},Yr.prototype.has=function(e){return this.__data__.has(e)},Yr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof $r){var n=r.__data__;if(!Or||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Gr(n)}return r.set(e,t),this.size=r.size,this};var pn=Ro(_n),hn=Ro(xn,!0);function mn(e,t){var r=!0;return pn(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function vn(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],l=t(a);if(null!=l&&(s===n?l==l&&!ul(l):r(l,s)))var s=l,u=a}return u}function gn(e,t){var r=[];return pn(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function yn(e,t,r,n,o){var i=-1,a=e.length;for(r||(r=bi),o||(o=[]);++i<a;){var l=e[i];t>0&&r(l)?t>1?yn(l,t-1,r,n,o):Rt(o,l):n||(o[o.length]=l)}return o}var bn=No(),wn=No(!0);function _n(e,t){return e&&bn(e,t,jl)}function xn(e,t){return e&&wn(e,t,jl)}function kn(e,t){return At(t,(function(t){return Xa(e[t])}))}function Sn(e,t){for(var r=0,o=(t=_o(t,e)).length;null!=e&&r<o;)e=e[zi(t[r++])];return r&&r==o?e:n}function On(e,t,r){var n=t(e);return qa(e)?n:Rt(n,r(e))}function En(e){return null==e?e===n?"[object Undefined]":"[object Null]":tt&&tt in Ce(e)?function(e){var t=Ne.call(e,tt),r=e[tt];try{e[tt]=n;var o=!0}catch(e){}var i=Fe.call(e);o&&(t?e[tt]=r:delete e[tt]);return i}(e):function(e){return Fe.call(e)}(e)}function Cn(e,t){return e>t}function Tn(e,t){return null!=e&&Ne.call(e,t)}function Ln(e,t){return null!=e&&t in Ce(e)}function Mn(e,t,r){for(var o=r?Pt:jt,i=e[0].length,a=e.length,l=a,s=ae(a),u=1/0,c=[];l--;){var f=e[l];l&&t&&(f=It(f,Xt(t))),u=br(f.length,u),s[l]=!r&&(t||i>=120&&f.length>=120)?new Kr(l&&f):n}f=e[0];var d=-1,p=s[0];e:for(;++d<i&&c.length<u;){var h=f[d],m=t?t(h):h;if(h=r||0!==h?h:0,!(p?er(p,m):o(c,m,r))){for(l=a;--l;){var v=s[l];if(!(v?er(v,m):o(e[l],m,r)))continue e}p&&p.push(m),c.push(h)}}return c}function An(e,t,r){var o=null==(e=Li(e,t=_o(t,e)))?e:e[zi(Zi(t))];return null==o?n:Et(o,e,r)}function jn(e){return rl(e)&&En(e)==g}function Pn(e,t,r,o,i){return e===t||(null==e||null==t||!rl(e)&&!rl(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var l=qa(e),s=qa(t),u=l?y:vi(e),c=s?y:vi(t),f=(u=u==g?E:u)==E,d=(c=c==g?E:c)==E,p=u==c;if(p&&Ya(e)){if(!Ya(t))return!1;l=!0,f=!1}if(p&&!f)return a||(a=new Yr),l||cl(e)?ni(e,t,r,o,i,a):function(e,t,r,n,o,i,a){switch(r){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case P:return!(e.byteLength!=t.byteLength||!i(new qe(e),new qe(t)));case b:case w:case O:return Ba(+e,+t);case _:return e.name==t.name&&e.message==t.message;case T:case M:return e==t+"";case S:var l=lr;case L:var s=1&n;if(l||(l=cr),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;n|=2,a.set(e,t);var c=ni(l(e),l(t),n,o,i,a);return a.delete(e),c;case A:if(zr)return zr.call(e)==zr.call(t)}return!1}(e,t,u,r,o,i,a);if(!(1&r)){var h=f&&Ne.call(e,"__wrapped__"),m=d&&Ne.call(t,"__wrapped__");if(h||m){var v=h?e.value():e,x=m?t.value():t;return a||(a=new Yr),i(v,x,r,o,a)}}if(!p)return!1;return a||(a=new Yr),function(e,t,r,o,i,a){var l=1&r,s=ii(e),u=s.length,c=ii(t),f=c.length;if(u!=f&&!l)return!1;var d=u;for(;d--;){var p=s[d];if(!(l?p in t:Ne.call(t,p)))return!1}var h=a.get(e),m=a.get(t);if(h&&m)return h==t&&m==e;var v=!0;a.set(e,t),a.set(t,e);var g=l;for(;++d<u;){var y=e[p=s[d]],b=t[p];if(o)var w=l?o(b,y,p,t,e,a):o(y,b,p,e,t,a);if(!(w===n?y===b||i(y,b,r,o,a):w)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var _=e.constructor,x=t.constructor;_==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(v=!1)}return a.delete(e),a.delete(t),v}(e,t,r,o,i,a)}(e,t,r,o,Pn,i))}function In(e,t,r,o){var i=r.length,a=i,l=!o;if(null==e)return!a;for(e=Ce(e);i--;){var s=r[i];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var u=(s=r[i])[0],c=e[u],f=s[1];if(l&&s[2]){if(c===n&&!(u in e))return!1}else{var d=new Yr;if(o)var p=o(c,f,u,e,t,d);if(!(p===n?Pn(f,c,3,o,d):p))return!1}}return!0}function Rn(e){return!(!tl(e)||(t=e,ze&&ze in t))&&(Xa(e)?We:ge).test(Fi(e));var t}function Nn(e){return"function"==typeof e?e:null==e?os:"object"==typeof e?qa(e)?Wn(e[0],e[1]):Bn(e):ps(e)}function Dn(e){if(!Oi(e))return gr(e);var t=[];for(var r in Ce(e))Ne.call(e,r)&&"constructor"!=r&&t.push(r);return t}function zn(e){if(!tl(e))return function(e){var t=[];if(null!=e)for(var r in Ce(e))t.push(r);return t}(e);var t=Oi(e),r=[];for(var n in e)("constructor"!=n||!t&&Ne.call(e,n))&&r.push(n);return r}function Fn(e,t){return e<t}function Hn(e,t){var r=-1,n=Ga(e)?ae(e.length):[];return pn(e,(function(e,o,i){n[++r]=t(e,o,i)})),n}function Bn(e){var t=di(e);return 1==t.length&&t[0][2]?Ci(t[0][0],t[0][1]):function(r){return r===e||In(r,e,t)}}function Wn(e,t){return xi(e)&&Ei(t)?Ci(zi(e),t):function(r){var o=Cl(r,e);return o===n&&o===t?Tl(r,e):Pn(t,o,3)}}function Un(e,t,r,o,i){e!==t&&bn(t,(function(a,l){if(i||(i=new Yr),tl(a))!function(e,t,r,o,i,a,l){var s=Mi(e,r),u=Mi(t,r),c=l.get(u);if(c)return void en(e,r,c);var f=a?a(s,u,r+"",e,t,l):n,d=f===n;if(d){var p=qa(u),h=!p&&Ya(u),m=!p&&!h&&cl(u);f=u,p||h||m?qa(s)?f=s:Ka(s)?f=Ao(s):h?(d=!1,f=Oo(u,!0)):m?(d=!1,f=Co(u,!0)):f=[]:il(u)||Va(u)?(f=s,Va(s)?f=yl(s):tl(s)&&!Xa(s)||(f=yi(u))):d=!1}d&&(l.set(u,f),i(f,u,o,a,l),l.delete(u));en(e,r,f)}(e,t,l,r,Un,o,i);else{var s=o?o(Mi(e,l),a,l+"",e,t,i):n;s===n&&(s=a),en(e,l,s)}}),Pl)}function Vn(e,t){var r=e.length;if(r)return wi(t+=t<0?r:0,r)?e[t]:n}function qn(e,t,r){t=t.length?It(t,(function(e){return qa(e)?function(t){return Sn(t,1===e.length?e[0]:e)}:e})):[os];var n=-1;t=It(t,Xt(ci()));var o=Hn(e,(function(e,r,o){var i=It(t,(function(t){return t(e)}));return{criteria:i,index:++n,value:e}}));return function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(o,(function(e,t){return function(e,t,r){var n=-1,o=e.criteria,i=t.criteria,a=o.length,l=r.length;for(;++n<a;){var s=To(o[n],i[n]);if(s)return n>=l?s:s*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function $n(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var a=t[n],l=Sn(e,a);r(l,a)&&eo(i,_o(a,e),l)}return i}function Gn(e,t,r,n){var o=n?Ut:Wt,i=-1,a=t.length,l=e;for(e===t&&(t=Ao(t)),r&&(l=It(e,Xt(r)));++i<a;)for(var s=0,u=t[i],c=r?r(u):u;(s=o(l,c,s,n))>-1;)l!==e&&Qe.call(l,s,1),Qe.call(e,s,1);return e}function Kn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;wi(o)?Qe.call(e,o,1):po(e,o)}}return e}function Yn(e,t){return e+vt(xr()*(t-e+1))}function Qn(e,t){var r="";if(!e||t<1||t>p)return r;do{t%2&&(r+=e),(t=vt(t/2))&&(e+=e)}while(t);return r}function Zn(e,t){return Pi(Ti(e,t,os),e+"")}function Xn(e){return Zr(Bl(e))}function Jn(e,t){var r=Bl(e);return Ni(r,sn(t,0,r.length))}function eo(e,t,r,o){if(!tl(e))return e;for(var i=-1,a=(t=_o(t,e)).length,l=a-1,s=e;null!=s&&++i<a;){var u=zi(t[i]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=l){var f=s[u];(c=o?o(f,u,s):n)===n&&(c=tl(f)?f:wi(t[i+1])?[]:{})}tn(s,u,c),s=s[u]}return e}var to=Mr?function(e,t){return Mr.set(e,t),e}:os,ro=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:ts(t),writable:!0})}:os;function no(e){return Ni(Bl(e))}function oo(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=ae(o);++n<o;)i[n]=e[n+t];return i}function io(e,t){var r;return pn(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}function ao(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;n<o;){var i=n+o>>>1,a=e[i];null!==a&&!ul(a)&&(r?a<=t:a<t)?n=i+1:o=i}return o}return lo(e,t,os,r)}function lo(e,t,r,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=r(t))!=t,s=null===t,u=ul(t),c=t===n;i<a;){var f=vt((i+a)/2),d=r(e[f]),p=d!==n,h=null===d,m=d==d,v=ul(d);if(l)var g=o||m;else g=c?m&&(o||p):s?m&&p&&(o||!h):u?m&&p&&!h&&(o||!v):!h&&!v&&(o?d<=t:d<t);g?i=f+1:a=f}return br(a,4294967294)}function so(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var a=e[r],l=t?t(a):a;if(!r||!Ba(l,s)){var s=l;i[o++]=0===a?0:a}}return i}function uo(e){return"number"==typeof e?e:ul(e)?h:+e}function co(e){if("string"==typeof e)return e;if(qa(e))return It(e,co)+"";if(ul(e))return Fr?Fr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fo(e,t,r){var n=-1,o=jt,i=e.length,a=!0,l=[],s=l;if(r)a=!1,o=Pt;else if(i>=200){var u=t?null:Zo(e);if(u)return cr(u);a=!1,o=er,s=new Kr}else s=t?[]:l;e:for(;++n<i;){var c=e[n],f=t?t(c):c;if(c=r||0!==c?c:0,a&&f==f){for(var d=s.length;d--;)if(s[d]===f)continue e;t&&s.push(f),l.push(c)}else o(s,f,r)||(s!==l&&s.push(f),l.push(c))}return l}function po(e,t){return null==(e=Li(e,t=_o(t,e)))||delete e[zi(Zi(t))]}function ho(e,t,r,n){return eo(e,t,r(Sn(e,t)),n)}function mo(e,t,r,n){for(var o=e.length,i=n?o:-1;(n?i--:++i<o)&&t(e[i],i,e););return r?oo(e,n?0:i,n?i+1:o):oo(e,n?i+1:0,n?o:i)}function vo(e,t){var r=e;return r instanceof Vr&&(r=r.value()),Nt(t,(function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))}),r)}function go(e,t,r){var n=e.length;if(n<2)return n?fo(e[0]):[];for(var o=-1,i=ae(n);++o<n;)for(var a=e[o],l=-1;++l<n;)l!=o&&(i[o]=dn(i[o]||a,e[l],t,r));return fo(yn(i,1),t,r)}function yo(e,t,r){for(var o=-1,i=e.length,a=t.length,l={};++o<i;){var s=o<a?t[o]:n;r(l,e[o],s)}return l}function bo(e){return Ka(e)?e:[]}function wo(e){return"function"==typeof e?e:os}function _o(e,t){return qa(e)?e:xi(e,t)?[e]:Di(bl(e))}var xo=Zn;function ko(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:oo(e,t,r)}var So=ut||function(e){return ht.clearTimeout(e)};function Oo(e,t){if(t)return e.slice();var r=e.length,n=$e?$e(r):new e.constructor(r);return e.copy(n),n}function Eo(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}function Co(e,t){var r=t?Eo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function To(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=ul(e),l=t!==n,s=null===t,u=t==t,c=ul(t);if(!s&&!c&&!a&&e>t||a&&l&&u&&!s&&!c||o&&l&&u||!r&&u||!i)return 1;if(!o&&!a&&!c&&e<t||c&&r&&i&&!o&&!a||s&&r&&i||!l&&i||!u)return-1}return 0}function Lo(e,t,r,n){for(var o=-1,i=e.length,a=r.length,l=-1,s=t.length,u=yr(i-a,0),c=ae(s+u),f=!n;++l<s;)c[l]=t[l];for(;++o<a;)(f||o<i)&&(c[r[o]]=e[o]);for(;u--;)c[l++]=e[o++];return c}function Mo(e,t,r,n){for(var o=-1,i=e.length,a=-1,l=r.length,s=-1,u=t.length,c=yr(i-l,0),f=ae(c+u),d=!n;++o<c;)f[o]=e[o];for(var p=o;++s<u;)f[p+s]=t[s];for(;++a<l;)(d||o<i)&&(f[p+r[a]]=e[o++]);return f}function Ao(e,t){var r=-1,n=e.length;for(t||(t=ae(n));++r<n;)t[r]=e[r];return t}function jo(e,t,r,o){var i=!r;r||(r={});for(var a=-1,l=t.length;++a<l;){var s=t[a],u=o?o(r[s],e[s],s,r,e):n;u===n&&(u=e[s]),i?an(r,s,u):tn(r,s,u)}return r}function Po(e,t){return function(r,n){var o=qa(r)?Ct:nn,i=t?t():{};return o(r,e,ci(n,2),i)}}function Io(e){return Zn((function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:n,l=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,l&&_i(r[0],r[1],l)&&(a=i<3?n:a,i=1),t=Ce(t);++o<i;){var s=r[o];s&&e(t,s,o,a)}return t}))}function Ro(e,t){return function(r,n){if(null==r)return r;if(!Ga(r))return e(r,n);for(var o=r.length,i=t?o:-1,a=Ce(r);(t?i--:++i<o)&&!1!==n(a[i],i,a););return r}}function No(e){return function(t,r,n){for(var o=-1,i=Ce(t),a=n(t),l=a.length;l--;){var s=a[e?l:++o];if(!1===r(i[s],s,i))break}return t}}function Do(e){return function(t){var r=ar(t=bl(t))?pr(t):n,o=r?r[0]:t.charAt(0),i=r?ko(r,1).join(""):t.slice(1);return o[e]()+i}}function zo(e){return function(t){return Nt(Xl(Vl(t).replace(Je,"")),e,"")}}function Fo(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 r=Br(e.prototype),n=e.apply(r,t);return tl(n)?n:r}}function Ho(e){return function(t,r,o){var i=Ce(t);if(!Ga(t)){var a=ci(r,3);t=jl(t),r=function(e){return a(i[e],e,i)}}var l=e(t,r,o);return l>-1?i[a?t[l]:l]:n}}function Bo(e){return oi((function(t){var r=t.length,i=r,a=Ur.prototype.thru;for(e&&t.reverse();i--;){var l=t[i];if("function"!=typeof l)throw new Me(o);if(a&&!s&&"wrapper"==si(l))var s=new Ur([],!0)}for(i=s?i:r;++i<r;){var u=si(l=t[i]),c="wrapper"==u?li(l):n;s=c&&ki(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[si(c[0])].apply(s,c[3]):1==l.length&&ki(l)?s[u]():s.thru(l)}return function(){var e=arguments,n=e[0];if(s&&1==e.length&&qa(n))return s.plant(n).value();for(var o=0,i=r?t[o].apply(this,e):n;++o<r;)i=t[o].call(this,i);return i}}))}function Wo(e,t,r,o,i,a,l,s,u,f){var d=t&c,p=1&t,h=2&t,m=24&t,v=512&t,g=h?n:Fo(e);return function c(){for(var y=arguments.length,b=ae(y),w=y;w--;)b[w]=arguments[w];if(m)var _=ui(c),x=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(b,_);if(o&&(b=Lo(b,o,i,m)),a&&(b=Mo(b,a,l,m)),y-=x,m&&y<f){var k=ur(b,_);return Yo(e,t,Wo,c.placeholder,r,b,k,s,u,f-y)}var S=p?r:this,O=h?S[e]:e;return y=b.length,s?b=function(e,t){var r=e.length,o=br(t.length,r),i=Ao(e);for(;o--;){var a=t[o];e[o]=wi(a,r)?i[a]:n}return e}(b,s):v&&y>1&&b.reverse(),d&&u<y&&(b.length=u),this&&this!==ht&&this instanceof c&&(O=g||Fo(O)),O.apply(S,b)}}function Uo(e,t){return function(r,n){return function(e,t,r,n){return _n(e,(function(e,o,i){t(n,r(e),o,i)})),n}(r,e,t(n),{})}}function Vo(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=co(r),o=co(o)):(r=uo(r),o=uo(o)),i=e(r,o)}return i}}function qo(e){return oi((function(t){return t=It(t,Xt(ci())),Zn((function(r){var n=this;return e(t,(function(e){return Et(e,n,r)}))}))}))}function $o(e,t){var r=(t=t===n?" ":co(t)).length;if(r<2)return r?Qn(t,e):t;var o=Qn(t,mt(e/dr(t)));return ar(t)?ko(pr(o),0,e).join(""):o.slice(0,e)}function Go(e){return function(t,r,o){return o&&"number"!=typeof o&&_i(t,r,o)&&(r=o=n),t=hl(t),r===n?(r=t,t=0):r=hl(r),function(e,t,r,n){for(var o=-1,i=yr(mt((t-e)/(r||1)),0),a=ae(i);i--;)a[n?i:++o]=e,e+=r;return a}(t,r,o=o===n?t<r?1:-1:hl(o),e)}}function Ko(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=gl(t),r=gl(r)),e(t,r)}}function Yo(e,t,r,o,i,a,l,c,f,d){var p=8&t;t|=p?s:u,4&(t&=~(p?u:s))||(t&=-4);var h=[e,t,i,p?a:n,p?l:n,p?n:a,p?n:l,c,f,d],m=r.apply(n,h);return ki(e)&&Ai(m,h),m.placeholder=o,Ii(m,e,t)}function Qo(e){var t=Ee[e];return function(e,r){if(e=gl(e),(r=null==r?0:br(ml(r),292))&&Ft(e)){var n=(bl(e)+"e").split("e");return+((n=(bl(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Zo=Cr&&1/cr(new Cr([,-0]))[1]==d?function(e){return new Cr(e)}:us;function Xo(e){return function(t){var r=vi(t);return r==S?lr(t):r==L?fr(t):function(e,t){return It(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(e,t,r,i,d,p,h,m){var v=2&t;if(!v&&"function"!=typeof e)throw new Me(o);var g=i?i.length:0;if(g||(t&=-97,i=d=n),h=h===n?h:yr(ml(h),0),m=m===n?m:ml(m),g-=d?d.length:0,t&u){var y=i,b=d;i=d=n}var w=v?n:li(e),_=[e,t,r,i,d,y,b,p,h,m];if(w&&function(e,t){var r=e[1],n=t[1],o=r|n,i=o<131,l=n==c&&8==r||n==c&&r==f&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!i&&!l)return e;1&n&&(e[2]=t[2],o|=1&r?0:4);var s=t[3];if(s){var u=e[3];e[3]=u?Lo(u,s,t[4]):s,e[4]=u?ur(e[3],a):t[4]}(s=t[5])&&(u=e[5],e[5]=u?Mo(u,s,t[6]):s,e[6]=u?ur(e[5],a):t[6]);(s=t[7])&&(e[7]=s);n&c&&(e[8]=null==e[8]?t[8]:br(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(_,w),e=_[0],t=_[1],r=_[2],i=_[3],d=_[4],!(m=_[9]=_[9]===n?v?0:e.length:yr(_[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||t==l?function(e,t,r){var o=Fo(e);return function i(){for(var a=arguments.length,l=ae(a),s=a,u=ui(i);s--;)l[s]=arguments[s];var c=a<3&&l[0]!==u&&l[a-1]!==u?[]:ur(l,u);return(a-=c.length)<r?Yo(e,t,Wo,i.placeholder,n,l,c,n,n,r-a):Et(this&&this!==ht&&this instanceof i?o:e,this,l)}}(e,t,m):t!=s&&33!=t||d.length?Wo.apply(n,_):function(e,t,r,n){var o=1&t,i=Fo(e);return function t(){for(var a=-1,l=arguments.length,s=-1,u=n.length,c=ae(u+l),f=this&&this!==ht&&this instanceof t?i:e;++s<u;)c[s]=n[s];for(;l--;)c[s++]=arguments[++a];return Et(f,o?r:this,c)}}(e,t,r,i);else var x=function(e,t,r){var n=1&t,o=Fo(e);return function t(){return(this&&this!==ht&&this instanceof t?o:e).apply(n?r:this,arguments)}}(e,t,r);return Ii((w?to:Ai)(x,_),e,t)}function ei(e,t,r,o){return e===n||Ba(e,Pe[r])&&!Ne.call(o,r)?t:e}function ti(e,t,r,o,i,a){return tl(e)&&tl(t)&&(a.set(t,e),Un(e,t,n,ti,a),a.delete(t)),e}function ri(e){return il(e)?n:e}function ni(e,t,r,o,i,a){var l=1&r,s=e.length,u=t.length;if(s!=u&&!(l&&u>s))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,p=!0,h=2&r?new Kr:n;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],v=t[d];if(o)var g=l?o(v,m,d,t,e,a):o(m,v,d,e,t,a);if(g!==n){if(g)continue;p=!1;break}if(h){if(!zt(t,(function(e,t){if(!er(h,t)&&(m===e||i(m,e,r,o,a)))return h.push(t)}))){p=!1;break}}else if(m!==v&&!i(m,v,r,o,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function oi(e){return Pi(Ti(e,n,$i),e+"")}function ii(e){return On(e,jl,hi)}function ai(e){return On(e,Pl,mi)}var li=Mr?function(e){return Mr.get(e)}:us;function si(e){for(var t=e.name+"",r=Ar[t],n=Ne.call(Ar,t)?r.length:0;n--;){var o=r[n],i=o.func;if(null==i||i==e)return o.name}return t}function ui(e){return(Ne.call(Hr,"placeholder")?Hr:e).placeholder}function ci(){var e=Hr.iteratee||is;return e=e===is?Nn:e,arguments.length?e(arguments[0],arguments[1]):e}function fi(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function di(e){for(var t=jl(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Ei(o)]}return t}function pi(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Rn(r)?r:n}var hi=yt?function(e){return null==e?[]:(e=Ce(e),At(yt(e),(function(t){return Ye.call(e,t)})))}:vs,mi=yt?function(e){for(var t=[];e;)Rt(t,hi(e)),e=Ge(e);return t}:vs,vi=En;function gi(e,t,r){for(var n=-1,o=(t=_o(t,e)).length,i=!1;++n<o;){var a=zi(t[n]);if(!(i=null!=e&&r(e,a)))break;e=e[a]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&el(o)&&wi(a,o)&&(qa(e)||Va(e))}function yi(e){return"function"!=typeof e.constructor||Oi(e)?{}:Br(Ge(e))}function bi(e){return qa(e)||Va(e)||!!(Ze&&e&&e[Ze])}function wi(e,t){var r=typeof e;return!!(t=null==t?p:t)&&("number"==r||"symbol"!=r&&be.test(e))&&e>-1&&e%1==0&&e<t}function _i(e,t,r){if(!tl(r))return!1;var n=typeof t;return!!("number"==n?Ga(r)&&wi(t,r.length):"string"==n&&t in r)&&Ba(r[t],e)}function xi(e,t){if(qa(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!ul(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Ce(t))}function ki(e){var t=si(e),r=Hr[t];if("function"!=typeof r||!(t in Vr.prototype))return!1;if(e===r)return!0;var n=li(r);return!!n&&e===n[0]}(Sr&&vi(new Sr(new ArrayBuffer(1)))!=I||Or&&vi(new Or)!=S||Er&&vi(Er.resolve())!=C||Cr&&vi(new Cr)!=L||Tr&&vi(new Tr)!=j)&&(vi=function(e){var t=En(e),r=t==E?e.constructor:n,o=r?Fi(r):"";if(o)switch(o){case jr:return I;case Pr:return S;case Ir:return C;case Rr:return L;case Nr:return j}return t});var Si=Ie?Xa:gs;function Oi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function Ei(e){return e==e&&!tl(e)}function Ci(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in Ce(r)))}}function Ti(e,t,r){return t=yr(t===n?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=yr(n.length-t,0),a=ae(i);++o<i;)a[o]=n[t+o];o=-1;for(var l=ae(t+1);++o<t;)l[o]=n[o];return l[t]=r(a),Et(e,this,l)}}function Li(e,t){return t.length<2?e:Sn(e,oo(t,0,-1))}function Mi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ai=Ri(to),ji=pt||function(e,t){return ht.setTimeout(e,t)},Pi=Ri(ro);function Ii(e,t,r){var n=t+"";return Pi(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Tt(v,(function(r){var n="_."+r[0];t&r[1]&&!jt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ue):[]}(n),r)))}function Ri(e){var t=0,r=0;return function(){var o=wr(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ni(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var a=Yn(r,i),l=e[a];e[a]=e[r],e[r]=l}return e.length=t,e}var Di=function(e){var t=Ra(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,r,n,o){t.push(n?o.replace(de,"$1"):r||e)})),t}));function zi(e){if("string"==typeof e||ul(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fi(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Hi(e){if(e instanceof Vr)return e.clone();var t=new Ur(e.__wrapped__,e.__chain__);return t.__actions__=Ao(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bi=Zn((function(e,t){return Ka(e)?dn(e,yn(t,1,Ka,!0)):[]})),Wi=Zn((function(e,t){var r=Zi(t);return Ka(r)&&(r=n),Ka(e)?dn(e,yn(t,1,Ka,!0),ci(r,2)):[]})),Ui=Zn((function(e,t){var r=Zi(t);return Ka(r)&&(r=n),Ka(e)?dn(e,yn(t,1,Ka,!0),n,r):[]}));function Vi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ml(r);return o<0&&(o=yr(n+o,0)),Bt(e,ci(t,3),o)}function qi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=ml(r),i=r<0?yr(o+i,0):br(i,o-1)),Bt(e,ci(t,3),i,!0)}function $i(e){return(null==e?0:e.length)?yn(e,1):[]}function Gi(e){return e&&e.length?e[0]:n}var Ki=Zn((function(e){var t=It(e,bo);return t.length&&t[0]===e[0]?Mn(t):[]})),Yi=Zn((function(e){var t=Zi(e),r=It(e,bo);return t===Zi(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Mn(r,ci(t,2)):[]})),Qi=Zn((function(e){var t=Zi(e),r=It(e,bo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Mn(r,n,t):[]}));function Zi(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Xi=Zn(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?Gn(e,t):e}var ea=oi((function(e,t){var r=null==e?0:e.length,n=ln(e,t);return Kn(e,It(t,(function(e){return wi(e,r)?+e:e})).sort(To)),n}));function ta(e){return null==e?e:kr.call(e)}var ra=Zn((function(e){return fo(yn(e,1,Ka,!0))})),na=Zn((function(e){var t=Zi(e);return Ka(t)&&(t=n),fo(yn(e,1,Ka,!0),ci(t,2))})),oa=Zn((function(e){var t=Zi(e);return t="function"==typeof t?t:n,fo(yn(e,1,Ka,!0),n,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=At(e,(function(e){if(Ka(e))return t=yr(e.length,t),!0})),Qt(t,(function(t){return It(e,$t(t))}))}function aa(e,t){if(!e||!e.length)return[];var r=ia(e);return null==t?r:It(r,(function(e){return Et(t,n,e)}))}var la=Zn((function(e,t){return Ka(e)?dn(e,t):[]})),sa=Zn((function(e){return go(At(e,Ka))})),ua=Zn((function(e){var t=Zi(e);return Ka(t)&&(t=n),go(At(e,Ka),ci(t,2))})),ca=Zn((function(e){var t=Zi(e);return t="function"==typeof t?t:n,go(At(e,Ka),n,t)})),fa=Zn(ia);var da=Zn((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,aa(e,r)}));function pa(e){var t=Hr(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ma=oi((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return ln(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Vr&&wi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:n}),new Ur(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)}));var va=Po((function(e,t,r){Ne.call(e,r)?++e[r]:an(e,r,1)}));var ga=Ho(Vi),ya=Ho(qi);function ba(e,t){return(qa(e)?Tt:pn)(e,ci(t,3))}function wa(e,t){return(qa(e)?Lt:hn)(e,ci(t,3))}var _a=Po((function(e,t,r){Ne.call(e,r)?e[r].push(t):an(e,r,[t])}));var xa=Zn((function(e,t,r){var n=-1,o="function"==typeof t,i=Ga(e)?ae(e.length):[];return pn(e,(function(e){i[++n]=o?Et(t,e,r):An(e,t,r)})),i})),ka=Po((function(e,t,r){an(e,r,t)}));function Sa(e,t){return(qa(e)?It:Hn)(e,ci(t,3))}var Oa=Po((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var Ea=Zn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&_i(e,t[0],t[1])?t=[]:r>2&&_i(t[0],t[1],t[2])&&(t=[t[0]]),qn(e,yn(t,1),[])})),Ca=dt||function(){return ht.Date.now()};function Ta(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Jo(e,c,n,n,n,n,t)}function La(e,t){var r;if("function"!=typeof t)throw new Me(o);return e=ml(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Ma=Zn((function(e,t,r){var n=1;if(r.length){var o=ur(r,ui(Ma));n|=s}return Jo(e,n,t,r,o)})),Aa=Zn((function(e,t,r){var n=3;if(r.length){var o=ur(r,ui(Aa));n|=s}return Jo(t,n,e,r,o)}));function ja(e,t,r){var i,a,l,s,u,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Me(o);function m(t){var r=i,o=a;return i=a=n,f=t,s=e.apply(o,r)}function v(e){var r=e-c;return c===n||r>=t||r<0||p&&e-f>=l}function g(){var e=Ca();if(v(e))return y(e);u=ji(g,function(e){var r=t-(e-c);return p?br(r,l-(e-f)):r}(e))}function y(e){return u=n,h&&i?m(e):(i=a=n,s)}function b(){var e=Ca(),r=v(e);if(i=arguments,a=this,c=e,r){if(u===n)return function(e){return f=e,u=ji(g,t),d?m(e):s}(c);if(p)return So(u),u=ji(g,t),m(c)}return u===n&&(u=ji(g,t)),s}return t=gl(t)||0,tl(r)&&(d=!!r.leading,l=(p="maxWait"in r)?yr(gl(r.maxWait)||0,t):l,h="trailing"in r?!!r.trailing:h),b.cancel=function(){u!==n&&So(u),f=0,i=c=a=u=n},b.flush=function(){return u===n?s:y(Ca())},b}var Pa=Zn((function(e,t){return fn(e,1,t)})),Ia=Zn((function(e,t,r){return fn(e,gl(t)||0,r)}));function Ra(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Me(o);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Ra.Cache||Gr),r}function Na(e){if("function"!=typeof e)throw new Me(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ra.Cache=Gr;var Da=xo((function(e,t){var r=(t=1==t.length&&qa(t[0])?It(t[0],Xt(ci())):It(yn(t,1),Xt(ci()))).length;return Zn((function(n){for(var o=-1,i=br(n.length,r);++o<i;)n[o]=t[o].call(this,n[o]);return Et(e,this,n)}))})),za=Zn((function(e,t){var r=ur(t,ui(za));return Jo(e,s,n,t,r)})),Fa=Zn((function(e,t){var r=ur(t,ui(Fa));return Jo(e,u,n,t,r)})),Ha=oi((function(e,t){return Jo(e,f,n,n,n,t)}));function Ba(e,t){return e===t||e!=e&&t!=t}var Wa=Ko(Cn),Ua=Ko((function(e,t){return e>=t})),Va=jn(function(){return arguments}())?jn:function(e){return rl(e)&&Ne.call(e,"callee")&&!Ye.call(e,"callee")},qa=ae.isArray,$a=wt?Xt(wt):function(e){return rl(e)&&En(e)==P};function Ga(e){return null!=e&&el(e.length)&&!Xa(e)}function Ka(e){return rl(e)&&Ga(e)}var Ya=bt||gs,Qa=_t?Xt(_t):function(e){return rl(e)&&En(e)==w};function Za(e){if(!rl(e))return!1;var t=En(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!il(e)}function Xa(e){if(!tl(e))return!1;var t=En(e);return t==x||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==ml(e)}function el(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function tl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rl(e){return null!=e&&"object"==typeof e}var nl=xt?Xt(xt):function(e){return rl(e)&&vi(e)==S};function ol(e){return"number"==typeof e||rl(e)&&En(e)==O}function il(e){if(!rl(e)||En(e)!=E)return!1;var t=Ge(e);if(null===t)return!0;var r=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Re.call(r)==He}var al=kt?Xt(kt):function(e){return rl(e)&&En(e)==T};var ll=St?Xt(St):function(e){return rl(e)&&vi(e)==L};function sl(e){return"string"==typeof e||!qa(e)&&rl(e)&&En(e)==M}function ul(e){return"symbol"==typeof e||rl(e)&&En(e)==A}var cl=Ot?Xt(Ot):function(e){return rl(e)&&el(e.length)&&!!lt[En(e)]};var fl=Ko(Fn),dl=Ko((function(e,t){return e<=t}));function pl(e){if(!e)return[];if(Ga(e))return sl(e)?pr(e):Ao(e);if(Xe&&e[Xe])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Xe]());var t=vi(e);return(t==S?lr:t==L?cr:Bl)(e)}function hl(e){return e?(e=gl(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ml(e){var t=hl(e),r=t%1;return t==t?r?t-r:t:0}function vl(e){return e?sn(ml(e),0,m):0}function gl(e){if("number"==typeof e)return e;if(ul(e))return h;if(tl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var r=ve.test(e);return r||ye.test(e)?ft(e.slice(2),r?2:8):me.test(e)?h:+e}function yl(e){return jo(e,Pl(e))}function bl(e){return null==e?"":co(e)}var wl=Io((function(e,t){if(Oi(t)||Ga(t))jo(t,jl(t),e);else for(var r in t)Ne.call(t,r)&&tn(e,r,t[r])})),_l=Io((function(e,t){jo(t,Pl(t),e)})),xl=Io((function(e,t,r,n){jo(t,Pl(t),e,n)})),kl=Io((function(e,t,r,n){jo(t,jl(t),e,n)})),Sl=oi(ln);var Ol=Zn((function(e,t){e=Ce(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&_i(t[0],t[1],i)&&(o=1);++r<o;)for(var a=t[r],l=Pl(a),s=-1,u=l.length;++s<u;){var c=l[s],f=e[c];(f===n||Ba(f,Pe[c])&&!Ne.call(e,c))&&(e[c]=a[c])}return e})),El=Zn((function(e){return e.push(n,ti),Et(Rl,n,e)}));function Cl(e,t,r){var o=null==e?n:Sn(e,t);return o===n?r:o}function Tl(e,t){return null!=e&&gi(e,t,Ln)}var Ll=Uo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=r}),ts(os)),Ml=Uo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Ne.call(e,t)?e[t].push(r):e[t]=[r]}),ci),Al=Zn(An);function jl(e){return Ga(e)?Qr(e):Dn(e)}function Pl(e){return Ga(e)?Qr(e,!0):zn(e)}var Il=Io((function(e,t,r){Un(e,t,r)})),Rl=Io((function(e,t,r,n){Un(e,t,r,n)})),Nl=oi((function(e,t){var r={};if(null==e)return r;var n=!1;t=It(t,(function(t){return t=_o(t,e),n||(n=t.length>1),t})),jo(e,ai(e),r),n&&(r=un(r,7,ri));for(var o=t.length;o--;)po(r,t[o]);return r}));var Dl=oi((function(e,t){return null==e?{}:function(e,t){return $n(e,t,(function(t,r){return Tl(e,r)}))}(e,t)}));function zl(e,t){if(null==e)return{};var r=It(ai(e),(function(e){return[e]}));return t=ci(t),$n(e,r,(function(e,r){return t(e,r[0])}))}var Fl=Xo(jl),Hl=Xo(Pl);function Bl(e){return null==e?[]:Jt(e,jl(e))}var Wl=zo((function(e,t,r){return t=t.toLowerCase(),e+(r?Ul(t):t)}));function Ul(e){return Zl(bl(e).toLowerCase())}function Vl(e){return(e=bl(e))&&e.replace(we,nr).replace(et,"")}var ql=zo((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),$l=zo((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Gl=Do("toLowerCase");var Kl=zo((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Yl=zo((function(e,t,r){return e+(r?" ":"")+Zl(t)}));var Ql=zo((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Zl=Do("toUpperCase");function Xl(e,t,r){return e=bl(e),(t=r?n:t)===n?function(e){return ot.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Jl=Zn((function(e,t){try{return Et(e,n,t)}catch(e){return Za(e)?e:new Se(e)}})),es=oi((function(e,t){return Tt(t,(function(t){t=zi(t),an(e,t,Ma(e[t],e))})),e}));function ts(e){return function(){return e}}var rs=Bo(),ns=Bo(!0);function os(e){return e}function is(e){return Nn("function"==typeof e?e:un(e,1))}var as=Zn((function(e,t){return function(r){return An(r,e,t)}})),ls=Zn((function(e,t){return function(r){return An(e,r,t)}}));function ss(e,t,r){var n=jl(t),o=kn(t,n);null!=r||tl(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=kn(t,jl(t)));var i=!(tl(r)&&"chain"in r&&!r.chain),a=Xa(e);return Tt(o,(function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=Ao(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Rt([this.value()],arguments))})})),e}function us(){}var cs=qo(It),fs=qo(Mt),ds=qo(zt);function ps(e){return xi(e)?$t(zi(e)):function(e){return function(t){return Sn(t,e)}}(e)}var hs=Go(),ms=Go(!0);function vs(){return[]}function gs(){return!1}var ys=Vo((function(e,t){return e+t}),0),bs=Qo("ceil"),ws=Vo((function(e,t){return e/t}),1),_s=Qo("floor");var xs,ks=Vo((function(e,t){return e*t}),1),Ss=Qo("round"),Os=Vo((function(e,t){return e-t}),0);return Hr.after=function(e,t){if("function"!=typeof t)throw new Me(o);return e=ml(e),function(){if(--e<1)return t.apply(this,arguments)}},Hr.ary=Ta,Hr.assign=wl,Hr.assignIn=_l,Hr.assignInWith=xl,Hr.assignWith=kl,Hr.at=Sl,Hr.before=La,Hr.bind=Ma,Hr.bindAll=es,Hr.bindKey=Aa,Hr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Hr.chain=pa,Hr.chunk=function(e,t,r){t=(r?_i(e,t,r):t===n)?1:yr(ml(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,l=ae(mt(o/t));i<o;)l[a++]=oo(e,i,i+=t);return l},Hr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o},Hr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ae(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return Rt(qa(r)?Ao(r):[r],yn(t,1))},Hr.cond=function(e){var t=null==e?0:e.length,r=ci();return e=t?It(e,(function(e){if("function"!=typeof e[1])throw new Me(o);return[r(e[0]),e[1]]})):[],Zn((function(r){for(var n=-1;++n<t;){var o=e[n];if(Et(o[0],this,r))return Et(o[1],this,r)}}))},Hr.conforms=function(e){return function(e){var t=jl(e);return function(r){return cn(r,e,t)}}(un(e,1))},Hr.constant=ts,Hr.countBy=va,Hr.create=function(e,t){var r=Br(e);return null==t?r:on(r,t)},Hr.curry=function e(t,r,o){var i=Jo(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Hr.curryRight=function e(t,r,o){var i=Jo(t,l,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Hr.debounce=ja,Hr.defaults=Ol,Hr.defaultsDeep=El,Hr.defer=Pa,Hr.delay=Ia,Hr.difference=Bi,Hr.differenceBy=Wi,Hr.differenceWith=Ui,Hr.drop=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,(t=r||t===n?1:ml(t))<0?0:t,o):[]},Hr.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,0,(t=o-(t=r||t===n?1:ml(t)))<0?0:t):[]},Hr.dropRightWhile=function(e,t){return e&&e.length?mo(e,ci(t,3),!0,!0):[]},Hr.dropWhile=function(e,t){return e&&e.length?mo(e,ci(t,3),!0):[]},Hr.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&_i(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=ml(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:ml(o))<0&&(o+=i),o=r>o?0:vl(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},Hr.filter=function(e,t){return(qa(e)?At:gn)(e,ci(t,3))},Hr.flatMap=function(e,t){return yn(Sa(e,t),1)},Hr.flatMapDeep=function(e,t){return yn(Sa(e,t),d)},Hr.flatMapDepth=function(e,t,r){return r=r===n?1:ml(r),yn(Sa(e,t),r)},Hr.flatten=$i,Hr.flattenDeep=function(e){return(null==e?0:e.length)?yn(e,d):[]},Hr.flattenDepth=function(e,t){return(null==e?0:e.length)?yn(e,t=t===n?1:ml(t)):[]},Hr.flip=function(e){return Jo(e,512)},Hr.flow=rs,Hr.flowRight=ns,Hr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},Hr.functions=function(e){return null==e?[]:kn(e,jl(e))},Hr.functionsIn=function(e){return null==e?[]:kn(e,Pl(e))},Hr.groupBy=_a,Hr.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},Hr.intersection=Ki,Hr.intersectionBy=Yi,Hr.intersectionWith=Qi,Hr.invert=Ll,Hr.invertBy=Ml,Hr.invokeMap=xa,Hr.iteratee=is,Hr.keyBy=ka,Hr.keys=jl,Hr.keysIn=Pl,Hr.map=Sa,Hr.mapKeys=function(e,t){var r={};return t=ci(t,3),_n(e,(function(e,n,o){an(r,t(e,n,o),e)})),r},Hr.mapValues=function(e,t){var r={};return t=ci(t,3),_n(e,(function(e,n,o){an(r,n,t(e,n,o))})),r},Hr.matches=function(e){return Bn(un(e,1))},Hr.matchesProperty=function(e,t){return Wn(e,un(t,1))},Hr.memoize=Ra,Hr.merge=Il,Hr.mergeWith=Rl,Hr.method=as,Hr.methodOf=ls,Hr.mixin=ss,Hr.negate=Na,Hr.nthArg=function(e){return e=ml(e),Zn((function(t){return Vn(t,e)}))},Hr.omit=Nl,Hr.omitBy=function(e,t){return zl(e,Na(ci(t)))},Hr.once=function(e){return La(2,e)},Hr.orderBy=function(e,t,r,o){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(r=o?n:r)||(r=null==r?[]:[r]),qn(e,t,r))},Hr.over=cs,Hr.overArgs=Da,Hr.overEvery=fs,Hr.overSome=ds,Hr.partial=za,Hr.partialRight=Fa,Hr.partition=Oa,Hr.pick=Dl,Hr.pickBy=zl,Hr.property=ps,Hr.propertyOf=function(e){return function(t){return null==e?n:Sn(e,t)}},Hr.pull=Xi,Hr.pullAll=Ji,Hr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Gn(e,t,ci(r,2)):e},Hr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Gn(e,t,n,r):e},Hr.pullAt=ea,Hr.range=hs,Hr.rangeRight=ms,Hr.rearg=Ha,Hr.reject=function(e,t){return(qa(e)?At:gn)(e,Na(ci(t,3)))},Hr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],i=e.length;for(t=ci(t,3);++n<i;){var a=e[n];t(a,n,e)&&(r.push(a),o.push(n))}return Kn(e,o),r},Hr.rest=function(e,t){if("function"!=typeof e)throw new Me(o);return Zn(e,t=t===n?t:ml(t))},Hr.reverse=ta,Hr.sampleSize=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:ml(t),(qa(e)?Xr:Jn)(e,t)},Hr.set=function(e,t,r){return null==e?e:eo(e,t,r)},Hr.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:eo(e,t,r,o)},Hr.shuffle=function(e){return(qa(e)?Jr:no)(e)},Hr.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&_i(e,t,r)?(t=0,r=o):(t=null==t?0:ml(t),r=r===n?o:ml(r)),oo(e,t,r)):[]},Hr.sortBy=Ea,Hr.sortedUniq=function(e){return e&&e.length?so(e):[]},Hr.sortedUniqBy=function(e,t){return e&&e.length?so(e,ci(t,2)):[]},Hr.split=function(e,t,r){return r&&"number"!=typeof r&&_i(e,t,r)&&(t=r=n),(r=r===n?m:r>>>0)?(e=bl(e))&&("string"==typeof t||null!=t&&!al(t))&&!(t=co(t))&&ar(e)?ko(pr(e),0,r):e.split(t,r):[]},Hr.spread=function(e,t){if("function"!=typeof e)throw new Me(o);return t=null==t?0:yr(ml(t),0),Zn((function(r){var n=r[t],o=ko(r,0,t);return n&&Rt(o,n),Et(e,this,o)}))},Hr.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Hr.take=function(e,t,r){return e&&e.length?oo(e,0,(t=r||t===n?1:ml(t))<0?0:t):[]},Hr.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,(t=o-(t=r||t===n?1:ml(t)))<0?0:t,o):[]},Hr.takeRightWhile=function(e,t){return e&&e.length?mo(e,ci(t,3),!1,!0):[]},Hr.takeWhile=function(e,t){return e&&e.length?mo(e,ci(t,3)):[]},Hr.tap=function(e,t){return t(e),e},Hr.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new Me(o);return tl(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ja(e,t,{leading:n,maxWait:t,trailing:i})},Hr.thru=ha,Hr.toArray=pl,Hr.toPairs=Fl,Hr.toPairsIn=Hl,Hr.toPath=function(e){return qa(e)?It(e,zi):ul(e)?[e]:Ao(Di(bl(e)))},Hr.toPlainObject=yl,Hr.transform=function(e,t,r){var n=qa(e),o=n||Ya(e)||cl(e);if(t=ci(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:tl(e)&&Xa(i)?Br(Ge(e)):{}}return(o?Tt:_n)(e,(function(e,n,o){return t(r,e,n,o)})),r},Hr.unary=function(e){return Ta(e,1)},Hr.union=ra,Hr.unionBy=na,Hr.unionWith=oa,Hr.uniq=function(e){return e&&e.length?fo(e):[]},Hr.uniqBy=function(e,t){return e&&e.length?fo(e,ci(t,2)):[]},Hr.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?fo(e,n,t):[]},Hr.unset=function(e,t){return null==e||po(e,t)},Hr.unzip=ia,Hr.unzipWith=aa,Hr.update=function(e,t,r){return null==e?e:ho(e,t,wo(r))},Hr.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:ho(e,t,wo(r),o)},Hr.values=Bl,Hr.valuesIn=function(e){return null==e?[]:Jt(e,Pl(e))},Hr.without=la,Hr.words=Xl,Hr.wrap=function(e,t){return za(wo(t),e)},Hr.xor=sa,Hr.xorBy=ua,Hr.xorWith=ca,Hr.zip=fa,Hr.zipObject=function(e,t){return yo(e||[],t||[],tn)},Hr.zipObjectDeep=function(e,t){return yo(e||[],t||[],eo)},Hr.zipWith=da,Hr.entries=Fl,Hr.entriesIn=Hl,Hr.extend=_l,Hr.extendWith=xl,ss(Hr,Hr),Hr.add=ys,Hr.attempt=Jl,Hr.camelCase=Wl,Hr.capitalize=Ul,Hr.ceil=bs,Hr.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=gl(r))==r?r:0),t!==n&&(t=(t=gl(t))==t?t:0),sn(gl(e),t,r)},Hr.clone=function(e){return un(e,4)},Hr.cloneDeep=function(e){return un(e,5)},Hr.cloneDeepWith=function(e,t){return un(e,5,t="function"==typeof t?t:n)},Hr.cloneWith=function(e,t){return un(e,4,t="function"==typeof t?t:n)},Hr.conformsTo=function(e,t){return null==t||cn(e,t,jl(t))},Hr.deburr=Vl,Hr.defaultTo=function(e,t){return null==e||e!=e?t:e},Hr.divide=ws,Hr.endsWith=function(e,t,r){e=bl(e),t=co(t);var o=e.length,i=r=r===n?o:sn(ml(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},Hr.eq=Ba,Hr.escape=function(e){return(e=bl(e))&&Q.test(e)?e.replace(K,or):e},Hr.escapeRegExp=function(e){return(e=bl(e))&&oe.test(e)?e.replace(ne,"\\$&"):e},Hr.every=function(e,t,r){var o=qa(e)?Mt:mn;return r&&_i(e,t,r)&&(t=n),o(e,ci(t,3))},Hr.find=ga,Hr.findIndex=Vi,Hr.findKey=function(e,t){return Ht(e,ci(t,3),_n)},Hr.findLast=ya,Hr.findLastIndex=qi,Hr.findLastKey=function(e,t){return Ht(e,ci(t,3),xn)},Hr.floor=_s,Hr.forEach=ba,Hr.forEachRight=wa,Hr.forIn=function(e,t){return null==e?e:bn(e,ci(t,3),Pl)},Hr.forInRight=function(e,t){return null==e?e:wn(e,ci(t,3),Pl)},Hr.forOwn=function(e,t){return e&&_n(e,ci(t,3))},Hr.forOwnRight=function(e,t){return e&&xn(e,ci(t,3))},Hr.get=Cl,Hr.gt=Wa,Hr.gte=Ua,Hr.has=function(e,t){return null!=e&&gi(e,t,Tn)},Hr.hasIn=Tl,Hr.head=Gi,Hr.identity=os,Hr.includes=function(e,t,r,n){e=Ga(e)?e:Bl(e),r=r&&!n?ml(r):0;var o=e.length;return r<0&&(r=yr(o+r,0)),sl(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&Wt(e,t,r)>-1},Hr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ml(r);return o<0&&(o=yr(n+o,0)),Wt(e,t,o)},Hr.inRange=function(e,t,r){return t=hl(t),r===n?(r=t,t=0):r=hl(r),function(e,t,r){return e>=br(t,r)&&e<yr(t,r)}(e=gl(e),t,r)},Hr.invoke=Al,Hr.isArguments=Va,Hr.isArray=qa,Hr.isArrayBuffer=$a,Hr.isArrayLike=Ga,Hr.isArrayLikeObject=Ka,Hr.isBoolean=function(e){return!0===e||!1===e||rl(e)&&En(e)==b},Hr.isBuffer=Ya,Hr.isDate=Qa,Hr.isElement=function(e){return rl(e)&&1===e.nodeType&&!il(e)},Hr.isEmpty=function(e){if(null==e)return!0;if(Ga(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||Ya(e)||cl(e)||Va(e)))return!e.length;var t=vi(e);if(t==S||t==L)return!e.size;if(Oi(e))return!Dn(e).length;for(var r in e)if(Ne.call(e,r))return!1;return!0},Hr.isEqual=function(e,t){return Pn(e,t)},Hr.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?Pn(e,t,n,r):!!o},Hr.isError=Za,Hr.isFinite=function(e){return"number"==typeof e&&Ft(e)},Hr.isFunction=Xa,Hr.isInteger=Ja,Hr.isLength=el,Hr.isMap=nl,Hr.isMatch=function(e,t){return e===t||In(e,t,di(t))},Hr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,In(e,t,di(t),r)},Hr.isNaN=function(e){return ol(e)&&e!=+e},Hr.isNative=function(e){if(Si(e))throw new Se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rn(e)},Hr.isNil=function(e){return null==e},Hr.isNull=function(e){return null===e},Hr.isNumber=ol,Hr.isObject=tl,Hr.isObjectLike=rl,Hr.isPlainObject=il,Hr.isRegExp=al,Hr.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=p},Hr.isSet=ll,Hr.isString=sl,Hr.isSymbol=ul,Hr.isTypedArray=cl,Hr.isUndefined=function(e){return e===n},Hr.isWeakMap=function(e){return rl(e)&&vi(e)==j},Hr.isWeakSet=function(e){return rl(e)&&"[object WeakSet]"==En(e)},Hr.join=function(e,t){return null==e?"":Gt.call(e,t)},Hr.kebabCase=ql,Hr.last=Zi,Hr.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=ml(r))<0?yr(o+i,0):br(i,o-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):Bt(e,Vt,i,!0)},Hr.lowerCase=$l,Hr.lowerFirst=Gl,Hr.lt=fl,Hr.lte=dl,Hr.max=function(e){return e&&e.length?vn(e,os,Cn):n},Hr.maxBy=function(e,t){return e&&e.length?vn(e,ci(t,2),Cn):n},Hr.mean=function(e){return qt(e,os)},Hr.meanBy=function(e,t){return qt(e,ci(t,2))},Hr.min=function(e){return e&&e.length?vn(e,os,Fn):n},Hr.minBy=function(e,t){return e&&e.length?vn(e,ci(t,2),Fn):n},Hr.stubArray=vs,Hr.stubFalse=gs,Hr.stubObject=function(){return{}},Hr.stubString=function(){return""},Hr.stubTrue=function(){return!0},Hr.multiply=ks,Hr.nth=function(e,t){return e&&e.length?Vn(e,ml(t)):n},Hr.noConflict=function(){return ht._===this&&(ht._=Be),this},Hr.noop=us,Hr.now=Ca,Hr.pad=function(e,t,r){e=bl(e);var n=(t=ml(t))?dr(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return $o(vt(o),r)+e+$o(mt(o),r)},Hr.padEnd=function(e,t,r){e=bl(e);var n=(t=ml(t))?dr(e):0;return t&&n<t?e+$o(t-n,r):e},Hr.padStart=function(e,t,r){e=bl(e);var n=(t=ml(t))?dr(e):0;return t&&n<t?$o(t-n,r)+e:e},Hr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),_r(bl(e).replace(ie,""),t||0)},Hr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&_i(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=hl(e),t===n?(t=e,e=0):t=hl(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=xr();return br(e+i*(t-e+ct("1e-"+((i+"").length-1))),t)}return Yn(e,t)},Hr.reduce=function(e,t,r){var n=qa(e)?Nt:Kt,o=arguments.length<3;return n(e,ci(t,4),r,o,pn)},Hr.reduceRight=function(e,t,r){var n=qa(e)?Dt:Kt,o=arguments.length<3;return n(e,ci(t,4),r,o,hn)},Hr.repeat=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:ml(t),Qn(bl(e),t)},Hr.replace=function(){var e=arguments,t=bl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Hr.result=function(e,t,r){var o=-1,i=(t=_o(t,e)).length;for(i||(i=1,e=n);++o<i;){var a=null==e?n:e[zi(t[o])];a===n&&(o=i,a=r),e=Xa(a)?a.call(e):a}return e},Hr.round=Ss,Hr.runInContext=e,Hr.sample=function(e){return(qa(e)?Zr:Xn)(e)},Hr.size=function(e){if(null==e)return 0;if(Ga(e))return sl(e)?dr(e):e.length;var t=vi(e);return t==S||t==L?e.size:Dn(e).length},Hr.snakeCase=Kl,Hr.some=function(e,t,r){var o=qa(e)?zt:io;return r&&_i(e,t,r)&&(t=n),o(e,ci(t,3))},Hr.sortedIndex=function(e,t){return ao(e,t)},Hr.sortedIndexBy=function(e,t,r){return lo(e,t,ci(r,2))},Hr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ao(e,t);if(n<r&&Ba(e[n],t))return n}return-1},Hr.sortedLastIndex=function(e,t){return ao(e,t,!0)},Hr.sortedLastIndexBy=function(e,t,r){return lo(e,t,ci(r,2),!0)},Hr.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=ao(e,t,!0)-1;if(Ba(e[r],t))return r}return-1},Hr.startCase=Yl,Hr.startsWith=function(e,t,r){return e=bl(e),r=null==r?0:sn(ml(r),0,e.length),t=co(t),e.slice(r,r+t.length)==t},Hr.subtract=Os,Hr.sum=function(e){return e&&e.length?Yt(e,os):0},Hr.sumBy=function(e,t){return e&&e.length?Yt(e,ci(t,2)):0},Hr.template=function(e,t,r){var o=Hr.templateSettings;r&&_i(e,t,r)&&(t=n),e=bl(e),t=xl({},t,o,ei);var i,a,l=xl({},t.imports,o.imports,ei),s=jl(l),u=Jt(l,s),c=0,f=t.interpolate||_e,d="__p += '",p=Te((t.escape||_e).source+"|"+f.source+"|"+(f===J?pe:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),h="//# sourceURL="+(Ne.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(p,(function(t,r,n,o,l,s){return n||(n=o),d+=e.slice(c,s).replace(xe,ir),r&&(i=!0,d+="' +\n__e("+r+") +\n'"),l&&(a=!0,d+="';\n"+l+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=s+t.length,t})),d+="';\n";var m=Ne.call(t,"variable")&&t.variable;if(m){if(fe.test(m))throw new Se("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(V,""):d).replace(q,"$1").replace($,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=Jl((function(){return Oe(s,h+"return "+d).apply(n,u)}));if(v.source=d,Za(v))throw v;return v},Hr.times=function(e,t){if((e=ml(e))<1||e>p)return[];var r=m,n=br(e,m);t=ci(t),e-=m;for(var o=Qt(n,t);++r<e;)t(r);return o},Hr.toFinite=hl,Hr.toInteger=ml,Hr.toLength=vl,Hr.toLower=function(e){return bl(e).toLowerCase()},Hr.toNumber=gl,Hr.toSafeInteger=function(e){return e?sn(ml(e),-9007199254740991,p):0===e?e:0},Hr.toString=bl,Hr.toUpper=function(e){return bl(e).toUpperCase()},Hr.trim=function(e,t,r){if((e=bl(e))&&(r||t===n))return Zt(e);if(!e||!(t=co(t)))return e;var o=pr(e),i=pr(t);return ko(o,tr(o,i),rr(o,i)+1).join("")},Hr.trimEnd=function(e,t,r){if((e=bl(e))&&(r||t===n))return e.slice(0,hr(e)+1);if(!e||!(t=co(t)))return e;var o=pr(e);return ko(o,0,rr(o,pr(t))+1).join("")},Hr.trimStart=function(e,t,r){if((e=bl(e))&&(r||t===n))return e.replace(ie,"");if(!e||!(t=co(t)))return e;var o=pr(e);return ko(o,tr(o,pr(t))).join("")},Hr.truncate=function(e,t){var r=30,o="...";if(tl(t)){var i="separator"in t?t.separator:i;r="length"in t?ml(t.length):r,o="omission"in t?co(t.omission):o}var a=(e=bl(e)).length;if(ar(e)){var l=pr(e);a=l.length}if(r>=a)return e;var s=r-dr(o);if(s<1)return o;var u=l?ko(l,0,s).join(""):e.slice(0,s);if(i===n)return u+o;if(l&&(s+=u.length-s),al(i)){if(e.slice(s).search(i)){var c,f=u;for(i.global||(i=Te(i.source,bl(he.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var d=c.index;u=u.slice(0,d===n?s:d)}}else if(e.indexOf(co(i),s)!=s){var p=u.lastIndexOf(i);p>-1&&(u=u.slice(0,p))}return u+o},Hr.unescape=function(e){return(e=bl(e))&&Y.test(e)?e.replace(G,mr):e},Hr.uniqueId=function(e){var t=++De;return bl(e)+t},Hr.upperCase=Ql,Hr.upperFirst=Zl,Hr.each=ba,Hr.eachRight=wa,Hr.first=Gi,ss(Hr,(xs={},_n(Hr,(function(e,t){Ne.call(Hr.prototype,t)||(xs[t]=e)})),xs),{chain:!1}),Hr.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Hr[e].placeholder=Hr})),Tt(["drop","take"],(function(e,t){Vr.prototype[e]=function(r){r=r===n?1:yr(ml(r),0);var o=this.__filtered__&&!t?new Vr(this):this.clone();return o.__filtered__?o.__takeCount__=br(r,o.__takeCount__):o.__views__.push({size:br(r,m),type:e+(o.__dir__<0?"Right":"")}),o},Vr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Vr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ci(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Tt(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Vr.prototype[e]=function(){return this[r](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Vr.prototype[e]=function(){return this.__filtered__?new Vr(this):this[r](1)}})),Vr.prototype.compact=function(){return this.filter(os)},Vr.prototype.find=function(e){return this.filter(e).head()},Vr.prototype.findLast=function(e){return this.reverse().find(e)},Vr.prototype.invokeMap=Zn((function(e,t){return"function"==typeof e?new Vr(this):this.map((function(r){return An(r,e,t)}))})),Vr.prototype.reject=function(e){return this.filter(Na(ci(e)))},Vr.prototype.slice=function(e,t){e=ml(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Vr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ml(t))<0?r.dropRight(-t):r.take(t-e)),r)},Vr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vr.prototype.toArray=function(){return this.take(m)},_n(Vr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Hr[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(Hr.prototype[t]=function(){var t=this.__wrapped__,l=o?[1]:arguments,s=t instanceof Vr,u=l[0],c=s||qa(t),f=function(e){var t=i.apply(Hr,Rt([e],l));return o&&d?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(s=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,m=s&&!p;if(!a&&c){t=m?t:new Vr(this);var v=e.apply(t,l);return v.__actions__.push({func:ha,args:[f],thisArg:n}),new Ur(v,d)}return h&&m?e.apply(this,l):(v=this.thru(f),h?o?v.value()[0]:v.value():v)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ae[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Hr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(qa(o)?o:[],e)}return this[r]((function(r){return t.apply(qa(r)?r:[],e)}))}})),_n(Vr.prototype,(function(e,t){var r=Hr[t];if(r){var n=r.name+"";Ne.call(Ar,n)||(Ar[n]=[]),Ar[n].push({name:t,func:r})}})),Ar[Wo(n,2).name]=[{name:"wrapper",func:n}],Vr.prototype.clone=function(){var e=new Vr(this.__wrapped__);return e.__actions__=Ao(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ao(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ao(this.__views__),e},Vr.prototype.reverse=function(){if(this.__filtered__){var e=new Vr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=qa(e),n=t<0,o=r?e.length:0,i=function(e,t,r){var n=-1,o=r.length;for(;++n<o;){var i=r[n],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=br(t,e+a);break;case"takeRight":e=yr(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,s=l-a,u=n?l:a-1,c=this.__iteratees__,f=c.length,d=0,p=br(s,this.__takeCount__);if(!r||!n&&o==s&&p==s)return vo(e,this.__actions__);var h=[];e:for(;s--&&d<p;){for(var m=-1,v=e[u+=t];++m<f;){var g=c[m],y=g.iteratee,b=g.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}h[d++]=v}return h},Hr.prototype.at=ma,Hr.prototype.chain=function(){return pa(this)},Hr.prototype.commit=function(){return new Ur(this.value(),this.__chain__)},Hr.prototype.next=function(){this.__values__===n&&(this.__values__=pl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Hr.prototype.plant=function(e){for(var t,r=this;r instanceof Wr;){var o=Hi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},Hr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vr){var t=e;return this.__actions__.length&&(t=new Vr(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:n}),new Ur(t,this.__chain__)}return this.thru(ta)},Hr.prototype.toJSON=Hr.prototype.valueOf=Hr.prototype.value=function(){return vo(this.__wrapped__,this.__actions__)},Hr.prototype.first=Hr.prototype.head,Xe&&(Hr.prototype[Xe]=function(){return this}),Hr}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(ht._=vr,define((function(){return vr}))):vt?((vt.exports=vr)._=vr,mt._=vr):ht._=vr}.call(this)},8306:(e,t,r)=>{var n=r(3369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},9833:(e,t,r)=>{var n=r(531);e.exports=function(e){return null==e?"":n(e)}},5091:(e,t,r)=>{"use strict";r.r(t)},2872:(e,t,r)=>{"use strict";r.r(t)},8039:(e,t,r)=>{"use strict";r.r(t)},937:(e,t,r)=>{"use strict";r.r(t)},4591:(e,t,r)=>{"use strict";r.r(t)},7147:(e,t,r)=>{"use strict";r.r(t)},2524:(e,t,r)=>{"use strict";r.r(t)},9518:(e,t,r)=>{"use strict";r.r(t)},3089:(e,t,r)=>{"use strict";r.r(t)},9860:(e,t,r)=>{"use strict";r.r(t)},1403:(e,t,r)=>{"use strict";r.r(t)},654:(e,t,r)=>{"use strict";r.r(t)},3347:(e,t,r)=>{"use strict";r.r(t)},3426:(e,t,r)=>{"use strict";r.r(t)},7259:(e,t,r)=>{"use strict";r.r(t)},75:function(e){(function(){var t,r,n,o,i,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-i)/1e6},r=process.hrtime,o=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})(),a=1e9*process.uptime(),i=o-a):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},2703:(e,t,r)=>{"use strict";var n=r(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},5697:(e,t,r)=>{e.exports=r(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4087:(e,t,r)=>{for(var n=r(75),o="undefined"==typeof window?r.g:window,i=["moz","webkit"],a="AnimationFrame",l=o["request"+a],s=o["cancel"+a]||o["cancelRequest"+a],u=0;!l&&u<i.length;u++)l=o[i[u]+"Request"+a],s=o[i[u]+"Cancel"+a]||o[i[u]+"CancelRequest"+a];if(!l||!s){var c=0,f=0,d=[];l=function(e){if(0===d.length){var t=n(),r=Math.max(0,16.666666666666668-(t-c));c=r+t,setTimeout((function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(r))}return d.push({handle:++f,callback:e,cancelled:!1}),f},s=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}e.exports=function(e){return l.call(o,e)},e.exports.cancel=function(){s.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=l,e.cancelAnimationFrame=s}},930:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(r(7363)),o=e=>"checkbox"===e.type,i=e=>e instanceof Date,a=e=>null==e;const l=e=>"object"==typeof e;var s=e=>!a(e)&&!Array.isArray(e)&&l(e)&&!i(e),u=e=>s(e)&&e.target?o(e.target)?e.target.checked:e.target.value:e,c=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),f="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function d(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(f&&(e instanceof Blob||e instanceof FileList)||!r&&!s(e))return e;if(t=r?[]:{},r||(e=>{const t=e.constructor&&e.constructor.prototype;return s(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=d(e[r]));else t=e}return t}var p=e=>Array.isArray(e)?e.filter(Boolean):[],h=e=>void 0===e,m=(e,t,r)=>{if(!t||!s(e))return r;const n=p(t.split(/[,[\].]+?/)).reduce(((e,t)=>a(e)?e:e[t]),e);return h(n)||n===e?h(e[t])?r:e[t]:n};const v="blur",g="onChange",y="onSubmit",b="all",w="pattern",_="required",x=n.default.createContext(null),k=()=>n.default.useContext(x);var S=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t._proxyFormState[o]!==b&&(t._proxyFormState[o]=!n||b),r&&(r[o]=!0),e[o]}});return o},O=e=>s(e)&&!Object.keys(e).length,E=(e,t,r,n)=>{r(e);const{name:o,...i}=e;return O(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find((e=>t[e]===(!n||b)))},C=e=>Array.isArray(e)?e:[e],T=(e,t,r)=>r&&t?e===t:!e||!t||e===t||C(e).some((e=>e&&(e.startsWith(t)||t.startsWith(e))));function L(e){const t=n.default.useRef(e);t.current=e,n.default.useEffect((()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}}),[e.disabled])}function M(e){const t=k(),{control:r=t.control,disabled:o,name:i,exact:a}=e||{},[l,s]=n.default.useState(r._formState),u=n.default.useRef(!0),c=n.default.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=n.default.useRef(i);return f.current=i,L({disabled:o,next:e=>u.current&&T(f.current,e.name,a)&&E(e,c.current,r._updateFormState)&&s({...r._formState,...e}),subject:r._subjects.state}),n.default.useEffect((()=>(u.current=!0,c.current.isValid&&r._updateValid(!0),()=>{u.current=!1})),[r]),S(l,r,c.current,!1)}var A=e=>"string"==typeof e,j=(e,t,r,n,o)=>A(e)?(n&&t.watch.add(e),m(r,e,o)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),m(r,e)))):(n&&(t.watchAll=!0),r);function P(e){const t=k(),{control:r=t.control,name:o,defaultValue:i,disabled:a,exact:l}=e||{},s=n.default.useRef(o);s.current=o,L({disabled:a,subject:r._subjects.values,next:e=>{T(s.current,e.name,l)&&c(d(j(s.current,r._names,e.values||r._formValues,!1,i)))}});const[u,c]=n.default.useState(r._getWatch(o,i));return n.default.useEffect((()=>r._removeUnmounted())),u}var I=e=>/^\w*$/.test(e),R=e=>p(e.replace(/["|']|\]/g,"").split(/\.|\[/));function N(e,t,r){let n=-1;const o=I(t)?[t]:R(t),i=o.length,a=i-1;for(;++n<i;){const t=o[n];let i=r;if(n!==a){const r=e[t];i=s(r)||Array.isArray(r)?r:isNaN(+o[n+1])?{}:[]}e[t]=i,e=e[t]}return e}function D(e){const t=k(),{name:r,control:o=t.control,shouldUnregister:i}=e,a=c(o._names.array,r),l=P({control:o,name:r,defaultValue:m(o._formValues,r,m(o._defaultValues,r,e.defaultValue)),exact:!0}),s=M({control:o,name:r}),f=n.default.useRef(o.register(r,{...e.rules,value:l}));return f.current=o.register(r,e.rules),n.default.useEffect((()=>{const e=o._options.shouldUnregister||i,t=(e,t)=>{const r=m(o._fields,e);r&&(r._f.mount=t)};if(t(r,!0),e){const e=d(m(o._options.defaultValues,r));N(o._defaultValues,r,e),h(m(o._formValues,r))&&N(o._formValues,r,e)}return()=>{(a?e&&!o._state.action:e)?o.unregister(r):t(r,!1)}}),[r,o,a,i]),{field:{name:r,value:l,onChange:n.default.useCallback((e=>f.current.onChange({target:{value:u(e),name:r},type:"change"})),[r]),onBlur:n.default.useCallback((()=>f.current.onBlur({target:{value:m(o._formValues,r),name:r},type:v})),[r,o]),ref:e=>{const t=m(o._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:s,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!m(s.errors,r)},isDirty:{enumerable:!0,get:()=>!!m(s.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!m(s.touchedFields,r)},error:{enumerable:!0,get:()=>m(s.errors,r)}})}}const z="post";var F=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{};const H=(e,t,r)=>{for(const n of r||Object.keys(e)){const r=m(e,n);if(r){const{_f:e,...n}=r;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else s(n)&&H(n,t)}}};var B=()=>{const e="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const r=(16*Math.random()+e)%16|0;return("x"==t?r:3&r|8).toString(16)}))},W=(e,t,r={})=>r.shouldFocus||h(r.shouldFocus)?r.focusName||`${e}.${h(r.focusIndex)?t:r.focusIndex}.`:"",U=e=>({isOnSubmit:!e||e===y,isOnBlur:"onBlur"===e,isOnChange:e===g,isOnAll:e===b,isOnTouch:"onTouched"===e}),V=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))))),q=(e,t,r)=>{const n=p(m(e,r));return N(n,"root",t[r]),N(e,r,n),e},$=e=>"boolean"==typeof e,G=e=>"file"===e.type,K=e=>"function"==typeof e,Y=e=>{if(!f)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Q=e=>A(e),Z=e=>"radio"===e.type,X=e=>e instanceof RegExp;const J={value:!1,isValid:!1},ee={value:!0,isValid:!0};var te=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&&!h(e[0].attributes.value)?h(e[0].value)||""===e[0].value?ee:{value:e[0].value,isValid:!0}:ee:J}return J};const re={isValid:!1,value:null};var ne=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),re):re;function oe(e,t,r="validate"){if(Q(e)||Array.isArray(e)&&e.every(Q)||$(e)&&!e)return{type:r,message:Q(e)?e:"",ref:t}}var ie=e=>s(e)&&!X(e)?e:{value:e,message:""},ae=async(e,t,r,n,i)=>{const{ref:l,refs:u,required:c,maxLength:f,minLength:d,min:p,max:v,pattern:g,validate:y,name:b,valueAsNumber:x,mount:k,disabled:S}=e._f,E=m(t,b);if(!k||S)return{};const C=u?u[0]:l,T=e=>{n&&C.reportValidity&&(C.setCustomValidity($(e)?"":e||""),C.reportValidity())},L={},M=Z(l),j=o(l),P=M||j,I=(x||G(l))&&h(l.value)&&h(E)||Y(l)&&""===l.value||""===E||Array.isArray(E)&&!E.length,R=F.bind(null,b,r,L),N=(e,t,r,n="maxLength",o="minLength")=>{const i=e?t:r;L[b]={type:e?n:o,message:i,ref:l,...R(e?n:o,i)}};if(i?!Array.isArray(E)||!E.length:c&&(!P&&(I||a(E))||$(E)&&!E||j&&!te(u).isValid||M&&!ne(u).isValid)){const{value:e,message:t}=Q(c)?{value:!!c,message:c}:ie(c);if(e&&(L[b]={type:_,message:t,ref:C,...R(_,t)},!r))return T(t),L}if(!(I||a(p)&&a(v))){let e,t;const n=ie(v),o=ie(p);if(a(E)||isNaN(E)){const r=l.valueAsDate||new Date(E),i=e=>new Date((new Date).toDateString()+" "+e),a="time"==l.type,s="week"==l.type;A(n.value)&&E&&(e=a?i(E)>i(n.value):s?E>n.value:r>new Date(n.value)),A(o.value)&&E&&(t=a?i(E)<i(o.value):s?E<o.value:r<new Date(o.value))}else{const r=l.valueAsNumber||(E?+E:E);a(n.value)||(e=r>n.value),a(o.value)||(t=r<o.value)}if((e||t)&&(N(!!e,n.message,o.message,"max","min"),!r))return T(L[b].message),L}if((f||d)&&!I&&(A(E)||i&&Array.isArray(E))){const e=ie(f),t=ie(d),n=!a(e.value)&&E.length>+e.value,o=!a(t.value)&&E.length<+t.value;if((n||o)&&(N(n,e.message,t.message),!r))return T(L[b].message),L}if(g&&!I&&A(E)){const{value:e,message:t}=ie(g);if(X(e)&&!E.match(e)&&(L[b]={type:w,message:t,ref:l,...R(w,t)},!r))return T(t),L}if(y)if(K(y)){const e=oe(await y(E,t),C);if(e&&(L[b]={...e,...R("validate",e.message)},!r))return T(e.message),L}else if(s(y)){let e={};for(const n in y){if(!O(e)&&!r)break;const o=oe(await y[n](E,t),C,n);o&&(e={...o,...R(n,o.message)},T(o.message),r&&(L[b]=e))}if(!O(e)&&(L[b]={ref:C,...e},!r))return L}return T(!0),L};function le(e,t){return[...e,...C(t)]}var se=e=>Array.isArray(e)?e.map((()=>{})):void 0;function ue(e,t,r){return[...e.slice(0,t),...C(r),...e.slice(t)]}var ce=(e,t,r)=>Array.isArray(e)?(h(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[];function fe(e,t){return[...C(t),...C(e)]}var de=(e,t)=>h(t)?[]:function(e,t){let r=0;const n=[...e];for(const e of t)n.splice(e-r,1),r++;return p(n).length?n:[]}(e,C(t).sort(((e,t)=>e-t))),pe=(e,t,r)=>{e[t]=[e[r],e[r]=e[t]][0]};function he(e,t){const r=Array.isArray(t)?t:I(t)?[t]:R(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=h(e)?n++:e[t[n++]];return e}(e,r),o=r.length-1,i=r[o];return n&&delete n[i],0!==o&&(s(n)&&O(n)||Array.isArray(n)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!h(e[t]))return!1;return!0}(n))&&he(e,r.slice(0,-1)),e}var me=(e,t,r)=>(e[t]=r,e);function ve(){let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var ge=e=>a(e)||!l(e);function ye(e,t){if(ge(e)||ge(t))return e===t;if(i(e)&&i(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const r=e[o];if(!n.includes(o))return!1;if("ref"!==o){const e=t[o];if(i(r)&&i(e)||s(r)&&s(e)||Array.isArray(r)&&Array.isArray(e)?!ye(r,e):r!==e)return!1}}return!0}var be=e=>"select-multiple"===e.type,we=e=>Y(e)&&e.isConnected,_e=e=>{for(const t in e)if(K(e[t]))return!0;return!1};function xe(e,t={}){const r=Array.isArray(e);if(s(e)||r)for(const r in e)Array.isArray(e[r])||s(e[r])&&!_e(e[r])?(t[r]=Array.isArray(e[r])?[]:{},xe(e[r],t[r])):a(e[r])||(t[r]=!0);return t}function ke(e,t,r){const n=Array.isArray(e);if(s(e)||n)for(const n in e)Array.isArray(e[n])||s(e[n])&&!_e(e[n])?h(t)||ge(r[n])?r[n]=Array.isArray(e[n])?xe(e[n],[]):{...xe(e[n])}:ke(e[n],a(t)?{}:t[n],r[n]):r[n]=!ye(e[n],t[n]);return r}var Se=(e,t)=>ke(e,t,xe(t)),Oe=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>h(e)?e:t?""===e?NaN:e?+e:e:r&&A(e)?new Date(e):n?n(e):e;function Ee(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return G(t)?t.files:Z(t)?ne(e.refs).value:be(t)?[...t.selectedOptions].map((({value:e})=>e)):o(t)?te(e.refs).value:Oe(h(t.value)?e.ref.value:t.value,e)}var Ce=e=>h(e)?e:X(e)?e.source:s(e)?X(e.value)?e.value.source:e.value:e;function Te(e,t,r){const n=m(e,r);if(n||I(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const n=o.join("."),i=m(t,n),a=m(e,n);if(i&&!Array.isArray(i)&&r!==n)return{name:r};if(a&&a.type)return{name:n,error:a};o.pop()}return{name:r}}const Le={mode:y,reValidateMode:g,shouldFocusError:!0};function Me(e={},t){let r,n={...Le,...e},l={submitCount:0,isDirty:!1,isLoading:K(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},g={},y=(s(n.defaultValues)||s(n.values))&&d(n.defaultValues||n.values)||{},w=n.shouldUnregister?{}:d(y),_={action:!1,mount:!1,watch:!1},x={mount:new Set,unMount:new Set,array:new Set,watch:new Set},k=0;const S={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},E={values:ve(),array:ve(),state:ve()},T=e.resetOptions&&e.resetOptions.keepDirtyValues,L=U(n.mode),M=U(n.reValidateMode),P=n.criteriaMode===b,I=async e=>{if(S.isValid||e){const e=n.resolver?O((await B()).errors):await W(g,!0);e!==l.isValid&&E.state.next({isValid:e})}},R=e=>S.isValidating&&E.state.next({isValidating:e}),D=(e,t,r,n)=>{const o=m(g,e);if(o){const i=m(w,e,h(r)?m(y,e):r);h(i)||n&&n.defaultChecked||t?N(w,e,t?i:Ee(o._f)):J(e,i),_.mount&&I()}},z=(e,t,r,n,o)=>{let i=!1,a=!1;const s={name:e};if(!r||n){S.isDirty&&(a=l.isDirty,l.isDirty=s.isDirty=Q(),i=a!==s.isDirty);const r=ye(m(y,e),t);a=m(l.dirtyFields,e),r?he(l.dirtyFields,e):N(l.dirtyFields,e,!0),s.dirtyFields=l.dirtyFields,i=i||S.dirtyFields&&a!==!r}if(r){const t=m(l.touchedFields,e);t||(N(l.touchedFields,e,r),s.touchedFields=l.touchedFields,i=i||S.touchedFields&&t!==r)}return i&&o&&E.state.next(s),i?s:{}},F=(t,n,o,i)=>{const a=m(l.errors,t),s=S.isValid&&$(n)&&l.isValid!==n;var u;if(e.delayError&&o?(u=()=>((e,t)=>{N(l.errors,e,t),E.state.next({errors:l.errors})})(t,o),r=e=>{clearTimeout(k),k=setTimeout(u,e)},r(e.delayError)):(clearTimeout(k),r=null,o?N(l.errors,t,o):he(l.errors,t)),(o?!ye(a,o):a)||!O(i)||s){const e={...i,...s&&$(n)?{isValid:n}:{},errors:l.errors,name:t};l={...l,...e},E.state.next(e)}R(!1)},B=async e=>n.resolver(w,n.context,((e,t,r,n)=>{const o={};for(const r of e){const e=m(t,r);e&&N(o,r,e._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}})(e||x.mount,g,n.criteriaMode,n.shouldUseNativeValidation)),W=async(e,t,r={valid:!0})=>{for(const o in e){const i=e[o];if(i){const{_f:e,...o}=i;if(e){const o=x.array.has(e.name),a=await ae(i,w,P,n.shouldUseNativeValidation&&!t,o);if(a[e.name]&&(r.valid=!1,t))break;!t&&(m(a,e.name)?o?q(l.errors,a,e.name):N(l.errors,e.name,a[e.name]):he(l.errors,e.name))}o&&await W(o,t,r)}}return r.valid},Q=(e,t)=>(e&&t&&N(w,e,t),!ye(oe(),y)),X=(e,t,r)=>j(e,x,{..._.mount?w:h(t)?y:A(e)?{[e]:t}:t},r,t),J=(e,t,r={})=>{const n=m(g,e);let i=t;if(n){const r=n._f;r&&(!r.disabled&&N(w,e,Oe(t,r)),i=Y(r.ref)&&a(t)?"":t,be(r.ref)?[...r.ref.options].forEach((e=>e.selected=i.includes(e.value))):r.refs?o(r.ref)?r.refs.length>1?r.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):r.refs[0]&&(r.refs[0].checked=!!i):r.refs.forEach((e=>e.checked=e.value===i)):G(r.ref)?r.ref.value="":(r.ref.value=i,r.ref.type||E.values.next({name:e,values:{...w}})))}(r.shouldDirty||r.shouldTouch)&&z(e,i,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&ne(e)},ee=(e,t,r)=>{for(const n in t){const o=t[n],a=`${e}.${n}`,l=m(g,a);!x.array.has(e)&&ge(o)&&(!l||l._f)||i(o)?J(a,o,r):ee(a,o,r)}},te=(e,r,n={})=>{const o=m(g,e),i=x.array.has(e),s=d(r);N(w,e,s),i?(E.array.next({name:e,values:{...w}}),(S.isDirty||S.dirtyFields)&&n.shouldDirty&&E.state.next({name:e,dirtyFields:Se(y,w),isDirty:Q(e,s)})):!o||o._f||a(s)?J(e,s,n):ee(e,s,n),V(e,x)&&E.state.next({...l}),E.values.next({name:e,values:{...w}}),!_.mount&&t()},re=async e=>{const t=e.target;let o=t.name,i=!0;const a=m(g,o);if(a){let c,f;const d=t.type?Ee(a._f):u(e),p=e.type===v||"focusout"===e.type,h=!((s=a._f).mount&&(s.required||s.min||s.max||s.maxLength||s.minLength||s.pattern||s.validate)||n.resolver||m(l.errors,o)||a._f.deps)||((e,t,r,n,o)=>!o.isOnAll&&(!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:!(r?n.isOnChange:o.isOnChange)||e))(p,m(l.touchedFields,o),l.isSubmitted,M,L),y=V(o,x,p);N(w,o,d),p?(a._f.onBlur&&a._f.onBlur(e),r&&r(0)):a._f.onChange&&a._f.onChange(e);const b=z(o,d,p,!1),_=!O(b)||y;if(!p&&E.values.next({name:o,type:e.type,values:{...w}}),h)return S.isValid&&I(),_&&E.state.next({name:o,...y?{}:b});if(!p&&y&&E.state.next({...l}),R(!0),n.resolver){const{errors:e}=await B([o]),t=Te(l.errors,g,o),r=Te(e,g,t.name||o);c=r.error,o=r.name,f=O(e)}else c=(await ae(a,w,P,n.shouldUseNativeValidation))[o],i=isNaN(d)||d===m(w,o,d),i&&(c?f=!1:S.isValid&&(f=await W(g,!0)));i&&(a._f.deps&&ne(a._f.deps),F(o,f,c,b))}var s},ne=async(e,t={})=>{let r,o;const i=C(e);if(R(!0),n.resolver){const t=await(async e=>{const{errors:t}=await B();if(e)for(const r of e){const e=m(t,r);e?N(l.errors,r,e):he(l.errors,r)}else l.errors=t;return t})(h(e)?e:i);r=O(t),o=e?!i.some((e=>m(t,e))):r}else e?(o=(await Promise.all(i.map((async e=>{const t=m(g,e);return await W(t&&t._f?{[e]:t}:t)})))).every(Boolean),(o||l.isValid)&&I()):o=r=await W(g);return E.state.next({...!A(e)||S.isValid&&r!==l.isValid?{}:{name:e},...n.resolver||!e?{isValid:r}:{},errors:l.errors,isValidating:!1}),t.shouldFocus&&!o&&H(g,(e=>e&&m(l.errors,e)),e?i:x.mount),o},oe=e=>{const t={...y,..._.mount?w:{}};return h(e)?t:A(e)?m(t,e):e.map((e=>m(t,e)))},ie=(e,t)=>({invalid:!!m((t||l).errors,e),isDirty:!!m((t||l).dirtyFields,e),isTouched:!!m((t||l).touchedFields,e),error:m((t||l).errors,e)}),le=(e,t,r)=>{const n=(m(g,e,{_f:{}})._f||{}).ref;N(l.errors,e,{...t,ref:n}),E.state.next({name:e,errors:l.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},se=(e,t={})=>{for(const r of e?C(e):x.mount)x.mount.delete(r),x.array.delete(r),t.keepValue||(he(g,r),he(w,r)),!t.keepError&&he(l.errors,r),!t.keepDirty&&he(l.dirtyFields,r),!t.keepTouched&&he(l.touchedFields,r),!n.shouldUnregister&&!t.keepDefaultValue&&he(y,r);E.values.next({values:{...w}}),E.state.next({...l,...t.keepDirty?{isDirty:Q()}:{}}),!t.keepIsValid&&I()},ue=(e,t={})=>{let r=m(g,e);const i=$(t.disabled);return N(g,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),x.mount.add(e),r?i&&N(w,e,t.disabled?void 0:m(w,e,Ee(r._f))):D(e,!0,t.value),{...i?{disabled:t.disabled}:{},...n.progressive?{required:!!t.required,min:Ce(t.min),max:Ce(t.max),minLength:Ce(t.minLength),maxLength:Ce(t.maxLength),pattern:Ce(t.pattern)}:{},name:e,onChange:re,onBlur:re,ref:i=>{if(i){ue(e,t),r=m(g,e);const n=h(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,a=(e=>Z(e)||o(e))(n),l=r._f.refs||[];if(a?l.find((e=>e===n)):n===r._f.ref)return;N(g,e,{_f:{...r._f,...a?{refs:[...l.filter(we),n,...Array.isArray(m(y,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),D(e,!1,void 0,n)}else r=m(g,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!c(x.array,e)||!_.action)&&x.unMount.add(e)}}},ce=()=>n.shouldFocusError&&H(g,(e=>e&&m(l.errors,e)),x.mount),fe=(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let o=d(w);if(E.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await B();l.errors=e,o=t}else await W(g);he(l.errors,"root"),O(l.errors)?(E.state.next({errors:{}}),await e(o,r)):(t&&await t({...l.errors},r),ce(),setTimeout(ce)),E.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:O(l.errors),submitCount:l.submitCount+1,errors:l.errors})},de=(r,n={})=>{const o=r||y,i=d(o),a=r&&!O(r)?i:y;if(n.keepDefaultValues||(y=o),!n.keepValues){if(n.keepDirtyValues||T)for(const e of x.mount)m(l.dirtyFields,e)?N(a,e,m(w,e)):te(e,m(a,e));else{if(f&&h(r))for(const e of x.mount){const t=m(g,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Y(e)){const t=e.closest("form");if(t){t.reset();break}}}}g={}}w=e.shouldUnregister?n.keepDefaultValues?d(y):{}:d(a),E.array.next({values:{...a}}),E.values.next({values:{...a}})}x={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!_.mount&&t(),_.mount=!S.isValid||!!n.keepIsValid,_.watch=!!e.shouldUnregister,E.state.next({submitCount:n.keepSubmitCount?l.submitCount:0,isDirty:n.keepDirty?l.isDirty:!(!n.keepDefaultValues||ye(r,y)),isSubmitted:!!n.keepIsSubmitted&&l.isSubmitted,dirtyFields:n.keepDirtyValues?l.dirtyFields:n.keepDefaultValues&&r?Se(y,r):{},touchedFields:n.keepTouched?l.touchedFields:{},errors:n.keepErrors?l.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},pe=(e,t)=>de(K(e)?e(w):e,t);return{control:{register:ue,unregister:se,getFieldState:ie,handleSubmit:fe,setError:le,_executeSchema:B,_getWatch:X,_getDirty:Q,_updateValid:I,_removeUnmounted:()=>{for(const e of x.unMount){const t=m(g,e);t&&(t._f.refs?t._f.refs.every((e=>!we(e))):!we(t._f.ref))&&se(e)}x.unMount=new Set},_updateFieldArray:(e,t=[],r,n,o=!0,i=!0)=>{if(n&&r){if(_.action=!0,i&&Array.isArray(m(g,e))){const t=r(m(g,e),n.argA,n.argB);o&&N(g,e,t)}if(i&&Array.isArray(m(l.errors,e))){const t=r(m(l.errors,e),n.argA,n.argB);o&&N(l.errors,e,t),((e,t)=>{!p(m(e,t)).length&&he(e,t)})(l.errors,e)}if(S.touchedFields&&i&&Array.isArray(m(l.touchedFields,e))){const t=r(m(l.touchedFields,e),n.argA,n.argB);o&&N(l.touchedFields,e,t)}S.dirtyFields&&(l.dirtyFields=Se(y,w)),E.state.next({name:e,isDirty:Q(e,t),dirtyFields:l.dirtyFields,errors:l.errors,isValid:l.isValid})}else N(w,e,t)},_getFieldArray:t=>p(m(_.mount?w:y,t,e.shouldUnregister?m(y,t,[]):[])),_reset:de,_resetDefaultValues:()=>K(n.defaultValues)&&n.defaultValues().then((e=>{pe(e,n.resetOptions),E.state.next({isLoading:!1})})),_updateFormState:e=>{l={...l,...e}},_subjects:E,_proxyFormState:S,get _fields(){return g},get _formValues(){return w},get _state(){return _},set _state(e){_=e},get _defaultValues(){return y},get _names(){return x},set _names(e){x=e},get _formState(){return l},set _formState(e){l=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:ne,register:ue,handleSubmit:fe,watch:(e,t)=>K(e)?E.values.subscribe({next:r=>e(X(void 0,t),r)}):X(e,t,!0),setValue:te,getValues:oe,reset:pe,resetField:(e,t={})=>{m(g,e)&&(h(t.defaultValue)?te(e,m(y,e)):(te(e,t.defaultValue),N(y,e,t.defaultValue)),t.keepTouched||he(l.touchedFields,e),t.keepDirty||(he(l.dirtyFields,e),l.isDirty=t.defaultValue?Q(e,m(y,e)):Q()),t.keepError||(he(l.errors,e),S.isValid&&I()),E.state.next({...l}))},clearErrors:e=>{e&&C(e).forEach((e=>he(l.errors,e))),E.state.next({errors:e?l.errors:{}})},unregister:se,setError:le,setFocus:(e,t={})=>{const r=m(g,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:ie}}t.Controller=e=>e.render(D(e)),t.Form=function(e){const t=k(),[r,o]=n.default.useState(!1),{control:i=t.control,onSubmit:a,children:l,action:s,method:u=z,headers:c,encType:f,onError:d,render:p,onSuccess:h,validateStatus:v,...g}=e,y=async t=>{let r=!1,n="";await i.handleSubmit((async e=>{const o=new FormData;let l="";try{l=JSON.stringify(e)}catch(e){}for(const t of i._names.mount)o.append(t,m(e,t));if(a&&a({data:e,event:t,method:u,formData:o,formDataJson:l}),s)try{const e=[c&&c["Content-Type"],f].some((e=>e&&e.includes("json"))),t=await fetch(s,{method:u,headers:{...c,...f?{"Content-Type":f}:{}},body:e?l:o});t&&(v?!v(t.status):t.status<200||t.status>=300)?(r=!0,d&&d({response:t}),n=String(t.status)):h&&h({response:t})}catch(e){r=!0,d&&d({error:e})}}))(t),r&&e.control&&(e.control._subjects.state.next({isSubmitSuccessful:!1}),e.control.setError("root.server",{type:n}))};return n.default.useEffect((()=>{o(!0)}),[]),p?n.default.createElement(n.default.Fragment,null,p({submit:y})):n.default.createElement("form",{noValidate:r,action:s,method:u,encType:f,onSubmit:y,...g},l)},t.FormProvider=e=>{const{children:t,...r}=e;return n.default.createElement(x.Provider,{value:r},t)},t.appendErrors=F,t.get=m,t.set=N,t.useController=D,t.useFieldArray=function(e){const t=k(),{control:r=t.control,name:o,keyName:i="id",shouldUnregister:a}=e,[l,s]=n.default.useState(r._getFieldArray(o)),u=n.default.useRef(r._getFieldArray(o).map(B)),c=n.default.useRef(l),f=n.default.useRef(o),p=n.default.useRef(!1);f.current=o,c.current=l,r._names.array.add(o),e.rules&&r.register(o,e.rules),L({next:({values:e,name:t})=>{if(t===f.current||!t){const t=m(e,f.current);Array.isArray(t)&&(s(t),u.current=t.map(B))}},subject:r._subjects.array});const h=n.default.useCallback((e=>{p.current=!0,r._updateFieldArray(o,e)}),[r,o]);return n.default.useEffect((()=>{if(r._state.action=!1,V(o,r._names)&&r._subjects.state.next({...r._formState}),p.current&&(!U(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([o]).then((e=>{const t=m(e.errors,o),n=m(r._formState.errors,o);(n?!t&&n.type||t&&(n.type!==t.type||n.message!==t.message):t&&t.type)&&(t?N(r._formState.errors,o,t):he(r._formState.errors,o),r._subjects.state.next({errors:r._formState.errors}))}));else{const e=m(r._fields,o);e&&e._f&&ae(e,r._formValues,r._options.criteriaMode===b,r._options.shouldUseNativeValidation,!0).then((e=>!O(e)&&r._subjects.state.next({errors:q(r._formState.errors,e,o)})))}r._subjects.values.next({name:o,values:{...r._formValues}}),r._names.focus&&H(r._fields,(e=>!!e&&e.startsWith(r._names.focus||""))),r._names.focus="",r._updateValid()}),[l,o,r]),n.default.useEffect((()=>(!m(r._formValues,o)&&r._updateFieldArray(o),()=>{(r._options.shouldUnregister||a)&&r.unregister(o)})),[o,r,i,a]),{swap:n.default.useCallback(((e,t)=>{const n=r._getFieldArray(o);pe(n,e,t),pe(u.current,e,t),h(n),s(n),r._updateFieldArray(o,n,pe,{argA:e,argB:t},!1)}),[h,o,r]),move:n.default.useCallback(((e,t)=>{const n=r._getFieldArray(o);ce(n,e,t),ce(u.current,e,t),h(n),s(n),r._updateFieldArray(o,n,ce,{argA:e,argB:t},!1)}),[h,o,r]),prepend:n.default.useCallback(((e,t)=>{const n=C(d(e)),i=fe(r._getFieldArray(o),n);r._names.focus=W(o,0,t),u.current=fe(u.current,n.map(B)),h(i),s(i),r._updateFieldArray(o,i,fe,{argA:se(e)})}),[h,o,r]),append:n.default.useCallback(((e,t)=>{const n=C(d(e)),i=le(r._getFieldArray(o),n);r._names.focus=W(o,i.length-1,t),u.current=le(u.current,n.map(B)),h(i),s(i),r._updateFieldArray(o,i,le,{argA:se(e)})}),[h,o,r]),remove:n.default.useCallback((e=>{const t=de(r._getFieldArray(o),e);u.current=de(u.current,e),h(t),s(t),r._updateFieldArray(o,t,de,{argA:e})}),[h,o,r]),insert:n.default.useCallback(((e,t,n)=>{const i=C(d(t)),a=ue(r._getFieldArray(o),e,i);r._names.focus=W(o,e,n),u.current=ue(u.current,e,i.map(B)),h(a),s(a),r._updateFieldArray(o,a,ue,{argA:e,argB:se(t)})}),[h,o,r]),update:n.default.useCallback(((e,t)=>{const n=d(t),i=me(r._getFieldArray(o),e,n);u.current=[...i].map(((t,r)=>t&&r!==e?u.current[r]:B())),h(i),s([...i]),r._updateFieldArray(o,i,me,{argA:e,argB:n},!0,!1)}),[h,o,r]),replace:n.default.useCallback((e=>{const t=C(d(e));u.current=t.map(B),h([...t]),s([...t]),r._updateFieldArray(o,[...t],(e=>e),{},!0,!1)}),[h,o,r]),fields:n.default.useMemo((()=>l.map(((e,t)=>({...e,[i]:u.current[t]||B()})))),[l,i])}},t.useForm=function(e={}){const t=n.default.useRef(),[r,o]=n.default.useState({isDirty:!1,isValidating:!1,isLoading:K(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:K(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Me(e,(()=>o((e=>({...e}))))),formState:r});const i=t.current.control;return i._options=e,L({subject:i._subjects.state,next:e=>{E(e,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),n.default.useEffect((()=>{e.values&&!ye(e.values,i._defaultValues)?i._reset(e.values,i._options.resetOptions):i._resetDefaultValues()}),[e.values,i]),n.default.useEffect((()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()})),t.current.formState=S(r,i),t.current},t.useFormContext=k,t.useFormState=M,t.useWatch=P},9921:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case f:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case v:case m:case s:return e;default:return t}}case o:return t}}}function x(e){return _(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=s,t.Element=n,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||_(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===v},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===l},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===s||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=_},9864:(e,t,r)=>{"use strict";e.exports=r(9921)},9144:(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(r(4846)),l=i(r(9483)),s=i(r(2835)),u=i(r(4246)),c=i(r(4087)),f=i(r(7739)),d=i(r(7363)),p=i(r(5697)),h=1e3/60,m=function(e){function t(r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.wasAnimating=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyle=null,this.clearUnreadPropStyle=function(e){var t=!1,r=o.state,i=r.currentStyle,a=r.currentVelocity,l=r.lastIdealStyle,s=r.lastIdealVelocity;for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)){var c=e[u];"number"==typeof c&&(t||(t=!0,i=n({},i),a=n({},a),l=n({},l),s=n({},s)),i[u]=c,a[u]=0,l[u]=c,s[u]=0)}t&&o.setState({currentStyle:i,currentVelocity:a,lastIdealStyle:l,lastIdealVelocity:s})},this.startAnimationIfNecessary=function(){o.animationID=c.default((function(e){var t=o.props.style;if(f.default(o.state.currentStyle,t,o.state.currentVelocity))return o.wasAnimating&&o.props.onRest&&o.props.onRest(),o.animationID=null,o.wasAnimating=!1,void(o.accumulatedTime=0);o.wasAnimating=!0;var r=e||u.default(),n=r-o.prevTime;if(o.prevTime=r,o.accumulatedTime=o.accumulatedTime+n,o.accumulatedTime>10*h&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();var i=(o.accumulatedTime-Math.floor(o.accumulatedTime/h)*h)/h,a=Math.floor(o.accumulatedTime/h),l={},c={},d={},p={};for(var m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var v=t[m];if("number"==typeof v)d[m]=v,p[m]=0,l[m]=v,c[m]=0;else{for(var g=o.state.lastIdealStyle[m],y=o.state.lastIdealVelocity[m],b=0;b<a;b++){var w=s.default(h/1e3,g,y,v.val,v.stiffness,v.damping,v.precision);g=w[0],y=w[1]}var _=s.default(h/1e3,g,y,v.val,v.stiffness,v.damping,v.precision),x=_[0],k=_[1];d[m]=g+(x-g)*i,p[m]=y+(k-y)*i,l[m]=g,c[m]=y}}o.animationID=null,o.accumulatedTime-=a*h,o.setState({currentStyle:d,currentVelocity:p,lastIdealStyle:l,lastIdealVelocity:c}),o.unreadPropStyle=null,o.startAnimationIfNecessary()}))},this.state=this.defaultState()}return 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)}(t,e),o(t,null,[{key:"propTypes",value:{defaultStyle:p.default.objectOf(p.default.number),style:p.default.objectOf(p.default.oneOfType([p.default.number,p.default.object])).isRequired,children:p.default.func.isRequired,onRest:p.default.func},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyle,r=e.style,n=t||l.default(r),o=a.default(n);return{currentStyle:n,currentVelocity:o,lastIdealStyle:n,lastIdealVelocity:o}},t.prototype.componentDidMount=function(){this.prevTime=u.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyle&&this.clearUnreadPropStyle(this.unreadPropStyle),this.unreadPropStyle=e.style,null==this.animationID&&(this.prevTime=u.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(c.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyle);return e&&d.default.Children.only(e)},t}(d.default.Component);t.default=m,e.exports=t.default},6506:(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(r(4846)),l=i(r(9483)),s=i(r(2835)),u=i(r(4246)),c=i(r(4087)),f=i(r(7739)),d=i(r(7363)),p=i(r(5697)),h=1e3/60;var m=function(e){function t(r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=o.state,r=t.currentStyles,i=t.currentVelocities,a=t.lastIdealStyles,l=t.lastIdealVelocities,s=!1,u=0;u<e.length;u++){var c=e[u],f=!1;for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)){var p=c[d];"number"==typeof p&&(f||(f=!0,s=!0,r[u]=n({},r[u]),i[u]=n({},i[u]),a[u]=n({},a[u]),l[u]=n({},l[u])),r[u][d]=p,i[u][d]=0,a[u][d]=p,l[u][d]=0)}}s&&o.setState({currentStyles:r,currentVelocities:i,lastIdealStyles:a,lastIdealVelocities:l})},this.startAnimationIfNecessary=function(){o.animationID=c.default((function(e){var t=o.props.styles(o.state.lastIdealStyles);if(function(e,t,r){for(var n=0;n<e.length;n++)if(!f.default(e[n],t[n],r[n]))return!1;return!0}(o.state.currentStyles,t,o.state.currentVelocities))return o.animationID=null,void(o.accumulatedTime=0);var r=e||u.default(),n=r-o.prevTime;if(o.prevTime=r,o.accumulatedTime=o.accumulatedTime+n,o.accumulatedTime>10*h&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();for(var i=(o.accumulatedTime-Math.floor(o.accumulatedTime/h)*h)/h,a=Math.floor(o.accumulatedTime/h),l=[],c=[],d=[],p=[],m=0;m<t.length;m++){var v=t[m],g={},y={},b={},w={};for(var _ in v)if(Object.prototype.hasOwnProperty.call(v,_)){var x=v[_];if("number"==typeof x)g[_]=x,y[_]=0,b[_]=x,w[_]=0;else{for(var k=o.state.lastIdealStyles[m][_],S=o.state.lastIdealVelocities[m][_],O=0;O<a;O++){var E=s.default(h/1e3,k,S,x.val,x.stiffness,x.damping,x.precision);k=E[0],S=E[1]}var C=s.default(h/1e3,k,S,x.val,x.stiffness,x.damping,x.precision),T=C[0],L=C[1];g[_]=k+(T-k)*i,y[_]=S+(L-S)*i,b[_]=k,w[_]=S}}d[m]=g,p[m]=y,l[m]=b,c[m]=w}o.animationID=null,o.accumulatedTime-=a*h,o.setState({currentStyles:d,currentVelocities:p,lastIdealStyles:l,lastIdealVelocities:c}),o.unreadPropStyles=null,o.startAnimationIfNecessary()}))},this.state=this.defaultState()}return 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)}(t,e),o(t,null,[{key:"propTypes",value:{defaultStyles:p.default.arrayOf(p.default.objectOf(p.default.number)),styles:p.default.func.isRequired,children:p.default.func.isRequired},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,r=e.styles,n=t||r().map(l.default),o=n.map((function(e){return a.default(e)}));return{currentStyles:n,currentVelocities:o,lastIdealStyles:n,lastIdealVelocities:o}},t.prototype.componentDidMount=function(){this.prevTime=u.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles),this.unreadPropStyles=e.styles(this.state.lastIdealStyles),null==this.animationID&&(this.prevTime=u.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(c.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyles);return e&&d.default.Children.only(e)},t}(d.default.Component);t.default=m,e.exports=t.default},921:(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(r(4846)),l=i(r(9483)),s=i(r(2835)),u=i(r(5597)),c=i(r(4246)),f=i(r(4087)),d=i(r(7739)),p=i(r(7363)),h=i(r(5697)),m=1e3/60;function v(e,t,r){var n=t;return null==n?e.map((function(e,t){return{key:e.key,data:e.data,style:r[t]}})):e.map((function(e,t){for(var o=0;o<n.length;o++)if(n[o].key===e.key)return{key:n[o].key,data:n[o].data,style:r[t]};return{key:e.key,data:e.data,style:r[t]}}))}function g(e,t,r,n,o,i,l,s,c){for(var f=u.default(n,o,(function(e,n){var o=t(n);return null==o||d.default(i[e],o,l[e])?(r({key:n.key,data:n.data}),null):{key:n.key,data:n.data,style:o}})),p=[],h=[],m=[],v=[],g=0;g<f.length;g++){for(var y=f[g],b=null,w=0;w<n.length;w++)if(n[w].key===y.key){b=w;break}if(null==b){var _=e(y);p[g]=_,m[g]=_;var x=a.default(y.style);h[g]=x,v[g]=x}else p[g]=i[b],m[g]=s[b],h[g]=l[b],v[g]=c[b]}return[f,p,h,m,v]}var y=function(e){function t(r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.unmounting=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=g(o.props.willEnter,o.props.willLeave,o.props.didLeave,o.state.mergedPropsStyles,e,o.state.currentStyles,o.state.currentVelocities,o.state.lastIdealStyles,o.state.lastIdealVelocities),r=t[0],i=t[1],a=t[2],l=t[3],s=t[4],u=0;u<e.length;u++){var c=e[u].style,f=!1;for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)){var p=c[d];"number"==typeof p&&(f||(f=!0,i[u]=n({},i[u]),a[u]=n({},a[u]),l[u]=n({},l[u]),s[u]=n({},s[u]),r[u]={key:r[u].key,data:r[u].data,style:n({},r[u].style)}),i[u][d]=p,a[u][d]=0,l[u][d]=p,s[u][d]=0,r[u].style[d]=p)}}o.setState({currentStyles:i,currentVelocities:a,mergedPropsStyles:r,lastIdealStyles:l,lastIdealVelocities:s})},this.startAnimationIfNecessary=function(){o.unmounting||(o.animationID=f.default((function(e){if(!o.unmounting){var t=o.props.styles,r="function"==typeof t?t(v(o.state.mergedPropsStyles,o.unreadPropStyles,o.state.lastIdealStyles)):t;if(function(e,t,r,n){if(n.length!==t.length)return!1;for(var o=0;o<n.length;o++)if(n[o].key!==t[o].key)return!1;for(o=0;o<n.length;o++)if(!d.default(e[o],t[o].style,r[o]))return!1;return!0}(o.state.currentStyles,r,o.state.currentVelocities,o.state.mergedPropsStyles))return o.animationID=null,void(o.accumulatedTime=0);var n=e||c.default(),i=n-o.prevTime;if(o.prevTime=n,o.accumulatedTime=o.accumulatedTime+i,o.accumulatedTime>10*m&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();for(var a=(o.accumulatedTime-Math.floor(o.accumulatedTime/m)*m)/m,l=Math.floor(o.accumulatedTime/m),u=g(o.props.willEnter,o.props.willLeave,o.props.didLeave,o.state.mergedPropsStyles,r,o.state.currentStyles,o.state.currentVelocities,o.state.lastIdealStyles,o.state.lastIdealVelocities),f=u[0],p=u[1],h=u[2],y=u[3],b=u[4],w=0;w<f.length;w++){var _=f[w].style,x={},k={},S={},O={};for(var E in _)if(Object.prototype.hasOwnProperty.call(_,E)){var C=_[E];if("number"==typeof C)x[E]=C,k[E]=0,S[E]=C,O[E]=0;else{for(var T=y[w][E],L=b[w][E],M=0;M<l;M++){var A=s.default(m/1e3,T,L,C.val,C.stiffness,C.damping,C.precision);T=A[0],L=A[1]}var j=s.default(m/1e3,T,L,C.val,C.stiffness,C.damping,C.precision),P=j[0],I=j[1];x[E]=T+(P-T)*a,k[E]=L+(I-L)*a,S[E]=T,O[E]=L}}y[w]=S,b[w]=O,p[w]=x,h[w]=k}o.animationID=null,o.accumulatedTime-=l*m,o.setState({currentStyles:p,currentVelocities:h,lastIdealStyles:y,lastIdealVelocities:b,mergedPropsStyles:f}),o.unreadPropStyles=null,o.startAnimationIfNecessary()}})))},this.state=this.defaultState()}return 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)}(t,e),o(t,null,[{key:"propTypes",value:{defaultStyles:h.default.arrayOf(h.default.shape({key:h.default.string.isRequired,data:h.default.any,style:h.default.objectOf(h.default.number).isRequired})),styles:h.default.oneOfType([h.default.func,h.default.arrayOf(h.default.shape({key:h.default.string.isRequired,data:h.default.any,style:h.default.objectOf(h.default.oneOfType([h.default.number,h.default.object])).isRequired}))]).isRequired,children:h.default.func.isRequired,willEnter:h.default.func,willLeave:h.default.func,didLeave:h.default.func},enumerable:!0},{key:"defaultProps",value:{willEnter:function(e){return l.default(e.style)},willLeave:function(){return null},didLeave:function(){}},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,r=e.styles,n=e.willEnter,o=e.willLeave,i=e.didLeave,s="function"==typeof r?r(t):r,u=void 0;u=null==t?s:t.map((function(e){for(var t=0;t<s.length;t++)if(s[t].key===e.key)return s[t];return e}));var c=null==t?s.map((function(e){return l.default(e.style)})):t.map((function(e){return l.default(e.style)})),f=null==t?s.map((function(e){return a.default(e.style)})):t.map((function(e){return a.default(e.style)})),d=g(n,o,i,u,s,c,f,c,f),p=d[0];return{currentStyles:d[1],currentVelocities:d[2],lastIdealStyles:d[3],lastIdealVelocities:d[4],mergedPropsStyles:p}},t.prototype.componentDidMount=function(){this.prevTime=c.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles);var t=e.styles;this.unreadPropStyles="function"==typeof t?t(v(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles)):t,null==this.animationID&&(this.prevTime=c.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){this.unmounting=!0,null!=this.animationID&&(f.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=v(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles),t=this.props.children(e);return t&&p.default.Children.only(t)},t}(p.default.Component);t.default=y,e.exports=t.default},4846:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=0);return t},e.exports=t.default},5597:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n={},o=0;o<e.length;o++)n[e[o].key]=o;var i={};for(o=0;o<t.length;o++)i[t[o].key]=o;var a=[];for(o=0;o<t.length;o++)a[o]=t[o];for(o=0;o<e.length;o++)if(!Object.prototype.hasOwnProperty.call(i,e[o].key)){var l=r(o,e[o]);null!=l&&a.push(l)}return a.sort((function(e,r){var o=i[e.key],a=i[r.key],l=n[e.key],s=n[r.key];if(null!=o&&null!=a)return i[e.key]-i[r.key];if(null!=l&&null!=s)return n[e.key]-n[r.key];if(null!=o){for(var u=0;u<t.length;u++){var c=t[u].key;if(Object.prototype.hasOwnProperty.call(n,c)){if(o<i[c]&&s>n[c])return-1;if(o>i[c]&&s<n[c])return 1}}return 1}for(u=0;u<t.length;u++){c=t[u].key;if(Object.prototype.hasOwnProperty.call(n,c)){if(a<i[c]&&l>n[c])return 1;if(a>i[c]&&l<n[c])return-1}}return-1}))},e.exports=t.default},2392:(e,t)=>{"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},7727:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var o=r(9144);t.Motion=n(o);var i=r(6506);t.StaggeredMotion=n(i);var a=r(921);t.TransitionMotion=n(a);var l=r(124);t.spring=n(l);var s=r(2392);t.presets=n(s);var u=r(9483);t.stripStyle=n(u);var c=r(9566);t.reorderKeys=n(c)},9566:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){0};e.exports=t.default},7739:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(0!==r[n])return!1;var o="number"==typeof t[n]?t[n]:t[n].val;if(e[n]!==o)return!1}return!0},e.exports=t.default},124:(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.default=function(e,t){return n({},l,t,{val:e})};var o,i=r(2392),a=(o=i)&&o.__esModule?o:{default:o},l=n({},a.default.noWobble,{precision:.01});e.exports=t.default},2835:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,n,o,i,a,l){var s=n+(-i*(t-o)+-a*n)*e,u=t+s*e;if(Math.abs(s)<l&&Math.abs(u-o)<l)return r[0]=o,r[1]=0,r;return r[0]=u,r[1]=s,r};var r=[0,0];e.exports=t.default},9483:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]="number"==typeof e[r]?e[r]:e[r].val);return t},e.exports=t.default},4246:function(e){(function(){var t,r,n;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-n)/1e6},r=process.hrtime,n=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})()):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},6113:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Provider:()=>H,ReactReduxContext:()=>c,batch:()=>i.unstable_batchedUpdates,connect:()=>F,createDispatchHook:()=>U,createSelectorHook:()=>m,createStoreHook:()=>B,shallowEqual:()=>P,useDispatch:()=>V,useSelector:()=>v,useStore:()=>W});var n=r(1688),o=r(2798),i=r(1533);let a=function(e){e()};const l=()=>a;var s=r(7363),u=r.n(s);const c=(0,s.createContext)(null);function f(){return(0,s.useContext)(c)}const d=()=>{throw new Error("uSES not initialized!")};let p=d;const h=(e,t)=>e===t;function m(e=c){const t=e===c?f:()=>(0,s.useContext)(e);return function(e,r=h){const{store:n,subscription:o,getServerState:i}=t(),a=p(o.addNestedSub,n.getState,i||n.getState,e,r);return(0,s.useDebugValue)(a),a}}const v=m();function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(this,arguments)}function y(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var b=r(8679),w=r.n(b),_=r(2973);const x=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function k(e,t,r,n,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let l,s,u,c,f,d=!1;function p(d,p){const h=!i(p,s),m=!o(d,l,p,s);return l=d,s=p,h&&m?(u=e(l,s),t.dependsOnOwnProps&&(c=t(n,s)),f=r(u,c,s),f):h?(e.dependsOnOwnProps&&(u=e(l,s)),t.dependsOnOwnProps&&(c=t(n,s)),f=r(u,c,s),f):m?function(){const t=e(l,s),n=!a(t,u);return u=t,n&&(f=r(u,c,s)),f}():f}return function(o,i){return d?p(o,i):(l=o,s=i,u=e(l,s),c=t(n,s),f=r(u,c,s),d=!0,f)}}function S(e){return function(t){const r=e(t);function n(){return r}return n.dependsOnOwnProps=!1,n}}function O(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function E(e,t){return function(t,{displayName:r}){const n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=O(e);let o=n(t,r);return"function"==typeof o&&(n.mapToProps=o,n.dependsOnOwnProps=O(o),o=n(t,r)),o},n}}function C(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function T(e,t,r){return g({},r,e,t)}const L={notify(){},get:()=>[]};function M(e,t){let r,n=L;function o(){a.onStateChange&&a.onStateChange()}function i(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=function(){const e=l();let t=null,r=null;return{clear(){t=null,r=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let n=!0,o=r={callback:e,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){n&&null!==t&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}const a={addNestedSub:function(e){return i(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:i,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=L)},getListeners:()=>n};return a}const A=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?s.useLayoutEffect:s.useEffect;function j(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function P(e,t){if(j(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!j(e[r[n]],t[r[n]]))return!1;return!0}const I=["reactReduxForwardedRef"];let R=d;const N=[null,null];function D(e,t,r,n,o,i){e.current=n,r.current=!1,o.current&&(o.current=null,i())}function z(e,t){return e===t}const F=function(e,t,r,{pure:n,areStatesEqual:o=z,areOwnPropsEqual:i=P,areStatePropsEqual:a=P,areMergedPropsEqual:l=P,forwardRef:f=!1,context:d=c}={}){const p=d,h=function(e){return e?"function"==typeof e?E(e):C(e,"mapStateToProps"):S((()=>({})))}(e),m=function(e){return e&&"object"==typeof e?S((t=>function(e,t){const r={};for(const n in e){const o=e[n];"function"==typeof o&&(r[n]=(...e)=>t(o(...e)))}return r}(e,t))):e?"function"==typeof e?E(e):C(e,"mapDispatchToProps"):S((e=>({dispatch:e})))}(t),v=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:r,areMergedPropsEqual:n}){let o,i=!1;return function(t,r,a){const l=e(t,r,a);return i?n(l,o)||(o=l):(i=!0,o=l),o}}}(e):C(e,"mergeProps"):()=>T}(r),b=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",r=`Connect(${t})`,n={shouldHandleStateChanges:b,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:h,initMapDispatchToProps:m,initMergeProps:v,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:l};function c(t){const[r,o,i]=(0,s.useMemo)((()=>{const{reactReduxForwardedRef:e}=t,r=y(t,I);return[t.context,e,r]}),[t]),a=(0,s.useMemo)((()=>r&&r.Consumer&&(0,_.isContextConsumer)(u().createElement(r.Consumer,null))?r:p),[r,p]),l=(0,s.useContext)(a),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),f=Boolean(l)&&Boolean(l.store);const d=c?t.store:l.store,h=f?l.getServerState:d.getState,m=(0,s.useMemo)((()=>function(e,t){let{initMapStateToProps:r,initMapDispatchToProps:n,initMergeProps:o}=t,i=y(t,x);return k(r(e,i),n(e,i),o(e,i),e,i)}(d.dispatch,n)),[d]),[v,w]=(0,s.useMemo)((()=>{if(!b)return N;const e=M(d,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,l]),S=(0,s.useMemo)((()=>c?l:g({},l,{subscription:v})),[c,l,v]),O=(0,s.useRef)(),E=(0,s.useRef)(i),C=(0,s.useRef)(),T=(0,s.useRef)(!1),L=((0,s.useRef)(!1),(0,s.useRef)(!1)),j=(0,s.useRef)();A((()=>(L.current=!0,()=>{L.current=!1})),[]);const P=(0,s.useMemo)((()=>()=>C.current&&i===E.current?C.current:m(d.getState(),i)),[d,i]),z=(0,s.useMemo)((()=>e=>v?function(e,t,r,n,o,i,a,l,s,u,c){if(!e)return()=>{};let f=!1,d=null;const p=()=>{if(f||!l.current)return;const e=t.getState();let r,p;try{r=n(e,o.current)}catch(e){p=e,d=e}p||(d=null),r===i.current?a.current||u():(i.current=r,s.current=r,a.current=!0,c())};return r.onStateChange=p,r.trySubscribe(),p(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}(b,d,v,m,E,O,T,L,C,w,e):()=>{}),[v]);var F,H,B;let W;F=D,H=[E,O,T,i,C,w],A((()=>F(...H)),B);try{W=R(z,P,h?()=>m(h(),i):P)}catch(e){throw j.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${j.current.stack}\n\n`),e}A((()=>{j.current=void 0,C.current=void 0,O.current=W}));const U=(0,s.useMemo)((()=>u().createElement(e,g({},W,{ref:o}))),[o,e,W]);return(0,s.useMemo)((()=>b?u().createElement(a.Provider,{value:S},U):U),[a,U,S])}const d=u().memo(c);if(d.WrappedComponent=e,d.displayName=c.displayName=r,f){const t=u().forwardRef((function(e,t){return u().createElement(d,g({},e,{reactReduxForwardedRef:t}))}));return t.displayName=r,t.WrappedComponent=e,w()(t,e)}return w()(d,e)}};const H=function({store:e,context:t,children:r,serverState:n}){const o=(0,s.useMemo)((()=>{const t=M(e);return{store:e,subscription:t,getServerState:n?()=>n:void 0}}),[e,n]),i=(0,s.useMemo)((()=>e.getState()),[e]);A((()=>{const{subscription:t}=o;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),i!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[o,i]);const a=t||c;return u().createElement(a.Provider,{value:o},r)};function B(e=c){const t=e===c?f:()=>(0,s.useContext)(e);return function(){const{store:e}=t();return e}}const W=B();function U(e=c){const t=e===c?W:B(e);return function(){return t().dispatch}}const V=U();var q,$;q=o.useSyncExternalStoreWithSelector,p=q,(e=>{R=e})(n.useSyncExternalStore),$=i.unstable_batchedUpdates,a=$},8359:(e,t)=>{"use strict";var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case l:case a:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case f:case m:case h:case s:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return g(e)===u}},2973:(e,t,r)=>{"use strict";e.exports=r(8359)},5251:(e,t,r)=>{"use strict";var n=r(7363),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,i={},u=null,c=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,n)&&!s.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:l.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},5893:(e,t,r)=>{"use strict";e.exports=r(5251)},4791:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}function o(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}function i(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}r.d(t,{Kf:()=>f,md:()=>b,DE:()=>g,UY:()=>m,qC:()=>y,MT:()=>p,jB:()=>h});var u="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},f={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function d(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function p(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(s(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(s(1));return r(p)(e,t)}if("function"!=typeof e)throw new Error(s(2));var o=e,i=t,a=[],l=a,c=!1;function h(){l===a&&(l=a.slice())}function m(){if(c)throw new Error(s(3));return i}function v(e){if("function"!=typeof e)throw new Error(s(4));if(c)throw new Error(s(5));var t=!0;return h(),l.push(e),function(){if(t){if(c)throw new Error(s(6));t=!1,h();var r=l.indexOf(e);l.splice(r,1),a=null}}}function g(e){if(!d(e))throw new Error(s(7));if(void 0===e.type)throw new Error(s(8));if(c)throw new Error(s(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=l,r=0;r<t.length;r++){(0,t[r])()}return e}return g({type:f.INIT}),(n={dispatch:g,subscribe:v,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(s(10));o=e,g({type:f.REPLACE})}})[u]=function(){var e,t=v;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(s(11));function r(){e.next&&e.next(m())}return r(),{unsubscribe:t(r)}}})[u]=function(){return this},e},n}var h=p;function m(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];0,"function"==typeof e[o]&&(r[o]=e[o])}var i,a=Object.keys(r);try{!function(e){Object.keys(e).forEach((function(t){var r=e[t];if(void 0===r(void 0,{type:f.INIT}))throw new Error(s(12));if(void 0===r(void 0,{type:f.PROBE_UNKNOWN_ACTION()}))throw new Error(s(13))}))}(r)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var n=!1,o={},l=0;l<a.length;l++){var u=a[l],c=r[u],f=e[u],d=c(f,t);if(void 0===d){t&&t.type;throw new Error(s(14))}o[u]=d,n=n||d!==f}return(n=n||a.length!==Object.keys(e).length)?o:e}}function v(e,t){return function(){return t(e.apply(this,arguments))}}function g(e,t){if("function"==typeof e)return v(e,t);if("object"!=typeof e||null===e)throw new Error(s(16));var r={};for(var n in e){var o=e[n];"function"==typeof o&&(r[n]=v(o,t))}return r}function y(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];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))}}))}function b(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(s(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return n=y.apply(void 0,i)(r.dispatch),l(l({},r),{},{dispatch:n})}}}},4815:(e,t,r)=>{"use strict";r.d(t,{PW:()=>i});var n="NOT_FOUND";var o=function(e,t){return e===t};function i(e,t){var r,i,a="object"==typeof t?t:{equalityCheck:t},l=a.equalityCheck,s=void 0===l?o:l,u=a.maxSize,c=void 0===u?1:u,f=a.resultEqualityCheck,d=function(e){return function(t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var n=t.length,o=0;o<n;o++)if(!e(t[o],r[o]))return!1;return!0}}(s),p=1===c?(r=d,{get:function(e){return i&&r(i.key,e)?i.value:n},put:function(e,t){i={key:e,value:t}},getEntries:function(){return i?[i]:[]},clear:function(){i=void 0}}):function(e,t){var r=[];function o(e){var o=r.findIndex((function(r){return t(e,r.key)}));if(o>-1){var i=r[o];return o>0&&(r.splice(o,1),r.unshift(i)),i.value}return n}return{get:o,put:function(t,i){o(t)===n&&(r.unshift({key:t,value:i}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(c,d);function h(){var t=p.get(arguments);if(t===n){if(t=e.apply(null,arguments),f){var r=p.getEntries().find((function(e){return f(e.value,t)}));r&&(t=r.value)}p.put(arguments,t)}return t}return h.clearCache=function(){return p.clear()},h}},2222:(e,t,r)=>{"use strict";function n(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var i,a=0,l={memoizeOptions:void 0},s=n.pop();if("object"==typeof s&&(l=s,s=n.pop()),"function"!=typeof s)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof s+"]");var u=l.memoizeOptions,c=void 0===u?r:u,f=Array.isArray(c)?c:[c],d=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var r=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+r+"]")}return t}(n),p=e.apply(void 0,[function(){return a++,s.apply(null,arguments)}].concat(f)),h=e((function(){for(var e=[],t=d.length,r=0;r<t;r++)e.push(d[r].apply(null,arguments));return i=p.apply(null,e)}));return Object.assign(h,{resultFunc:s,memoizedResultFunc:p,dependencies:d,lastResult:function(){return i},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),h}}r.d(t,{P1:()=>o});var o=n(r(4815).PW)},9543:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Component:()=>x,SpinnerCircular:()=>h,SpinnerCircularFixed:()=>v,SpinnerCircularSplit:()=>y,SpinnerDiamond:()=>R,SpinnerDotted:()=>k,SpinnerInfinity:()=>w,SpinnerRomb:()=>I,SpinnerRound:()=>O,SpinnerRoundFilled:()=>A,SpinnerRoundOutlined:()=>T});var n=r(7363),o=r.n(n),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}var l={color:"#38ad48",enabled:!0,size:50,style:{}},s=function(e){return parseFloat(e.toString()).toString()===e.toString()?e+"px":e.toString()},u=function(e){var t=function(t){var r=t.color,n=t.enabled,l=t.size,u=t.style,c=a(t,["color","enabled","size","style"]),f=i(i({},c),{style:i({color:r,overflow:"visible",width:s(l)},u)});return n?o().createElement(e,i({},f)):null};return t.defaultProps=l,t},c={speed:100,still:!1,thickness:100},f=i(i({},c),{secondaryColor:"rgba(0,0,0,0.44)"});function d(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}d("@keyframes spinners-react-circular{0%{stroke-dashoffset:306}50%{stroke-dasharray:40,134}to{stroke-dasharray:1,174;stroke-dashoffset:132}}");var p=function(e){var t=e.secondaryColor,r=e.speed,n=e.still,l=e.thickness,s=a(e,["secondaryColor","speed","still","thickness"]),u=l/100*4,c=n?{}:{animation:"spinners-react-circular "+140/r+"s linear infinite"};return o().createElement("svg",i({fill:"none"},s,{viewBox:"0 0 66 66"}),o().createElement("circle",{cx:"33",cy:"33",fill:"none",r:"28",stroke:t,strokeWidth:u}),o().createElement("circle",{cx:"33",cy:"33",fill:"none",r:"28",stroke:"currentColor",strokeDasharray:"1, 174",strokeDashoffset:"306",strokeLinecap:"round",strokeWidth:u,style:c}))};p.defaultProps=f;var h=u(p);d("@keyframes spinners-react-circular-fixed{0%{stroke-dashoffset:325}to{stroke-dashoffset:151}}");var m=function(e){var t=e.secondaryColor,r=e.speed,n=e.still,l=e.thickness,s=a(e,["secondaryColor","speed","still","thickness"]),u=l/100*4,c=n?{}:{animation:"spinners-react-circular-fixed "+140/r+"s linear infinite"};return o().createElement("svg",i({fill:"none"},s,{viewBox:"0 0 66 66"}),o().createElement("circle",{cx:"33",cy:"33",fill:"none",r:"28",stroke:t,strokeWidth:u}),o().createElement("circle",{cx:"33",cy:"33",fill:"none",r:"28",stroke:"currentColor",strokeDasharray:"40, 134",strokeDashoffset:"325",strokeLinecap:"round",strokeWidth:u,style:c}))};m.defaultProps=f;var v=u(m);d("@keyframes spinners-react-circular-split{0%{stroke-dashoffset:1;stroke-dasharray:5,170}10%{stroke-dashoffset:13;stroke-dasharray:30,145}13%{stroke-dashoffset:-11;stroke-dasharray:5,145}50%{stroke-dasharray:5,0,5,165;stroke-dashoffset:-82}51%{stroke-dasharray:2,0,2,139;stroke-dashoffset:-85}61%{stroke-dasharray:15,0,15,165;stroke-dashoffset:-72}64%{stroke-dasharray:5,20,5,145;stroke-dashoffset:-72}}");var g=function(e){var t=e.secondaryColor,r=e.speed,n=e.still,l=e.thickness,s=a(e,["secondaryColor","speed","still","thickness"]),u=l/100*4,c=n?{}:{animation:"spinners-react-circular-split "+140/r+"s linear infinite"};return o().createElement("svg",i({fill:"none"},s,{viewBox:"0 0 66 66"}),o().createElement("circle",{cx:"33",cy:"33",fill:"none",r:"28",stroke:t,strokeWidth:u}),o().createElement("circle",{cx:"33",cy:"33",fill:"none",r:"28",stroke:"currentColor",strokeDasharray:"5, 170",strokeDashoffset:"1",strokeLinecap:"round",strokeWidth:u,style:c,transform:"rotate(-90 33 33)"}))};g.defaultProps=f;var y=u(g);d("@keyframes spinners-react-infinity{0%{stroke-dasharray:1,347;stroke-dashoffset:75}25%,75%{stroke-dasharray:17,330}50%{stroke-dasharray:1,347}to{stroke-dasharray:1,347;stroke-dashoffset:423}}");var b=function(e){var t=e.secondaryColor,r=e.speed,n=e.still,l=e.thickness,s=a(e,["secondaryColor","speed","still","thickness"]),u=l/100*7,c=n?{}:{animation:"spinners-react-infinity "+140/r+"s linear infinite"};return o().createElement("svg",i({fill:"none",viewBox:"0 0 131 55"},s),o().createElement("defs",null,o().createElement("path",{d:"M46.57 45.5138C36.346 55.4954 19.8919 55.4954 9.66794 45.5138C-0.55598 35.5321 -0.55598 19.4678 9.66794 9.48624C19.8919 -0.495412 36.346 -0.495412 46.57 9.48624L84.4303 45.5138C94.6543 55.4954 111.108 55.4954 121.332 45.5138C131.556 35.5321 131.556 19.4678 121.332 9.48624C111.108 -0.495412 94.6543 -0.495412 84.4303 9.48624L46.57 45.5138Z",id:"spinners-react-infinity-path"})),o().createElement("use",{stroke:t,strokeWidth:u,xlinkHref:"#spinners-react-infinity-path"}),o().createElement("use",{fill:"none",stroke:"currentColor",strokeDasharray:"1, 347",strokeDashoffset:"75",strokeLinecap:"round",strokeWidth:u,style:c,xlinkHref:"#spinners-react-infinity-path"}))};b.defaultProps=f;var w=u(b);d("@keyframes spinners-react-dotted-center{0%,15%,85%,to{transform:scale(0)}40%,50%{transform:scale(1)}84%{transform:scale(.45)}}@keyframes spinners-react-dotted-shrink{50%{transform:translate(0)}}");var _=[{x:22,y:-20},{x:29,y:0},{x:22,y:20},{x:0,y:30},{x:-23,y:20},{x:-30,y:0},{x:-23,y:-20},{x:0,y:-30}],x=function(e){var t=e.speed,r=e.still,n=e.thickness,l=a(e,["speed","still","thickness"]),s=200/t,u=function(e){return r?{}:{animation:"spinners-react-dotted-shrink "+s+"s cubic-bezier(0, 0.9, 0, 0.9) "+s/20*e+"s infinite"}},c=r?{display:"none"}:{animation:"spinners-react-dotted-center "+s+"s ease-out infinite",transformOrigin:"center"};return o().createElement("svg",i({fill:"none",viewBox:"0 0 66 66"},l),_.map((function(e,t){return o().createElement("circle",{key:e.x+"-"+e.y,cx:"33",cy:"33",fill:"currentColor",r:n/100*3,style:i({transform:"translate("+e.x+"px, "+e.y+"px)"},u(t))})})),o().createElement("circle",{cx:"33",cy:"33",fill:"currentColor",r:n/100*6,style:c}))};x.defaultProps=c;var k=u(x);d("@keyframes spinners-react-round{27%,73%{r:2px;stroke-width:4}}");var S=function(e){var t=e.speed,r=e.still,n=e.thickness,l=a(e,["speed","still","thickness"]),s=n/100*3,u={animation:"spinners-react-round "+140/t+"s ease-in-out infinite",transformOrigin:"center"};return r&&(u.animation="none"),o().createElement("svg",i({fill:"none"},l,{viewBox:"0 0 66 66"}),o().createElement("circle",{cx:"33",cy:"33",fill:"none",r:28,stroke:"currentColor",strokeWidth:s,style:u}))};S.defaultProps=c;var O=u(S);d("@keyframes spinners-react-round-outlined{35%,65%{r:2px;stroke-width:4}}");var E=[{r:2},{name:"spinners-react-round-outlined",r:14},{name:"spinners-react-round-outlined",r:28}],C=function(e){var t=e.speed,r=e.still,n=e.thickness,l=a(e,["speed","still","thickness"]),s=n/100*3;return o().createElement("svg",i({fill:"none"},l,{viewBox:"0 0 66 66"}),E.map((function(e,n){return o().createElement("circle",{key:"spinner-round-outlined-r"+e.r,cx:"33",cy:"33",fill:"none",r:e.r,stroke:"currentColor",strokeWidth:n?s:4,style:e.name&&!r?{animation:e.name+" "+140/t+"s ease-in-out infinite"}:{}})})))};C.defaultProps=c;var T=u(C);d("@keyframes spinners-react-round-filled-outer{40%,60%{transform:scale(0)}}@keyframes spinners-react-round-filled-center{30%,70%{transform:scale(0)}}@keyframes spinners-react-round-filled-inner{20%,80%{transform:scale(0)}}");var L=[{r:4},{name:"spinners-react-round-filled-inner",r:12.66},{name:"spinners-react-round-filled-center",r:20.32},{name:"spinners-react-round-filled-outer",r:27.5}],M=function(e){var t=e.speed,r=e.still,n=e.thickness,l=a(e,["speed","still","thickness"]);return o().createElement("svg",i({fill:"none"},l,{viewBox:"0 0 66 66"}),L.map((function(e){return o().createElement("circle",{key:e.name||"still",cx:"33",cy:"33",fill:"currentColor",r:e.r*(e.name?n/100:1),style:{opacity:e.name?.25:1,transformOrigin:"center",animation:!e.name||r?"none":e.name+" "+140/t+"s ease-in-out infinite"}})})))};M.defaultProps=c;var A=u(M);d("@keyframes spinners-react-diamond{25%{transform:translate(30px,-30px)}50%{transform:translate(60px)}75%{transform:translate(30px,30px)}}");var j=[{x:3,y:48},{x:18,y:33},{x:18,y:48},{x:18,y:63},{x:33,y:48},{x:33,y:18},{x:33,y:33},{x:33,y:63},{x:33,y:78},{x:48,y:3},{x:48,y:18},{x:48,y:33},{x:48,y:48},{x:48,y:63},{x:48,y:78},{x:48,y:93},{x:63,y:18},{x:63,y:33},{x:63,y:48},{x:63,y:63},{x:63,y:78},{x:78,y:33},{x:78,y:48},{x:78,y:63},{x:93,y:48}],P=function(e){var t=e.secondaryColor,r=e.speed,n=e.still,l=e.thickness,s=a(e,["secondaryColor","speed","still","thickness"]),u={animation:"spinners-react-diamond "+140/r+"s steps(2, end) infinite"};return n&&(u.animation="none"),o().createElement("svg",i({fill:"currentColor"},s,{viewBox:"0 0 96 96"}),j.map((function(e){return o().createElement("circle",{key:e.x+"-"+e.y,cx:e.x,cy:e.y,fill:t,r:l/100*2.5})})),o().createElement("g",{style:u},j.filter((function(e,t){return t<5})).map((function(e){return o().createElement("circle",{key:"h-"+e.x+"-"+e.y,cx:e.x,cy:e.y,r:l/100*3.5})}))))};P.defaultProps=f;var I=u(P),R=u(P)},6641:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(3379),o=r.n(n),i=r(7795),a=r.n(i),l=r(569),s=r.n(l),u=r(3565),c=r.n(u),f=r(9216),d=r.n(f),p=r(4589),h=r.n(p),m=r(4925),v={};v.styleTagTransform=h(),v.setAttributes=c(),v.insert=s().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=d();o()(m.Z,v);const g=m.Z&&m.Z.locals?m.Z.locals:void 0},3379:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},a=[],l=0;l<e.length;l++){var s=e[l],u=n.base?s[0]+n.base:s[0],c=i[u]||0,f="".concat(u," ").concat(c);i[u]=c+1;var d=r(f),p={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var h=o(p,n);n.byIndex=l,t.splice(l,0,{identifier:f,updater:h,references:1})}a.push(f)}return a}function o(e,t){var r=t.domAPI(t);r.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var l=r(i[a]);t[l].references--}for(var s=n(e,o),u=0;u<i.length;u++){var c=r(i[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}i=s}}},569:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},3250:(e,t,r)=>{"use strict";var n=r(7363);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,a=n.useEffect,l=n.useLayoutEffect,s=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),o=n[0].inst,c=n[1];return l((function(){o.value=r,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,r,t]),a((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),s(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},139:(e,t,r)=>{"use strict";var n=r(7363),o=r(1688);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,l=n.useRef,s=n.useEffect,u=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var f=l(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=u((function(){function e(e){if(!s){if(s=!0,a=e,e=n(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return l=t}return l=e}if(t=l,i(a,e))return t;var r=n(e);return void 0!==o&&o(t,r)?t:(a=e,l=r)}var a,l,s=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,r,n,o]);var p=a(e,f[0],f[1]);return s((function(){d.hasValue=!0,d.value=p}),[p]),c(p),p}},1688:(e,t,r)=>{"use strict";e.exports=r(3250)},2798:(e,t,r)=>{"use strict";e.exports=r(139)},4480:e=>{!function(){"use strict";var t={}.hasOwnProperty;function r(){for(var e=[],n=0;n<arguments.length;n++){var o=arguments[n];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=r.apply(null,o);a&&e.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var l in o)t.call(o,l)&&o[l]&&e.push(l);else e.push(o.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],(function(){return r})):window.classNames=r}()},7045:e=>{var t=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,r,n;try{t=Map}catch(e){t=function(){}}try{r=Set}catch(e){r=function(){}}try{n=Promise}catch(e){n=function(){}}function o(i,l,s,u,c){"object"==typeof l&&(s=l.depth,u=l.prototype,c=l.includeNonEnumerable,l=l.circular);var f=[],d=[],p="undefined"!=typeof Buffer;return void 0===l&&(l=!0),void 0===s&&(s=1/0),function i(s,h){if(null===s)return null;if(0===h)return s;var m,v;if("object"!=typeof s)return s;if(e(s,t))m=new t;else if(e(s,r))m=new r;else if(e(s,n))m=new n((function(e,t){s.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(o.__isArray(s))m=[];else if(o.__isRegExp(s))m=new RegExp(s.source,a(s)),s.lastIndex&&(m.lastIndex=s.lastIndex);else if(o.__isDate(s))m=new Date(s.getTime());else{if(p&&Buffer.isBuffer(s))return m=Buffer.allocUnsafe?Buffer.allocUnsafe(s.length):new Buffer(s.length),s.copy(m),m;e(s,Error)?m=Object.create(s):void 0===u?(v=Object.getPrototypeOf(s),m=Object.create(v)):(m=Object.create(u),v=u)}if(l){var g=f.indexOf(s);if(-1!=g)return d[g];f.push(s),d.push(m)}for(var y in e(s,t)&&s.forEach((function(e,t){var r=i(t,h-1),n=i(e,h-1);m.set(r,n)})),e(s,r)&&s.forEach((function(e){var t=i(e,h-1);m.add(t)})),s){var b;v&&(b=Object.getOwnPropertyDescriptor(v,y)),b&&null==b.set||(m[y]=i(s[y],h-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(s);for(y=0;y<w.length;y++){var _=w[y];(!(k=Object.getOwnPropertyDescriptor(s,_))||k.enumerable||c)&&(m[_]=i(s[_],h-1),k.enumerable||Object.defineProperty(m,_,{enumerable:!1}))}}if(c){var x=Object.getOwnPropertyNames(s);for(y=0;y<x.length;y++){var k,S=x[y];(k=Object.getOwnPropertyDescriptor(s,S))&&k.enumerable||(m[S]=i(s[S],h-1),Object.defineProperty(m,S,{enumerable:!1}))}}return m}(i,s)}function i(e){return Object.prototype.toString.call(e)}function a(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=i,o.__isDate=function(e){return"object"==typeof e&&"[object Date]"===i(e)},o.__isArray=function(e){return"object"==typeof e&&"[object Array]"===i(e)},o.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===i(e)},o.__getRegExpFlags=a,o}();e.exports&&(e.exports=t)},1443:(e,t,r)=>{"use strict";function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}r.r(t),r.d(t,{clsx:()=>o,default:()=>i});const i=o},6283:(e,t,r)=>{r(3458).defineExtension("colorpicker",(function(){var e,t,r,n,o,i,a,l,s,u,c,f,d,p,h,m,v,g,y,b,w,_,x,k,S,O,E,C,T,L,M,A,j,P,I,R,N,D,z,F=function(){return window.top},H={trim:function(e){return e.replace(/^\s+|\s+$/g,"")},format:function(e,t){if("hex"==t){var r=e.r.toString(16);e.r<16&&(r="0"+r);var n=e.g.toString(16);e.g<16&&(n="0"+n);var o=e.b.toString(16);return e.b<16&&(o="0"+o),"#"+[r,n,o].join("")}return"rgb"==t?void 0===e.a?"rgb("+[e.r,e.g,e.b].join(",")+")":"rgba("+[e.r,e.g,e.b,e.a].join(",")+")":"hsl"==t?void 0===e.a?"hsl("+[e.h,e.s+"%",e.l+"%"].join(",")+")":"hsla("+[e.h,e.s+"%",e.l+"%",e.a].join(",")+")":e},parse:function(e){if("string"==typeof e){if(e.indexOf("rgb(")>-1){for(var t=0,r=(i=e.replace("rgb(","").replace(")","").split(",")).length;t<r;t++)i[t]=parseInt(H.trim(i[t]),10);return{type:"rgb",r:i[0],g:i[1],b:i[2],a:1}}if(e.indexOf("rgba(")>-1){for(t=0,r=(i=e.replace("rgba(","").replace(")","").split(",")).length;t<r;t++)i[t]=r-1==t?parseFloat(H.trim(i[t])):parseInt(H.trim(i[t]),10);return{type:"rgb",r:i[0],g:i[1],b:i[2],a:i[3]}}if(e.indexOf("hsl(")>-1){for(t=0,r=(i=e.replace("hsl(","").replace(")","").split(",")).length;t<r;t++)i[t]=parseInt(H.trim(i[t]),10);var n={type:"hsl",h:i[0],s:i[1],l:i[2],a:1},o=H.HSLtoRGB(n.h,n.s,n.l);return n.r=o.r,n.g=o.g,n.b=o.b,n}if(e.indexOf("hsla(")>-1){for(t=0,r=(i=e.replace("hsla(","").replace(")","").split(",")).length;t<r;t++)i[t]=r-1==t?parseFloat(H.trim(i[t])):parseInt(H.trim(i[t]),10);return n={type:"hsl",h:i[0],s:i[1],l:i[2],a:i[3]},o=H.HSLtoRGB(n.h,n.s,n.l),n.r=o.r,n.g=o.g,n.b=o.b,n}if(0==e.indexOf("#")){var i=[];if(3==(e=e.replace("#","")).length)for(t=0,r=e.length;t<r;t++){var a=e.substr(t,1);i.push(parseInt(a+a,16))}else for(t=0,r=e.length;t<r;t+=2)i.push(parseInt(e.substr(t,2),16));return{type:"hex",r:i[0],g:i[1],b:i[2],a:1}}}return e},HSVtoRGB:function(e,t,r){360==e&&(e=0);var n=t*r,o=n*(1-Math.abs(e/60%2-1)),i=r-n,a=[];return 0<=e&&e<60?a=[n,o,0]:60<=e&&e<120?a=[o,n,0]:120<=e&&e<180?a=[0,n,o]:180<=e&&e<240?a=[0,o,n]:240<=e&&e<300?a=[o,0,n]:300<=e&&e<360&&(a=[n,0,o]),{r:Math.ceil(255*(a[0]+i)),g:Math.ceil(255*(a[1]+i)),b:Math.ceil(255*(a[2]+i))}},RGBtoHSV:function(e,t,r){var n=e/255,o=t/255,i=r/255,a=Math.max(n,o,i),l=a-Math.min(n,o,i),s=0;return 0==l?s=0:a==n?s=(o-i)/l%6*60:a==o?s=60*((i-n)/l+2):a==i&&(s=60*((n-o)/l+4)),s<0&&(s=360+s),{h:s,s:0==a?0:l/a,v:a}},RGBtoHSL:function(e,t,r){e/=255,t/=255,r/=255;var n,o,i=Math.max(e,t,r),a=Math.min(e,t,r),l=(i+a)/2;if(i==a)n=o=0;else{var s=i-a;switch(o=l>.5?s/(2-i-a):s/(i+a),i){case e:n=(t-r)/s+(t<r?6:0);break;case t:n=(r-e)/s+2;break;case r:n=(e-t)/s+4}n/=6}return{h:Math.round(360*n),s:Math.round(100*o),l:Math.round(100*l)}},HUEtoRGB:function(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e},HSLtoRGB:function(e,t,r){var n,o,i;if(e/=360,r/=100,0==(t/=100))n=o=i=r;else{var a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;n=this.HUEtoRGB(l,a,e+1/3),o=this.HUEtoRGB(l,a,e),i=this.HUEtoRGB(l,a,e-1/3)}return{r:255*n,g:255*o,b:255*i}}},B=[{rgb:"#ff0000",start:0},{rgb:"#ffff00",start:.17},{rgb:"#00ff00",start:.33},{rgb:"#00ffff",start:.5},{rgb:"#0000ff",start:.67},{rgb:"#ff00ff",start:.83},{rgb:"#ff0000",start:1}],W=(de(),function(){}),U=0,V={},q=!1,$=!1,G=2e3,K={},Y=[{name:"Material",edit:!0,colors:["#fff","#f00","#0ff","#f0f","#fff","#f00","#0ff","#f0f","#fff","#f00","#0ff","#f0f"]},{name:"Custom",edit:!0,colors:[]},{name:"Pages",edit:!0,colors:["#fff","#f00","#0ff","#f0f"]}];function Q(e,t,r){if("string"!=typeof e)this.el=e;else{var n=F().document.createElement(e);for(var o in this.uniqId=U++,n.className=t,r=r||{})n.setAttribute(o,r[o]);this.el=n}}function Z(e,t,r){M.val(e),A.val(t),j.val(r),P.val(O)}function X(e,t,r){I.val(e),R.val(t+"%"),N.val(r+"%"),D.val(O)}function J(){return H.format({r:M.int(),g:A.int(),b:j.int()},"hex")}function ee(){return H.HSVtoRGB(E,C,T)}function te(){return H.format(ee(),"hex")}function re(){var e=H.HSVtoRGB(E,C,T);return H.RGBtoHSL(e.r,e.g,e.b)}function ne(e){if("rgb"==(e=e||"hex"))return(r=ee()).a=1==O?void 0:O,H.format(r,"rgb");if("hsl"==e){var t=re();return t.a=1==O?void 0:O,H.format(t,"hsl")}var r=ee();return H.format(r,"hex")}function oe(e){c.css("background-color",e)}function ie(){var e=g.data("format")||"hex",t=null;if("hex"==e)L.val(te());else if("rgb"==e)Z((t=ee()).r,t.g,t.b);else if("hsl"==e){var r=re();X(r.h,r.s,r.l)}oe(ne("rgb")),t=ee(),pe(H.format(t,"rgb")),"function"==typeof W&&(isNaN(O)||W(ne(e)))}function ae(e){e.preventDefault();var r=t.position(),o=n.width(),i=n.height(),l=e.clientX-r.left,s=e.clientY-r.top;l<0?l=0:l>o&&(l=o),s<0?s=0:s>i&&(s=i),a.css({left:l-5+"px",top:s-5+"px"}),a.data("pos",{x:l,y:s}),ve(),ie()}function le(e,t,r){var n={r:parseInt(e.r+(t.r-e.r)*r,10),g:parseInt(e.g+(t.g-e.g)*r,10),b:parseInt(e.b+(t.b-e.b)*r,10)};return H.format(n,"hex")}function se(e){for(var t,r,n=0;n<B.length;n++)if(B[n].start>=e){t=B[n-1],r=B[n];break}return t&&r?le(t,r,(e-t.start)/(r.start-t.start)):B[0].rgb}function ue(e){n.css("background-color",e)}function ce(e){E=e}function fe(e){var t,r=f.offset().left,n=r+f.width(),o=e?ge(e).clientX:r+E/360*(n-r);t=o<r?0:o>n?100:(o-r)/(n-r)*100;var i=f.width()*(t/100);l.css({left:i-Math.ceil(l.width()/2)+"px"}),l.data("pos",{x:i}),ue(se(t/100)),ce(t/100*360),ie()}function de(){for(var e="",t=["","-o-","-ms-","-moz-","-webkit-"],r=F().document.createElement("div"),n=0;n<t.length;n++)r.style.background=t[n]+"linear-gradient(#000000, #ffffff)",r.style.background&&(e=t[n]);return r=null,delete r,e}function pe(e){var t=H.parse(e);t.a=0;var r=H.format(t,"rgb");t.a=1;var n=H.format(t,"rgb");h.css("background","linear-gradient(to right, "+r+", "+n+")")}function he(e){var t,r=p.offset().left,n=r+p.width(),o=ge(e).clientX;t=o<r?0:o>n?100:(o-r)/(n-r)*100;var i=p.width()*(t/100);v.css({left:i-Math.ceil(v.width()/2)+"px"}),v.data("pos",{x:i}),me(),ze(),ie()}function me(){var e=v.data("pos")||{x:0},t=Math.round(e.x/p.width()*100)/100;O=isNaN(t)?1:t}function ve(){var e=a.data("pos")||{x:0,y:0},t=l.data("pos")||{x:0},r=n.width(),o=n.height(),i=t.x/f.width()*360,s=e.x/r,u=(o-e.y)/o;0==r&&(i=0,s=0,u=0),E=i,C=s,T=u}function ge(e){return e.touches&&e.touches[0]?e.touches[0]:e}function ye(e){var t=e.which,r=!1;return 37!=t&&39!=t&&8!=t&&46!=t&&9!=t||(r=!0),!(!r&&(t<48||t>57))}function be(e){var t=M.val(),r=A.val(),n=j.val();""!=t&&""!=r&&""!=n&&(parseInt(t)>255?M.val(255):M.val(parseInt(t)),parseInt(r)>255?A.val(255):A.val(parseInt(r)),parseInt(n)>255?j.val(255):j.val(parseInt(n)),ke(J()))}function we(){var e=n.width()*C,t=n.height()*(1-T);a.css({left:e-5+"px",top:t-5+"px"}),a.data("pos",{x:e,y:t});var r=f.width()*(E/360);l.css({left:r-7.5+"px"}),l.data("pos",{x:r});var o=p.width()*(O||0);v.css({left:o-7.5+"px"}),v.data("pos",{x:o})}function _e(e,t,r,n){O=n,E=e,C=t,T=r}function xe(e){g.data("format",e),Fe()}function ke(e){var t=e||"#FF0000",r=H.parse(t);xe(r.type),ue(t);var n=H.RGBtoHSV(r.r,r.g,r.b);_e(n.h,n.s,n.v,r.a),we(),fe(),ie()}function Se(e,t,r){e.addEventListener(t,r)}function Oe(e,t,r){e.removeEventListener(t,r)}function Ee(e){n.data("isDown",!0),ae(e)}function Ce(e){n.data("isDown",!1)}function Te(e){e.preventDefault(),r.data("isDown",!0)}function Le(e){e.preventDefault(),d.data("isDown",!0)}function Me(e){r.data("isDown",!0),fe(e)}function Ae(e){d.data("isDown",!0),he(e)}function je(e){if(e.which<65||e.which>70)return ye(e)}function Pe(e){var t=L.val();"#"==t.charAt(0)&&7==t.length&&ke(t)}function Ie(e){He()}function Re(){Se(n.el,"mousedown",Ee),Se(n.el,"mouseup",Ce),Se(l.el,"mousedown",Te),Se(v.el,"mousedown",Le),Se(f.el,"mousedown",Me),Se(p.el,"mousedown",Ae),Se(L.el,"keydown",je),Se(L.el,"keyup",Pe),Se(M.el,"keydown",ye),Se(M.el,"keyup",be),Se(A.el,"keydown",ye),Se(A.el,"keyup",be),Se(j.el,"keydown",ye),Se(j.el,"keyup",be),Se(F().document,"mousemove",Ne),Se(m.el,"click",Ie)}function Ne(e){n.data("isDown")&&ae(e),r.data("isDown")&&fe(e),d.data("isDown")&&he(e)}function De(){Oe(n.el,"mousedown",Ee),Oe(n.el,"mouseup",Ce),Oe(l.el,"mousedown",Te),Oe(v.el,"mousedown",Le),Oe(f.el,"mousedown",Me),Oe(p.el,"mousedown",Ae),Oe(L.el,"keydown",je),Oe(L.el,"keyup",Pe),Oe(M.el,"keydown",ye),Oe(M.el,"keyup",be),Oe(A.el,"keydown",ye),Oe(A.el,"keyup",be),Oe(j.el,"keydown",ye),Oe(j.el,"keyup",be),Oe(document,"mousemove",Ne),Oe(F().document,"mousemove",Ne),Oe(m.el,"click",Ie),W=void 0}function ze(){var e=g.data("format")||"hex";if(O<1&&"hex"==e){var t="rgb";g.removeClass(e),g.addClass(t),g.data("format",t),ie()}}function Fe(){var e=g.data("format")||"hex";g.removeClass("hex"),g.removeClass("rgb"),g.removeClass("hsl"),g.addClass(e)}function He(){var e=g.data("format")||"hex",t="hex";"hex"==e?t="rgb":"rgb"==e?t="hsl":"hsl"==e&&(t=1==O?"hex":"rgb"),g.removeClass(e),g.addClass(t),g.data("format",t),ie()}function Be(e){var t=new Q("div","information-item "+e);if("hex"==e){var r=new Q("div","input-field hex");L=new Q("input","input",{type:"text"}),r.append(L),r.append(new Q("div","title").html("HEX")),t.append(r)}else"rgb"==e?(r=new Q("div","input-field rgb-r"),M=new Q("input","input",{type:"text"}),r.append(M),r.append(new Q("div","title").html("R")),t.append(r),r=new Q("div","input-field rgb-g"),A=new Q("input","input",{type:"text"}),r.append(A),r.append(new Q("div","title").html("G")),t.append(r),r=new Q("div","input-field rgb-b"),j=new Q("input","input",{type:"text"}),r.append(j),r.append(new Q("div","title").html("B")),t.append(r),r=new Q("div","input-field rgb-a"),P=new Q("input","input",{type:"text"}),r.append(P),r.append(new Q("div","title").html("A")),t.append(r)):"hsl"==e&&(r=new Q("div","input-field hsl-h"),I=new Q("input","input",{type:"text"}),r.append(I),r.append(new Q("div","title").html("H")),t.append(r),r=new Q("div","input-field hsl-s"),R=new Q("input","input",{type:"text"}),r.append(R),r.append(new Q("div","title").html("S")),t.append(r),r=new Q("div","input-field hsl-l"),N=new Q("input","input",{type:"text"}),r.append(N),r.append(new Q("div","title").html("L")),t.append(r),r=new Q("div","input-field hsl-a"),D=new Q("input","input",{type:"text"}),r.append(D),r.append(new Q("div","title").html("A")),t.append(r));return t}function We(e){K=e?Y.filter((function(t){return t.name==e}))[0]:Y[0]}function Ue(){for(var e=new Q("div","current-color-sets"),t=0,r=K.colors.length;t<r;t++){var n=K.colors[t],o=new Q("div","color-item",{"data-color":n}),i=new Q("div","color-view");i.css({"background-color":n}),o.append(i),e.append(o)}return K.edit&&(o=new Q("div","add-color-item").html("+"),e.append(o)),e}function Ve(){We(),e=new Q(F().document.body),t=new Q("div","codemirror-colorpicker"),n=new Q("div","color"),a=new Q("div","drag-pointer"),o=new Q("div","value"),i=new Q("div","saturation"),s=new Q("div","control"),u=new Q("div","empty"),c=new Q("div","color"),r=new Q("div","hue"),f=new Q("div","hue-container"),l=new Q("div","drag-bar"),d=new Q("div","opacity"),p=new Q("div","opacity-container"),h=new Q("div","color-bar"),v=new Q("div","drag-bar2"),g=new Q("div","information hex"),y=new Q("div","information-change"),m=new Q("button","format-change-button",{type:"button"}).html("\u2194"),y.append(m),g.append(Be("hex")),g.append(Be("rgb")),g.append(Be("hsl")),g.append(y),o.append(a),i.append(o),n.append(i),f.append(l),r.append(f),p.append(h),p.append(v),d.append(p),s.append(r),s.append(d),s.append(u),s.append(c),b=new Q("div","colorsets"),w=new Q("div","menu"),_=new Q("div","color-list"),b.append(w),b.append(_),S=new Q("button","color-sets-choose-btn").html("+"),w.append(S),_.append(Ue()),x=new Q("div","color-chooser"),k=new Q("div","colorsets-list"),x.append(k),t.append(n),t.append(s),t.append(g),t.append(b),t.append(x),qe(),ke()}function qe(){for(var e=0,t=B.length;e<t;e++){var r=B[e],n=H.parse(r.rgb);r.r=n.r,r.g=n.g,r.b=n.b}}function $e(e){if("object"==typeof e){if(!e.r||!e.g||!e.b)return;ke(H.format(e,"hex"))}else if("string"==typeof e){if("#"!=e.charAt(0))return;ke(e)}}function Ge(e){ve();var t=ee();return e?H.format(t,e):t}function Ke(r){var n=t.width(),o=t.height(),i=r.left-e.el.scrollLeft;n+i>window.innerWidth&&(i-=n+i-window.innerWidth),i<0&&(i=0);var a=r.top-e.el.scrollTop;o+a>window.innerHeight&&(a-=o+a-window.innerHeight),a<0&&(a=0),t.css({left:i+"px",top:a+"px"})}function Ye(e,r,n){De(),Re(),t.appendTo(F().document.body),t.css({position:"fixed",left:"-10000px",top:"-10000px"}),t.show(),Ke(e),q=!0,$=e.isShortCut||!1,ke(r),W=function(e){n(e)},(G=e.hideDelay||2e3)>0&&Qe(G)}function Qe(e){e=e||0,Oe(t.el,"mouseenter"),Oe(t.el,"mouseleave"),Se(t.el,"mouseenter",(function(){clearTimeout(z)})),Se(t.el,"mouseleave",(function(){clearTimeout(z),z=setTimeout(Ze,e)})),clearTimeout(z),z=setTimeout(Ze,e)}function Ze(){q&&(De(),t.hide(),t.remove(),q=!1)}return Q.prototype.closest=function(e){for(var t=this,r=!1;!(r=t.hasClass(e));){if(!t.el.parentNode)return null;t=new Q(t.el.parentNode)}return r?t:null},Q.prototype.removeClass=function(e){this.el.className=H.trim((" "+this.el.className+" ").replace(" "+e+" "," "))},Q.prototype.hasClass=function(e){return!!this.el.className&&(" "+this.el.className+" ").indexOf(" "+e+" ")>-1},Q.prototype.addClass=function(e){this.hasClass(e)||(this.el.className=this.el.className+" "+e)},Q.prototype.html=function(e){return this.el.innerHTML=e,this},Q.prototype.empty=function(){return this.html("")},Q.prototype.append=function(e){return"string"==typeof e?this.el.appendChild(F().document.createTextNode(e)):this.el.appendChild(e.el||e),this},Q.prototype.appendTo=function(e){return(e.el?e.el:e).appendChild(this.el),this},Q.prototype.remove=function(){return this.el.parentNode&&this.el.parentNode.removeChild(this.el),this},Q.prototype.text=function(){return this.el.textContent},Q.prototype.css=function(e,t){if(2==arguments.length)this.el.style[e]=t;else if(1==arguments.length){if("string"==typeof e)return getComputedStyle(this.el)[e];var r=e||{};for(var n in r)this.el.style[n]=r[n]}return this},Q.prototype.offset=function(){var e=this.el.getBoundingClientRect();return{top:e.top+F().document.body.scrollTop,left:e.left+F().document.body.scrollLeft}},Q.prototype.position=function(){return{top:parseFloat(this.el.style.top),left:parseFloat(this.el.style.left)}},Q.prototype.width=function(){return this.el.offsetWidth},Q.prototype.height=function(){return this.el.offsetHeight},Q.prototype.dataKey=function(e){return this.uniqId+"."+e},Q.prototype.data=function(e,t){if(2!=arguments.length){if(1==arguments.length)return V[this.dataKey(e)];var r=Object.keys(V),n=this.uniqId+".";return r.filter((function(e){return 0==e.indexOf(n)})).map((function(e){return V[e]}))}return V[this.dataKey(e)]=t,this},Q.prototype.val=function(e){return 0==arguments.length?this.el.value:(1==arguments.length&&(this.el.value=e),this)},Q.prototype.int=function(){return parseInt(this.val(),10)},Q.prototype.show=function(){return this.css("display","block")},Q.prototype.hide=function(){return this.css("display","none")},Ve(),{isShortCut:function(){return $},$root:t,show:Ye,hide:Ze,setColor:$e,getColor:Ge}}))},1347:(e,t,r)=>{!function(e){"use strict";var t=function(){return window.top},r={aliceblue:"rgb(240, 248, 255)",antiquewhite:"rgb(250, 235, 215)",aqua:"rgb(0, 255, 255)",aquamarine:"rgb(127, 255, 212)",azure:"rgb(240, 255, 255)",beige:"rgb(245, 245, 220)",bisque:"rgb(255, 228, 196)",black:"rgb(0, 0, 0)",blanchedalmond:"rgb(255, 235, 205)",blue:"rgb(0, 0, 255)",blueviolet:"rgb(138, 43, 226)",brown:"rgb(165, 42, 42)",burlywood:"rgb(222, 184, 135)",cadetblue:"rgb(95, 158, 160)",chartreuse:"rgb(127, 255, 0)",chocolate:"rgb(210, 105, 30)",coral:"rgb(255, 127, 80)",cornflowerblue:"rgb(100, 149, 237)",cornsilk:"rgb(255, 248, 220)",crimson:"rgb(237, 20, 61)",cyan:"rgb(0, 255, 255)",darkblue:"rgb(0, 0, 139)",darkcyan:"rgb(0, 139, 139)",darkgoldenrod:"rgb(184, 134, 11)",darkgray:"rgb(169, 169, 169)",darkgrey:"rgb(169, 169, 169)",darkgreen:"rgb(0, 100, 0)",darkkhaki:"rgb(189, 183, 107)",darkmagenta:"rgb(139, 0, 139)",darkolivegreen:"rgb(85, 107, 47)",darkorange:"rgb(255, 140, 0)",darkorchid:"rgb(153, 50, 204)",darkred:"rgb(139, 0, 0)",darksalmon:"rgb(233, 150, 122)",darkseagreen:"rgb(143, 188, 143)",darkslateblue:"rgb(72, 61, 139)",darkslategray:"rgb(47, 79, 79)",darkslategrey:"rgb(47, 79, 79)",darkturquoise:"rgb(0, 206, 209)",darkviolet:"rgb(148, 0, 211)",deeppink:"rgb(255, 20, 147)",deepskyblue:"rgb(0, 191, 255)",dimgray:"rgb(105, 105, 105)",dimgrey:"rgb(105, 105, 105)",dodgerblue:"rgb(30, 144, 255)",firebrick:"rgb(178, 34, 34)",floralwhite:"rgb(255, 250, 240)",forestgreen:"rgb(34, 139, 34)",fuchsia:"rgb(255, 0, 255)",gainsboro:"rgb(220, 220, 220)",ghostwhite:"rgb(248, 248, 255)",gold:"rgb(255, 215, 0)",goldenrod:"rgb(218, 165, 32)",gray:"rgb(128, 128, 128)",grey:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",greenyellow:"rgb(173, 255, 47)",honeydew:"rgb(240, 255, 240)",hotpink:"rgb(255, 105, 180)",indianred:"rgb(205, 92, 92)",indigo:"rgb(75, 0, 130)",ivory:"rgb(255, 255, 240)",khaki:"rgb(240, 230, 140)",lavender:"rgb(230, 230, 250)",lavenderblush:"rgb(255, 240, 245)",lawngreen:"rgb(124, 252, 0)",lemonchiffon:"rgb(255, 250, 205)",lightblue:"rgb(173, 216, 230)",lightcoral:"rgb(240, 128, 128)",lightcyan:"rgb(224, 255, 255)",lightgoldenrodyellow:"rgb(250, 250, 210)",lightgreen:"rgb(144, 238, 144)",lightgray:"rgb(211, 211, 211)",lightgrey:"rgb(211, 211, 211)",lightpink:"rgb(255, 182, 193)",lightsalmon:"rgb(255, 160, 122)",lightseagreen:"rgb(32, 178, 170)",lightskyblue:"rgb(135, 206, 250)",lightslategray:"rgb(119, 136, 153)",lightslategrey:"rgb(119, 136, 153)",lightsteelblue:"rgb(176, 196, 222)",lightyellow:"rgb(255, 255, 224)",lime:"rgb(0, 255, 0)",limegreen:"rgb(50, 205, 50)",linen:"rgb(250, 240, 230)",magenta:"rgb(255, 0, 255)",maroon:"rgb(128, 0, 0)",mediumaquamarine:"rgb(102, 205, 170)",mediumblue:"rgb(0, 0, 205)",mediumorchid:"rgb(186, 85, 211)",mediumpurple:"rgb(147, 112, 219)",mediumseagreen:"rgb(60, 179, 113)",mediumslateblue:"rgb(123, 104, 238)",mediumspringgreen:"rgb(0, 250, 154)",mediumturquoise:"rgb(72, 209, 204)",mediumvioletred:"rgb(199, 21, 133)",midnightblue:"rgb(25, 25, 112)",mintcream:"rgb(245, 255, 250)",mistyrose:"rgb(255, 228, 225)",moccasin:"rgb(255, 228, 181)",navajowhite:"rgb(255, 222, 173)",navy:"rgb(0, 0, 128)",oldlace:"rgb(253, 245, 230)",olive:"rgb(128, 128, 0)",olivedrab:"rgb(107, 142, 35)",orange:"rgb(255, 165, 0)",orangered:"rgb(255, 69, 0)",orchid:"rgb(218, 112, 214)",palegoldenrod:"rgb(238, 232, 170)",palegreen:"rgb(152, 251, 152)",paleturquoise:"rgb(175, 238, 238)",palevioletred:"rgb(219, 112, 147)",papayawhip:"rgb(255, 239, 213)",peachpuff:"rgb(255, 218, 185)",peru:"rgb(205, 133, 63)",pink:"rgb(255, 192, 203)",plum:"rgb(221, 160, 221)",powderblue:"rgb(176, 224, 230)",purple:"rgb(128, 0, 128)",rebeccapurple:"rgb(102, 51, 153)",red:"rgb(255, 0, 0)",rosybrown:"rgb(188, 143, 143)",royalblue:"rgb(65, 105, 225)",saddlebrown:"rgb(139, 69, 19)",salmon:"rgb(250, 128, 114)",sandybrown:"rgb(244, 164, 96)",seagreen:"rgb(46, 139, 87)",seashell:"rgb(255, 245, 238)",sienna:"rgb(160, 82, 45)",silver:"rgb(192, 192, 192)",skyblue:"rgb(135, 206, 235)",slateblue:"rgb(106, 90, 205)",slategray:"rgb(112, 128, 144)",slategrey:"rgb(112, 128, 144)",snow:"rgb(255, 250, 250)",springgreen:"rgb(0, 255, 127)",steelblue:"rgb(70, 130, 180)",tan:"rgb(210, 180, 140)",teal:"rgb(0, 128, 128)",thistle:"rgb(216, 191, 216)",tomato:"rgb(255, 99, 71)",turquoise:"rgb(64, 224, 208)",violet:"rgb(238, 130, 238)",wheat:"rgb(245, 222, 179)",white:"rgb(255, 255, 255)",whitesmoke:"rgb(245, 245, 245)",yellow:"rgb(255, 255, 0)",yellowgreen:"rgb(154, 205, 50)",transparent:"rgba(0, 0, 0, 0)"},n="codemirror-colorview",o="codemirror-colorview-background",i=["comment","builtin"];function a(e,t){"setValue"==t.origin?(e.state.colorpicker.close_color_picker(),e.state.colorpicker.init_color_update(),e.state.colorpicker.style_color_update()):e.state.colorpicker.style_color_update(e.getCursor().line)}function l(e,t){e.state.colorpicker.isUpdate||(e.state.colorpicker.isUpdate=!0,e.state.colorpicker.close_color_picker(),e.state.colorpicker.init_color_update(),e.state.colorpicker.style_color_update())}function s(e,t){a(e,{origin:"setValue"})}function u(e,t){e.state.colorpicker.keyup(t)}function c(e,t){e.state.colorpicker.is_edit_mode()&&e.state.colorpicker.check_mousedown(t)}function f(e,t){a(e,{origin:"setValue"})}function d(e){e.state.colorpicker.close_color_picker()}function p(e,t){var r=void 0;return function(n,o){r&&clearTimeout(r),r=setTimeout((function(){e(n,o)}),t||300)}}function h(e,t){return!(!e||!e.className)&&(" "+e.className+" ").indexOf(" "+t+" ")>-1}function m(e,t){t="boolean"==typeof t?{mode:"view"}:Object.assign({mode:"view"},t||{}),this.opt=t,this.cm=e,this.markers={},i=this.opt.excluded_token||i,this.cm.colorpicker?this.colorpicker=this.cm.colorpicker():this.opt.colorpicker&&(this.colorpicker=this.opt.colorpicker),this.init_event()}e.defineOption("colorpicker",!1,(function(t,r,n){n&&n!=e.Init&&t.state.colorpicker&&(t.state.colorpicker.destroy(),t.state.colorpicker=null),r&&(t.state.colorpicker=new m(t,r))})),m.prototype.init_event=function(){var e,t;this.cm.on("mousedown",c),this.cm.on("keyup",u),this.cm.on("change",a),this.cm.on("update",l),this.cm.on("refresh",s),this.onPasteCallback=(e=this.cm,t=f,function(r){t.call(this,e,r)}),this.cm.getWrapperElement().addEventListener("paste",this.onPasteCallback),this.is_edit_mode()&&this.cm.on("scroll",p(d,50))},m.prototype.is_edit_mode=function(){return"edit"==this.opt.mode},m.prototype.is_view_mode=function(){return"view"==this.opt.mode},m.prototype.destroy=function(){this.cm.off("mousedown",c),this.cm.off("keyup",u),this.cm.off("change",a),this.cm.getWrapperElement().removeEventListener("paste",this.onPasteCallback),this.is_edit_mode()&&this.cm.off("scroll")},m.prototype.hasClass=function(e,t){return!!e.className&&(" "+e.className+" ").indexOf(" "+t+" ")>-1},m.prototype.check_mousedown=function(e){this.hasClass(e.target,o)?this.open_color_picker(e.target.parentNode):this.close_color_picker()},m.prototype.popup_color_picker=function(e){var t=this.cm.getCursor(),r=this,n={lineNo:t.line,ch:t.ch,color:e||"#FFFFFF",isShortCut:!0};Object.keys(this.markers).forEach((function(e){if(("#"+e).indexOf("#"+n.lineNo+":")>-1){var t=r.markers[e];t.ch<=n.ch&&n.ch<=t.ch+t.color.length&&(n.ch=t.ch,n.color=t.color,n.nameColor=t.nameColor)}})),this.open_color_picker(n)},m.prototype.open_color_picker=function(e){var t=e.lineNo,r=e.ch,n=e.nameColor,o=e.color;if(this.colorpicker){var i=this,a=o,l=this.cm.charCoords({line:t,ch:r});this.colorpicker.show({left:l.left,top:l.bottom,isShortCut:e.isShortCut||!1,hideDelay:i.opt.hideDelay||2e3},n||o,(function(e){i.cm.replaceRange(e,{line:t,ch:r},{line:t,ch:r+a.length},"*colorpicker"),a=e}))}},m.prototype.close_color_picker=function(e){this.colorpicker&&this.colorpicker.hide()},m.prototype.key=function(e,t){return[e,t].join(":")},m.prototype.keyup=function(e){this.colorpicker&&("Escape"==e.key||0==this.colorpicker.isShortCut())&&this.colorpicker.hide()},m.prototype.init_color_update=function(){this.markers={}},m.prototype.style_color_update=function(e){if(e)this.match(e);else for(var t=this.cm.lineCount(),r=0;r<t;r++)this.match(r)},m.prototype.empty_marker=function(e,t){for(var r=t.markedSpans||[],o=0,i=r.length;o<i;o++){var a=this.key(e,r[o].from);a&&h(r[o].marker.replacedWith,n)&&(delete this.markers[a],r[o].marker.clear())}},m.prototype.color_regexp=/(#(?:[\da-f]{3}){1,2}|rgb\((?:\s*\d{1,3},\s*){2}\d{1,3}\s*\)|rgba\((?:\s*\d{1,3},\s*){3}\d*\.?\d+\s*\)|hsl\(\s*\d{1,3}(?:,\s*\d{1,3}%){2}\s*\)|hsla\(\s*\d{1,3}(?:,\s*\d{1,3}%){2},\s*\d*\.?\d+\s*\)|([\w_\-]+))/gi,m.prototype.match_result=function(e){return e.text.match(this.color_regexp)},m.prototype.submatch=function(e,t){this.empty_marker(e,t);var n=this.match_result(t);if(n&&n.length)for(var o={next:0},i=0,a=n.length;i<a;i++)if(n[i].indexOf("#")>-1||n[i].indexOf("rgb")>-1||n[i].indexOf("hsl")>-1)this.render(o,e,t,n[i]);else{var l=r[n[i]];l&&this.render(o,e,t,n[i],l)}},m.prototype.match=function(e){var t=this.cm.getLineHandle(e),r=this;this.cm.operation((function(){r.submatch(e,t)}))},m.prototype.make_element=function(){var e=t().document.createElement("div");return e.className=n,this.is_edit_mode()?e.title="open color picker":e.title="",e.back_element=this.make_background_element(),e.appendChild(e.back_element),e},m.prototype.make_background_element=function(){var e=t().document.createElement("div");return e.className=o,e},m.prototype.set_state=function(e,t,r,n){var o=this.create_marker(e,t);return o.lineNo=e,o.ch=t,o.color=r,o.nameColor=n,o},m.prototype.create_marker=function(e,t){var r=this.key(e,t);return this.markers[r]||(this.markers[r]=this.make_element()),this.markers[r]},m.prototype.has_marker=function(e,t){var r=this.key(e,t);return!!this.markers[r]},m.prototype.update_element=function(e,t){e.back_element.style.backgroundColor=t},m.prototype.set_mark=function(e,t,r){this.cm.setBookmark({line:e,ch:t},{widget:r,handleMouseEvents:!0})},m.prototype.is_excluded_token=function(e,t){var r=this.cm.getTokenAt({line:e,ch:t},!0),n=r.type,o=r.state.state;if(null==n&&"block"==o)return!0;if(null==n&&"top"==o)return!0;for(var a=0,l=0,s=i.length;l<s;l++)if(n===i[l]){a++;break}return a>0},m.prototype.render=function(e,t,r,n,o){var i=r.text.indexOf(n,e.next);if(!0!==this.is_excluded_token(t,i)){if(e.next=i+n.length,this.has_marker(t,i))return this.update_element(this.create_marker(t,i),o||n),void this.set_state(t,i,n,o);var a=this.create_marker(t,i);this.update_element(a,o||n),this.set_state(t,i,n,o||n),this.set_mark(t,i,a)}}}(r(3458))},1528:(e,t,r)=>{!function(e){function t(t,r,n){var o,i=t.getWrapperElement();return(o=i.appendChild(document.createElement("div"))).className=n?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof r?o.innerHTML=r:o.appendChild(r),e.addClass(i,"dialog-opened"),o}function r(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",(function(n,o,i){i||(i={}),r(this,null);var a=t(this,n,i.bottom),l=!1,s=this;function u(t){if("string"==typeof t)f.value=t;else{if(l)return;l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),s.focus(),i.onClose&&i.onClose(a)}}var c,f=a.getElementsByTagName("input")[0];return f?(f.focus(),i.value&&(f.value=i.value,!1!==i.selectValueOnOpen&&f.select()),i.onInput&&e.on(f,"input",(function(e){i.onInput(e,f.value,u)})),i.onKeyUp&&e.on(f,"keyup",(function(e){i.onKeyUp(e,f.value,u)})),e.on(f,"keydown",(function(t){i&&i.onKeyDown&&i.onKeyDown(t,f.value,u)||((27==t.keyCode||!1!==i.closeOnEnter&&13==t.keyCode)&&(f.blur(),e.e_stop(t),u()),13==t.keyCode&&o(f.value,t))})),!1!==i.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&u()}))):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",(function(){u(),s.focus()})),!1!==i.closeOnBlur&&e.on(c,"blur",u),c.focus()),u})),e.defineExtension("openConfirm",(function(n,o,i){r(this,null);var a=t(this,n,i&&i.bottom),l=a.getElementsByTagName("button"),s=!1,u=this,c=1;function f(){s||(s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus())}l[0].focus();for(var d=0;d<l.length;++d){var p=l[d];!function(t){e.on(p,"click",(function(r){e.e_preventDefault(r),f(),t&&t(u)}))}(o[d]),e.on(p,"blur",(function(){--c,setTimeout((function(){c<=0&&f()}),200)})),e.on(p,"focus",(function(){++c}))}})),e.defineExtension("openNotification",(function(n,o){r(this,u);var i,a=t(this,n,o&&o.bottom),l=!1,s=o&&void 0!==o.duration?o.duration:5e3;function u(){l||(l=!0,clearTimeout(i),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",(function(t){e.e_preventDefault(t),u()})),s&&(i=setTimeout(u,s)),u}))}(r(3458))},1691:(e,t,r)=>{!function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function r(e){t(e);var r=e.state.placeholder=document.createElement("pre");r.style.cssText="height: 0; overflow: visible",r.style.direction=e.getOption("direction"),r.className="CodeMirror-placeholder CodeMirror-line-like";var n=e.getOption("placeholder");"string"==typeof n&&(n=document.createTextNode(n)),r.appendChild(n),e.display.lineSpace.insertBefore(r,e.display.lineSpace.firstChild)}function n(e){setTimeout((function(){var n=!1;if(1==e.lineCount()){var o=e.getInputField();n="TEXTAREA"==o.nodeName?!e.getLine(0).length:!/[^\u200b]/.test(o.querySelector(".CodeMirror-line").textContent)}n?r(e):t(e)}),20)}function o(e){a(e)&&r(e)}function i(e){var n=e.getWrapperElement(),o=a(e);n.className=n.className.replace(" CodeMirror-empty","")+(o?" CodeMirror-empty":""),o?r(e):t(e)}function a(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",(function(r,a,l){var s=l&&l!=e.Init;if(a&&!s)r.on("blur",o),r.on("change",i),r.on("swapDoc",i),e.on(r.getInputField(),"compositionupdate",r.state.placeholderCompose=function(){n(r)}),i(r);else if(!a&&s){r.off("blur",o),r.off("change",i),r.off("swapDoc",i),e.off(r.getInputField(),"compositionupdate",r.state.placeholderCompose),t(r);var u=r.getWrapperElement();u.className=u.className.replace(" CodeMirror-empty","")}a&&!r.hasFocus()&&o(r)}))}(r(3458))},1413:(e,t,r)=>{!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},r=e.Pos;function n(e,r){return"pairs"==r&&"string"==typeof e?e:"object"==typeof e&&null!=e[r]?e[r]:t[r]}e.defineOption("autoCloseBrackets",!1,(function(t,r,a){a&&a!=e.Init&&(t.removeKeyMap(o),t.state.closeBrackets=null),r&&(i(n(r,"pairs")),t.state.closeBrackets=r,t.addKeyMap(o))}));var o={Backspace:s,Enter:u};function i(e){for(var t=0;t<e.length;t++){var r=e.charAt(t),n="'"+r+"'";o[n]||(o[n]=a(r))}}function a(e){return function(t){return d(t,e)}}function l(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function s(t){var o=l(t);if(!o||t.getOption("disableInput"))return e.Pass;for(var i=n(o,"pairs"),a=t.listSelections(),s=0;s<a.length;s++){if(!a[s].empty())return e.Pass;var u=p(t,a[s].head);if(!u||i.indexOf(u)%2!=0)return e.Pass}for(s=a.length-1;s>=0;s--){var c=a[s].head;t.replaceRange("",r(c.line,c.ch-1),r(c.line,c.ch+1),"+delete")}}function u(t){var r=l(t),o=r&&n(r,"explode");if(!o||t.getOption("disableInput"))return e.Pass;for(var i=t.listSelections(),a=0;a<i.length;a++){if(!i[a].empty())return e.Pass;var s=p(t,i[a].head);if(!s||o.indexOf(s)%2!=0)return e.Pass}t.operation((function(){var e=t.lineSeparator()||"\n";t.replaceSelection(e+e,null),c(t,-1),i=t.listSelections();for(var r=0;r<i.length;r++){var n=i[r].head.line;t.indentLine(n,null,!0),t.indentLine(n+1,null,!0)}}))}function c(e,t){for(var r=[],n=e.listSelections(),o=0,i=0;i<n.length;i++){var a=n[i];a.head==e.getCursor()&&(o=i);var l=a.head.ch||t>0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};r.push({anchor:l,head:l})}e.setSelections(r,o)}function f(t){var n=e.cmpPos(t.anchor,t.head)>0;return{anchor:new r(t.anchor.line,t.anchor.ch+(n?-1:1)),head:new r(t.head.line,t.head.ch+(n?1:-1))}}function d(t,o){var i=l(t);if(!i||t.getOption("disableInput"))return e.Pass;var a=n(i,"pairs"),s=a.indexOf(o);if(-1==s)return e.Pass;for(var u,d=n(i,"closeBefore"),p=n(i,"triples"),m=a.charAt(s+1)==o,v=t.listSelections(),g=s%2==0,y=0;y<v.length;y++){var b,w=v[y],_=w.head,x=t.getRange(_,r(_.line,_.ch+1));if(g&&!w.empty())b="surround";else if(!m&&g||x!=o)if(m&&_.ch>1&&p.indexOf(o)>=0&&t.getRange(r(_.line,_.ch-2),_)==o+o){if(_.ch>2&&/\bstring/.test(t.getTokenTypeAt(r(_.line,_.ch-2))))return e.Pass;b="addFour"}else if(m){var k=0==_.ch?" ":t.getRange(r(_.line,_.ch-1),_);if(e.isWordChar(x)||k==o||e.isWordChar(k))return e.Pass;b="both"}else{if(!g||!(0===x.length||/\s/.test(x)||d.indexOf(x)>-1))return e.Pass;b="both"}else b=m&&h(t,_)?"both":p.indexOf(o)>=0&&t.getRange(_,r(_.line,_.ch+3))==o+o+o?"skipThree":"skip";if(u){if(u!=b)return e.Pass}else u=b}var S=s%2?a.charAt(s-1):o,O=s%2?o:a.charAt(s+1);t.operation((function(){if("skip"==u)c(t,1);else if("skipThree"==u)c(t,3);else if("surround"==u){for(var e=t.getSelections(),r=0;r<e.length;r++)e[r]=S+e[r]+O;for(t.replaceSelections(e,"around"),e=t.listSelections().slice(),r=0;r<e.length;r++)e[r]=f(e[r]);t.setSelections(e)}else"both"==u?(t.replaceSelection(S+O,null),t.triggerElectric(S+O),c(t,-1)):"addFour"==u&&(t.replaceSelection(S+S+S+S,"before"),c(t,1))}))}function p(e,t){var n=e.getRange(r(t.line,t.ch-1),r(t.line,t.ch+1));return 2==n.length?n:null}function h(e,t){var n=e.getTokenAt(r(t.line,t.ch+1));return/\bstring/.test(n.type)&&n.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}i(t.pairs+"`")}(r(3458))},7437:(e,t,r)=>{!function(e){e.defineOption("autoCloseTags",!1,(function(t,r,o){if(o!=e.Init&&o&&t.removeKeyMap("autoCloseTags"),r){var a={name:"autoCloseTags"};"object"==typeof r&&!1===r.whenClosing||(a["'/'"]=function(e){return i(e)}),"object"==typeof r&&!1===r.whenOpening||(a["'>'"]=function(e){return n(e)}),t.addKeyMap(a)}}));var t=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],r=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function n(n){if(n.getOption("disableInput"))return e.Pass;for(var o=n.listSelections(),i=[],s=n.getOption("autoCloseTags"),u=0;u<o.length;u++){if(!o[u].empty())return e.Pass;var c=o[u].head,f=n.getTokenAt(c),d=e.innerMode(n.getMode(),f.state),p=d.state,h=d.mode.xmlCurrentTag&&d.mode.xmlCurrentTag(p),m=h&&h.name;if(!m)return e.Pass;var v="html"==d.mode.configuration,g="object"==typeof s&&s.dontCloseTags||v&&t,y="object"==typeof s&&s.indentTags||v&&r;f.end>c.ch&&(m=m.slice(0,m.length-f.end+c.ch));var b=m.toLowerCase();if(!m||"string"==f.type&&(f.end!=c.ch||!/[\"\']/.test(f.string.charAt(f.string.length-1))||1==f.string.length)||"tag"==f.type&&h.close||f.string.indexOf("/")==c.ch-f.start-1||g&&a(g,b)>-1||l(n,d.mode.xmlCurrentContext&&d.mode.xmlCurrentContext(p)||[],m,c,!0))return e.Pass;var w="object"==typeof s&&s.emptyTags;if(w&&a(w,m)>-1)i[u]={text:"/>",newPos:e.Pos(c.line,c.ch+2)};else{var _=y&&a(y,b)>-1;i[u]={indent:_,text:">"+(_?"\n\n":"")+"</"+m+">",newPos:_?e.Pos(c.line+1,0):e.Pos(c.line,c.ch+1)}}}var x="object"==typeof s&&s.dontIndentOnAutoClose;for(u=o.length-1;u>=0;u--){var k=i[u];n.replaceRange(k.text,o[u].head,o[u].anchor,"+insert");var S=n.listSelections().slice(0);S[u]={head:k.newPos,anchor:k.newPos},n.setSelections(S),!x&&k.indent&&(n.indentLine(k.newPos.line,null,!0),n.indentLine(k.newPos.line+1,null,!0))}}function o(t,r){for(var n=t.listSelections(),o=[],i=r?"/":"</",a=t.getOption("autoCloseTags"),s="object"==typeof a&&a.dontIndentOnSlash,u=0;u<n.length;u++){if(!n[u].empty())return e.Pass;var c=n[u].head,f=t.getTokenAt(c),d=e.innerMode(t.getMode(),f.state),p=d.state;if(r&&("string"==f.type||"<"!=f.string.charAt(0)||f.start!=c.ch-1))return e.Pass;var h,m="xml"!=d.mode.name&&"htmlmixed"==t.getMode().name;if(m&&"javascript"==d.mode.name)h=i+"script";else if(m&&"css"==d.mode.name)h=i+"style";else{var v=d.mode.xmlCurrentContext&&d.mode.xmlCurrentContext(p),g=v.length?v[v.length-1]:"";if(!v||v.length&&l(t,v,g,c))return e.Pass;h=i+g}">"!=t.getLine(c.line).charAt(f.end)&&(h+=">"),o[u]=h}if(t.replaceSelections(o),n=t.listSelections(),!s)for(u=0;u<n.length;u++)(u==n.length-1||n[u].head.line<n[u+1].head.line)&&t.indentLine(n[u].head.line)}function i(t){return t.getOption("disableInput")?e.Pass:o(t,!0)}function a(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;++r)if(e[r]==t)return r;return-1}function l(t,r,n,o,i){if(!e.scanForClosingTag)return!1;var a=Math.min(t.lastLine()+1,o.line+500),l=e.scanForClosingTag(t,o,null,a);if(!l||l.tag!=n)return!1;for(var s=i?1:0,u=r.length-1;u>=0&&r[u]==n;u--)++s;for(o=l.to,u=1;u<s;u++){var c=e.scanForClosingTag(t,o,null,a);if(!c||c.tag!=n)return!1;o=c.to}return!0}e.commands.closeTag=function(e){return o(e)}}(r(3458),r(487))},9805:(e,t,r)=>{!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),r=e.Pos,n={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function o(e){return e&&e.bracketRegex||/[(){}[\]]/}function i(e,t,i){var l=e.getLineHandle(t.line),s=t.ch-1,u=i&&i.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=o(i),f=!u&&s>=0&&c.test(l.text.charAt(s))&&n[l.text.charAt(s)]||c.test(l.text.charAt(s+1))&&n[l.text.charAt(++s)];if(!f)return null;var d=">"==f.charAt(1)?1:-1;if(i&&i.strict&&d>0!=(s==t.ch))return null;var p=e.getTokenTypeAt(r(t.line,s+1)),h=a(e,r(t.line,s+(d>0?1:0)),d,p,i);return null==h?null:{from:r(t.line,s),to:h&&h.pos,match:h&&h.ch==f.charAt(0),forward:d>0}}function a(e,t,i,a,l){for(var s=l&&l.maxScanLineLength||1e4,u=l&&l.maxScanLines||1e3,c=[],f=o(l),d=i>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),p=t.line;p!=d;p+=i){var h=e.getLine(p);if(h){var m=i>0?0:h.length-1,v=i>0?h.length:-1;if(!(h.length>s))for(p==t.line&&(m=t.ch-(i<0?1:0));m!=v;m+=i){var g=h.charAt(m);if(f.test(g)&&(void 0===a||(e.getTokenTypeAt(r(p,m+1))||"")==(a||""))){var y=n[g];if(y&&">"==y.charAt(1)==i>0)c.push(g);else{if(!c.length)return{pos:r(p,m),ch:g};c.pop()}}}}}return p-i!=(i>0?e.lastLine():e.firstLine())&&null}function l(e,n,o){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,l=o&&o.highlightNonMatching,s=[],u=e.listSelections(),c=0;c<u.length;c++){var f=u[c].empty()&&i(e,u[c].head,o);if(f&&(f.match||!1!==l)&&e.getLine(f.from.line).length<=a){var d=f.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";s.push(e.markText(f.from,r(f.from.line,f.from.ch+1),{className:d})),f.to&&e.getLine(f.to.line).length<=a&&s.push(e.markText(f.to,r(f.to.line,f.to.ch+1),{className:d}))}}if(s.length){t&&e.state.focused&&e.focus();var p=function(){e.operation((function(){for(var e=0;e<s.length;e++)s[e].clear()}))};if(!n)return p;setTimeout(p,800)}}function s(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=l(e,!1,e.state.matchBrackets)}))}function u(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,(function(t,r,n){n&&n!=e.Init&&(t.off("cursorActivity",s),t.off("focus",s),t.off("blur",u),u(t)),r&&(t.state.matchBrackets="object"==typeof r?r:{},t.on("cursorActivity",s),t.on("focus",s),t.on("blur",u))})),e.defineExtension("matchBrackets",(function(){l(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,r){return(r||"boolean"==typeof t)&&(r?(r.strict=t,t=r):t=t?{strict:!0}:null),i(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,r,n){return a(this,e,t,r,n)}))}(r(3458))},5930:(e,t,r)=>{!function(e){"use strict";function t(e){e.state.tagHit&&e.state.tagHit.clear(),e.state.tagOther&&e.state.tagOther.clear(),e.state.tagHit=e.state.tagOther=null}function r(r){r.state.failedTagMatch=!1,r.operation((function(){if(t(r),!r.somethingSelected()){var n=r.getCursor(),o=r.getViewport();o.from=Math.min(o.from,n.line),o.to=Math.max(n.line+1,o.to);var i=e.findMatchingTag(r,n,o);if(i){if(r.state.matchBothTags){var a="open"==i.at?i.open:i.close;a&&(r.state.tagHit=r.markText(a.from,a.to,{className:"CodeMirror-matchingtag"}))}var l="close"==i.at?i.open:i.close;l?r.state.tagOther=r.markText(l.from,l.to,{className:"CodeMirror-matchingtag"}):r.state.failedTagMatch=!0}}}))}function n(e){e.state.failedTagMatch&&r(e)}e.defineOption("matchTags",!1,(function(o,i,a){a&&a!=e.Init&&(o.off("cursorActivity",r),o.off("viewportChange",n),t(o)),i&&(o.state.matchBothTags="object"==typeof i&&i.bothTags,o.on("cursorActivity",r),o.on("viewportChange",n),r(o))})),e.commands.toMatchingTag=function(t){var r=e.findMatchingTag(t,t.getCursor());if(r){var n="close"==r.at?r.open:r.close;n&&t.extendSelection(n.to,n.from)}}}(r(3458),r(487))},487:(e,t,r)=>{!function(e){"use strict";var t=e.Pos;function r(e,t){return e.line-t.line||e.ch-t.ch}var n="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",o=new RegExp("<(/?)(["+n+"]["+n+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function i(e,t,r,n){this.line=t,this.ch=r,this.cm=e,this.text=e.getLine(t),this.min=n?Math.max(n.from,e.firstLine()):e.firstLine(),this.max=n?Math.min(n.to-1,e.lastLine()):e.lastLine()}function a(e,r){var n=e.cm.getTokenTypeAt(t(e.line,r));return n&&/\btag\b/.test(n)}function l(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function s(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function u(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(l(e))continue;return}if(a(e,t+1)){var r=e.text.lastIndexOf("/",t),n=r>-1&&!/\S/.test(e.text.slice(r+1,t));return e.ch=t+1,n?"selfClose":"regular"}e.ch=t+1}}function c(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(s(e))continue;return}if(a(e,t+1)){o.lastIndex=t,e.ch=t;var r=o.exec(e.text);if(r&&r.index==t)return r}else e.ch=t}}function f(e){for(;;){o.lastIndex=e.ch;var t=o.exec(e.text);if(!t){if(l(e))continue;return}if(a(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function d(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(s(e))continue;return}if(a(e,t+1)){var r=e.text.lastIndexOf("/",t),n=r>-1&&!/\S/.test(e.text.slice(r+1,t));return e.ch=t+1,n?"selfClose":"regular"}e.ch=t}}function p(e,r){for(var n=[];;){var o,i=f(e),a=e.line,l=e.ch-(i?i[0].length:0);if(!i||!(o=u(e)))return;if("selfClose"!=o)if(i[1]){for(var s=n.length-1;s>=0;--s)if(n[s]==i[2]){n.length=s;break}if(s<0&&(!r||r==i[2]))return{tag:i[2],from:t(a,l),to:t(e.line,e.ch)}}else n.push(i[2])}}function h(e,r){for(var n=[];;){var o=d(e);if(!o)return;if("selfClose"!=o){var i=e.line,a=e.ch,l=c(e);if(!l)return;if(l[1])n.push(l[2]);else{for(var s=n.length-1;s>=0;--s)if(n[s]==l[2]){n.length=s;break}if(s<0&&(!r||r==l[2]))return{tag:l[2],from:t(e.line,e.ch),to:t(i,a)}}}else c(e)}}e.registerHelper("fold","xml",(function(e,n){for(var o=new i(e,n.line,0);;){var a=f(o);if(!a||o.line!=n.line)return;var l=u(o);if(!l)return;if(!a[1]&&"selfClose"!=l){var s=t(o.line,o.ch),c=p(o,a[2]);return c&&r(c.from,s)>0?{from:s,to:c.from}:null}}})),e.findMatchingTag=function(e,n,o){var a=new i(e,n.line,n.ch,o);if(-1!=a.text.indexOf(">")||-1!=a.text.indexOf("<")){var l=u(a),s=l&&t(a.line,a.ch),f=l&&c(a);if(l&&f&&!(r(a,n)>0)){var d={from:t(a.line,a.ch),to:s,tag:f[2]};return"selfClose"==l?{open:d,close:null,at:"open"}:f[1]?{open:h(a,f[2]),close:d,at:"close"}:{open:d,close:p(a=new i(e,s.line,s.ch,o),f[2]),at:"open"}}}},e.findEnclosingTag=function(e,t,r,n){for(var o=new i(e,t.line,t.ch,r);;){var a=h(o,n);if(!a)break;var l=p(new i(e,t.line,t.ch,r),a.tag);if(l)return{open:a,close:l}}},e.scanForClosingTag=function(e,t,r,n){return p(new i(e,t.line,t.ch,n?{from:0,to:n}:null),r)}}(r(3458))},4491:(e,t,r)=>{!function(e){"use strict";var t={active:1,after:1,before:1,checked:1,default:1,disabled:1,empty:1,enabled:1,"first-child":1,"first-letter":1,"first-line":1,"first-of-type":1,focus:1,hover:1,"in-range":1,indeterminate:1,invalid:1,lang:1,"last-child":1,"last-of-type":1,link:1,not:1,"nth-child":1,"nth-last-child":1,"nth-last-of-type":1,"nth-of-type":1,"only-of-type":1,"only-child":1,optional:1,"out-of-range":1,placeholder:1,"read-only":1,"read-write":1,required:1,root:1,selection:1,target:1,valid:1,visited:1};e.registerHelper("hint","css",(function(r){var n=r.getCursor(),o=r.getTokenAt(n),i=e.innerMode(r.getMode(),o.state);if("css"==i.mode.name){if("keyword"==o.type&&0=="!important".indexOf(o.string))return{list:["!important"],from:e.Pos(n.line,o.start),to:e.Pos(n.line,o.end)};var a=o.start,l=n.ch,s=o.string.slice(0,l-a);/[^\w$_-]/.test(s)&&(s="",a=l=n.ch);var u=e.resolveMode("text/css"),c=[],f=i.state.state;return"pseudo"==f||"variable-3"==o.type?d(t):"block"==f||"maybeprop"==f?d(u.propertyKeywords):"prop"==f||"parens"==f||"at"==f||"params"==f?(d(u.valueKeywords),d(u.colorKeywords)):"media"!=f&&"media_parens"!=f||(d(u.mediaTypes),d(u.mediaFeatures)),c.length?{list:c,from:e.Pos(n.line,a),to:e.Pos(n.line,l)}:void 0}function d(e){for(var t in e)s&&0!=t.lastIndexOf(s,0)||c.push(t)}}))}(r(3458),r(7530))},5812:(e,t,r)=>{!function(e){"use strict";var t="ab aa af ak sq am ar an hy as av ae ay az bm ba eu be bn bh bi bs br bg my ca ch ce ny zh cv kw co cr hr cs da dv nl dz en eo et ee fo fj fi fr ff gl ka de el gn gu ht ha he hz hi ho hu ia id ie ga ig ik io is it iu ja jv kl kn kr ks kk km ki rw ky kv kg ko ku kj la lb lg li ln lo lt lu lv gv mk mg ms ml mt mi mr mh mn na nv nb nd ne ng nn no ii nr oc oj cu om or os pa pi fa pl ps pt qu rm rn ro ru sa sc sd se sm sg sr gd sn si sk sl so st es su sw ss sv ta te tg th ti bo tk tl tn to tr ts tt tw ty ug uk ur uz ve vi vo wa cy wo fy xh yi yo za zu".split(" "),r=["_blank","_self","_top","_parent"],n=["ascii","utf-8","utf-16","latin1","latin1"],o=["get","post","put","delete"],i=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],a=["all","screen","print","embossed","braille","handheld","print","projection","screen","tty","tv","speech","3d-glasses","resolution [>][<][=] [X]","device-aspect-ratio: X/Y","orientation:portrait","orientation:landscape","device-height: [X]","device-width: [X]"],l={attrs:{}},s={a:{attrs:{href:null,ping:null,type:null,media:a,target:r,hreflang:t}},abbr:l,acronym:l,address:l,applet:l,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:a,hreflang:t,type:null,shape:["default","rect","circle","poly"]}},article:l,aside:l,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["","autoplay"],loop:["","loop"],controls:["","controls"]}},b:l,base:{attrs:{href:null,target:r}},basefont:l,bdi:l,bdo:l,big:l,blockquote:{attrs:{cite:null}},body:l,br:l,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["","autofocus"],disabled:["","autofocus"],formenctype:i,formmethod:o,formnovalidate:["","novalidate"],formtarget:r,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:l,center:l,cite:l,code:l,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["","disabled"],checked:["","checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["","disabled"],multiple:["","multiple"]}},datalist:{attrs:{data:null}},dd:l,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["","open"]}},dfn:l,dir:l,div:l,dialog:{attrs:{open:null}},dl:l,dt:l,em:l,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["","disabled"],form:null,name:null}},figcaption:l,figure:l,font:l,footer:l,form:{attrs:{action:null,name:null,"accept-charset":n,autocomplete:["on","off"],enctype:i,method:o,novalidate:["","novalidate"],target:r}},frame:l,frameset:l,h1:l,h2:l,h3:l,h4:l,h5:l,h6:l,head:{attrs:{},children:["title","base","link","style","meta","script","noscript","command"]},header:l,hgroup:l,hr:l,html:{attrs:{manifest:null},children:["head","body"]},i:l,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["","seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["","autofocus"],checked:["","checked"],disabled:["","disabled"],formenctype:i,formmethod:o,formnovalidate:["","novalidate"],formtarget:r,multiple:["","multiple"],readonly:["","readonly"],required:["","required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:l,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["","autofocus"],disabled:["","disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:l,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:t,media:a,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:l,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:n,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:l,noframes:l,noscript:l,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["","typemustmatch"]}},ol:{attrs:{reversed:["","reversed"],start:null,type:["1","a","A","i","I"]}},optgroup:{attrs:{disabled:["","disabled"],label:null}},option:{attrs:{disabled:["","disabled"],label:null,selected:["","selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:l,param:{attrs:{name:null,value:null}},pre:l,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:l,rt:l,ruby:l,s:l,samp:l,script:{attrs:{type:["text/javascript"],src:null,async:["","async"],defer:["","defer"],charset:n}},section:l,select:{attrs:{form:null,name:null,size:null,autofocus:["","autofocus"],disabled:["","disabled"],multiple:["","multiple"]}},small:l,source:{attrs:{src:null,type:null,media:null}},span:l,strike:l,strong:l,style:{attrs:{type:["text/css"],media:a,scoped:null}},sub:l,summary:l,sup:l,table:l,tbody:l,td:{attrs:{colspan:null,rowspan:null,headers:null}},textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["","autofocus"],disabled:["","disabled"],readonly:["","readonly"],required:["","required"],wrap:["soft","hard"]}},tfoot:l,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:l,time:{attrs:{datetime:null}},title:l,tr:l,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:t}},tt:l,u:l,ul:l,var:l,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["","autoplay"],mediagroup:["movie"],muted:["","muted"],controls:["","controls"]}},wbr:l},u={accesskey:["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9"],class:null,contenteditable:["true","false"],contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["en","es"],spellcheck:["true","false"],autocorrect:["true","false"],autocapitalize:["true","false"],style:null,tabindex:["1","2","3","4","5","6","7","8","9"],title:null,translate:["yes","no"],onclick:null,rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"]};function c(e){for(var t in u)u.hasOwnProperty(t)&&(e.attrs[t]=u[t])}for(var f in c(l),s)s.hasOwnProperty(f)&&s[f]!=l&&c(s[f]);function d(t,r){var n={schemaInfo:s};if(r)for(var o in r)n[o]=r[o];return e.hint.xml(t,n)}e.htmlSchema=s,e.registerHelper("hint","html",d)}(r(3458),r(7321))},6728:(e,t,r)=>{!function(e){"use strict";var t="CodeMirror-hint",r="CodeMirror-hint-active";function n(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var r=this;e.on("cursorActivity",this.activityFunc=function(){r.cursorActivity()})}}e.showHint=function(e,t,r){if(!t)return e.showHint(r);r&&r.async&&(t.async=!0);var n={hint:t};if(r)for(var o in r)n[o]=r[o];return e.showHint(n)},e.defineExtension("showHint",(function(t){t=a(this,this.getCursor("start"),t);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var o=0;o<r.length;o++)if(r[o].head.line!=r[o].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var i=this.state.completionActive=new n(this,t);i.options.hint&&(e.signal(this,"startCompletion",this),i.update(!0))}})),e.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var o=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},i=window.cancelAnimationFrame||clearTimeout;function a(e,t,r){var n=e.options.hintOptions,o={};for(var i in h)o[i]=h[i];if(n)for(var i in n)void 0!==n[i]&&(o[i]=n[i]);if(r)for(var i in r)void 0!==r[i]&&(o[i]=r[i]);return o.hint.resolve&&(o.hint=o.hint.resolve(e,t)),o}function l(e){return"string"==typeof e?e:e.text}function s(e,t){var r={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(r["Ctrl-P"]=function(){t.moveFocus(-1)},r["Ctrl-N"]=function(){t.moveFocus(1)});var n=e.options.customKeys,o=n?{}:r;function i(e,n){var i;i="string"!=typeof n?function(e){return n(e,t)}:r.hasOwnProperty(n)?r[n]:n,o[e]=i}if(n)for(var a in n)n.hasOwnProperty(a)&&i(a,n[a]);var l=e.options.extraKeys;if(l)for(var a in l)l.hasOwnProperty(a)&&i(a,l[a]);return o}function u(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function c(n,o){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=n,this.data=o,this.picked=!1;var i=this,a=n.cm,c=a.getInputField().ownerDocument,f=c.defaultView||c.parentWindow,d=this.hints=c.createElement("ul");d.setAttribute("role","listbox"),d.setAttribute("aria-expanded","true"),d.id=this.id;var p=n.cm.options.theme;d.className="CodeMirror-hints "+p,this.selectedHint=o.selectedHint||0;for(var h=o.list,m=0;m<h.length;++m){var v=d.appendChild(c.createElement("li")),g=h[m],y=t+(m!=this.selectedHint?"":" "+r);null!=g.className&&(y=g.className+" "+y),v.className=y,m==this.selectedHint&&v.setAttribute("aria-selected","true"),v.id=this.id+"-"+m,v.setAttribute("role","option"),g.render?g.render(v,o,g):v.appendChild(c.createTextNode(g.displayText||l(g))),v.hintId=m}var b=n.options.container||c.body,w=a.cursorCoords(n.options.alignWithWord?o.from:null),_=w.left,x=w.bottom,k=!0,S=0,O=0;if(b!==c.body){var E=-1!==["absolute","relative","fixed"].indexOf(f.getComputedStyle(b).position)?b:b.offsetParent,C=E.getBoundingClientRect(),T=c.body.getBoundingClientRect();S=C.left-T.left-E.scrollLeft,O=C.top-T.top-E.scrollTop}d.style.left=_-S+"px",d.style.top=x-O+"px";var L=f.innerWidth||Math.max(c.body.offsetWidth,c.documentElement.offsetWidth),M=f.innerHeight||Math.max(c.body.offsetHeight,c.documentElement.offsetHeight);b.appendChild(d),a.getInputField().setAttribute("aria-autocomplete","list"),a.getInputField().setAttribute("aria-owns",this.id),a.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var A,j=n.options.moveOnOverlap?d.getBoundingClientRect():new DOMRect,P=!!n.options.paddingForScrollbar&&d.scrollHeight>d.clientHeight+1;if(setTimeout((function(){A=a.getScrollInfo()})),j.bottom-M>0){var I=j.bottom-j.top;if(w.top-(w.bottom-j.top)-I>0)d.style.top=(x=w.top-I-O)+"px",k=!1;else if(I>M){d.style.height=M-5+"px",d.style.top=(x=w.bottom-j.top-O)+"px";var R=a.getCursor();o.from.ch!=R.ch&&(w=a.cursorCoords(R),d.style.left=(_=w.left-S)+"px",j=d.getBoundingClientRect())}}var N,D=j.right-L;if(P&&(D+=a.display.nativeBarWidth),D>0&&(j.right-j.left>L&&(d.style.width=L-5+"px",D-=j.right-j.left-L),d.style.left=(_=w.left-D-S)+"px"),P)for(var z=d.firstChild;z;z=z.nextSibling)z.style.paddingRight=a.display.nativeBarWidth+"px";a.addKeyMap(this.keyMap=s(n,{moveFocus:function(e,t){i.changeActive(i.selectedHint+e,t)},setFocus:function(e){i.changeActive(e)},menuSize:function(){return i.screenAmount()},length:h.length,close:function(){n.close()},pick:function(){i.pick()},data:o})),n.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){N=setTimeout((function(){n.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(N)})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),t=a.getWrapperElement().getBoundingClientRect();A||(A=a.getScrollInfo());var r=x+A.top-e.top,o=r-(f.pageYOffset||(c.documentElement||c.body).scrollTop);if(k||(o+=d.offsetHeight),o<=t.top||o>=t.bottom)return n.close();d.style.top=r+"px",d.style.left=_+A.left-e.left+"px"}),e.on(d,"dblclick",(function(e){var t=u(d,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),i.pick())})),e.on(d,"click",(function(e){var t=u(d,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),n.options.completeOnSingleClick&&i.pick())})),e.on(d,"mousedown",(function(){setTimeout((function(){a.focus()}),20)}));var F=this.getSelectedHintRange();return 0===F.from&&0===F.to||this.scrollToActive(),e.signal(o,"select",h[this.selectedHint],d.childNodes[this.selectedHint]),!0}function f(e,t){if(!e.somethingSelected())return t;for(var r=[],n=0;n<t.length;n++)t[n].supportsSelection&&r.push(t[n]);return r}function d(e,t,r,n){if(e.async)e(t,n,r);else{var o=e(t,r);o&&o.then?o.then(n):n(o)}}function p(t,r){var n,o=t.getHelpers(r,"hint");if(o.length){var i=function(e,t,r){var n=f(e,o);function i(o){if(o==n.length)return t(null);d(n[o],e,r,(function(e){e&&e.list.length>0?t(e):i(o+1)}))}i(0)};return i.async=!0,i.supportsSelection=!0,i}return(n=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:n})}:e.hint.anyword?function(t,r){return e.hint.anyword(t,r)}:function(){}}n.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,r){var n=t.list[r],o=this;this.cm.operation((function(){n.hint?n.hint(o.cm,t,n):o.cm.replaceRange(l(n),n.from||t.from,n.to||t.to,"complete"),e.signal(t,"pick",n),o.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(i(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),r=this.cm.getLine(t.line);if(t.line!=this.startPos.line||r.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(r.charAt(t.ch-1)))this.close();else{var n=this;this.debounce=o((function(){n.update()})),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,r=++this.tick;d(this.options.hint,this.cm,this.options,(function(n){t.tick==r&&t.finishUpdate(n,e)}))}},finishUpdate:function(t,r){this.data&&e.signal(this.data,"update");var n=this.widget&&this.widget.picked||r&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(n&&1==t.list.length?this.pick(t,0):(this.widget=new c(this,t),e.signal(t,"shown")))}},c.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm.getInputField();e.removeAttribute("aria-activedescendant"),e.removeAttribute("aria-owns");var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,n){if(t>=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var o=this.hints.childNodes[this.selectedHint];o&&(o.className=o.className.replace(" "+r,""),o.removeAttribute("aria-selected")),(o=this.hints.childNodes[this.selectedHint=t]).className+=" "+r,o.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",o.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],o)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],r=this.hints.childNodes[e.to],n=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-n.offsetTop:r.offsetTop+r.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=r.offsetTop+r.offsetHeight-this.hints.clientHeight+n.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:p}),e.registerHelper("hint","fromList",(function(t,r){var n,o=t.getCursor(),i=t.getTokenAt(o),a=e.Pos(o.line,i.start),l=o;i.start<o.ch&&/\w/.test(i.string.charAt(o.ch-i.start-1))?n=i.string.substr(0,o.ch-i.start):(n="",a=o);for(var s=[],u=0;u<r.words.length;u++){var c=r.words[u];c.slice(0,n.length)==n&&s.push(c)}if(s.length)return{list:s,from:a,to:l}})),e.commands.autocomplete=e.showHint;var h={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}(r(3458))},7321:(e,t,r)=>{!function(e){"use strict";var t=e.Pos;function r(e,t,r){return r?e.indexOf(t)>=0:0==e.lastIndexOf(t,0)}function n(n,o){var i=o&&o.schemaInfo,a=o&&o.quoteChar||'"',l=o&&o.matchInMiddle;if(i){var s=n.getCursor(),u=n.getTokenAt(s);if(u.end>s.ch&&(u.end=s.ch,u.string=u.string.slice(0,s.ch-u.start)),(b=e.innerMode(n.getMode(),u.state)).mode.xmlCurrentTag){var c,f,d=[],p=!1,h=/\btag\b/.test(u.type)&&!/>$/.test(u.string),m=h&&/^\w/.test(u.string);if(m){var v=n.getLine(s.line).slice(Math.max(0,u.start-2),u.start),g=/<\/$/.test(v)?"close":/<$/.test(v)?"open":null;g&&(f=u.start-("close"==g?2:1))}else h&&"<"==u.string?g="open":h&&"</"==u.string&&(g="close");var y=b.mode.xmlCurrentTag(b.state);if(!h&&!y||g){m&&(c=u.string),p=g;var b,w=b.mode.xmlCurrentContext?b.mode.xmlCurrentContext(b.state):[],_=(b=w.length&&w[w.length-1])&&i[b],x=b?_&&_.children:i["!top"];if(x&&"close"!=g)for(var k=0;k<x.length;++k)c&&!r(x[k],c,l)||d.push("<"+x[k]);else if("close"!=g)for(var S in i)!i.hasOwnProperty(S)||"!top"==S||"!attrs"==S||c&&!r(S,c,l)||d.push("<"+S);b&&(!c||"close"==g&&r(b,c,l))&&d.push("</"+b+">")}else{var O=(_=y&&i[y.name])&&_.attrs,E=i["!attrs"];if(!O&&!E)return;if(O){if(E){var C={};for(var T in E)E.hasOwnProperty(T)&&(C[T]=E[T]);for(var T in O)O.hasOwnProperty(T)&&(C[T]=O[T]);O=C}}else O=E;if("string"==u.type||"="==u.string){var L,M=(v=n.getRange(t(s.line,Math.max(0,s.ch-60)),t(s.line,"string"==u.type?u.start:u.end))).match(/([^\s\u00a0=<>\"\']+)=$/);if(!M||!O.hasOwnProperty(M[1])||!(L=O[M[1]]))return;if("function"==typeof L&&(L=L.call(this,n)),"string"==u.type){c=u.string;var A=0;/['"]/.test(u.string.charAt(0))&&(a=u.string.charAt(0),c=u.string.slice(1),A++);var j=u.string.length;if(/['"]/.test(u.string.charAt(j-1))&&(a=u.string.charAt(j-1),c=u.string.substr(A,j-2)),A){var P=n.getLine(s.line);P.length>u.end&&P.charAt(u.end)==a&&u.end++}p=!0}var I=function(e){if(e)for(var t=0;t<e.length;++t)c&&!r(e[t],c,l)||d.push(a+e[t]+a);return N()};return L&&L.then?L.then(I):I(L)}for(var R in"attribute"==u.type&&(c=u.string,p=!0),O)!O.hasOwnProperty(R)||c&&!r(R,c,l)||d.push(R)}return N()}}function N(){return{list:d,from:p?t(s.line,null==f?u.start:f):s,to:p?t(s.line,u.end):s}}}e.registerHelper("hint","xml",n)}(r(3458))},9427:(e,t,r)=>{!function(e){"use strict";function t(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var r=e.exec(t.string);if(r&&r.index==t.pos)return t.pos+=r[0].length||1,"searching";r?t.pos=r.index:t.skipToEnd()}}}function r(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new r)}function o(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,r){return e.getSearchCursor(t,r,{caseFold:o(t),multiline:!0})}function a(e,t,r,n,o){e.openDialog(t,n,{value:r,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){h(e)},onKeyDown:o,bottom:e.options.search.bottom})}function l(e,t,r,n,o){e.openDialog?e.openDialog(t,o,{value:n,selectValueOnOpen:!0,bottom:e.options.search.bottom}):o(prompt(r,n))}function s(e,t,r,n){e.openConfirm?e.openConfirm(t,n):confirm(r)&&n[0]()}function u(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function c(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=u(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function f(e,r,n){r.queryText=n,r.query=c(n),e.removeOverlay(r.overlay,o(r.query)),r.overlay=t(r.query,o(r.query)),e.addOverlay(r.overlay),e.showMatchesOnScrollbar&&(r.annotate&&(r.annotate.clear(),r.annotate=null),r.annotate=e.showMatchesOnScrollbar(r.query,o(r.query)))}function d(t,r,o,i){var s=n(t);if(s.query)return p(t,r);var u=t.getSelection()||s.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),o&&t.openDialog){var c=null,d=function(r,n){e.e_stop(n),r&&(r!=s.queryText&&(f(t,s,r),s.posFrom=s.posTo=t.getCursor()),c&&(c.style.opacity=1),p(t,n.shiftKey,(function(e,r){var n;r.line<3&&document.querySelector&&(n=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&n.getBoundingClientRect().bottom-4>t.cursorCoords(r,"window").top&&((c=n).style.opacity=.4)})))};a(t,v(t),u,d,(function(r,o){var i=e.keyName(r),a=t.getOption("extraKeys"),l=a&&a[i]||e.keyMap[t.getOption("keyMap")][i];"findNext"==l||"findPrev"==l||"findPersistentNext"==l||"findPersistentPrev"==l?(e.e_stop(r),f(t,n(t),o),t.execCommand(l)):"find"!=l&&"findPersistent"!=l||(e.e_stop(r),d(o,r))})),i&&u&&(f(t,s,u),p(t,r))}else l(t,v(t),"Search for:",u,(function(e){e&&!s.query&&t.operation((function(){f(t,s,e),s.posFrom=s.posTo=t.getCursor(),p(t,r)}))}))}function p(t,r,o){t.operation((function(){var a=n(t),l=i(t,a.query,r?a.posFrom:a.posTo);(l.find(r)||(l=i(t,a.query,r?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(r))&&(t.setSelection(l.from(),l.to()),t.scrollIntoView({from:l.from(),to:l.to()},20),a.posFrom=l.from(),a.posTo=l.to(),o&&o(l.from(),l.to()))}))}function h(e){e.operation((function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function m(e,t){var r=e?document.createElement(e):document.createDocumentFragment();for(var n in t)r[n]=t[n];for(var o=2;o<arguments.length;o++){var i=arguments[o];r.appendChild("string"==typeof i?document.createTextNode(i):i)}return r}function v(e){var t=m("label",{className:"CodeMirror-search-label"},e.phrase("Search:"),m("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field",id:"CodeMirror-search-field"}));return t.setAttribute("for","CodeMirror-search-field"),m("",null,t," ",m("span",{style:"color: #666",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function g(e){return m("",null," ",m("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",m("span",{style:"color: #666",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function y(e){return m("",null,m("span",{className:"CodeMirror-search-label"},e.phrase("With:"))," ",m("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function b(e){return m("",null,m("span",{className:"CodeMirror-search-label"},e.phrase("Replace?"))," ",m("button",{},e.phrase("Yes"))," ",m("button",{},e.phrase("No"))," ",m("button",{},e.phrase("All"))," ",m("button",{},e.phrase("Stop")))}function w(e,t,r){e.operation((function(){for(var n=i(e,t);n.findNext();)if("string"!=typeof t){var o=e.getRange(n.from(),n.to()).match(t);n.replace(r.replace(/\$(\d)/g,(function(e,t){return o[t]})))}else n.replace(r)}))}function _(e,t){if(!e.getOption("readOnly")){var r=e.getSelection()||n(e).lastQuery,o=t?e.phrase("Replace all:"):e.phrase("Replace:"),a=m("",null,m("span",{className:"CodeMirror-search-label"},o),g(e));l(e,a,o,r,(function(r){r&&(r=c(r),l(e,y(e),e.phrase("Replace with:"),"",(function(n){if(n=u(n),t)w(e,r,n);else{h(e);var o=i(e,r,e.getCursor("from")),a=function(){var t,u=o.from();!(t=o.findNext())&&(o=i(e,r),!(t=o.findNext())||u&&o.from().line==u.line&&o.from().ch==u.ch)||(e.setSelection(o.from(),o.to()),e.scrollIntoView({from:o.from(),to:o.to()}),s(e,b(e),e.phrase("Replace?"),[function(){l(t)},a,function(){w(e,r,n)}]))},l=function(e){o.replace("string"==typeof r?n:n.replace(/\$(\d)/g,(function(t,r){return e[r]}))),a()};a()}})))}))}}e.defineOption("search",{bottom:!1}),e.commands.find=function(e){h(e),d(e)},e.commands.findPersistent=function(e){h(e),d(e,!1,!0)},e.commands.findPersistentNext=function(e){d(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){d(e,!0,!0,!0)},e.commands.findNext=d,e.commands.findPrev=function(e){d(e,!0)},e.commands.clearSearch=h,e.commands.replace=_,e.commands.replaceAll=function(e){_(e,!0)}}(r(3458),r(1863),r(1528))},1863:(e,t,r)=>{!function(e){"use strict";var t,r,n=e.Pos;function o(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function i(e,t){for(var r=o(e),n=r,i=0;i<t.length;i++)-1==n.indexOf(t.charAt(i))&&(n+=t.charAt(i));return r==n?e:new RegExp(e.source,n)}function a(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function l(e,t,r){t=i(t,"g");for(var o=r.line,a=r.ch,l=e.lastLine();o<=l;o++,a=0){t.lastIndex=a;var s=e.getLine(o),u=t.exec(s);if(u)return{from:n(o,u.index),to:n(o,u.index+u[0].length),match:u}}}function s(e,t,r){if(!a(t))return l(e,t,r);t=i(t,"gm");for(var o,s=1,u=r.line,c=e.lastLine();u<=c;){for(var f=0;f<s&&!(u>c);f++){var d=e.getLine(u++);o=null==o?d:o+"\n"+d}s*=2,t.lastIndex=r.ch;var p=t.exec(o);if(p){var h=o.slice(0,p.index).split("\n"),m=p[0].split("\n"),v=r.line+h.length-1,g=h[h.length-1].length;return{from:n(v,g),to:n(v+m.length-1,1==m.length?g+m[0].length:m[m.length-1].length),match:p}}}}function u(e,t,r){for(var n,o=0;o<=e.length;){t.lastIndex=o;var i=t.exec(e);if(!i)break;var a=i.index+i[0].length;if(a>e.length-r)break;(!n||a>n.index+n[0].length)&&(n=i),o=i.index+1}return n}function c(e,t,r){t=i(t,"g");for(var o=r.line,a=r.ch,l=e.firstLine();o>=l;o--,a=-1){var s=e.getLine(o),c=u(s,t,a<0?0:s.length-a);if(c)return{from:n(o,c.index),to:n(o,c.index+c[0].length),match:c}}}function f(e,t,r){if(!a(t))return c(e,t,r);t=i(t,"gm");for(var o,l=1,s=e.getLine(r.line).length-r.ch,f=r.line,d=e.firstLine();f>=d;){for(var p=0;p<l&&f>=d;p++){var h=e.getLine(f--);o=null==o?h:h+"\n"+o}l*=2;var m=u(o,t,s);if(m){var v=o.slice(0,m.index).split("\n"),g=m[0].split("\n"),y=f+v.length,b=v[v.length-1].length;return{from:n(y,b),to:n(y+g.length-1,1==g.length?b+g[0].length:g[g.length-1].length),match:m}}}}function d(e,t,r,n){if(e.length==t.length)return r;for(var o=0,i=r+Math.max(0,e.length-t.length);;){if(o==i)return o;var a=o+i>>1,l=n(e.slice(0,a)).length;if(l==r)return a;l>r?i=a:o=a+1}}function p(e,o,i,a){if(!o.length)return null;var l=a?t:r,s=l(o).split(/\r|\n\r?/);e:for(var u=i.line,c=i.ch,f=e.lastLine()+1-s.length;u<=f;u++,c=0){var p=e.getLine(u).slice(c),h=l(p);if(1==s.length){var m=h.indexOf(s[0]);if(-1==m)continue e;return i=d(p,h,m,l)+c,{from:n(u,d(p,h,m,l)+c),to:n(u,d(p,h,m+s[0].length,l)+c)}}var v=h.length-s[0].length;if(h.slice(v)==s[0]){for(var g=1;g<s.length-1;g++)if(l(e.getLine(u+g))!=s[g])continue e;var y=e.getLine(u+s.length-1),b=l(y),w=s[s.length-1];if(b.slice(0,w.length)==w)return{from:n(u,d(p,h,v,l)+c),to:n(u+s.length-1,d(y,b,w.length,l))}}}}function h(e,o,i,a){if(!o.length)return null;var l=a?t:r,s=l(o).split(/\r|\n\r?/);e:for(var u=i.line,c=i.ch,f=e.firstLine()-1+s.length;u>=f;u--,c=-1){var p=e.getLine(u);c>-1&&(p=p.slice(0,c));var h=l(p);if(1==s.length){var m=h.lastIndexOf(s[0]);if(-1==m)continue e;return{from:n(u,d(p,h,m,l)),to:n(u,d(p,h,m+s[0].length,l))}}var v=s[s.length-1];if(h.slice(0,v.length)==v){var g=1;for(i=u-s.length+1;g<s.length-1;g++)if(l(e.getLine(i+g))!=s[g])continue e;var y=e.getLine(u+1-s.length),b=l(y);if(b.slice(b.length-s[0].length)==s[0])return{from:n(u+1-s.length,d(y,b,y.length-s[0].length,l)),to:n(u,d(p,h,v.length,l))}}}}function m(e,t,r,o){var a;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,r=r?e.clipPos(r):n(0,0),this.pos={from:r,to:r},"object"==typeof o?a=o.caseFold:(a=o,o=null),"string"==typeof t?(null==a&&(a=!1),this.matches=function(r,n){return(r?h:p)(e,t,n,a)}):(t=i(t,"gm"),o&&!1===o.multiline?this.matches=function(r,n){return(r?c:l)(e,t,n)}:this.matches=function(r,n){return(r?f:s)(e,t,n)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},r=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},r=function(e){return e}),m.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var r=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(r=n(r.line,r.ch),t?(r.ch--,r.ch<0&&(r.line--,r.ch=(this.doc.getLine(r.line)||"").length)):(r.ch++,r.ch>(this.doc.getLine(r.line)||"").length&&(r.ch=0,r.line++)),0!=e.cmpPos(r,this.doc.clipPos(r))))return this.atOccurrence=!1;var o=this.matches(t,r);if(this.afterEmptyMatch=o&&0==e.cmpPos(o.from,o.to),o)return this.pos=o,this.atOccurrence=!0,this.pos.match||!0;var i=n(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,r){if(this.atOccurrence){var o=e.splitLines(t);this.doc.replaceRange(o,this.pos.from,this.pos.to,r),this.pos.to=n(this.pos.from.line+o.length-1,o[o.length-1].length+(1==o.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,r){return new m(this.doc,e,t,r)})),e.defineDocExtension("getSearchCursor",(function(e,t,r){return new m(this,e,t,r)})),e.defineExtension("selectMatches",(function(t,r){for(var n=[],o=this.getSearchCursor(t,this.getCursor("from"),r);o.findNext()&&!(e.cmpPos(o.to(),this.getCursor("to"))>0);)n.push({anchor:o.from(),head:o.to()});n.length&&this.setSelections(n,0)}))}(r(3458))},9546:(e,t,r)=>{!function(e){"use strict";var t="CodeMirror-activeline",r="CodeMirror-activeline-background",n="CodeMirror-activeline-gutter";function o(e){for(var o=0;o<e.state.activeLines.length;o++)e.removeLineClass(e.state.activeLines[o],"wrap",t),e.removeLineClass(e.state.activeLines[o],"background",r),e.removeLineClass(e.state.activeLines[o],"gutter",n)}function i(e,t){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}function a(e,a){for(var l=[],s=0;s<a.length;s++){var u=a[s],c=e.getOption("styleActiveLine");if("object"==typeof c&&c.nonEmpty?u.anchor.line==u.head.line:u.empty()){var f=e.getLineHandleVisualStart(u.head.line);l[l.length-1]!=f&&l.push(f)}}i(e.state.activeLines,l)||e.operation((function(){o(e);for(var i=0;i<l.length;i++)e.addLineClass(l[i],"wrap",t),e.addLineClass(l[i],"background",r),e.addLineClass(l[i],"gutter",n);e.state.activeLines=l}))}function l(e,t){a(e,t.ranges)}e.defineOption("styleActiveLine",!1,(function(t,r,n){var i=n!=e.Init&&n;r!=i&&(i&&(t.off("beforeSelectionChange",l),o(t),delete t.state.activeLines),r&&(t.state.activeLines=[],a(t,t.listSelections()),t.on("beforeSelectionChange",l)))}))}(r(3458))},2384:(e,t,r)=>{!function(e){"use strict";var t=e.commands,r=e.Pos;function n(t,n,o){if(o<0&&0==n.ch)return t.clipPos(r(n.line-1));var i=t.getLine(n.line);if(o>0&&n.ch>=i.length)return t.clipPos(r(n.line+1,0));for(var a,l="start",s=n.ch,u=s,c=o<0?0:i.length,f=0;u!=c;u+=o,f++){var d=i.charAt(o<0?u-1:u),p="_"!=d&&e.isWordChar(d)?"w":"o";if("w"==p&&d.toUpperCase()==d&&(p="W"),"start"==l)"o"!=p?(l="in",a=p):s=u+o;else if("in"==l&&a!=p){if("w"==a&&"W"==p&&o<0&&u--,"W"==a&&"w"==p&&o>0){if(u==s+1){a="w";continue}u--}break}}return r(n.line,u)}function o(e,t){e.extendSelectionsBy((function(r){return e.display.shift||e.doc.extend||r.empty()?n(e.doc,r.head,t):t<0?r.from():r.to()}))}function i(t,n){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,o=[],i=-1,a=0;a<e;a++){var l=t.listSelections()[a].head;if(!(l.line<=i)){var s=r(l.line+(n?0:1),0);t.replaceRange("\n",s,null,"+insertLine"),t.indentLine(s.line,null,!0),o.push({head:s,anchor:s}),i=l.line+1}}t.setSelections(o)})),t.execCommand("indentAuto")}function a(t,n){for(var o=n.ch,i=o,a=t.getLine(n.line);o&&e.isWordChar(a.charAt(o-1));)--o;for(;i<a.length&&e.isWordChar(a.charAt(i));)++i;return{from:r(n.line,o),to:r(n.line,i),word:a.slice(o,i)}}function l(e,t){for(var r=e.listSelections(),n=[],o=0;o<r.length;o++){var i=r[o],a=e.findPosV(i.anchor,t,"line",i.anchor.goalColumn),l=e.findPosV(i.head,t,"line",i.head.goalColumn);a.goalColumn=null!=i.anchor.goalColumn?i.anchor.goalColumn:e.cursorCoords(i.anchor,"div").left,l.goalColumn=null!=i.head.goalColumn?i.head.goalColumn:e.cursorCoords(i.head,"div").left;var s={anchor:a,head:l};n.push(i),n.push(s)}e.setSelections(n)}function s(t,r,n){for(var o=0;o<t.length;o++)if(0==e.cmpPos(t[o].from(),r)&&0==e.cmpPos(t[o].to(),n))return!0;return!1}t.goSubwordLeft=function(e){o(e,-1)},t.goSubwordRight=function(e){o(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var r=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=r&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var r=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=r&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),n=[],o=0;o<t.length;o++)for(var i=t[o].from(),a=t[o].to(),l=i.line;l<=a.line;++l)a.line>i.line&&l==a.line&&0==a.ch||n.push({anchor:l==i.line?i:r(l,0),head:l==a.line?a:r(l)});e.setSelections(n,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),n=[],o=0;o<t.length;o++){var i=t[o];n.push({anchor:r(i.from().line,0),head:r(i.to().line+1,0)})}e.setSelections(n)},t.insertLineAfter=function(e){return i(e,!1)},t.insertLineBefore=function(e){return i(e,!0)},t.selectNextOccurrence=function(t){var n=t.getCursor("from"),o=t.getCursor("to"),i=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(n,o)){var l=a(t,n);if(!l.word)return;t.setSelection(l.from,l.to),i=!0}else{var u=t.getRange(n,o),c=i?new RegExp("\\b"+u+"\\b"):u,f=t.getSearchCursor(c,o),d=f.findNext();if(d||(d=(f=t.getSearchCursor(c,r(t.firstLine(),0))).findNext()),!d||s(t.listSelections(),f.from(),f.to()))return;t.addSelection(f.from(),f.to())}i&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(r){var n=r.getCursor("anchor"),o=r.getCursor("head");t.selectNextOccurrence(r),0!=e.cmpPos(n,o)&&r.doc.setSelections(r.doc.listSelections().filter((function(e){return e.anchor!=n||e.head!=o})))},t.addCursorToPrevLine=function(e){l(e,-1)},t.addCursorToNextLine=function(e){l(e,1)};var u="(){}[]";function c(t){for(var n=t.listSelections(),o=[],i=0;i<n.length;i++){var a=n[i],l=a.head,s=t.scanForBracket(l,-1);if(!s)return!1;for(;;){var c=t.scanForBracket(l,1);if(!c)return!1;if(c.ch==u.charAt(u.indexOf(s.ch)+1)){var f=r(s.pos.line,s.pos.ch+1);if(0!=e.cmpPos(f,a.from())||0!=e.cmpPos(c.pos,a.to())){o.push({anchor:f,head:c.pos});break}if(!(s=t.scanForBracket(s.pos,-1)))return!1}l=r(c.pos.line,c.pos.ch+1)}}return t.setSelections(o),!0}function f(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function d(t,n,o){if(t.isReadOnly())return e.Pass;for(var i,a=t.listSelections(),l=[],s=0;s<a.length;s++){var u=a[s];if(!u.empty()){for(var c=u.from().line,f=u.to().line;s<a.length-1&&a[s+1].from().line==f;)f=a[++s].to().line;a[s].to().ch||f--,l.push(c,f)}}l.length?i=!0:l.push(t.firstLine(),t.lastLine()),t.operation((function(){for(var e=[],a=0;a<l.length;a+=2){var s=l[a],u=l[a+1],c=r(s,0),f=r(u),d=t.getRange(c,f,!1);n?d.sort((function(e,t){return e<t?-o:e==t?0:o})):d.sort((function(e,t){var r=e.toUpperCase(),n=t.toUpperCase();return r!=n&&(e=r,t=n),e<t?-o:e==t?0:o})),t.replaceRange(d,c,f),i&&e.push({anchor:c,head:r(u+1,0)})}i&&t.setSelections(e,0)}))}function p(t,r){t.operation((function(){for(var n=t.listSelections(),o=[],i=[],l=0;l<n.length;l++)(u=n[l]).empty()?(o.push(l),i.push("")):i.push(r(t.getRange(u.from(),u.to())));var s;for(t.replaceSelections(i,"around","case"),l=o.length-1;l>=0;l--){var u=n[o[l]];if(!(s&&e.cmpPos(u.head,s)>0)){var c=a(t,u.head);s=c.from,t.replaceRange(r(c.word),c.from,c.to)}}}))}function h(t){var r=t.getCursor("from"),n=t.getCursor("to");if(0==e.cmpPos(r,n)){var o=a(t,r);if(!o.word)return;r=o.from,n=o.to}return{from:r,to:n,query:t.getRange(r,n),word:o}}function m(e,t){var n=h(e);if(n){var o=n.query,i=e.getSearchCursor(o,t?n.to:n.from);(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):(i=e.getSearchCursor(o,t?r(e.firstLine(),0):e.clipPos(r(e.lastLine()))),(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):n.word&&e.setSelection(n.from,n.to))}}t.selectScope=function(e){c(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!c(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(n){var o=t.scanForBracket(n.head,1,f(t.getTokenTypeAt(n.head)));if(o&&0!=e.cmpPos(o.pos,n.head))return o.pos;var i=t.scanForBracket(n.head,-1,f(t.getTokenTypeAt(r(n.head.line,n.head.ch+1))));return i&&r(i.pos.line,i.pos.ch+1)||n.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var n=t.listSelections(),o=[],i=t.firstLine()-1,a=[],l=0;l<n.length;l++){var s=n[l],u=s.from().line-1,c=s.to().line;a.push({anchor:r(s.anchor.line-1,s.anchor.ch),head:r(s.head.line-1,s.head.ch)}),0!=s.to().ch||s.empty()||--c,u>i?o.push(u,c):o.length&&(o[o.length-1]=c),i=c}t.operation((function(){for(var e=0;e<o.length;e+=2){var n=o[e],i=o[e+1],l=t.getLine(n);t.replaceRange("",r(n,0),r(n+1,0),"+swapLine"),i>t.lastLine()?t.replaceRange("\n"+l,r(t.lastLine()),null,"+swapLine"):t.replaceRange(l+"\n",r(i,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var n=t.listSelections(),o=[],i=t.lastLine()+1,a=n.length-1;a>=0;a--){var l=n[a],s=l.to().line+1,u=l.from().line;0!=l.to().ch||l.empty()||s--,s<i?o.push(s,u):o.length&&(o[o.length-1]=u),i=u}t.operation((function(){for(var e=o.length-2;e>=0;e-=2){var n=o[e],i=o[e+1],a=t.getLine(n);n==t.lastLine()?t.replaceRange("",r(n-1),r(n),"+swapLine"):t.replaceRange("",r(n,0),r(n+1,0),"+swapLine"),t.replaceRange(a+"\n",r(i,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),n=[],o=0;o<t.length;o++){for(var i=t[o],a=i.from(),l=a.line,s=i.to().line;o<t.length-1&&t[o+1].from().line==s;)s=t[++o].to().line;n.push({start:l,end:s,anchor:!i.empty()&&a})}e.operation((function(){for(var t=0,o=[],i=0;i<n.length;i++){for(var a,l=n[i],s=l.anchor&&r(l.anchor.line-t,l.anchor.ch),u=l.start;u<=l.end;u++){var c=u-t;u==l.end&&(a=r(c,e.getLine(c).length+1)),c<e.lastLine()&&(e.replaceRange(" ",r(c),r(c+1,/^\s*/.exec(e.getLine(c+1))[0].length)),++t)}o.push({anchor:s||a,head:a})}e.setSelections(o,0)}))},t.duplicateLine=function(e){e.operation((function(){for(var t=e.listSelections().length,n=0;n<t;n++){var o=e.listSelections()[n];o.empty()?e.replaceRange(e.getLine(o.head.line)+"\n",r(o.head.line,0)):e.replaceRange(e.getRange(o.from(),o.to()),o.from())}e.scrollIntoView()}))},t.sortLines=function(e){d(e,!0,1)},t.reverseSortLines=function(e){d(e,!0,-1)},t.sortLinesInsensitive=function(e){d(e,!1,1)},t.reverseSortLinesInsensitive=function(e){d(e,!1,-1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var r=t.shift(),n=r.find();if(n)return t.push(r),e.setSelection(n.from,n.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var r=t[t.length-1].find();if(r)return e.setSelection(r.from,r.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),r=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),n=0;n<t.length;n++){for(var o=t[n].from(),i=t[n].to(),a=t[n].empty()?e.findMarksAt(o):e.findMarks(o,i),l=0;l<a.length;l++)if(a[l].sublimeBookmark){a[l].clear();for(var s=0;s<r.length;s++)r[s]==a[l]&&r.splice(s--,1);break}l==a.length&&r.push(e.markText(o,i,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var r=0;r<t.length;r++)t[r].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,r=[];if(t)for(var n=0;n<t.length;n++){var o=t[n].find();o?r.push({anchor:o.from,head:o.to}):t.splice(n--,0)}r.length&&e.setSelections(r,0)},t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation((function(){for(var n=t.listSelections(),o=t.getOption("indentUnit"),i=n.length-1;i>=0;i--){var a=n[i].head,l=t.getRange({line:a.line,ch:0},a),s=e.countColumn(l,null,t.getOption("tabSize")),u=t.findPosH(a,-1,"char",!1);if(l&&!/\S/.test(l)&&s%o==0){var c=new r(a.line,e.findColumn(l,s-o,o));c.ch!=a.ch&&(u=c)}t.replaceRange("",u,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange("",t[n].anchor,r(t[n].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){p(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){p(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var r=t.state.sublimeMark&&t.state.sublimeMark.find();if(r){var n=t.getCursor(),o=r;if(e.cmpPos(n,o)>0){var i=o;o=n,n=i}t.state.sublimeKilled=t.getRange(n,o),t.replaceRange("",n,o)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){m(e,!0)},t.findUnderPrevious=function(e){m(e,!1)},t.findAllUnder=function(e){var t=h(e);if(t){for(var r=e.getSearchCursor(t.query),n=[],o=-1;r.findNext();)n.push({anchor:r.from(),head:r.to()}),r.from().line<=t.from.line&&r.from().ch<=t.from.ch&&o++;e.setSelections(n,o)}};var v=e.keyMap;v.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(v.macSublime),v.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(v.pcSublime);var g=v.default==v.macDefault;v.sublime=g?v.macSublime:v.pcSublime}(r(3458),r(1863),r(9805))},3458:function(e){e.exports=function(){"use strict";var e=window.top.document,t=navigator.userAgent,r=navigator.platform,n=/gecko\/\d/i.test(t),o=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),a=/Edge\/(\d+)/.exec(t),l=o||i||a,s=l&&(o?e.documentMode||6:+(a||i)[1]),u=!a&&/WebKit\//.test(t),c=u&&/Qt\/\d+\.\d+/.test(t),f=!a&&/Chrome\/(\d+)/.exec(t),d=f&&+f[1],p=/Opera\//.test(t),h=/Apple Computer/.test(navigator.vendor),m=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),v=/PhantomJS/.test(t),g=h&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),y=/Android/.test(t),b=g||y||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),w=g||/Mac/.test(r),_=/\bCrOS\b/.test(t),x=/win/i.test(r),k=p&&t.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(p=!1,u=!0);var S=w&&(c||p&&(null==k||k<12.11)),O=n||l&&s>=9;function E(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C,T=function(e,t){var r=e.className,n=E(t).exec(r);if(n){var o=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(o?n[1]+o:"")}};function L(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function M(e,t){return L(e).appendChild(t)}function A(t,r,n,o){var i=e.createElement(t);if(n&&(i.className=n),o&&(i.style.cssText=o),"string"==typeof r)i.appendChild(e.createTextNode(r));else if(r)for(var a=0;a<r.length;++a)i.appendChild(r[a]);return i}function j(e,t,r,n){var o=A(e,t,r,n);return o.setAttribute("role","presentation"),o}function P(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function I(){var t;try{t=e.activeElement}catch(r){t=e.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function R(e,t){var r=e.className;E(t).test(r)||(e.className+=(r?" ":"")+t)}function N(e,t){for(var r=e.split(" "),n=0;n<r.length;n++)r[n]&&!E(r[n]).test(t)&&(t+=" "+r[n]);return t}C=e.createRange?function(t,r,n,o){var i=e.createRange();return i.setEnd(o||t,n),i.setStart(t,r),i}:function(t,r,n){var o=e.body.createTextRange();try{o.moveToElementText(t.parentNode)}catch(e){return o}return o.collapse(!0),o.moveEnd("character",n),o.moveStart("character",r),o};var D=function(e){e.select()};function z(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function F(e,t,r){for(var n in t||(t={}),e)!e.hasOwnProperty(n)||!1===r&&t.hasOwnProperty(n)||(t[n]=e[n]);return t}function H(e,t,r,n,o){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var i=n||0,a=o||0;;){var l=e.indexOf("\t",i);if(l<0||l>=t)return a+(t-i);a+=l-i,a+=r-a%r,i=l+1}}g?D=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:l&&(D=function(e){try{e.select()}catch(e){}});var B=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};function W(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}B.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},B.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=r)};var U=50,V={toString:function(){return"CodeMirror.Pass"}},q={scroll:!1},$={origin:"*mouse"},G={origin:"+move"};function K(e,t,r){for(var n=0,o=0;;){var i=e.indexOf("\t",n);-1==i&&(i=e.length);var a=i-n;if(i==e.length||o+a>=t)return n+Math.min(a,t-o);if(o+=i-n,n=i+1,(o+=r-o%r)>=t)return n}}var Y=[""];function Q(e){for(;Y.length<=e;)Y.push(Z(Y)+" ");return Y[e]}function Z(e){return e[e.length-1]}function X(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function J(e,t,r){for(var n=0,o=r(t);n<e.length&&r(e[n])<=o;)n++;e.splice(n,0,t)}function ee(){}function te(e,t){var r;return Object.create?r=Object.create(e):(ee.prototype=e,r=new ee),t&&F(t,r),r}var re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ne(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||re.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ne(e))||t.test(e):ne(e)}function ie(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ae=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function le(e){return e.charCodeAt(0)>=768&&ae.test(e)}function se(e,t,r){for(;(r<0?t>0:t<e.length)&&le(e.charAt(t));)t+=r;return t}function ue(e,t,r){for(var n=t>r?-1:1;;){if(t==r)return t;var o=(t+r)/2,i=n<0?Math.ceil(o):Math.floor(o);if(i==t)return e(i)?t:r;e(i)?r=i:t=i+n}}function ce(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var o=!1,i=0;i<e.length;++i){var a=e[i];(a.from<r&&a.to>t||t==r&&a.to==t)&&(n(Math.max(a.from,t),Math.min(a.to,r),1==a.level?"rtl":"ltr",i),o=!0)}o||n(t,r,"ltr")}var fe=null;function de(e,t,r){var n;fe=null;for(var o=0;o<e.length;++o){var i=e[o];if(i.from<t&&i.to>t)return o;i.to==t&&(i.from!=i.to&&"before"==r?n=o:fe=o),i.from==t&&(i.from!=i.to&&"before"!=r?n=o:fe=o)}return null!=n?n:fe}var pe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(r){return r<=247?e.charAt(r):1424<=r&&r<=1524?"R":1536<=r&&r<=1785?t.charAt(r-1536):1774<=r&&r<=2220?"r":8192<=r&&r<=8203?"w":8204==r?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,i=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function s(e,t,r){this.level=e,this.from=t,this.to=r}return function(e,t){var u="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!n.test(e))return!1;for(var c=e.length,f=[],d=0;d<c;++d)f.push(r(e.charCodeAt(d)));for(var p=0,h=u;p<c;++p){var m=f[p];"m"==m?f[p]=h:h=m}for(var v=0,g=u;v<c;++v){var y=f[v];"1"==y&&"r"==g?f[v]="n":i.test(y)&&(g=y,"r"==y&&(f[v]="R"))}for(var b=1,w=f[0];b<c-1;++b){var _=f[b];"+"==_&&"1"==w&&"1"==f[b+1]?f[b]="1":","!=_||w!=f[b+1]||"1"!=w&&"n"!=w||(f[b]=w),w=_}for(var x=0;x<c;++x){var k=f[x];if(","==k)f[x]="N";else if("%"==k){var S=void 0;for(S=x+1;S<c&&"%"==f[S];++S);for(var O=x&&"!"==f[x-1]||S<c&&"1"==f[S]?"1":"N",E=x;E<S;++E)f[E]=O;x=S-1}}for(var C=0,T=u;C<c;++C){var L=f[C];"L"==T&&"1"==L?f[C]="L":i.test(L)&&(T=L)}for(var M=0;M<c;++M)if(o.test(f[M])){var A=void 0;for(A=M+1;A<c&&o.test(f[A]);++A);for(var j="L"==(M?f[M-1]:u),P=j==("L"==(A<c?f[A]:u))?j?"L":"R":u,I=M;I<A;++I)f[I]=P;M=A-1}for(var R,N=[],D=0;D<c;)if(a.test(f[D])){var z=D;for(++D;D<c&&a.test(f[D]);++D);N.push(new s(0,z,D))}else{var F=D,H=N.length,B="rtl"==t?1:0;for(++D;D<c&&"L"!=f[D];++D);for(var W=F;W<D;)if(l.test(f[W])){F<W&&(N.splice(H,0,new s(1,F,W)),H+=B);var U=W;for(++W;W<D&&l.test(f[W]);++W);N.splice(H,0,new s(2,U,W)),H+=B,F=W}else++W;F<D&&N.splice(H,0,new s(1,F,D))}return"ltr"==t&&(1==N[0].level&&(R=e.match(/^\s+/))&&(N[0].from=R[0].length,N.unshift(new s(0,0,R[0].length))),1==Z(N).level&&(R=e.match(/\s+$/))&&(Z(N).to-=R[0].length,N.push(new s(0,c-R[0].length,c)))),"rtl"==t?N.reverse():N}}();function he(e,t){var r=e.order;return null==r&&(r=e.order=pe(e.text,t)),r}var me=[],ve=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||me).concat(r)}};function ge(e,t){return e._handlers&&e._handlers[t]||me}function ye(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var n=e._handlers,o=n&&n[t];if(o){var i=W(o,r);i>-1&&(n[t]=o.slice(0,i).concat(o.slice(i+1)))}}}function be(e,t){var r=ge(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),o=0;o<r.length;++o)r[o].apply(null,n)}function we(e,t,r){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),be(e,r||t.type,e,t),Ee(t)||t.codemirrorIgnore}function _e(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)-1==W(r,t[n])&&r.push(t[n])}function xe(e,t){return ge(e,t).length>0}function ke(e){e.prototype.on=function(e,t){ve(this,e,t)},e.prototype.off=function(e,t){ye(this,e,t)}}function Se(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Oe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ee(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ce(e){Se(e),Oe(e)}function Te(e){return e.target||e.srcElement}function Le(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),w&&e.ctrlKey&&1==t&&(t=3),t}var Me,Ae,je=function(){if(l&&s<9)return!1;var e=A("div");return"draggable"in e||"dragDrop"in e}();function Pe(t){if(null==Me){var r=A("span","\u200b");M(t,A("span",[r,e.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(Me=r.offsetWidth<=1&&r.offsetHeight>2&&!(l&&s<8))}var n=Me?A("span","\u200b"):A("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ie(t){if(null!=Ae)return Ae;var r=M(t,e.createTextNode("A\u062eA")),n=C(r,0,1).getBoundingClientRect(),o=C(r,1,2).getBoundingClientRect();return L(t),!(!n||n.left==n.right)&&(Ae=o.right-n.right<3)}var Re,Ne=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],n=e.length;t<=n;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var i=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),a=i.indexOf("\r");-1!=a?(r.push(i.slice(0,a)),t+=a+1):(r.push(i),t=o+1)}return r}:function(e){return e.split(/\r\n?|\n/)},De=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},ze="oncopy"in(Re=A("div"))||(Re.setAttribute("oncopy","return;"),"function"==typeof Re.oncopy),Fe=null;function He(e){if(null!=Fe)return Fe;var t=M(e,A("span","x")),r=t.getBoundingClientRect(),n=C(t,0,1).getBoundingClientRect();return Fe=Math.abs(r.left-n.left)>1}var Be={},We={};function Ue(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Be[e]=t}function Ve(e,t){We[e]=t}function qe(e){if("string"==typeof e&&We.hasOwnProperty(e))e=We[e];else if(e&&"string"==typeof e.name&&We.hasOwnProperty(e.name)){var t=We[e.name];"string"==typeof t&&(t={name:t}),(e=te(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return qe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return qe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function $e(e,t){t=qe(t);var r=Be[t.name];if(!r)return $e(e,"text/plain");var n=r(e,t);if(Ge.hasOwnProperty(t.name)){var o=Ge[t.name];for(var i in o)o.hasOwnProperty(i)&&(n.hasOwnProperty(i)&&(n["_"+i]=n[i]),n[i]=o[i])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)n[a]=t.modeProps[a];return n}var Ge={};function Ke(e,t){F(t,Ge.hasOwnProperty(e)?Ge[e]:Ge[e]={})}function Ye(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var o=t[n];o instanceof Array&&(o=o.concat([])),r[n]=o}return r}function Qe(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Ze(e,t,r){return!e.startState||e.startState(t,r)}var Xe=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};function Je(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var o=r.children[n],i=o.chunkSize();if(t<i){r=o;break}t-=i}return r.lines[t]}function et(e,t,r){var n=[],o=t.line;return e.iter(t.line,r.line+1,(function(e){var i=e.text;o==r.line&&(i=i.slice(0,r.ch)),o==t.line&&(i=i.slice(t.ch)),n.push(i),++o})),n}function tt(e,t,r){var n=[];return e.iter(t,r,(function(e){n.push(e.text)})),n}function rt(e,t){var r=t-e.height;if(r)for(var n=e;n;n=n.parent)n.height+=r}function nt(e){if(null==e.parent)return null;for(var t=e.parent,r=W(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var o=0;n.children[o]!=t;++o)r+=n.children[o].chunkSize();return r+t.first}function ot(e,t){var r=e.first;e:do{for(var n=0;n<e.children.length;++n){var o=e.children[n],i=o.height;if(t<i){e=o;continue e}t-=i,r+=o.chunkSize()}return r}while(!e.lines);for(var a=0;a<e.lines.length;++a){var l=e.lines[a].height;if(t<l)break;t-=l}return r+a}function it(e,t){return t>=e.first&&t<e.first+e.size}function at(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function lt(e,t,r){if(void 0===r&&(r=null),!(this instanceof lt))return new lt(e,t,r);this.line=e,this.ch=t,this.sticky=r}function st(e,t){return e.line-t.line||e.ch-t.ch}function ut(e,t){return e.sticky==t.sticky&&0==st(e,t)}function ct(e){return lt(e.line,e.ch)}function ft(e,t){return st(e,t)<0?t:e}function dt(e,t){return st(e,t)<0?e:t}function pt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ht(e,t){if(t.line<e.first)return lt(e.first,0);var r=e.first+e.size-1;return t.line>r?lt(r,Je(e,r).text.length):mt(t,Je(e,t.line).text.length)}function mt(e,t){var r=e.ch;return null==r||r>t?lt(e.line,t):r<0?lt(e.line,0):e}function vt(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=ht(e,t[n]);return r}Xe.prototype.eol=function(){return this.pos>=this.string.length},Xe.prototype.sol=function(){return this.pos==this.lineStart},Xe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Xe.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Xe.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Xe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Xe.prototype.skipToEnd=function(){this.pos=this.string.length},Xe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Xe.prototype.backUp=function(e){this.pos-=e},Xe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=H(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?H(this.string,this.lineStart,this.tabSize):0)},Xe.prototype.indentation=function(){return H(this.string,null,this.tabSize)-(this.lineStart?H(this.string,this.lineStart,this.tabSize):0)},Xe.prototype.match=function(e,t,r){if("string"!=typeof e){var n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var o=function(e){return r?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},Xe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Xe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Xe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var gt=function(e,t){this.state=e,this.lookAhead=t},yt=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};function bt(e,t,r,n){var o=[e.state.modeGen],i={};Tt(e,t.text,e.doc.mode,r,(function(e,t){return o.push(e,t)}),i,n);for(var a=r.state,l=function(n){r.baseTokens=o;var l=e.state.overlays[n],s=1,u=0;r.state=!0,Tt(e,t.text,l.mode,r,(function(e,t){for(var r=s;u<e;){var n=o[s];n>e&&o.splice(s,1,e,o[s+1],n),s+=2,u=Math.min(e,n)}if(t)if(l.opaque)o.splice(r,s-r,e,"overlay "+t),s=r+2;else for(;r<s;r+=2){var i=o[r+1];o[r+1]=(i?i+" ":"")+"overlay "+t}}),i),r.state=a,r.baseTokens=null,r.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)l(s);return{styles:o,classes:i.bgClass||i.textClass?i:null}}function wt(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=_t(e,nt(t)),o=t.text.length>e.options.maxHighlightLength&&Ye(e.doc.mode,n.state),i=bt(e,t,n);o&&(n.state=o),t.stateAfter=n.save(!o),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function _t(e,t,r){var n=e.doc,o=e.display;if(!n.mode.startState)return new yt(n,!0,t);var i=Lt(e,t,r),a=i>n.first&&Je(n,i-1).stateAfter,l=a?yt.fromSaved(n,a,i):new yt(n,Ze(n.mode),i);return n.iter(i,t,(function(r){xt(e,r.text,l);var n=l.line;r.stateAfter=n==t-1||n%5==0||n>=o.viewFrom&&n<o.viewTo?l.save():null,l.nextLine()})),r&&(n.modeFrontier=l.line),l}function xt(e,t,r,n){var o=e.doc.mode,i=new Xe(t,e.options.tabSize,r);for(i.start=i.pos=n||0,""==t&&kt(o,r.state);!i.eol();)St(o,i,r.state),i.start=i.pos}function kt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var r=Qe(e,t);return r.mode.blankLine?r.mode.blankLine(r.state):void 0}}function St(e,t,r,n){for(var o=0;o<10;o++){n&&(n[0]=Qe(e,r).mode);var i=e.token(t,r);if(t.pos>t.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}yt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},yt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},yt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yt.fromSaved=function(e,t,r){return t instanceof gt?new yt(e,Ye(e.mode,t.state),r,t.lookAhead):new yt(e,Ye(e.mode,t),r)},yt.prototype.save=function(e){var t=!1!==e?Ye(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gt(t,this.maxLookAhead):t};var Ot=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function Et(e,t,r,n){var o,i,a=e.doc,l=a.mode,s=Je(a,(t=ht(a,t)).line),u=_t(e,t.line,r),c=new Xe(s.text,e.options.tabSize,u);for(n&&(i=[]);(n||c.pos<t.ch)&&!c.eol();)c.start=c.pos,o=St(l,c,u.state),n&&i.push(new Ot(c,o,Ye(a.mode,u.state)));return n?i:new Ot(c,o,u.state)}function Ct(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;e=e.slice(0,r.index)+e.slice(r.index+r[0].length);var n=r[1]?"bgClass":"textClass";null==t[n]?t[n]=r[2]:new RegExp("(?:^|\\s)"+r[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+r[2])}return e}function Tt(e,t,r,n,o,i,a){var l=r.flattenSpans;null==l&&(l=e.options.flattenSpans);var s,u=0,c=null,f=new Xe(t,e.options.tabSize,n),d=e.options.addModeClass&&[null];for(""==t&&Ct(kt(r,n.state),i);!f.eol();){if(f.pos>e.options.maxHighlightLength?(l=!1,a&&xt(e,t,n,f.pos),f.pos=t.length,s=null):s=Ct(St(r,f,n.state,d),i),d){var p=d[0].name;p&&(s="m-"+(s?p+" "+s:p))}if(!l||c!=s){for(;u<f.start;)o(u=Math.min(f.start,u+5e3),c);c=s}f.start=f.pos}for(;u<f.pos;){var h=Math.min(f.pos,u+5e3);o(h,c),u=h}}function Lt(e,t,r){for(var n,o,i=e.doc,a=r?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>a;--l){if(l<=i.first)return i.first;var s=Je(i,l-1),u=s.stateAfter;if(u&&(!r||l+(u instanceof gt?u.lookAhead:0)<=i.modeFrontier))return l;var c=H(s.text,null,e.options.tabSize);(null==o||n>c)&&(o=l-1,n=c)}return o}function Mt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var r=e.first,n=t-1;n>r;n--){var o=Je(e,n).stateAfter;if(o&&(!(o instanceof gt)||n+o.lookAhead<t)){r=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,r)}}var At=!1,jt=!1;function Pt(){At=!0}function It(){jt=!0}function Rt(e,t,r){this.marker=e,this.from=t,this.to=r}function Nt(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker==t)return n}}function Dt(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(e[n]);return r}function zt(e,t,r){var n=r&&window.WeakSet&&(r.markedSpans||(r.markedSpans=new WeakSet));n&&e.markedSpans&&n.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],n&&n.add(e.markedSpans)),t.marker.attachLine(e)}function Ft(e,t,r){var n;if(e)for(var o=0;o<e.length;++o){var i=e[o],a=i.marker;if(null==i.from||(a.inclusiveLeft?i.from<=t:i.from<t)||i.from==t&&"bookmark"==a.type&&(!r||!i.marker.insertLeft)){var l=null==i.to||(a.inclusiveRight?i.to>=t:i.to>t);(n||(n=[])).push(new Rt(a,i.from,l?null:i.to))}}return n}function Ht(e,t,r){var n;if(e)for(var o=0;o<e.length;++o){var i=e[o],a=i.marker;if(null==i.to||(a.inclusiveRight?i.to>=t:i.to>t)||i.from==t&&"bookmark"==a.type&&(!r||i.marker.insertLeft)){var l=null==i.from||(a.inclusiveLeft?i.from<=t:i.from<t);(n||(n=[])).push(new Rt(a,l?null:i.from-t,null==i.to?null:i.to-t))}}return n}function Bt(e,t){if(t.full)return null;var r=it(e,t.from.line)&&Je(e,t.from.line).markedSpans,n=it(e,t.to.line)&&Je(e,t.to.line).markedSpans;if(!r&&!n)return null;var o=t.from.ch,i=t.to.ch,a=0==st(t.from,t.to),l=Ft(r,o,a),s=Ht(n,i,a),u=1==t.text.length,c=Z(t.text).length+(u?o:0);if(l)for(var f=0;f<l.length;++f){var d=l[f];if(null==d.to){var p=Nt(s,d.marker);p?u&&(d.to=null==p.to?null:p.to+c):d.to=o}}if(s)for(var h=0;h<s.length;++h){var m=s[h];null!=m.to&&(m.to+=c),null==m.from?Nt(l,m.marker)||(m.from=c,u&&(l||(l=[])).push(m)):(m.from+=c,u&&(l||(l=[])).push(m))}l&&(l=Wt(l)),s&&s!=l&&(s=Wt(s));var v=[l];if(!u){var g,y=t.text.length-2;if(y>0&&l)for(var b=0;b<l.length;++b)null==l[b].to&&(g||(g=[])).push(new Rt(l[b].marker,null,null));for(var w=0;w<y;++w)v.push(g);v.push(s)}return v}function Wt(e){for(var t=0;t<e.length;++t){var r=e[t];null!=r.from&&r.from==r.to&&!1!==r.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Ut(e,t,r){var n=null;if(e.iter(t.line,r.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var r=e.markedSpans[t].marker;!r.readOnly||n&&-1!=W(n,r)||(n||(n=[])).push(r)}})),!n)return null;for(var o=[{from:t,to:r}],i=0;i<n.length;++i)for(var a=n[i],l=a.find(0),s=0;s<o.length;++s){var u=o[s];if(!(st(u.to,l.from)<0||st(u.from,l.to)>0)){var c=[s,1],f=st(u.from,l.from),d=st(u.to,l.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:u.from,to:l.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:l.to,to:u.to}),o.splice.apply(o,c),s+=c.length-3}}return o}function Vt(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function qt(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function $t(e){return e.inclusiveLeft?-1:0}function Gt(e){return e.inclusiveRight?1:0}function Kt(e,t){var r=e.lines.length-t.lines.length;if(0!=r)return r;var n=e.find(),o=t.find(),i=st(n.from,o.from)||$t(e)-$t(t);if(i)return-i;var a=st(n.to,o.to)||Gt(e)-Gt(t);return a||t.id-e.id}function Yt(e,t){var r,n=jt&&e.markedSpans;if(n)for(var o=void 0,i=0;i<n.length;++i)(o=n[i]).marker.collapsed&&null==(t?o.from:o.to)&&(!r||Kt(r,o.marker)<0)&&(r=o.marker);return r}function Qt(e){return Yt(e,!0)}function Zt(e){return Yt(e,!1)}function Xt(e,t){var r,n=jt&&e.markedSpans;if(n)for(var o=0;o<n.length;++o){var i=n[o];i.marker.collapsed&&(null==i.from||i.from<t)&&(null==i.to||i.to>t)&&(!r||Kt(r,i.marker)<0)&&(r=i.marker)}return r}function Jt(e,t,r,n,o){var i=Je(e,t),a=jt&&i.markedSpans;if(a)for(var l=0;l<a.length;++l){var s=a[l];if(s.marker.collapsed){var u=s.marker.find(0),c=st(u.from,r)||$t(s.marker)-$t(o),f=st(u.to,n)||Gt(s.marker)-Gt(o);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(s.marker.inclusiveRight&&o.inclusiveLeft?st(u.to,r)>=0:st(u.to,r)>0)||c>=0&&(s.marker.inclusiveRight&&o.inclusiveLeft?st(u.from,n)<=0:st(u.from,n)<0)))return!0}}}function er(e){for(var t;t=Qt(e);)e=t.find(-1,!0).line;return e}function tr(e){for(var t;t=Zt(e);)e=t.find(1,!0).line;return e}function rr(e){for(var t,r;t=Zt(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function nr(e,t){var r=Je(e,t),n=er(r);return r==n?t:nt(n)}function or(e,t){if(t>e.lastLine())return t;var r,n=Je(e,t);if(!ir(e,n))return t;for(;r=Zt(n);)n=r.find(1,!0).line;return nt(n)+1}function ir(e,t){var r=jt&&t.markedSpans;if(r)for(var n=void 0,o=0;o<r.length;++o)if((n=r[o]).marker.collapsed){if(null==n.from)return!0;if(!n.marker.widgetNode&&0==n.from&&n.marker.inclusiveLeft&&ar(e,t,n))return!0}}function ar(e,t,r){if(null==r.to){var n=r.marker.find(1,!0);return ar(e,n.line,Nt(n.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==t.text.length)return!0;for(var o=void 0,i=0;i<t.markedSpans.length;++i)if((o=t.markedSpans[i]).marker.collapsed&&!o.marker.widgetNode&&o.from==r.to&&(null==o.to||o.to!=r.from)&&(o.marker.inclusiveLeft||r.marker.inclusiveRight)&&ar(e,t,o))return!0}function lr(e){for(var t=0,r=(e=er(e)).parent,n=0;n<r.lines.length;++n){var o=r.lines[n];if(o==e)break;t+=o.height}for(var i=r.parent;i;i=(r=i).parent)for(var a=0;a<i.children.length;++a){var l=i.children[a];if(l==r)break;t+=l.height}return t}function sr(e){if(0==e.height)return 0;for(var t,r=e.text.length,n=e;t=Qt(n);){var o=t.find(0,!0);n=o.from.line,r+=o.from.ch-o.to.ch}for(n=e;t=Zt(n);){var i=t.find(0,!0);r-=n.text.length-i.from.ch,r+=(n=i.to.line).text.length-i.to.ch}return r}function ur(e){var t=e.display,r=e.doc;t.maxLine=Je(r,r.first),t.maxLineLength=sr(t.maxLine),t.maxLineChanged=!0,r.iter((function(e){var r=sr(e);r>t.maxLineLength&&(t.maxLineLength=r,t.maxLine=e)}))}var cr=function(e,t,r){this.text=e,qt(this,t),this.height=r?r(this):1};function fr(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Vt(e),qt(e,r);var o=n?n(e):1;o!=e.height&&rt(e,o)}function dr(e){e.parent=null,Vt(e)}cr.prototype.lineNo=function(){return nt(this)},ke(cr);var pr={},hr={};function mr(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?hr:pr;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function vr(e,t){var r=j("span",null,null,u?"padding-right: .1px":null),n={pre:j("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var i=o?t.rest[o-1]:t.line,a=void 0;n.pos=0,n.addToken=yr,Ie(e.display.measure)&&(a=he(i,e.doc.direction))&&(n.addToken=wr(n.addToken,a)),n.map=[],xr(i,n,wt(e,i,t!=e.display.externalMeasured&&nt(i))),i.styleClasses&&(i.styleClasses.bgClass&&(n.bgClass=N(i.styleClasses.bgClass,n.bgClass||"")),i.styleClasses.textClass&&(n.textClass=N(i.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(Pe(e.display.measure))),0==o?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(u){var l=n.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return be(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=N(n.pre.className,n.textClass||"")),n}function gr(e){var t=A("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function yr(t,r,n,o,i,a,u){if(r){var c,f=t.splitSpaces?br(r,t.trailingSpace):r,d=t.cm.state.specialChars,p=!1;if(d.test(r)){c=e.createDocumentFragment();for(var h=0;;){d.lastIndex=h;var m=d.exec(r),v=m?m.index-h:r.length-h;if(v){var g=e.createTextNode(f.slice(h,h+v));l&&s<9?c.appendChild(A("span",[g])):c.appendChild(g),t.map.push(t.pos,t.pos+v,g),t.col+=v,t.pos+=v}if(!m)break;h+=v+1;var y=void 0;if("\t"==m[0]){var b=t.cm.options.tabSize,w=b-t.col%b;(y=c.appendChild(A("span",Q(w),"cm-tab"))).setAttribute("role","presentation"),y.setAttribute("cm-text","\t"),t.col+=w}else"\r"==m[0]||"\n"==m[0]?((y=c.appendChild(A("span","\r"==m[0]?"\u240d":"\u2424","cm-invalidchar"))).setAttribute("cm-text",m[0]),t.col+=1):((y=t.cm.options.specialCharPlaceholder(m[0])).setAttribute("cm-text",m[0]),l&&s<9?c.appendChild(A("span",[y])):c.appendChild(y),t.col+=1);t.map.push(t.pos,t.pos+1,y),t.pos++}}else t.col+=r.length,c=e.createTextNode(f),t.map.push(t.pos,t.pos+r.length,c),l&&s<9&&(p=!0),t.pos+=r.length;if(t.trailingSpace=32==f.charCodeAt(r.length-1),n||o||i||p||a||u){var _=n||"";o&&(_+=o),i&&(_+=i);var x=A("span",[c],_,a);if(u)for(var k in u)u.hasOwnProperty(k)&&"style"!=k&&"class"!=k&&x.setAttribute(k,u[k]);return t.content.appendChild(x)}t.content.appendChild(c)}}function br(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",o=0;o<e.length;o++){var i=e.charAt(o);" "!=i||!r||o!=e.length-1&&32!=e.charCodeAt(o+1)||(i="\xa0"),n+=i,r=" "==i}return n}function wr(e,t){return function(r,n,o,i,a,l,s){o=o?o+" cm-force-border":"cm-force-border";for(var u=r.pos,c=u+n.length;;){for(var f=void 0,d=0;d<t.length&&!((f=t[d]).to>u&&f.from<=u);d++);if(f.to>=c)return e(r,n,o,i,a,l,s);e(r,n.slice(0,f.to-u),o,i,null,l,s),i=null,n=n.slice(f.to-u),u=f.to}}}function _r(t,r,n,o){var i=!o&&n.widgetNode;i&&t.map.push(t.pos,t.pos+r,i),!o&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(e.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=r,t.trailingSpace=!1}function xr(e,t,r){var n=e.markedSpans,o=e.text,i=0;if(n)for(var a,l,s,u,c,f,d,p=o.length,h=0,m=1,v="",g=0;;){if(g==h){s=u=c=l="",d=null,f=null,g=1/0;for(var y=[],b=void 0,w=0;w<n.length;++w){var _=n[w],x=_.marker;if("bookmark"==x.type&&_.from==h&&x.widgetNode)y.push(x);else if(_.from<=h&&(null==_.to||_.to>h||x.collapsed&&_.to==h&&_.from==h)){if(null!=_.to&&_.to!=h&&g>_.to&&(g=_.to,u=""),x.className&&(s+=" "+x.className),x.css&&(l=(l?l+";":"")+x.css),x.startStyle&&_.from==h&&(c+=" "+x.startStyle),x.endStyle&&_.to==g&&(b||(b=[])).push(x.endStyle,_.to),x.title&&((d||(d={})).title=x.title),x.attributes)for(var k in x.attributes)(d||(d={}))[k]=x.attributes[k];x.collapsed&&(!f||Kt(f.marker,x)<0)&&(f=_)}else _.from>h&&g>_.from&&(g=_.from)}if(b)for(var S=0;S<b.length;S+=2)b[S+1]==g&&(u+=" "+b[S]);if(!f||f.from==h)for(var O=0;O<y.length;++O)_r(t,0,y[O]);if(f&&(f.from||0)==h){if(_r(t,(null==f.to?p+1:f.to)-h,f.marker,null==f.from),null==f.to)return;f.to==h&&(f=!1)}}if(h>=p)break;for(var E=Math.min(p,g);;){if(v){var C=h+v.length;if(!f){var T=C>E?v.slice(0,E-h):v;t.addToken(t,T,a?a+s:s,c,h+T.length==g?u:"",l,d)}if(C>=E){v=v.slice(E-h),h=E;break}h=C,c=""}v=o.slice(i,i=r[m++]),a=mr(r[m++],t.cm.options)}}else for(var L=1;L<r.length;L+=2)t.addToken(t,o.slice(i,i=r[L]),mr(r[L+1],t.cm.options))}function kr(e,t,r){this.line=t,this.rest=rr(t),this.size=this.rest?nt(Z(this.rest))-r+1:1,this.node=this.text=null,this.hidden=ir(e,t)}function Sr(e,t,r){for(var n,o=[],i=t;i<r;i=n){var a=new kr(e.doc,Je(e.doc,i),i);n=i+a.size,o.push(a)}return o}var Or=null;function Er(e){Or?Or.ops.push(e):e.ownsGroup=Or={ops:[e],delayedCallbacks:[]}}function Cr(e){var t=e.delayedCallbacks,r=0;do{for(;r<t.length;r++)t[r].call(null);for(var n=0;n<e.ops.length;n++){var o=e.ops[n];if(o.cursorActivityHandlers)for(;o.cursorActivityCalled<o.cursorActivityHandlers.length;)o.cursorActivityHandlers[o.cursorActivityCalled++].call(null,o.cm)}}while(r<t.length)}function Tr(e,t){var r=e.ownsGroup;if(r)try{Cr(r)}finally{Or=null,t(r)}}var Lr=null;function Mr(e,t){var r=ge(e,t);if(r.length){var n,o=Array.prototype.slice.call(arguments,2);Or?n=Or.delayedCallbacks:Lr?n=Lr:(n=Lr=[],setTimeout(Ar,0));for(var i=function(e){n.push((function(){return r[e].apply(null,o)}))},a=0;a<r.length;++a)i(a)}}function Ar(){var e=Lr;Lr=null;for(var t=0;t<e.length;++t)e[t]()}function jr(e,t,r,n){for(var o=0;o<t.changes.length;o++){var i=t.changes[o];"text"==i?Nr(e,t):"gutter"==i?zr(e,t,r,n):"class"==i?Dr(e,t):"widget"==i&&Fr(e,t,n)}t.changes=null}function Pr(e){return e.node==e.text&&(e.node=A("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),l&&s<8&&(e.node.style.zIndex=2)),e.node}function Ir(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),t.background)r?t.background.className=r:(t.background.parentNode.removeChild(t.background),t.background=null);else if(r){var n=Pr(t);t.background=n.insertBefore(A("div",null,r),n.firstChild),e.display.input.setUneditable(t.background)}}function Rr(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):vr(e,t)}function Nr(e,t){var r=t.text.className,n=Rr(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,Dr(e,t)):r&&(t.text.className=r)}function Dr(e,t){Ir(e,t),t.line.wrapClass?Pr(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var r=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=r||""}function zr(e,t,r,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=Pr(t);t.gutterBackground=A("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text)}var i=t.line.gutterMarkers;if(e.options.lineNumbers||i){var a=Pr(t),l=t.gutter=A("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(l.setAttribute("aria-hidden","true"),e.display.input.setUneditable(l),a.insertBefore(l,t.text),t.line.gutterClass&&(l.className+=" "+t.line.gutterClass),!e.options.lineNumbers||i&&i["CodeMirror-linenumbers"]||(t.lineNumber=l.appendChild(A("div",at(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),i)for(var s=0;s<e.display.gutterSpecs.length;++s){var u=e.display.gutterSpecs[s].className,c=i.hasOwnProperty(u)&&i[u];c&&l.appendChild(A("div",[c],"CodeMirror-gutter-elt","left: "+n.gutterLeft[u]+"px; width: "+n.gutterWidth[u]+"px"))}}}function Fr(e,t,r){t.alignable&&(t.alignable=null);for(var n=E("CodeMirror-linewidget"),o=t.node.firstChild,i=void 0;o;o=i)i=o.nextSibling,n.test(o.className)&&t.node.removeChild(o);Br(e,t,r)}function Hr(e,t,r,n){var o=Rr(e,t);return t.text=t.node=o.pre,o.bgClass&&(t.bgClass=o.bgClass),o.textClass&&(t.textClass=o.textClass),Dr(e,t),zr(e,t,r,n),Br(e,t,n),t.node}function Br(e,t,r){if(Wr(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.length;n++)Wr(e,t.rest[n],t,r,!1)}function Wr(e,t,r,n,o){if(t.widgets)for(var i=Pr(r),a=0,l=t.widgets;a<l.length;++a){var s=l[a],u=A("div",[s.node],"CodeMirror-linewidget"+(s.className?" "+s.className:""));s.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Ur(s,u,r,n),e.display.input.setUneditable(u),o&&s.above?i.insertBefore(u,r.gutter||r.text):i.appendChild(u),Mr(s,"redraw")}}function Ur(e,t,r,n){if(e.noHScroll){(r.alignable||(r.alignable=[])).push(t);var o=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(o-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=o+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function Vr(t){if(null!=t.height)return t.height;var r=t.doc.cm;if(!r)return 0;if(!P(e.body,t.node)){var n="position: relative;";t.coverGutter&&(n+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),t.noHScroll&&(n+="width: "+r.display.wrapper.clientWidth+"px;"),M(r.display.measure,A("div",[t.node],null,n))}return t.height=t.node.parentNode.offsetHeight}function qr(e,t){for(var r=Te(t);r!=e.wrapper;r=r.parentNode)if(!r||1==r.nodeType&&"true"==r.getAttribute("cm-ignore-events")||r.parentNode==e.sizer&&r!=e.mover)return!0}function $r(e){return e.lineSpace.offsetTop}function Gr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Kr(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=M(e.measure,A("pre","x","CodeMirror-line-like")),r=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return isNaN(n.left)||isNaN(n.right)||(e.cachedPaddingH=n),n}function Yr(e){return U-e.display.nativeBarWidth}function Qr(e){return e.display.scroller.clientWidth-Yr(e)-e.display.barWidth}function Zr(e){return e.display.scroller.clientHeight-Yr(e)-e.display.barHeight}function Xr(e,t,r){var n=e.options.lineWrapping,o=n&&Qr(e);if(!t.measure.heights||n&&t.measure.width!=o){var i=t.measure.heights=[];if(n){t.measure.width=o;for(var a=t.text.firstChild.getClientRects(),l=0;l<a.length-1;l++){var s=a[l],u=a[l+1];Math.abs(s.bottom-u.bottom)>2&&i.push((s.bottom+u.top)/2-r.top)}}i.push(r.bottom-r.top)}}function Jr(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var o=0;o<e.rest.length;o++)if(nt(e.rest[o])>r)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}}function en(e,t){var r=nt(t=er(t)),n=e.display.externalMeasured=new kr(e.doc,t,r);n.lineN=r;var o=n.built=vr(e,n);return n.text=o.pre,M(e.display.lineMeasure,o.pre),n}function tn(e,t,r,n){return on(e,nn(e,t),r,n)}function rn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[zn(e,t)];var r=e.display.externalMeasured;return r&&t>=r.lineN&&t<r.lineN+r.size?r:void 0}function nn(e,t){var r=nt(t),n=rn(e,r);n&&!n.text?n=null:n&&n.changes&&(jr(e,n,r,Pn(e)),e.curOp.forceUpdate=!0),n||(n=en(e,t));var o=Jr(n,t,r);return{line:t,view:n,rect:null,map:o.map,cache:o.cache,before:o.before,hasHeights:!1}}function on(e,t,r,n,o){t.before&&(r=-1);var i,a=r+(n||"");return t.cache.hasOwnProperty(a)?i=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Xr(e,t.view,t.rect),t.hasHeights=!0),(i=cn(e,t,r,n)).bogus||(t.cache[a]=i)),{left:i.left,right:i.right,top:o?i.rtop:i.top,bottom:o?i.rbottom:i.bottom}}var an,ln={left:0,right:0,top:0,bottom:0};function sn(e,t,r){for(var n,o,i,a,l,s,u=0;u<e.length;u+=3)if(l=e[u],s=e[u+1],t<l?(o=0,i=1,a="left"):t<s?i=1+(o=t-l):(u==e.length-3||t==s&&e[u+3]>t)&&(o=(i=s-l)-1,t>=s&&(a="right")),null!=o){if(n=e[u+2],l==s&&r==(n.insertLeft?"left":"right")&&(a=r),"left"==r&&0==o)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)n=e[2+(u-=3)],a="left";if("right"==r&&o==s-l)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)n=e[(u+=3)+2],a="right";break}return{node:n,start:o,end:i,collapse:a,coverStart:l,coverEnd:s}}function un(e,t){var r=ln;if("left"==t)for(var n=0;n<e.length&&(r=e[n]).left==r.right;n++);else for(var o=e.length-1;o>=0&&(r=e[o]).left==r.right;o--);return r}function cn(e,t,r,n){var o,i=sn(t.map,r,n),a=i.node,u=i.start,c=i.end,f=i.collapse;if(3==a.nodeType){for(var d=0;d<4;d++){for(;u&&le(t.line.text.charAt(i.coverStart+u));)--u;for(;i.coverStart+c<i.coverEnd&&le(t.line.text.charAt(i.coverStart+c));)++c;if((o=l&&s<9&&0==u&&c==i.coverEnd-i.coverStart?a.parentNode.getBoundingClientRect():un(C(a,u,c).getClientRects(),n)).left||o.right||0==u)break;c=u,u-=1,f="right"}l&&s<11&&(o=fn(e.display.measure,o))}else{var p;u>0&&(f=n="right"),o=e.options.lineWrapping&&(p=a.getClientRects()).length>1?p["right"==n?p.length-1:0]:a.getBoundingClientRect()}if(l&&s<9&&!u&&(!o||!o.left&&!o.right)){var h=a.parentNode.getClientRects()[0];o=h?{left:h.left,right:h.left+jn(e.display),top:h.top,bottom:h.bottom}:ln}for(var m=o.top-t.rect.top,v=o.bottom-t.rect.top,g=(m+v)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(g<y[b]);b++);var w=b?y[b-1]:0,_=y[b],x={left:("right"==f?o.right:o.left)-t.rect.left,right:("left"==f?o.left:o.right)-t.rect.left,top:w,bottom:_};return o.left||o.right||(x.bogus=!0),e.options.singleCursorHeightPerLine||(x.rtop=m,x.rbottom=v),x}function fn(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!He(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}function dn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function pn(e){e.display.externalMeasure=null,L(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)dn(e.display.view[t])}function hn(e){pn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function mn(){return f&&y?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):window.pageXOffset||(e.documentElement||e.body).scrollLeft}function vn(){return f&&y?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):window.pageYOffset||(e.documentElement||e.body).scrollTop}function gn(e){var t=er(e).widgets,r=0;if(t)for(var n=0;n<t.length;++n)t[n].above&&(r+=Vr(t[n]));return r}function yn(e,t,r,n,o){if(!o){var i=gn(t);r.top+=i,r.bottom+=i}if("line"==n)return r;n||(n="local");var a=lr(t);if("local"==n?a+=$r(e.display):a-=e.display.viewOffset,"page"==n||"window"==n){var l=e.display.lineSpace.getBoundingClientRect();a+=l.top+("window"==n?0:vn());var s=l.left+("window"==n?0:mn());r.left+=s,r.right+=s}return r.top+=a,r.bottom+=a,r}function bn(e,t,r){if("div"==r)return t;var n=t.left,o=t.top;if("page"==r)n-=mn(),o-=vn();else if("local"==r||!r){var i=e.display.sizer.getBoundingClientRect();n+=i.left,o+=i.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:n-a.left,top:o-a.top}}function wn(e,t,r,n,o){return n||(n=Je(e.doc,t.line)),yn(e,n,tn(e,n,t.ch,o),r)}function _n(e,t,r,n,o,i){function a(t,a){var l=on(e,o,t,a?"right":"left",i);return a?l.left=l.right:l.right=l.left,yn(e,n,l,r)}n=n||Je(e.doc,t.line),o||(o=nn(e,n));var l=he(n,e.doc.direction),s=t.ch,u=t.sticky;if(s>=n.text.length?(s=n.text.length,u="before"):s<=0&&(s=0,u="after"),!l)return a("before"==u?s-1:s,"before"==u);function c(e,t,r){return a(r?e-1:e,1==l[t].level!=r)}var f=de(l,s,u),d=fe,p=c(s,f,"before"==u);return null!=d&&(p.other=c(s,d,"before"!=u)),p}function xn(e,t){var r=0;t=ht(e.doc,t),e.options.lineWrapping||(r=jn(e.display)*t.ch);var n=Je(e.doc,t.line),o=lr(n)+$r(e.display);return{left:r,right:r,top:o,bottom:o+n.height}}function kn(e,t,r,n,o){var i=lt(e,t,r);return i.xRel=o,n&&(i.outside=n),i}function Sn(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return kn(n.first,0,null,-1,-1);var o=ot(n,r),i=n.first+n.size-1;if(o>i)return kn(n.first+n.size-1,Je(n,i).text.length,null,1,1);t<0&&(t=0);for(var a=Je(n,o);;){var l=Tn(e,a,o,t,r),s=Xt(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var u=s.find(1);if(u.line==o)return u;a=Je(n,o=u.line)}}function On(e,t,r,n){n-=gn(t);var o=t.text.length,i=ue((function(t){return on(e,r,t-1).bottom<=n}),o,0);return{begin:i,end:o=ue((function(t){return on(e,r,t).top>n}),i,o)}}function En(e,t,r,n){return r||(r=nn(e,t)),On(e,t,r,yn(e,t,on(e,r,n),"line").top)}function Cn(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function Tn(e,t,r,n,o){o-=lr(t);var i=nn(e,t),a=gn(t),l=0,s=t.text.length,u=!0,c=he(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?Mn:Ln)(e,t,r,i,c,n,o);l=(u=1!=f.level)?f.from:f.to-1,s=u?f.to:f.from-1}var d,p,h=null,m=null,v=ue((function(t){var r=on(e,i,t);return r.top+=a,r.bottom+=a,!!Cn(r,n,o,!1)&&(r.top<=o&&r.left<=n&&(h=t,m=r),!0)}),l,s),g=!1;if(m){var y=n-m.left<m.right-n,b=y==u;v=h+(b?0:1),p=b?"after":"before",d=y?m.left:m.right}else{u||v!=s&&v!=l||v++,p=0==v?"after":v==t.text.length?"before":on(e,i,v-(u?1:0)).bottom+a<=o==u?"after":"before";var w=_n(e,lt(r,v,p),"line",t,i);d=w.left,g=o<w.top?-1:o>=w.bottom?1:0}return kn(r,v=se(t.text,v,1),p,g,n-d)}function Ln(e,t,r,n,o,i,a){var l=ue((function(l){var s=o[l],u=1!=s.level;return Cn(_n(e,lt(r,u?s.to:s.from,u?"before":"after"),"line",t,n),i,a,!0)}),0,o.length-1),s=o[l];if(l>0){var u=1!=s.level,c=_n(e,lt(r,u?s.from:s.to,u?"after":"before"),"line",t,n);Cn(c,i,a,!0)&&c.top>a&&(s=o[l-1])}return s}function Mn(e,t,r,n,o,i,a){var l=On(e,t,n,a),s=l.begin,u=l.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,d=0;d<o.length;d++){var p=o[d];if(!(p.from>=u||p.to<=s)){var h=on(e,n,1!=p.level?Math.min(u,p.to)-1:Math.max(s,p.from)).right,m=h<i?i-h+1e9:h-i;(!c||f>m)&&(c=p,f=m)}}return c||(c=o[o.length-1]),c.from<s&&(c={from:s,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function An(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==an){an=A("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)an.appendChild(e.createTextNode("x")),an.appendChild(A("br"));an.appendChild(e.createTextNode("x"))}M(t.measure,an);var n=an.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),L(t.measure),n||1}function jn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=A("span","xxxxxxxxxx"),r=A("pre",[t],"CodeMirror-line-like");M(e.measure,r);var n=t.getBoundingClientRect(),o=(n.right-n.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function Pn(e){for(var t=e.display,r={},n={},o=t.gutters.clientLeft,i=t.gutters.firstChild,a=0;i;i=i.nextSibling,++a){var l=e.display.gutterSpecs[a].className;r[l]=i.offsetLeft+i.clientLeft+o,n[l]=i.clientWidth}return{fixedPos:In(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function In(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Rn(e){var t=An(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/jn(e.display)-3);return function(o){if(ir(e.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;a<o.widgets.length;a++)o.widgets[a].height&&(i+=o.widgets[a].height);return r?i+(Math.ceil(o.text.length/n)||1)*t:i+t}}function Nn(e){var t=e.doc,r=Rn(e);t.iter((function(e){var t=r(e);t!=e.height&&rt(e,t)}))}function Dn(e,t,r,n){var o=e.display;if(!r&&"true"==Te(t).getAttribute("cm-not-content"))return null;var i,a,l=o.lineSpace.getBoundingClientRect();try{i=t.clientX-l.left,a=t.clientY-l.top}catch(e){return null}var s,u=Sn(e,i,a);if(n&&u.xRel>0&&(s=Je(e.doc,u.line).text).length==u.ch){var c=H(s,s.length,e.options.tabSize)-s.length;u=lt(u.line,Math.max(0,Math.round((i-Kr(e.display).left)/jn(e.display))-c))}return u}function zn(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;n<r.length;n++)if((t-=r[n].size)<0)return n}function Fn(e,t,r,n){null==t&&(t=e.doc.first),null==r&&(r=e.doc.first+e.doc.size),n||(n=0);var o=e.display;if(n&&r<o.viewTo&&(null==o.updateLineNumbers||o.updateLineNumbers>t)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)jt&&nr(e.doc,t)<o.viewTo&&Bn(e);else if(r<=o.viewFrom)jt&&or(e.doc,r+n)>o.viewFrom?Bn(e):(o.viewFrom+=n,o.viewTo+=n);else if(t<=o.viewFrom&&r>=o.viewTo)Bn(e);else if(t<=o.viewFrom){var i=Wn(e,r,r+n,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=n):Bn(e)}else if(r>=o.viewTo){var a=Wn(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):Bn(e)}else{var l=Wn(e,t,t,-1),s=Wn(e,r,r+n,1);l&&s?(o.view=o.view.slice(0,l.index).concat(Sr(e,l.lineN,s.lineN)).concat(o.view.slice(s.index)),o.viewTo+=n):Bn(e)}var u=o.externalMeasured;u&&(r<u.lineN?u.lineN+=n:t<u.lineN+u.size&&(o.externalMeasured=null))}function Hn(e,t,r){e.curOp.viewChanged=!0;var n=e.display,o=e.display.externalMeasured;if(o&&t>=o.lineN&&t<o.lineN+o.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var i=n.view[zn(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==W(a,r)&&a.push(r)}}}function Bn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Wn(e,t,r,n){var o,i=zn(e,t),a=e.display.view;if(!jt||r==e.doc.first+e.doc.size)return{index:i,lineN:r};for(var l=e.display.viewFrom,s=0;s<i;s++)l+=a[s].size;if(l!=t){if(n>0){if(i==a.length-1)return null;o=l+a[i].size-t,i++}else o=l-t;t+=o,r+=o}for(;nr(e.doc,r)!=r;){if(i==(n<0?0:a.length-1))return null;r+=n*a[i-(n<0?1:0)].size,i+=n}return{index:i,lineN:r}}function Un(e,t,r){var n=e.display;0==n.view.length||t>=n.viewTo||r<=n.viewFrom?(n.view=Sr(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=Sr(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(zn(e,t))),n.viewFrom=t,n.viewTo<r?n.view=n.view.concat(Sr(e,n.viewTo,r)):n.viewTo>r&&(n.view=n.view.slice(0,zn(e,r)))),n.viewTo=r}function Vn(e){for(var t=e.display.view,r=0,n=0;n<t.length;n++){var o=t[n];o.hidden||o.node&&!o.changes||++r}return r}function qn(e){e.display.input.showSelection(e.display.input.prepareSelection())}function $n(t,r){void 0===r&&(r=!0);var n=t.doc,o={},i=o.cursors=e.createDocumentFragment(),a=o.selection=e.createDocumentFragment(),l=t.options.$customCursor;l&&(r=!0);for(var s=0;s<n.sel.ranges.length;s++)if(r||s!=n.sel.primIndex){var u=n.sel.ranges[s];if(!(u.from().line>=t.display.viewTo||u.to().line<t.display.viewFrom)){var c=u.empty();if(l){var f=l(t,u);f&&Gn(t,f,i)}else(c||t.options.showCursorWhenSelecting)&&Gn(t,u.head,i);c||Yn(t,u,a)}}return o}function Gn(e,t,r){var n=_n(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=r.appendChild(A("div","\xa0","CodeMirror-cursor"));if(o.style.left=n.left+"px",o.style.top=n.top+"px",o.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var i=wn(e,t,"div",null,null),a=i.right-i.left;o.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(n.other){var l=r.appendChild(A("div","\xa0","CodeMirror-cursor CodeMirror-secondarycursor"));l.style.display="",l.style.left=n.other.left+"px",l.style.top=n.other.top+"px",l.style.height=.85*(n.other.bottom-n.other.top)+"px"}}function Kn(e,t){return e.top-t.top||e.left-t.left}function Yn(t,r,n){var o=t.display,i=t.doc,a=e.createDocumentFragment(),l=Kr(t.display),s=l.left,u=Math.max(o.sizerWidth,Qr(t)-o.sizer.offsetLeft)-l.right,c="ltr"==i.direction;function f(e,t,r,n){t<0&&(t=0),t=Math.round(t),n=Math.round(n),a.appendChild(A("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==r?u-e:r)+"px;\n height: "+(n-t)+"px"))}function d(e,r,n){var o,a,l=Je(i,e),d=l.text.length;function p(r,n){return wn(t,lt(e,r),"div",l,n)}function h(e,r,n){var o=En(t,l,null,e),i="ltr"==r==("after"==n)?"left":"right";return p("after"==n?o.begin:o.end-(/\s/.test(l.text.charAt(o.end-1))?2:1),i)[i]}var m=he(l,i.direction);return ce(m,r||0,null==n?d:n,(function(e,t,i,l){var v="ltr"==i,g=p(e,v?"left":"right"),y=p(t-1,v?"right":"left"),b=null==r&&0==e,w=null==n&&t==d,_=0==l,x=!m||l==m.length-1;if(y.top-g.top<=3){var k=(c?w:b)&&x,S=(c?b:w)&&_?s:(v?g:y).left,O=k?u:(v?y:g).right;f(S,g.top,O-S,g.bottom)}else{var E,C,T,L;v?(E=c&&b&&_?s:g.left,C=c?u:h(e,i,"before"),T=c?s:h(t,i,"after"),L=c&&w&&x?u:y.right):(E=c?h(e,i,"before"):s,C=!c&&b&&_?u:g.right,T=!c&&w&&x?s:y.left,L=c?h(t,i,"after"):u),f(E,g.top,C-E,g.bottom),g.bottom<y.top&&f(s,g.bottom,null,y.top),f(T,y.top,L-T,y.bottom)}(!o||Kn(g,o)<0)&&(o=g),Kn(y,o)<0&&(o=y),(!a||Kn(g,a)<0)&&(a=g),Kn(y,a)<0&&(a=y)})),{start:o,end:a}}var p=r.from(),h=r.to();if(p.line==h.line)d(p.line,p.ch,h.ch);else{var m=Je(i,p.line),v=Je(i,h.line),g=er(m)==er(v),y=d(p.line,p.ch,g?m.text.length+1:null).end,b=d(h.line,g?0:null,h.ch).start;g&&(y.top<b.top-2?(f(y.right,y.top,null,y.bottom),f(s,b.top,b.left,b.bottom)):f(y.right,y.top,b.left-y.right,y.bottom)),y.bottom<b.top&&f(s,y.bottom,null,b.top)}n.appendChild(a)}function Qn(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var r=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||eo(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Zn(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Jn(e))}function Xn(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&eo(e))}),100)}function Jn(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(be(e,"focus",e,t),e.state.focused=!0,R(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),u&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Qn(e))}function eo(e,t){e.state.delayingBlurEvent||(e.state.focused&&(be(e,"blur",e,t),e.state.focused=!1,T(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function to(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=Math.max(0,t.scroller.getBoundingClientRect().top),o=t.lineDiv.getBoundingClientRect().top,i=0,a=0;a<t.view.length;a++){var u=t.view[a],c=e.options.lineWrapping,f=void 0,d=0;if(!u.hidden){if(o+=u.line.height,l&&s<8){var p=u.node.offsetTop+u.node.offsetHeight;f=p-r,r=p}else{var h=u.node.getBoundingClientRect();f=h.bottom-h.top,!c&&u.text.firstChild&&(d=u.text.firstChild.getBoundingClientRect().right-h.left-1)}var m=u.line.height-f;if((m>.005||m<-.005)&&(o<n&&(i-=m),rt(u.line,f),ro(u.line),u.rest))for(var v=0;v<u.rest.length;v++)ro(u.rest[v]);if(d>e.display.sizerWidth){var g=Math.ceil(d/jn(e.display));g>e.display.maxLineLength&&(e.display.maxLineLength=g,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(i)>2&&(t.scroller.scrollTop+=i)}function ro(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var r=e.widgets[t],n=r.node.parentNode;n&&(r.height=n.offsetHeight)}}function no(e,t,r){var n=r&&null!=r.top?Math.max(0,r.top):e.scroller.scrollTop;n=Math.floor(n-$r(e));var o=r&&null!=r.bottom?r.bottom:n+e.wrapper.clientHeight,i=ot(t,n),a=ot(t,o);if(r&&r.ensure){var l=r.ensure.from.line,s=r.ensure.to.line;l<i?(i=l,a=ot(t,lr(Je(t,l))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=a&&(i=ot(t,lr(Je(t,s))-e.wrapper.clientHeight),a=s)}return{from:i,to:Math.max(a,i+1)}}function oo(t,r){if(!we(t,"scrollCursorIntoView")){var n=window.top,o=t.display,i=o.sizer.getBoundingClientRect(),a=null;if(r.top+i.top<0?a=!0:r.bottom+i.top>(n.innerHeight||e.documentElement.clientHeight)&&(a=!1),null!=a&&!v){var l=A("div","\u200b",null,"position: absolute;\n top: "+(r.top-o.viewOffset-$r(t.display))+"px;\n height: "+(r.bottom-r.top+Yr(t)+o.barHeight)+"px;\n left: "+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");t.display.lineSpace.appendChild(l),l.scrollIntoView(a),t.display.lineSpace.removeChild(l)}}}function io(e,t,r,n){var o;null==n&&(n=0),e.options.lineWrapping||t!=r||(r="before"==t.sticky?lt(t.line,t.ch+1,"before"):t,t=t.ch?lt(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var i=0;i<5;i++){var a=!1,l=_n(e,t),s=r&&r!=t?_n(e,r):l,u=lo(e,o={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-n,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+n}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(mo(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(go(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return o}function ao(e,t){var r=lo(e,t);null!=r.scrollTop&&mo(e,r.scrollTop),null!=r.scrollLeft&&go(e,r.scrollLeft)}function lo(e,t){var r=e.display,n=An(e.display);t.top<0&&(t.top=0);var o=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,i=Zr(e),a={};t.bottom-t.top>i&&(t.bottom=t.top+i);var l=e.doc.height+Gr(r),s=t.top<n,u=t.bottom>l-n;if(t.top<o)a.scrollTop=s?0:t.top;else if(t.bottom>o+i){var c=Math.min(t.top,(u?l:t.bottom)-i);c!=o&&(a.scrollTop=c)}var f=e.options.fixedGutter?0:r.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft-f,p=Qr(e)-r.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<d?a.scrollLeft=Math.max(0,t.left+f-(h?0:10)):t.right>p+d-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function so(e,t){null!=t&&(po(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function uo(e){po(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function co(e,t,r){null==t&&null==r||po(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function fo(e,t){po(e),e.curOp.scrollToPos=t}function po(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,ho(e,xn(e,t.from),xn(e,t.to),t.margin))}function ho(e,t,r,n){var o=lo(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});co(e,o.scrollLeft,o.scrollTop)}function mo(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||$o(e,{top:t}),vo(e,t,!0),n&&$o(e),zo(e,100))}function vo(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function go(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,Qo(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function yo(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Gr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Yr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var bo=function(e,t,r){this.cm=r;var n=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=o.tabIndex=-1,e(n),e(o),ve(n,"scroll",(function(){n.clientHeight&&t(n.scrollTop,"vertical")})),ve(o,"scroll",(function(){o.clientWidth&&t(o.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,l&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};bo.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var o=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},bo.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},bo.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},bo.prototype.zeroWidthHack=function(){var e=w&&!m?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new B,this.disableVert=new B},bo.prototype.enableZeroWidthBar=function(t,r,n){function o(){var i=t.getBoundingClientRect();("vert"==n?e.elementFromPoint(i.right-1,(i.top+i.bottom)/2):e.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.pointerEvents="none":r.set(1e3,o)}t.style.pointerEvents="auto",r.set(1e3,o)},bo.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var wo=function(){};function _o(e,t){t||(t=yo(e));var r=e.display.barWidth,n=e.display.barHeight;xo(e,t);for(var o=0;o<4&&r!=e.display.barWidth||n!=e.display.barHeight;o++)r!=e.display.barWidth&&e.options.lineWrapping&&to(e),xo(e,yo(e)),r=e.display.barWidth,n=e.display.barHeight}function xo(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}wo.prototype.update=function(){return{bottom:0,right:0}},wo.prototype.setScrollLeft=function(){},wo.prototype.setScrollTop=function(){},wo.prototype.clear=function(){};var ko={native:bo,null:wo};function So(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&T(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ko[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ve(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,r){"horizontal"==r?go(e,t):mo(e,t)}),e),e.display.scrollbars.addClass&&R(e.display.wrapper,e.display.scrollbars.addClass)}var Oo=0;function Eo(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Oo,markArrays:null},Er(e.curOp)}function Co(e){var t=e.curOp;t&&Tr(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;To(e)}))}function To(e){for(var t=e.ops,r=0;r<t.length;r++)Lo(t[r]);for(var n=0;n<t.length;n++)Mo(t[n]);for(var o=0;o<t.length;o++)Ao(t[o]);for(var i=0;i<t.length;i++)jo(t[i]);for(var a=0;a<t.length;a++)Po(t[a])}function Lo(e){var t=e.cm,r=t.display;Bo(t),e.updateMaxLine&&ur(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<r.viewFrom||e.scrollToPos.to.line>=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ho(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Mo(e){e.updatedDisplay=e.mustUpdate&&Vo(e.cm,e.update)}function Ao(e){var t=e.cm,r=t.display;e.updatedDisplay&&to(t),e.barMeasure=yo(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=tn(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Yr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Qr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function jo(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&go(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==I();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&_o(t,e.barMeasure),e.updatedDisplay&&Yo(t,e.barMeasure),e.selectionChanged&&Qn(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&Zn(e.cm)}function Po(e){var t=e.cm,r=t.display,n=t.doc;e.updatedDisplay&&qo(t,e.update),null==r.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(r.wheelStartX=r.wheelStartY=null),null!=e.scrollTop&&vo(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&go(t,e.scrollLeft,!0,!0),e.scrollToPos&&oo(t,io(t,ht(n,e.scrollToPos.from),ht(n,e.scrollToPos.to),e.scrollToPos.margin));var o=e.maybeHiddenMarkers,i=e.maybeUnhiddenMarkers;if(o)for(var a=0;a<o.length;++a)o[a].lines.length||be(o[a],"hide");if(i)for(var l=0;l<i.length;++l)i[l].lines.length&&be(i[l],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&be(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Io(e,t){if(e.curOp)return t();Eo(e);try{return t()}finally{Co(e)}}function Ro(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Eo(e);try{return t.apply(e,arguments)}finally{Co(e)}}}function No(e){return function(){if(this.curOp)return e.apply(this,arguments);Eo(this);try{return e.apply(this,arguments)}finally{Co(this)}}}function Do(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Eo(t);try{return e.apply(this,arguments)}finally{Co(t)}}}function zo(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,z(Fo,e))}function Fo(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var r=+new Date+e.options.workTime,n=_t(e,t.highlightFrontier),o=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(i){if(n.line>=e.display.viewFrom){var a=i.styles,l=i.text.length>e.options.maxHighlightLength?Ye(t.mode,n.state):null,s=bt(e,i,n,!0);l&&(n.state=l),i.styles=s.styles;var u=i.styleClasses,c=s.classes;c?i.styleClasses=c:u&&(i.styleClasses=null);for(var f=!a||a.length!=i.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!f&&d<a.length;++d)f=a[d]!=i.styles[d];f&&o.push(n.line),i.stateAfter=n.save(),n.nextLine()}else i.text.length<=e.options.maxHighlightLength&&xt(e,i.text,n),i.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>r)return zo(e,e.options.workDelay),!0})),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),o.length&&Io(e,(function(){for(var t=0;t<o.length;t++)Hn(e,o[t],"text")}))}}var Ho=function(e,t,r){var n=e.display;this.viewport=t,this.visible=no(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Qr(e),this.force=r,this.dims=Pn(e),this.events=[]};function Bo(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Yr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Yr(e)+"px",t.scrollbarsClipped=!0)}function Wo(e){if(e.hasFocus())return null;var t=I();if(!t||!P(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&P(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}function Uo(t){if(t&&t.activeElt&&t.activeElt!=I()&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&P(e.body,t.anchorNode)&&P(e.body,t.focusNode))){var r=window.getSelection(),n=e.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),r.removeAllRanges(),r.addRange(n),r.extend(t.focusNode,t.focusOffset)}}function Vo(e,t){var r=e.display,n=e.doc;if(t.editorIsHidden)return Bn(e),!1;if(!t.force&&t.visible.from>=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==Vn(e))return!1;Zo(e)&&(Bn(e),t.dims=Pn(e));var o=n.first+n.size,i=Math.max(t.visible.from-e.options.viewportMargin,n.first),a=Math.min(o,t.visible.to+e.options.viewportMargin);r.viewFrom<i&&i-r.viewFrom<20&&(i=Math.max(n.first,r.viewFrom)),r.viewTo>a&&r.viewTo-a<20&&(a=Math.min(o,r.viewTo)),jt&&(i=nr(e.doc,i),a=or(e.doc,a));var l=i!=r.viewFrom||a!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;Un(e,i,a),r.viewOffset=lr(Je(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var s=Vn(e);if(!l&&0==s&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var u=Wo(e);return s>4&&(r.lineDiv.style.display="none"),Go(e,r.updateLineNumbers,t.dims),s>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Uo(u),L(r.cursorDiv),L(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,l&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,zo(e,400)),r.updateLineNumbers=null,!0}function qo(e,t){for(var r=t.viewport,n=!0;;n=!1){if(n&&e.options.lineWrapping&&t.oldDisplayWidth!=Qr(e))n&&(t.visible=no(e.display,e.doc,r));else if(r&&null!=r.top&&(r={top:Math.min(e.doc.height+Gr(e.display)-Zr(e),r.top)}),t.visible=no(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Vo(e,t))break;to(e);var o=yo(e);qn(e),_o(e,o),Yo(e,o),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function $o(e,t){var r=new Ho(e,t);if(Vo(e,r)){to(e),qo(e,r);var n=yo(e);qn(e),_o(e,n),Yo(e,n),r.finish()}}function Go(t,r,n){var o=t.display,i=t.options.lineNumbers,a=o.lineDiv,l=a.firstChild;function s(e){var r=e.nextSibling;return u&&w&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),r}for(var c=o.view,f=o.viewFrom,d=0;d<c.length;d++){var p=c[d];if(p.hidden);else if(p.node&&p.node.parentNode==a){for(;l!=p.node;)l=s(l);var h=i&&null!=r&&r<=f&&p.lineNumber;p.changes&&(W(p.changes,"gutter")>-1&&(h=!1),jr(t,p,f,n)),h&&(L(p.lineNumber),p.lineNumber.appendChild(e.createTextNode(at(t.options,f)))),l=p.node.nextSibling}else{var m=Hr(t,p,f,n);a.insertBefore(m,l)}f+=p.size}for(;l;)l=s(l)}function Ko(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Mr(e,"gutterChanged",e)}function Yo(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Yr(e)+"px"}function Qo(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=In(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=n+"px",a=0;a<r.length;a++)if(!r[a].hidden){e.options.fixedGutter&&(r[a].gutter&&(r[a].gutter.style.left=i),r[a].gutterBackground&&(r[a].gutterBackground.style.left=i));var l=r[a].alignable;if(l)for(var s=0;s<l.length;s++)l[s].style.left=i}e.options.fixedGutter&&(t.gutters.style.left=n+o+"px")}}function Zo(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=at(e.options,t.first+t.size-1),n=e.display;if(r.length!=n.lineNumChars){var o=n.measure.appendChild(A("div",[A("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),i=o.firstChild.offsetWidth,a=o.offsetWidth-i;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(i,n.lineGutter.offsetWidth-a)+1,n.lineNumWidth=n.lineNumInnerWidth+a,n.lineNumChars=n.lineNumInnerWidth?r.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",Ko(e.display),!0}return!1}function Xo(e,t){for(var r=[],n=!1,o=0;o<e.length;o++){var i=e[o],a=null;if("string"!=typeof i&&(a=i.style,i=i.className),"CodeMirror-linenumbers"==i){if(!t)continue;n=!0}r.push({className:i,style:a})}return t&&!n&&r.push({className:"CodeMirror-linenumbers",style:null}),r}function Jo(e){var t=e.gutters,r=e.gutterSpecs;L(t),e.lineGutter=null;for(var n=0;n<r.length;++n){var o=r[n],i=o.className,a=o.style,l=t.appendChild(A("div",null,"CodeMirror-gutter "+i));a&&(l.style.cssText=a),"CodeMirror-linenumbers"==i&&(e.lineGutter=l,l.style.width=(e.lineNumWidth||1)+"px")}t.style.display=r.length?"":"none",Ko(e)}function ei(e){Jo(e.display),Fn(e),Qo(e)}function ti(e,t,r,o){var i=this;this.input=r,i.scrollbarFiller=A("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=A("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=j("div",null,"CodeMirror-code"),i.selectionDiv=A("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=A("div",null,"CodeMirror-cursors"),i.measure=A("div",null,"CodeMirror-measure"),i.lineMeasure=A("div",null,"CodeMirror-measure"),i.lineSpace=j("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var a=j("div",[i.lineSpace],"CodeMirror-lines");i.mover=A("div",[a],null,"position: relative"),i.sizer=A("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=A("div",null,null,"position: absolute; height: "+U+"px; width: 1px;"),i.gutters=A("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=A("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=A("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),i.wrapper.setAttribute("translate","no"),l&&s<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),u||n&&b||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=Xo(o.gutters,o.lineNumbers),Jo(i),r.init(i)}Ho.prototype.signal=function(e,t){xe(e,t)&&this.events.push(arguments)},Ho.prototype.finish=function(){for(var e=0;e<this.events.length;e++)be.apply(null,this.events[e])};var ri=0,ni=null;function oi(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==r&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:null==r&&(r=e.wheelDelta),{x:t,y:r}}function ii(e){var t=oi(e);return t.x*=ni,t.y*=ni,t}function ai(e,t){f&&d>=102&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout((function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""}),100));var r=oi(t),o=r.x,i=r.y,a=ni;0===t.deltaMode&&(o=t.deltaX,i=t.deltaY,a=1);var l=e.display,s=l.scroller,c=s.scrollWidth>s.clientWidth,h=s.scrollHeight>s.clientHeight;if(o&&c||i&&h){if(i&&w&&u)e:for(var m=t.target,v=l.view;m!=s;m=m.parentNode)for(var g=0;g<v.length;g++)if(v[g].node==m){e.display.currentWheelTarget=m;break e}if(o&&!n&&!p&&null!=a)return i&&h&&mo(e,Math.max(0,s.scrollTop+i*a)),go(e,Math.max(0,s.scrollLeft+o*a)),(!i||i&&h)&&Se(t),void(l.wheelStartX=null);if(i&&null!=a){var y=i*a,b=e.doc.scrollTop,_=b+l.wrapper.clientHeight;y<0?b=Math.max(0,b+y-50):_=Math.min(e.doc.height,_+y+50),$o(e,{top:b,bottom:_})}ri<20&&0!==t.deltaMode&&(null==l.wheelStartX?(l.wheelStartX=s.scrollLeft,l.wheelStartY=s.scrollTop,l.wheelDX=o,l.wheelDY=i,setTimeout((function(){if(null!=l.wheelStartX){var e=s.scrollLeft-l.wheelStartX,t=s.scrollTop-l.wheelStartY,r=t&&l.wheelDY&&t/l.wheelDY||e&&l.wheelDX&&e/l.wheelDX;l.wheelStartX=l.wheelStartY=null,r&&(ni=(ni*ri+r)/(ri+1),++ri)}}),200)):(l.wheelDX+=o,l.wheelDY+=i))}}l?ni=-.53:n?ni=15:f?ni=-.7:h&&(ni=-1/3);var li=function(e,t){this.ranges=e,this.primIndex=t};li.prototype.primary=function(){return this.ranges[this.primIndex]},li.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var r=this.ranges[t],n=e.ranges[t];if(!ut(r.anchor,n.anchor)||!ut(r.head,n.head))return!1}return!0},li.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new si(ct(this.ranges[t].anchor),ct(this.ranges[t].head));return new li(e,this.primIndex)},li.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},li.prototype.contains=function(e,t){t||(t=e);for(var r=0;r<this.ranges.length;r++){var n=this.ranges[r];if(st(t,n.from())>=0&&st(e,n.to())<=0)return r}return-1};var si=function(e,t){this.anchor=e,this.head=t};function ui(e,t,r){var n=e&&e.options.selectionsMayTouch,o=t[r];t.sort((function(e,t){return st(e.from(),t.from())})),r=W(t,o);for(var i=1;i<t.length;i++){var a=t[i],l=t[i-1],s=st(l.to(),a.from());if(n&&!a.empty()?s>0:s>=0){var u=dt(l.from(),a.from()),c=ft(l.to(),a.to()),f=l.empty()?a.from()==a.head:l.from()==l.head;i<=r&&--r,t.splice(--i,2,new si(f?c:u,f?u:c))}}return new li(t,r)}function ci(e,t){return new li([new si(e,t||e)],0)}function fi(e){return e.text?lt(e.from.line+e.text.length-1,Z(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function di(e,t){if(st(e,t.from)<0)return e;if(st(e,t.to)<=0)return fi(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=fi(t).ch-t.to.ch),lt(r,n)}function pi(e,t){for(var r=[],n=0;n<e.sel.ranges.length;n++){var o=e.sel.ranges[n];r.push(new si(di(o.anchor,t),di(o.head,t)))}return ui(e.cm,r,e.sel.primIndex)}function hi(e,t,r){return e.line==t.line?lt(r.line,e.ch-t.ch+r.ch):lt(r.line+(e.line-t.line),e.ch)}function mi(e,t,r){for(var n=[],o=lt(e.first,0),i=o,a=0;a<t.length;a++){var l=t[a],s=hi(l.from,o,i),u=hi(fi(l),o,i);if(o=l.to,i=u,"around"==r){var c=e.sel.ranges[a],f=st(c.head,c.anchor)<0;n[a]=new si(f?u:s,f?s:u)}else n[a]=new si(s,s)}return new li(n,e.sel.primIndex)}function vi(e){e.doc.mode=$e(e.options,e.doc.modeOption),gi(e)}function gi(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,zo(e,100),e.state.modeGen++,e.curOp&&Fn(e)}function yi(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Z(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function bi(e,t,r,n){function o(e){return r?r[e]:null}function i(e,r,o){fr(e,r,o,n),Mr(e,"change",e,t)}function a(e,t){for(var r=[],i=e;i<t;++i)r.push(new cr(u[i],o(i),n));return r}var l=t.from,s=t.to,u=t.text,c=Je(e,l.line),f=Je(e,s.line),d=Z(u),p=o(u.length-1),h=s.line-l.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(yi(e,t)){var m=a(0,u.length-1);i(f,f.text,p),h&&e.remove(l.line,h),m.length&&e.insert(l.line,m)}else if(c==f)if(1==u.length)i(c,c.text.slice(0,l.ch)+d+c.text.slice(s.ch),p);else{var v=a(1,u.length-1);v.push(new cr(d+c.text.slice(s.ch),p,n)),i(c,c.text.slice(0,l.ch)+u[0],o(0)),e.insert(l.line+1,v)}else if(1==u.length)i(c,c.text.slice(0,l.ch)+u[0]+f.text.slice(s.ch),o(0)),e.remove(l.line+1,h);else{i(c,c.text.slice(0,l.ch)+u[0],o(0)),i(f,d+f.text.slice(s.ch),p);var g=a(1,u.length-1);h>1&&e.remove(l.line+1,h-1),e.insert(l.line+1,g)}Mr(e,"change",e,t)}function wi(e,t,r){function n(e,o,i){if(e.linked)for(var a=0;a<e.linked.length;++a){var l=e.linked[a];if(l.doc!=o){var s=i&&l.sharedHist;r&&!s||(t(l.doc,s),n(l.doc,e,s))}}}n(e,null,!0)}function _i(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Nn(e),vi(e),xi(e),e.options.direction=t.direction,e.options.lineWrapping||ur(e),e.options.mode=t.modeOption,Fn(e)}function xi(e){("rtl"==e.doc.direction?R:T)(e.display.lineDiv,"CodeMirror-rtl")}function ki(e){Io(e,(function(){xi(e),Fn(e)}))}function Si(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Oi(e,t){var r={from:ct(t.from),to:fi(t),text:et(e,t.from,t.to)};return ji(e,r,t.from.line,t.to.line+1),wi(e,(function(e){return ji(e,r,t.from.line,t.to.line+1)}),!0),r}function Ei(e){for(;e.length&&Z(e).ranges;)e.pop()}function Ci(e,t){return t?(Ei(e.done),Z(e.done)):e.done.length&&!Z(e.done).ranges?Z(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Z(e.done)):void 0}function Ti(e,t,r,n){var o=e.history;o.undone.length=0;var i,a,l=+new Date;if((o.lastOp==n||o.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&o.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=Ci(o,o.lastOp==n)))a=Z(i.changes),0==st(t.from,t.to)&&0==st(t.from,a.to)?a.to=fi(t):i.changes.push(Oi(e,t));else{var s=Z(o.done);for(s&&s.ranges||Ai(e.sel,o.done),i={changes:[Oi(e,t)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(r),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=l,o.lastOp=o.lastSelOp=n,o.lastOrigin=o.lastSelOrigin=t.origin,a||be(e,"historyAdded")}function Li(e,t,r,n){var o=t.charAt(0);return"*"==o||"+"==o&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Mi(e,t,r,n){var o=e.history,i=n&&n.origin;r==o.lastSelOp||i&&o.lastSelOrigin==i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||Li(e,i,Z(o.done),t))?o.done[o.done.length-1]=t:Ai(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=r,n&&!1!==n.clearRedo&&Ei(o.undone)}function Ai(e,t){var r=Z(t);r&&r.ranges&&r.equals(e)||t.push(e)}function ji(e,t,r,n){var o=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),(function(r){r.markedSpans&&((o||(o=t["spans_"+e.id]={}))[i]=r.markedSpans),++i}))}function Pi(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marker.explicitlyCleared?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t?t.length?t:null:e}function Ii(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var n=[],o=0;o<t.text.length;++o)n.push(Pi(r[o]));return n}function Ri(e,t){var r=Ii(e,t),n=Bt(e,t);if(!r)return n;if(!n)return r;for(var o=0;o<r.length;++o){var i=r[o],a=n[o];if(i&&a)e:for(var l=0;l<a.length;++l){for(var s=a[l],u=0;u<i.length;++u)if(i[u].marker==s.marker)continue e;i.push(s)}else a&&(r[o]=a)}return r}function Ni(e,t,r){for(var n=[],o=0;o<e.length;++o){var i=e[o];if(i.ranges)n.push(r?li.prototype.deepCopy.call(i):i);else{var a=i.changes,l=[];n.push({changes:l});for(var s=0;s<a.length;++s){var u=a[s],c=void 0;if(l.push({from:u.from,to:u.to,text:u.text}),t)for(var f in u)(c=f.match(/^spans_(\d+)$/))&&W(t,Number(c[1]))>-1&&(Z(l)[f]=u[f],delete u[f])}}}return n}function Di(e,t,r,n){if(n){var o=e.anchor;if(r){var i=st(t,o)<0;i!=st(r,o)<0?(o=t,t=r):i!=st(t,r)<0&&(t=r)}return new si(o,t)}return new si(r||t,t)}function zi(e,t,r,n,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),Vi(e,new li([Di(e.sel.primary(),t,r,o)],0),n)}function Fi(e,t,r){for(var n=[],o=e.cm&&(e.cm.display.shift||e.extend),i=0;i<e.sel.ranges.length;i++)n[i]=Di(e.sel.ranges[i],t[i],null,o);Vi(e,ui(e.cm,n,e.sel.primIndex),r)}function Hi(e,t,r,n){var o=e.sel.ranges.slice(0);o[t]=r,Vi(e,ui(e.cm,o,e.sel.primIndex),n)}function Bi(e,t,r,n){Vi(e,ci(t,r),n)}function Wi(e,t,r){var n={ranges:t.ranges,update:function(t){this.ranges=[];for(var r=0;r<t.length;r++)this.ranges[r]=new si(ht(e,t[r].anchor),ht(e,t[r].head))},origin:r&&r.origin};return be(e,"beforeSelectionChange",e,n),e.cm&&be(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?ui(e.cm,n.ranges,n.ranges.length-1):t}function Ui(e,t,r){var n=e.history.done,o=Z(n);o&&o.ranges?(n[n.length-1]=t,qi(e,t,r)):Vi(e,t,r)}function Vi(e,t,r){qi(e,t,r),Mi(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}function qi(e,t,r){(xe(e,"beforeSelectionChange")||e.cm&&xe(e.cm,"beforeSelectionChange"))&&(t=Wi(e,t,r));var n=r&&r.bias||(st(t.primary().head,e.sel.primary().head)<0?-1:1);$i(e,Ki(e,t,n,!0)),r&&!1===r.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||uo(e.cm)}function $i(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,_e(e.cm)),Mr(e,"cursorActivity",e))}function Gi(e){$i(e,Ki(e,e.sel,null,!1))}function Ki(e,t,r,n){for(var o,i=0;i<t.ranges.length;i++){var a=t.ranges[i],l=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[i],s=Qi(e,a.anchor,l&&l.anchor,r,n),u=Qi(e,a.head,l&&l.head,r,n);(o||s!=a.anchor||u!=a.head)&&(o||(o=t.ranges.slice(0,i)),o[i]=new si(s,u))}return o?ui(e.cm,o,t.primIndex):t}function Yi(e,t,r,n,o){var i=Je(e,t.line);if(i.markedSpans)for(var a=0;a<i.markedSpans.length;++a){var l=i.markedSpans[a],s=l.marker,u="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,c="selectRight"in s?!s.selectRight:s.inclusiveRight;if((null==l.from||(u?l.from<=t.ch:l.from<t.ch))&&(null==l.to||(c?l.to>=t.ch:l.to>t.ch))){if(o&&(be(s,"beforeCursorEnter"),s.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!s.atomic)continue;if(r){var f=s.find(n<0?1:-1),d=void 0;if((n<0?c:u)&&(f=Zi(e,f,-n,f&&f.line==t.line?i:null)),f&&f.line==t.line&&(d=st(f,r))&&(n<0?d<0:d>0))return Yi(e,f,t,n,o)}var p=s.find(n<0?-1:1);return(n<0?u:c)&&(p=Zi(e,p,n,p.line==t.line?i:null)),p?Yi(e,p,t,n,o):null}}return t}function Qi(e,t,r,n,o){var i=n||1,a=Yi(e,t,r,i,o)||!o&&Yi(e,t,r,i,!0)||Yi(e,t,r,-i,o)||!o&&Yi(e,t,r,-i,!0);return a||(e.cantEdit=!0,lt(e.first,0))}function Zi(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?ht(e,lt(t.line-1)):null:r>0&&t.ch==(n||Je(e,t.line)).text.length?t.line<e.first+e.size-1?lt(t.line+1,0):null:new lt(t.line,t.ch+r)}function Xi(e){e.setSelection(lt(e.firstLine(),0),lt(e.lastLine()),q)}function Ji(e,t,r){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return r&&(n.update=function(t,r,o,i){t&&(n.from=ht(e,t)),r&&(n.to=ht(e,r)),o&&(n.text=o),void 0!==i&&(n.origin=i)}),be(e,"beforeChange",e,n),e.cm&&be(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function ea(e,t,r){if(e.cm){if(!e.cm.curOp)return Ro(e.cm,ea)(e,t,r);if(e.cm.state.suppressEdits)return}if(!(xe(e,"beforeChange")||e.cm&&xe(e.cm,"beforeChange"))||(t=Ji(e,t,!0))){var n=At&&!r&&Ut(e,t.from,t.to);if(n)for(var o=n.length-1;o>=0;--o)ta(e,{from:n[o].from,to:n[o].to,text:o?[""]:t.text,origin:t.origin});else ta(e,t)}}function ta(e,t){if(1!=t.text.length||""!=t.text[0]||0!=st(t.from,t.to)){var r=pi(e,t);Ti(e,t,r,e.cm?e.cm.curOp.id:NaN),oa(e,t,r,Bt(e,t));var n=[];wi(e,(function(e,r){r||-1!=W(n,e.history)||(ua(e.history,t),n.push(e.history)),oa(e,t,null,Bt(e,t))}))}}function ra(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!n||r){for(var o,i=e.history,a=e.sel,l="undo"==t?i.done:i.undone,s="undo"==t?i.undone:i.done,u=0;u<l.length&&(o=l[u],r?!o.ranges||o.equals(e.sel):o.ranges);u++);if(u!=l.length){for(i.lastOrigin=i.lastSelOrigin=null;;){if(!(o=l.pop()).ranges){if(n)return void l.push(o);break}if(Ai(o,s),r&&!o.equals(e.sel))return void Vi(e,o,{clearRedo:!1});a=o}var c=[];Ai(a,s),s.push({changes:c,generation:i.generation}),i.generation=o.generation||++i.maxGeneration;for(var f=xe(e,"beforeChange")||e.cm&&xe(e.cm,"beforeChange"),d=function(r){var n=o.changes[r];if(n.origin=t,f&&!Ji(e,n,!1))return l.length=0,{};c.push(Oi(e,n));var i=r?pi(e,n):Z(l);oa(e,n,i,Ri(e,n)),!r&&e.cm&&e.cm.scrollIntoView({from:n.from,to:fi(n)});var a=[];wi(e,(function(e,t){t||-1!=W(a,e.history)||(ua(e.history,n),a.push(e.history)),oa(e,n,null,Ri(e,n))}))},p=o.changes.length-1;p>=0;--p){var h=d(p);if(h)return h.v}}}}function na(e,t){if(0!=t&&(e.first+=t,e.sel=new li(X(e.sel.ranges,(function(e){return new si(lt(e.anchor.line+t,e.anchor.ch),lt(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Fn(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;n<r.viewTo;n++)Hn(e.cm,n,"gutter")}}function oa(e,t,r,n){if(e.cm&&!e.cm.curOp)return Ro(e.cm,oa)(e,t,r,n);if(t.to.line<e.first)na(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var o=t.text.length-1-(e.first-t.from.line);na(e,o),t={from:lt(e.first,0),to:lt(t.to.line+o,t.to.ch),text:[Z(t.text)],origin:t.origin}}var i=e.lastLine();t.to.line>i&&(t={from:t.from,to:lt(i,Je(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=et(e,t.from,t.to),r||(r=pi(e,t)),e.cm?ia(e.cm,t,n):bi(e,t,n),qi(e,r,q),e.cantEdit&&Qi(e,lt(e.firstLine(),0))&&(e.cantEdit=!1)}}function ia(e,t,r){var n=e.doc,o=e.display,i=t.from,a=t.to,l=!1,s=i.line;e.options.lineWrapping||(s=nt(er(Je(n,i.line))),n.iter(s,a.line+1,(function(e){if(e==o.maxLine)return l=!0,!0}))),n.sel.contains(t.from,t.to)>-1&&_e(e),bi(n,t,r,Rn(e)),e.options.lineWrapping||(n.iter(s,i.line+t.text.length,(function(e){var t=sr(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,l=!1)})),l&&(e.curOp.updateMaxLine=!0)),Mt(n,i.line),zo(e,400);var u=t.text.length-(a.line-i.line)-1;t.full?Fn(e):i.line!=a.line||1!=t.text.length||yi(e.doc,t)?Fn(e,i.line,a.line+1,u):Hn(e,i.line,"text");var c=xe(e,"changes"),f=xe(e,"change");if(f||c){var d={from:i,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&Mr(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function aa(e,t,r,n,o){var i;n||(n=r),st(n,r)<0&&(r=(i=[n,r])[0],n=i[1]),"string"==typeof t&&(t=e.splitLines(t)),ea(e,{from:r,to:n,text:t,origin:o})}function la(e,t,r,n){r<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function sa(e,t,r,n){for(var o=0;o<e.length;++o){var i=e[o],a=!0;if(i.ranges){i.copied||((i=e[o]=i.deepCopy()).copied=!0);for(var l=0;l<i.ranges.length;l++)la(i.ranges[l].anchor,t,r,n),la(i.ranges[l].head,t,r,n)}else{for(var s=0;s<i.changes.length;++s){var u=i.changes[s];if(r<u.from.line)u.from=lt(u.from.line+n,u.from.ch),u.to=lt(u.to.line+n,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,o+1),o=0)}}}function ua(e,t){var r=t.from.line,n=t.to.line,o=t.text.length-(n-r)-1;sa(e.done,r,n,o),sa(e.undone,r,n,o)}function ca(e,t,r,n){var o=t,i=t;return"number"==typeof t?i=Je(e,pt(e,t)):o=nt(t),null==o?null:(n(i,o)&&e.cm&&Hn(e.cm,o,r),i)}function fa(e){this.lines=e,this.parent=null;for(var t=0,r=0;r<e.length;++r)e[r].parent=this,t+=e[r].height;this.height=t}function da(e){this.children=e;for(var t=0,r=0,n=0;n<e.length;++n){var o=e[n];t+=o.chunkSize(),r+=o.height,o.parent=this}this.size=t,this.height=r,this.parent=null}si.prototype.from=function(){return dt(this.anchor,this.head)},si.prototype.to=function(){return ft(this.anchor,this.head)},si.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},fa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var r=e,n=e+t;r<n;++r){var o=this.lines[r];this.height-=o.height,dr(o),Mr(o,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,r){this.height+=r,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,r){for(var n=e+t;e<n;++e)if(r(this.lines[e]))return!0}},da.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var r=0;r<this.children.length;++r){var n=this.children[r],o=n.chunkSize();if(e<o){var i=Math.min(t,o-e),a=n.height;if(n.removeInner(e,i),this.height-=a-n.height,o==i&&(this.children.splice(r--,1),n.parent=null),0==(t-=i))break;e=0}else e-=o}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof fa))){var l=[];this.collapse(l),this.children=[new fa(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,r){this.size+=t.length,this.height+=r;for(var n=0;n<this.children.length;++n){var o=this.children[n],i=o.chunkSize();if(e<=i){if(o.insertInner(e,t,r),o.lines&&o.lines.length>50){for(var a=o.lines.length%25+25,l=a;l<o.lines.length;){var s=new fa(o.lines.slice(l,l+=25));o.height-=s.height,this.children.splice(++n,0,s),s.parent=this}o.lines=o.lines.slice(0,a),this.maybeSpill()}break}e-=i}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new da(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var r=W(e.parent.children,e);e.parent.children.splice(r+1,0,t)}else{var n=new da(e.children);n.parent=e,e.children=[n,t],e=n}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n<this.children.length;++n){var o=this.children[n],i=o.chunkSize();if(e<i){var a=Math.min(t,i-e);if(o.iterN(e,a,r))return!0;if(0==(t-=a))break;e=0}else e-=i}}};var pa=function(e,t,r){if(r)for(var n in r)r.hasOwnProperty(n)&&(this[n]=r[n]);this.doc=e,this.node=t};function ha(e,t,r){lr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&so(e,r)}function ma(e,t,r,n){var o=new pa(e,r,n),i=e.cm;return i&&o.noHScroll&&(i.display.alignWidgets=!0),ca(e,t,"widget",(function(t){var r=t.widgets||(t.widgets=[]);if(null==o.insertAt?r.push(o):r.splice(Math.min(r.length,Math.max(0,o.insertAt)),0,o),o.line=t,i&&!ir(e,t)){var n=lr(t)<e.scrollTop;rt(t,t.height+Vr(o)),n&&so(i,o.height),i.curOp.forceUpdate=!0}return!0})),i&&Mr(i,"lineWidgetAdded",i,o,"number"==typeof t?t:nt(t)),o}pa.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,r=this.line,n=nt(r);if(null!=n&&t){for(var o=0;o<t.length;++o)t[o]==this&&t.splice(o--,1);t.length||(r.widgets=null);var i=Vr(this);rt(r,Math.max(0,r.height-i)),e&&(Io(e,(function(){ha(e,r,-i),Hn(e,n,"widget")})),Mr(e,"lineWidgetCleared",e,this,n))}},pa.prototype.changed=function(){var e=this,t=this.height,r=this.doc.cm,n=this.line;this.height=null;var o=Vr(this)-t;o&&(ir(this.doc,n)||rt(n,n.height+o),r&&Io(r,(function(){r.curOp.forceUpdate=!0,ha(r,n,o),Mr(r,"lineWidgetChanged",r,e,nt(n))})))},ke(pa);var va=0,ga=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++va};function ya(e,t,r,n,o){if(n&&n.shared)return wa(e,t,r,n,o);if(e.cm&&!e.cm.curOp)return Ro(e.cm,ya)(e,t,r,n,o);var i=new ga(e,o),a=st(t,r);if(n&&F(n,i,!1),a>0||0==a&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=j("span",[i.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(Jt(e,t.line,t,r,i)||t.line!=r.line&&Jt(e,r.line,t,r,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");It()}i.addToHistory&&Ti(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var l,s=t.line,u=e.cm;if(e.iter(s,r.line+1,(function(n){u&&i.collapsed&&!u.options.lineWrapping&&er(n)==u.display.maxLine&&(l=!0),i.collapsed&&s!=t.line&&rt(n,0),zt(n,new Rt(i,s==t.line?t.ch:null,s==r.line?r.ch:null),e.cm&&e.cm.curOp),++s})),i.collapsed&&e.iter(t.line,r.line+1,(function(t){ir(e,t)&&rt(t,0)})),i.clearOnEnter&&ve(i,"beforeCursorEnter",(function(){return i.clear()})),i.readOnly&&(Pt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++va,i.atomic=!0),u){if(l&&(u.curOp.updateMaxLine=!0),i.collapsed)Fn(u,t.line,r.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var c=t.line;c<=r.line;c++)Hn(u,c,"text");i.atomic&&Gi(u.doc),Mr(u,"markerAdded",u,i)}return i}ga.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Eo(e),xe(this,"clear")){var r=this.find();r&&Mr(this,"clear",r.from,r.to)}for(var n=null,o=null,i=0;i<this.lines.length;++i){var a=this.lines[i],l=Nt(a.markedSpans,this);e&&!this.collapsed?Hn(e,nt(a),"text"):e&&(null!=l.to&&(o=nt(a)),null!=l.from&&(n=nt(a))),a.markedSpans=Dt(a.markedSpans,l),null==l.from&&this.collapsed&&!ir(this.doc,a)&&e&&rt(a,An(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var u=er(this.lines[s]),c=sr(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=n&&e&&this.collapsed&&Fn(e,n,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Gi(e.doc)),e&&Mr(e,"markerCleared",e,this,n,o),t&&Co(e),this.parent&&this.parent.clear()}},ga.prototype.find=function(e,t){var r,n;null==e&&"bookmark"==this.type&&(e=1);for(var o=0;o<this.lines.length;++o){var i=this.lines[o],a=Nt(i.markedSpans,this);if(null!=a.from&&(r=lt(t?i:nt(i),a.from),-1==e))return r;if(null!=a.to&&(n=lt(t?i:nt(i),a.to),1==e))return n}return r&&{from:r,to:n}},ga.prototype.changed=function(){var e=this,t=this.find(-1,!0),r=this,n=this.doc.cm;t&&n&&Io(n,(function(){var o=t.line,i=nt(t.line),a=rn(n,i);if(a&&(dn(a),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!ir(r.doc,o)&&null!=r.height){var l=r.height;r.height=null;var s=Vr(r)-l;s&&rt(o,o.height+s)}Mr(n,"markerChanged",n,e)}))},ga.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=W(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ga.prototype.detachLine=function(e){if(this.lines.splice(W(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},ke(ga);var ba=function(e,t){this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=this};function wa(e,t,r,n,o){(n=F(n)).shared=!1;var i=[ya(e,t,r,n,o)],a=i[0],l=n.widgetNode;return wi(e,(function(e){l&&(n.widgetNode=l.cloneNode(!0)),i.push(ya(e,ht(e,t),ht(e,r),n,o));for(var s=0;s<e.linked.length;++s)if(e.linked[s].isParent)return;a=Z(i)})),new ba(i,a)}function _a(e){return e.findMarks(lt(e.first,0),e.clipPos(lt(e.lastLine())),(function(e){return e.parent}))}function xa(e,t){for(var r=0;r<t.length;r++){var n=t[r],o=n.find(),i=e.clipPos(o.from),a=e.clipPos(o.to);if(st(i,a)){var l=ya(e,i,a,n.primary,n.primary.type);n.markers.push(l),l.parent=n}}}function ka(e){for(var t=function(t){var r=e[t],n=[r.primary.doc];wi(r.primary.doc,(function(e){return n.push(e)}));for(var o=0;o<r.markers.length;o++){var i=r.markers[o];-1==W(n,i.doc)&&(i.parent=null,r.markers.splice(o--,1))}},r=0;r<e.length;r++)t(r)}ba.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Mr(this,"clear")}},ba.prototype.find=function(e,t){return this.primary.find(e,t)},ke(ba);var Sa=0,Oa=function(e,t,r,n,o){if(!(this instanceof Oa))return new Oa(e,t,r,n,o);null==r&&(r=0),da.call(this,[new fa([new cr("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var i=lt(r,0);this.sel=ci(i),this.history=new Si(null),this.id=++Sa,this.modeOption=t,this.lineSep=n,this.direction="rtl"==o?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),bi(this,{from:i,to:i,text:e}),Vi(this,ci(i),q)};Oa.prototype=te(da.prototype,{constructor:Oa,iter:function(e,t,r){r?this.iterN(e-this.first,t-e,r):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var r=0,n=0;n<t.length;++n)r+=t[n].height;this.insertInner(e-this.first,t,r)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=tt(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Do((function(e){var t=lt(this.first,0),r=this.first+this.size-1;ea(this,{from:t,to:lt(r,Je(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&co(this.cm,0,0),Vi(this,ci(t),q)})),replaceRange:function(e,t,r,n){aa(this,e,t=ht(this,t),r=r?ht(this,r):t,n)},getRange:function(e,t,r){var n=et(this,ht(this,e),ht(this,t));return!1===r?n:""===r?n.join(""):n.join(r||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(it(this,e))return Je(this,e)},getLineNumber:function(e){return nt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Je(this,e)),er(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ht(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Do((function(e,t,r){Bi(this,ht(this,"number"==typeof e?lt(e,t||0):e),null,r)})),setSelection:Do((function(e,t,r){Bi(this,ht(this,e),ht(this,t||e),r)})),extendSelection:Do((function(e,t,r){zi(this,ht(this,e),t&&ht(this,t),r)})),extendSelections:Do((function(e,t){Fi(this,vt(this,e),t)})),extendSelectionsBy:Do((function(e,t){Fi(this,vt(this,X(this.sel.ranges,e)),t)})),setSelections:Do((function(e,t,r){if(e.length){for(var n=[],o=0;o<e.length;o++)n[o]=new si(ht(this,e[o].anchor),ht(this,e[o].head||e[o].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Vi(this,ui(this.cm,n,t),r)}})),addSelection:Do((function(e,t,r){var n=this.sel.ranges.slice(0);n.push(new si(ht(this,e),ht(this,t||e))),Vi(this,ui(this.cm,n,n.length-1),r)})),getSelection:function(e){for(var t,r=this.sel.ranges,n=0;n<r.length;n++){var o=et(this,r[n].from(),r[n].to());t=t?t.concat(o):o}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],r=this.sel.ranges,n=0;n<r.length;n++){var o=et(this,r[n].from(),r[n].to());!1!==e&&(o=o.join(e||this.lineSeparator())),t[n]=o}return t},replaceSelection:function(e,t,r){for(var n=[],o=0;o<this.sel.ranges.length;o++)n[o]=e;this.replaceSelections(n,t,r||"+input")},replaceSelections:Do((function(e,t,r){for(var n=[],o=this.sel,i=0;i<o.ranges.length;i++){var a=o.ranges[i];n[i]={from:a.from(),to:a.to(),text:this.splitLines(e[i]),origin:r}}for(var l=t&&"end"!=t&&mi(this,n,t),s=n.length-1;s>=0;s--)ea(this,n[s]);l?Ui(this,l):this.cm&&uo(this.cm)})),undo:Do((function(){ra(this,"undo")})),redo:Do((function(){ra(this,"redo")})),undoSelection:Do((function(){ra(this,"undo",!0)})),redoSelection:Do((function(){ra(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var o=0;o<e.undone.length;o++)e.undone[o].ranges||++r;return{undo:t,redo:r}},clearHistory:function(){var e=this;this.history=new Si(this.history),wi(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ni(this.history.done),undone:Ni(this.history.undone)}},setHistory:function(e){var t=this.history=new Si(this.history);t.done=Ni(e.done.slice(0),null,!0),t.undone=Ni(e.undone.slice(0),null,!0)},setGutterMarker:Do((function(e,t,r){return ca(this,e,"gutter",(function(e){var n=e.gutterMarkers||(e.gutterMarkers={});return n[t]=r,!r&&ie(n)&&(e.gutterMarkers=null),!0}))})),clearGutter:Do((function(e){var t=this;this.iter((function(r){r.gutterMarkers&&r.gutterMarkers[e]&&ca(t,r,"gutter",(function(){return r.gutterMarkers[e]=null,ie(r.gutterMarkers)&&(r.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!it(this,e))return null;if(t=e,!(e=Je(this,e)))return null}else if(null==(t=nt(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Do((function(e,t,r){return ca(this,e,"gutter"==t?"gutter":"class",(function(e){var n="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[n]){if(E(r).test(e[n]))return!1;e[n]+=" "+r}else e[n]=r;return!0}))})),removeLineClass:Do((function(e,t,r){return ca(this,e,"gutter"==t?"gutter":"class",(function(e){var n="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",o=e[n];if(!o)return!1;if(null==r)e[n]=null;else{var i=o.match(E(r));if(!i)return!1;var a=i.index+i[0].length;e[n]=o.slice(0,i.index)+(i.index&&a!=o.length?" ":"")+o.slice(a)||null}return!0}))})),addLineWidget:Do((function(e,t,r){return ma(this,e,t,r)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return ya(this,ht(this,e),ht(this,t),r,r&&r.type||"range")},setBookmark:function(e,t){var r={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return ya(this,e=ht(this,e),e,r,"bookmark")},findMarksAt:function(e){var t=[],r=Je(this,(e=ht(this,e)).line).markedSpans;if(r)for(var n=0;n<r.length;++n){var o=r[n];(null==o.from||o.from<=e.ch)&&(null==o.to||o.to>=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,r){e=ht(this,e),t=ht(this,t);var n=[],o=e.line;return this.iter(e.line,t.line+1,(function(i){var a=i.markedSpans;if(a)for(var l=0;l<a.length;l++){var s=a[l];null!=s.to&&o==e.line&&e.ch>=s.to||null==s.from&&o!=e.line||null!=s.from&&o==t.line&&s.from>=t.ch||r&&!r(s.marker)||n.push(s.marker.parent||s.marker)}++o})),n},getAllMarks:function(){var e=[];return this.iter((function(t){var r=t.markedSpans;if(r)for(var n=0;n<r.length;++n)null!=r[n].from&&e.push(r[n].marker)})),e},posFromIndex:function(e){var t,r=this.first,n=this.lineSeparator().length;return this.iter((function(o){var i=o.text.length+n;if(i>e)return t=e,!0;e-=i,++r})),ht(this,lt(r,t))},indexFromPos:function(e){var t=(e=ht(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+r})),t},copy:function(e){var t=new Oa(tt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,r=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<r&&(r=e.to);var n=new Oa(tt(this,t,r),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],xa(n,_a(this)),n},unlinkDoc:function(e){if(e instanceof Fl&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),ka(_a(this));break}if(e.history==this.history){var r=[e.id];wi(e,(function(e){return r.push(e.id)}),!0),e.history=new Si(null),e.history.done=Ni(this.history.done,r),e.history.undone=Ni(this.history.undone,r)}},iterLinkedDocs:function(e){wi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ne(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Do((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&ki(this.cm))}))}),Oa.prototype.eachLine=Oa.prototype.iter;var Ea=0;function Ca(e){var t=this;if(Ma(t),!we(t,e)&&!qr(t.display,e)){Se(e),l&&(Ea=+new Date);var r=Dn(t,e,!0),n=e.dataTransfer.files;if(r&&!t.isReadOnly())if(n&&n.length&&window.FileReader&&window.File)for(var o=n.length,i=Array(o),a=0,s=function(){++a==o&&Ro(t,(function(){var e={from:r=ht(t.doc,r),to:r,text:t.doc.splitLines(i.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};ea(t.doc,e),Ui(t.doc,ci(ht(t.doc,r),ht(t.doc,fi(e))))}))()},u=function(e,r){if(t.options.allowDropFileTypes&&-1==W(t.options.allowDropFileTypes,e.type))s();else{var n=new FileReader;n.onerror=function(){return s()},n.onload=function(){var e=n.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(i[r]=e),s()},n.readAsText(e)}},c=0;c<n.length;c++)u(n[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(r)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),qi(t.doc,ci(r,r)),d)for(var p=0;p<d.length;++p)aa(t.doc,"",d[p].anchor,d[p].head,"drag");t.replaceSelection(f,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Ta(e,t){if(l&&(!e.state.draggingText||+new Date-Ea<100))Ce(t);else if(!we(e,t)&&!qr(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var r=A("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),p&&r.parentNode.removeChild(r)}}function La(t,r){var n=Dn(t,r);if(n){var o=e.createDocumentFragment();Gn(t,n,o),t.display.dragCursor||(t.display.dragCursor=A("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),M(t.display.dragCursor,o)}}function Ma(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Aa(t){if(e.getElementsByClassName){for(var r=e.getElementsByClassName("CodeMirror"),n=[],o=0;o<r.length;o++){var i=r[o].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var e=0;e<n.length;e++)t(n[e])}))}}var ja=!1;function Pa(){ja||(Ia(),ja=!0)}function Ia(){var e;ve(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Aa(Ra)}),100))})),ve(window,"blur",(function(){return Aa(eo)}))}function Ra(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Na={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Da=0;Da<10;Da++)Na[Da+48]=Na[Da+96]=String(Da);for(var za=65;za<=90;za++)Na[za]=String.fromCharCode(za);for(var Fa=1;Fa<=12;Fa++)Na[Fa+111]=Na[Fa+63235]="F"+Fa;var Ha={};function Ba(e){var t,r,n,o,i=e.split(/-(?!$)/);e=i[i.length-1];for(var a=0;a<i.length-1;a++){var l=i[a];if(/^(cmd|meta|m)$/i.test(l))o=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else{if(!/^s(hift)?$/i.test(l))throw new Error("Unrecognized modifier name: "+l);n=!0}}return t&&(e="Alt-"+e),r&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),n&&(e="Shift-"+e),e}function Wa(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if("..."==n){delete e[r];continue}for(var o=X(r.split(" "),Ba),i=0;i<o.length;i++){var a=void 0,l=void 0;i==o.length-1?(l=o.join(" "),a=n):(l=o.slice(0,i+1).join(" "),a="...");var s=t[l];if(s){if(s!=a)throw new Error("Inconsistent bindings for "+l)}else t[l]=a}delete e[r]}for(var u in t)e[u]=t[u];return e}function Ua(e,t,r,n){var o=(t=Ga(t)).call?t.call(e,n):t[e];if(!1===o)return"nothing";if("..."===o)return"multi";if(null!=o&&r(o))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Ua(e,t.fallthrough,r,n);for(var i=0;i<t.fallthrough.length;i++){var a=Ua(e,t.fallthrough[i],r,n);if(a)return a}}}function Va(e){var t="string"==typeof e?e:Na[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function qa(e,t,r){var n=e;return t.altKey&&"Alt"!=n&&(e="Alt-"+e),(S?t.metaKey:t.ctrlKey)&&"Ctrl"!=n&&(e="Ctrl-"+e),(S?t.ctrlKey:t.metaKey)&&"Mod"!=n&&(e="Cmd-"+e),!r&&t.shiftKey&&"Shift"!=n&&(e="Shift-"+e),e}function $a(e,t){if(p&&34==e.keyCode&&e.char)return!1;var r=Na[e.keyCode];return null!=r&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(r=e.code),qa(r,e,t))}function Ga(e){return"string"==typeof e?Ha[e]:e}function Ka(e,t){for(var r=e.doc.sel.ranges,n=[],o=0;o<r.length;o++){for(var i=t(r[o]);n.length&&st(i.from,Z(n).to)<=0;){var a=n.pop();if(st(a.from,i.from)<0){i.from=a.from;break}}n.push(i)}Io(e,(function(){for(var t=n.length-1;t>=0;t--)aa(e.doc,"",n[t].from,n[t].to,"+delete");uo(e)}))}function Ya(e,t,r){var n=se(e.text,t+r,r);return n<0||n>e.text.length?null:n}function Qa(e,t,r){var n=Ya(e,t.ch,r);return null==n?null:new lt(t.line,n,r<0?"after":"before")}function Za(e,t,r,n,o){if(e){"rtl"==t.doc.direction&&(o=-o);var i=he(r,t.doc.direction);if(i){var a,l=o<0?Z(i):i[0],s=o<0==(1==l.level)?"after":"before";if(l.level>0||"rtl"==t.doc.direction){var u=nn(t,r);a=o<0?r.text.length-1:0;var c=on(t,u,a).top;a=ue((function(e){return on(t,u,e).top==c}),o<0==(1==l.level)?l.from:l.to-1,a),"before"==s&&(a=Ya(r,a,1))}else a=o<0?l.to:l.from;return new lt(n,a,s)}}return new lt(n,o<0?r.text.length:0,o<0?"before":"after")}function Xa(e,t,r,n){var o=he(t,e.doc.direction);if(!o)return Qa(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var i=de(o,r.ch,r.sticky),a=o[i];if("ltr"==e.doc.direction&&a.level%2==0&&(n>0?a.to>r.ch:a.from<r.ch))return Qa(t,r,n);var l,s=function(e,r){return Ya(t,e instanceof lt?e.ch:e,r)},u=function(r){return e.options.lineWrapping?(l=l||nn(e,t),En(e,t,l,r)):{begin:0,end:t.text.length}},c=u("before"==r.sticky?s(r,-1):r.ch);if("rtl"==e.doc.direction||1==a.level){var f=1==a.level==n<0,d=s(r,f?1:-1);if(null!=d&&(f?d<=a.to&&d<=c.end:d>=a.from&&d>=c.begin)){var p=f?"before":"after";return new lt(r.line,d,p)}}var h=function(e,t,n){for(var i=function(e,t){return t?new lt(r.line,s(e,1),"before"):new lt(r.line,e,"after")};e>=0&&e<o.length;e+=t){var a=o[e],l=t>0==(1!=a.level),u=l?n.begin:s(n.end,-1);if(a.from<=u&&u<a.to)return i(u,l);if(u=l?a.from:s(a.to,-1),n.begin<=u&&u<n.end)return i(u,l)}},m=h(i+n,n,c);if(m)return m;var v=n>0?c.end:s(c.begin,-1);return null==v||n>0&&v==t.text.length||!(m=h(n>0?0:o.length-1,n,u(v)))?null:m}Ha.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ha.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ha.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ha.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ha.default=w?Ha.macDefault:Ha.pcDefault;var Ja={selectAll:Xi,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),q)},killLine:function(e){return Ka(e,(function(t){if(t.empty()){var r=Je(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line<e.lastLine()?{from:t.head,to:lt(t.head.line+1,0)}:{from:t.head,to:lt(t.head.line,r)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Ka(e,(function(t){return{from:lt(t.from().line,0),to:ht(e.doc,lt(t.to().line+1,0))}}))},delLineLeft:function(e){return Ka(e,(function(e){return{from:lt(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Ka(e,(function(t){var r=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:r},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Ka(e,(function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div");return{from:t.from(),to:n}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(lt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(lt(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return el(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return rl(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return tl(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div")}),G)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:r},"div")}),G)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var r=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return n.ch<e.getLine(n.line).search(/\S/)?rl(e,t.head):n}),G)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],r=e.listSelections(),n=e.options.tabSize,o=0;o<r.length;o++){var i=r[o].from(),a=H(e.getLine(i.line),i.ch,n);t.push(Q(n-a%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Io(e,(function(){for(var t=e.listSelections(),r=[],n=0;n<t.length;n++)if(t[n].empty()){var o=t[n].head,i=Je(e.doc,o.line).text;if(i)if(o.ch==i.length&&(o=new lt(o.line,o.ch-1)),o.ch>0)o=new lt(o.line,o.ch+1),e.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),lt(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=Je(e.doc,o.line-1).text;a&&(o=new lt(o.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),lt(o.line-1,a.length-1),o,"+transpose"))}r.push(new si(o,o))}e.setSelections(r)}))},newlineAndIndent:function(e){return Io(e,(function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);uo(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function el(e,t){var r=Je(e.doc,t),n=er(r);return n!=r&&(t=nt(n)),Za(!0,e,n,t,1)}function tl(e,t){var r=Je(e.doc,t),n=tr(r);return n!=r&&(t=nt(n)),Za(!0,e,r,t,-1)}function rl(e,t){var r=el(e,t.line),n=Je(e.doc,r.line),o=he(n,e.doc.direction);if(!o||0==o[0].level){var i=Math.max(r.ch,n.text.search(/\S/)),a=t.line==r.line&&t.ch<=i&&t.ch;return lt(r.line,a?0:i,r.sticky)}return r}function nl(e,t,r){if("string"==typeof t&&!(t=Ja[t]))return!1;e.display.input.ensurePolled();var n=e.display.shift,o=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r&&(e.display.shift=!1),o=t(e)!=V}finally{e.display.shift=n,e.state.suppressEdits=!1}return o}function ol(e,t,r){for(var n=0;n<e.state.keyMaps.length;n++){var o=Ua(t,e.state.keyMaps[n],r,e);if(o)return o}return e.options.extraKeys&&Ua(t,e.options.extraKeys,r,e)||Ua(t,e.options.keyMap,r,e)}var il=new B;function al(e,t,r,n){var o=e.state.keySeq;if(o){if(Va(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:il.set(50,(function(){e.state.keySeq==o&&(e.state.keySeq=null,e.display.input.reset())})),ll(e,o+" "+t,r,n))return!0}return ll(e,t,r,n)}function ll(e,t,r,n){var o=ol(e,t,n);return"multi"==o&&(e.state.keySeq=t),"handled"==o&&Mr(e,"keyHandled",e,t,r),"handled"!=o&&"multi"!=o||(Se(r),Qn(e)),!!o}function sl(e,t){var r=$a(t,!0);return!!r&&(t.shiftKey&&!e.state.keySeq?al(e,"Shift-"+r,t,(function(t){return nl(e,t,!0)}))||al(e,r,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return nl(e,t)})):al(e,r,t,(function(t){return nl(e,t)})))}function ul(e,t,r){return al(e,"'"+r+"'",t,(function(t){return nl(e,t,!0)}))}var cl=null;function fl(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField()||(r.curOp.focus=I(),we(r,t)))){l&&s<11&&27==t.keyCode&&(t.returnValue=!1);var o=t.keyCode;r.display.shift=16==o||t.shiftKey;var i=sl(r,t);p&&(cl=i?o:null,i||88!=o||ze||!(w?t.metaKey:t.ctrlKey)||r.replaceSelection("",null,"cut")),n&&!w&&!i&&46==o&&t.shiftKey&&!t.ctrlKey&&e.execCommand&&e.execCommand("cut"),18!=o||/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)||dl(r)}}function dl(t){var r=t.display.lineDiv;function n(t){18!=t.keyCode&&t.altKey||(T(r,"CodeMirror-crosshair"),ye(e,"keyup",n),ye(e,"mouseover",n))}R(r,"CodeMirror-crosshair"),ve(e,"keyup",n),ve(e,"mouseover",n)}function pl(e){16==e.keyCode&&(this.doc.sel.shift=!1),we(this,e)}function hl(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||qr(t.display,e)||we(t,e)||e.ctrlKey&&!e.altKey||w&&e.metaKey)){var r=e.keyCode,n=e.charCode;if(p&&r==cl)return cl=null,void Se(e);if(!p||e.which&&!(e.which<10)||!sl(t,e)){var o=String.fromCharCode(null==n?r:n);"\b"!=o&&(ul(t,e,o)||t.display.input.onKeyPress(e))}}}var ml,vl,gl=400,yl=function(e,t,r){this.time=e,this.pos=t,this.button=r};function bl(e,t){var r=+new Date;return vl&&vl.compare(r,e,t)?(ml=vl=null,"triple"):ml&&ml.compare(r,e,t)?(vl=new yl(r,e,t),ml=null,"double"):(ml=new yl(r,e,t),vl=null,"single")}function wl(e){var t=this,r=t.display;if(!(we(t,e)||r.activeTouch&&r.input.supportsTouch()))if(r.input.ensurePolled(),r.shift=e.shiftKey,qr(r,e))u||(r.scroller.draggable=!1,setTimeout((function(){return r.scroller.draggable=!0}),100));else if(!Ll(t,e)){var n=Dn(t,e),o=Le(e),i=n?bl(n,o):"single";window.focus(),1==o&&t.state.selectingText&&t.state.selectingText(e),n&&_l(t,o,n,i,e)||(1==o?n?kl(t,n,i,e):Te(e)==r.scroller&&Se(e):2==o?(n&&zi(t.doc,n),setTimeout((function(){return r.input.focus()}),20)):3==o&&(O?t.display.input.onContextMenu(e):Xn(t)))}}function _l(e,t,r,n,o){var i="Click";return"double"==n?i="Double"+i:"triple"==n&&(i="Triple"+i),al(e,qa(i=(1==t?"Left":2==t?"Middle":"Right")+i,o),o,(function(t){if("string"==typeof t&&(t=Ja[t]),!t)return!1;var n=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n=t(e,r)!=V}finally{e.state.suppressEdits=!1}return n}))}function xl(e,t,r){var n=e.getOption("configureMouse"),o=n?n(e,t,r):{};if(null==o.unit){var i=_?r.shiftKey&&r.metaKey:r.altKey;o.unit=i?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==o.extend||e.doc.extend)&&(o.extend=e.doc.extend||r.shiftKey),null==o.addNew&&(o.addNew=w?r.metaKey:r.ctrlKey),null==o.moveOnDrag&&(o.moveOnDrag=!(w?r.altKey:r.ctrlKey)),o}function kl(e,t,r,n){l?setTimeout(z(Zn,e),0):e.curOp.focus=I();var o,i=xl(e,r,n),a=e.doc.sel;e.options.dragDrop&&je&&!e.isReadOnly()&&"single"==r&&(o=a.contains(t))>-1&&(st((o=a.ranges[o]).from(),t)<0||t.xRel>0)&&(st(o.to(),t)>0||t.xRel<0)?Sl(e,n,t,i):El(e,n,t,i)}function Sl(e,t,r,n){var o=e.display,i=!1,a=Ro(e,(function(t){u&&(o.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Xn(e)),ye(o.wrapper.ownerDocument,"mouseup",a),ye(o.wrapper.ownerDocument,"mousemove",c),ye(o.scroller,"dragstart",f),ye(o.scroller,"drop",a),i||(Se(t),n.addNew||zi(e.doc,r,null,null,n.extend),u&&!h||l&&9==s?setTimeout((function(){o.wrapper.ownerDocument.body.focus({preventScroll:!0}),o.input.focus()}),20):o.input.focus())})),c=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return i=!0};u&&(o.scroller.draggable=!0),e.state.draggingText=a,a.copy=!n.moveOnDrag,ve(o.wrapper.ownerDocument,"mouseup",a),ve(o.wrapper.ownerDocument,"mousemove",c),ve(o.scroller,"dragstart",f),ve(o.scroller,"drop",a),e.state.delayingBlurEvent=!0,setTimeout((function(){return o.input.focus()}),20),o.scroller.dragDrop&&o.scroller.dragDrop()}function Ol(e,t,r){if("char"==r)return new si(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new si(lt(t.line,0),ht(e.doc,lt(t.line+1,0)));var n=r(e,t);return new si(n.from,n.to)}function El(e,t,r,n){l&&Xn(e);var o=e.display,i=e.doc;Se(t);var a,s,u=i.sel,c=u.ranges;if(n.addNew&&!n.extend?(s=i.sel.contains(r),a=s>-1?c[s]:new si(r,r)):(a=i.sel.primary(),s=i.sel.primIndex),"rectangle"==n.unit)n.addNew||(a=new si(r,r)),r=Dn(e,t,!0,!0),s=-1;else{var f=Ol(e,r,n.unit);a=n.extend?Di(a,f.anchor,f.head,n.extend):f}n.addNew?-1==s?(s=c.length,Vi(i,ui(e,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==n.unit&&!n.extend?(Vi(i,ui(e,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),u=i.sel):Hi(i,s,a,$):(s=0,Vi(i,new li([a],0),$),u=i.sel);var d=r;function p(t){if(0!=st(d,t))if(d=t,"rectangle"==n.unit){for(var o=[],l=e.options.tabSize,c=H(Je(i,r.line).text,r.ch,l),f=H(Je(i,t.line).text,t.ch,l),p=Math.min(c,f),h=Math.max(c,f),m=Math.min(r.line,t.line),v=Math.min(e.lastLine(),Math.max(r.line,t.line));m<=v;m++){var g=Je(i,m).text,y=K(g,p,l);p==h?o.push(new si(lt(m,y),lt(m,y))):g.length>y&&o.push(new si(lt(m,y),lt(m,K(g,h,l))))}o.length||o.push(new si(r,r)),Vi(i,ui(e,u.ranges.slice(0,s).concat(o),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=a,_=Ol(e,t,n.unit),x=w.anchor;st(_.anchor,x)>0?(b=_.head,x=dt(w.from(),_.anchor)):(b=_.anchor,x=ft(w.to(),_.head));var k=u.ranges.slice(0);k[s]=Cl(e,new si(ht(i,x),b)),Vi(i,ui(e,k,s),$)}}var h=o.wrapper.getBoundingClientRect(),m=0;function v(t){var r=++m,a=Dn(e,t,!0,"rectangle"==n.unit);if(a)if(0!=st(a,d)){e.curOp.focus=I(),p(a);var l=no(o,i);(a.line>=l.to||a.line<l.from)&&setTimeout(Ro(e,(function(){m==r&&v(t)})),150)}else{var s=t.clientY<h.top?-20:t.clientY>h.bottom?20:0;s&&setTimeout(Ro(e,(function(){m==r&&(o.scroller.scrollTop+=s,v(t))})),50)}}function g(t){e.state.selectingText=!1,m=1/0,t&&(Se(t),o.input.focus()),ye(o.wrapper.ownerDocument,"mousemove",y),ye(o.wrapper.ownerDocument,"mouseup",b),i.history.lastSelOrigin=null}var y=Ro(e,(function(e){0!==e.buttons&&Le(e)?v(e):g(e)})),b=Ro(e,g);e.state.selectingText=b,ve(o.wrapper.ownerDocument,"mousemove",y),ve(o.wrapper.ownerDocument,"mouseup",b)}function Cl(e,t){var r=t.anchor,n=t.head,o=Je(e.doc,r.line);if(0==st(r,n)&&r.sticky==n.sticky)return t;var i=he(o);if(!i)return t;var a=de(i,r.ch,r.sticky),l=i[a];if(l.from!=r.ch&&l.to!=r.ch)return t;var s,u=a+(l.from==r.ch==(1!=l.level)?0:1);if(0==u||u==i.length)return t;if(n.line!=r.line)s=(n.line-r.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=de(i,n.ch,n.sticky),f=c-a||(n.ch-r.ch)*(1==l.level?-1:1);s=c==u-1||c==u?f<0:f>0}var d=i[u+(s?-1:0)],p=s==(1==d.level),h=p?d.from:d.to,m=p?"after":"before";return r.ch==h&&r.sticky==m?t:new si(new lt(r.line,h,m),n)}function Tl(e,t,r,n){var o,i;if(t.touches)o=t.touches[0].clientX,i=t.touches[0].clientY;else try{o=t.clientX,i=t.clientY}catch(e){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&Se(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(i>l.bottom||!xe(e,r))return Ee(t);i-=l.top-a.viewOffset;for(var s=0;s<e.display.gutterSpecs.length;++s){var u=a.gutters.childNodes[s];if(u&&u.getBoundingClientRect().right>=o)return be(e,r,e,ot(e.doc,i),e.display.gutterSpecs[s].className,t),Ee(t)}}function Ll(e,t){return Tl(e,t,"gutterClick",!0)}function Ml(e,t){qr(e.display,t)||Al(e,t)||we(e,t,"contextmenu")||O||e.display.input.onContextMenu(t)}function Al(e,t){return!!xe(e,"gutterContextMenu")&&Tl(e,t,"gutterContextMenu",!1)}function jl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),hn(e)}yl.prototype.compare=function(e,t,r){return this.time+gl>e&&0==st(t,this.pos)&&r==this.button};var Pl={toString:function(){return"CodeMirror.Init"}},Il={},Rl={};function Nl(e){var t=e.optionHandlers;function r(r,n,o,i){e.defaults[r]=n,o&&(t[r]=i?function(e,t,r){r!=Pl&&o(e,t,r)}:o)}e.defineOption=r,e.Init=Pl,r("value","",(function(e,t){return e.setValue(t)}),!0),r("mode",null,(function(e,t){e.doc.modeOption=t,vi(e)}),!0),r("indentUnit",2,vi,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,(function(e){gi(e),hn(e),Fn(e)}),!0),r("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var r=[],n=e.doc.first;e.doc.iter((function(e){for(var o=0;;){var i=e.text.indexOf(t,o);if(-1==i)break;o=i+t.length,r.push(lt(n,i))}n++}));for(var o=r.length-1;o>=0;o--)aa(e.doc,t,r[o],lt(r[o].line,r[o].ch+t.length))}})),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=Pl&&e.refresh()})),r("specialCharPlaceholder",gr,(function(e){return e.refresh()}),!0),r("electricChars",!0),r("inputStyle",b?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),r("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),r("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),r("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),r("rtlMoveVisually",!x),r("wholeLineUpdateBefore",!0),r("theme","default",(function(e){jl(e),ei(e)}),!0),r("keyMap","default",(function(e,t,r){var n=Ga(t),o=r!=Pl&&Ga(r);o&&o.detach&&o.detach(e,n),n.attach&&n.attach(e,o||null)})),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,zl,!0),r("gutters",[],(function(e,t){e.display.gutterSpecs=Xo(t,e.options.lineNumbers),ei(e)}),!0),r("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?In(e.display)+"px":"0",e.refresh()}),!0),r("coverGutterNextToScrollbar",!1,(function(e){return _o(e)}),!0),r("scrollbarStyle","native",(function(e){So(e),_o(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),r("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Xo(e.options.gutters,t),ei(e)}),!0),r("firstLineNumber",1,ei,!0),r("lineNumberFormatter",(function(e){return e}),ei,!0),r("showCursorWhenSelecting",!1,qn,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,(function(e,t){"nocursor"==t&&(eo(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),r("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),r("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),r("dragDrop",!0,Dl),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,qn,!0),r("singleCursorHeightPerLine",!0,qn,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,gi,!0),r("addModeClass",!1,gi,!0),r("pollInterval",100),r("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),r("historyEventDelay",1250),r("viewportMargin",10,(function(e){return e.refresh()}),!0),r("maxHighlightLength",1e4,gi,!0),r("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),r("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),r("autofocus",null),r("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),r("phrases",null)}function Dl(e,t,r){if(!t!=!(r&&r!=Pl)){var n=e.display.dragFunctions,o=t?ve:ye;o(e.display.scroller,"dragstart",n.start),o(e.display.scroller,"dragenter",n.enter),o(e.display.scroller,"dragover",n.over),o(e.display.scroller,"dragleave",n.leave),o(e.display.scroller,"drop",n.drop)}}function zl(e){e.options.lineWrapping?(R(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),ur(e)),Nn(e),Fn(e),hn(e),setTimeout((function(){return _o(e)}),100)}function Fl(e,t){var r=this;if(!(this instanceof Fl))return new Fl(e,t);this.options=t=t?F(t):{},F(Il,t,!1);var n=t.value;"string"==typeof n?n=new Oa(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var o=new Fl.inputStyles[t.inputStyle](this),i=this.display=new ti(e,n,o,t);for(var a in i.wrapper.CodeMirror=this,jl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),So(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new B,keySeq:null,specialChars:null},t.autofocus&&!b&&i.input.focus(),l&&s<11&&setTimeout((function(){return r.display.input.reset(!0)}),20),Hl(this),Pa(),Eo(this),this.curOp.forceUpdate=!0,_i(this,n),t.autofocus&&!b||this.hasFocus()?setTimeout((function(){r.hasFocus()&&!r.state.focused&&Jn(r)}),20):eo(this),Rl)Rl.hasOwnProperty(a)&&Rl[a](this,t[a],Pl);Zo(this),t.finishInit&&t.finishInit(this);for(var c=0;c<Bl.length;++c)Bl[c](this);Co(this),u&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(i.lineDiv).textRendering&&(i.lineDiv.style.textRendering="auto")}function Hl(e){var t=e.display;ve(t.scroller,"mousedown",Ro(e,wl)),ve(t.scroller,"dblclick",l&&s<11?Ro(e,(function(t){if(!we(e,t)){var r=Dn(e,t);if(r&&!Ll(e,t)&&!qr(e.display,t)){Se(t);var n=e.findWordAt(r);zi(e.doc,n.anchor,n.head)}}})):function(t){return we(e,t)||Se(t)}),ve(t.scroller,"contextmenu",(function(t){return Ml(e,t)})),ve(t.input.getField(),"contextmenu",(function(r){t.scroller.contains(r.target)||Ml(e,r)}));var r,n={end:0};function o(){t.activeTouch&&(r=setTimeout((function(){return t.activeTouch=null}),1e3),(n=t.activeTouch).end=+new Date)}function i(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function a(e,t){if(null==t.left)return!0;var r=t.left-e.left,n=t.top-e.top;return r*r+n*n>400}ve(t.scroller,"touchstart",(function(o){if(!we(e,o)&&!i(o)&&!Ll(e,o)){t.input.ensurePolled(),clearTimeout(r);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-n.end<=300?n:null},1==o.touches.length&&(t.activeTouch.left=o.touches[0].pageX,t.activeTouch.top=o.touches[0].pageY)}})),ve(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ve(t.scroller,"touchend",(function(r){var n=t.activeTouch;if(n&&!qr(t,r)&&null!=n.left&&!n.moved&&new Date-n.start<300){var i,l=e.coordsChar(t.activeTouch,"page");i=!n.prev||a(n,n.prev)?new si(l,l):!n.prev.prev||a(n,n.prev.prev)?e.findWordAt(l):new si(lt(l.line,0),ht(e.doc,lt(l.line+1,0))),e.setSelection(i.anchor,i.head),e.focus(),Se(r)}o()})),ve(t.scroller,"touchcancel",o),ve(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(mo(e,t.scroller.scrollTop),go(e,t.scroller.scrollLeft,!0),be(e,"scroll",e))})),ve(t.scroller,"mousewheel",(function(t){return ai(e,t)})),ve(t.scroller,"DOMMouseScroll",(function(t){return ai(e,t)})),ve(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){we(e,t)||Ce(t)},over:function(t){we(e,t)||(La(e,t),Ce(t))},start:function(t){return Ta(e,t)},drop:Ro(e,Ca),leave:function(t){we(e,t)||Ma(e)}};var u=t.input.getField();ve(u,"keyup",(function(t){return pl.call(e,t)})),ve(u,"keydown",Ro(e,fl)),ve(u,"keypress",Ro(e,hl)),ve(u,"focus",(function(t){return Jn(e,t)})),ve(u,"blur",(function(t){return eo(e,t)}))}Fl.defaults=Il,Fl.optionHandlers=Rl;var Bl=[];function Wl(e,t,r,n){var o,i=e.doc;null==r&&(r="add"),"smart"==r&&(i.mode.indent?o=_t(e,t).state:r="prev");var a=e.options.tabSize,l=Je(i,t),s=H(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var u,c=l.text.match(/^\s*/)[0];if(n||/\S/.test(l.text)){if("smart"==r&&((u=i.mode.indent(o,l.text.slice(c.length),l.text))==V||u>150)){if(!n)return;r="prev"}}else u=0,r="not";"prev"==r?u=t>i.first?H(Je(i,t-1).text,null,a):0:"add"==r?u=s+e.options.indentUnit:"subtract"==r?u=s-e.options.indentUnit:"number"==typeof r&&(u=s+r),u=Math.max(0,u);var f="",d=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)d+=a,f+="\t";if(d<u&&(f+=Q(u-d)),f!=c)return aa(i,f,lt(t,0),lt(t,c.length),"+input"),l.stateAfter=null,!0;for(var h=0;h<i.sel.ranges.length;h++){var m=i.sel.ranges[h];if(m.head.line==t&&m.head.ch<c.length){var v=lt(t,c.length);Hi(i,h,new si(v,v));break}}}Fl.defineInitHook=function(e){return Bl.push(e)};var Ul=null;function Vl(e){Ul=e}function ql(e,t,r,n,o){var i=e.doc;e.display.shift=!1,n||(n=i.sel);var a=+new Date-200,l="paste"==o||e.state.pasteIncoming>a,s=Ne(t),u=null;if(l&&n.ranges.length>1)if(Ul&&Ul.text.join("\n")==t){if(n.ranges.length%Ul.text.length==0){u=[];for(var c=0;c<Ul.text.length;c++)u.push(i.splitLines(Ul.text[c]))}}else s.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(u=X(s,(function(e){return[e]})));for(var f=e.curOp.updateInput,d=n.ranges.length-1;d>=0;d--){var p=n.ranges[d],h=p.from(),m=p.to();p.empty()&&(r&&r>0?h=lt(h.line,h.ch-r):e.state.overwrite&&!l?m=lt(m.line,Math.min(Je(i,m.line).text.length,m.ch+Z(s).length)):l&&Ul&&Ul.lineWise&&Ul.text.join("\n")==s.join("\n")&&(h=m=lt(h.line,0)));var v={from:h,to:m,text:u?u[d%u.length]:s,origin:o||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};ea(e.doc,v),Mr(e,"inputRead",e,v)}t&&!l&&Gl(e,t),uo(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function $l(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Io(t,(function(){return ql(t,r,0,null,"paste")})),!0}function Gl(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var o=r.ranges[n];if(!(o.head.ch>100||n&&r.ranges[n-1].head.line==o.head.line)){var i=e.getModeAt(o.head),a=!1;if(i.electricChars){for(var l=0;l<i.electricChars.length;l++)if(t.indexOf(i.electricChars.charAt(l))>-1){a=Wl(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(Je(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=Wl(e,o.head.line,"smart"));a&&Mr(e,"electricInput",e,o.head.line)}}}function Kl(e){for(var t=[],r=[],n=0;n<e.doc.sel.ranges.length;n++){var o=e.doc.sel.ranges[n].head.line,i={anchor:lt(o,0),head:lt(o+1,0)};r.push(i),t.push(e.getRange(i.anchor,i.head))}return{text:t,ranges:r}}function Yl(e,t,r,n){e.setAttribute("autocorrect",r?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function Ql(){var e=A("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=A("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return u?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),Yl(e),t}function Zl(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,r){var n=this.options,o=n[e];n[e]==r&&"mode"!=e||(n[e]=r,t.hasOwnProperty(e)&&Ro(this,t[e])(this,r,o),be(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Ga(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,r=0;r<t.length;++r)if(t[r]==e||t[r].name==e)return t.splice(r,1),!0},addOverlay:No((function(t,r){var n=t.token?t:e.getMode(this.options,t);if(n.startState)throw new Error("Overlays may not be stateful.");J(this.state.overlays,{mode:n,modeSpec:t,opaque:r&&r.opaque,priority:r&&r.priority||0},(function(e){return e.priority})),this.state.modeGen++,Fn(this)})),removeOverlay:No((function(e){for(var t=this.state.overlays,r=0;r<t.length;++r){var n=t[r].modeSpec;if(n==e||"string"==typeof e&&n.name==e)return t.splice(r,1),this.state.modeGen++,void Fn(this)}})),indentLine:No((function(e,t,r){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),it(this.doc,e)&&Wl(this,e,t,r)})),indentSelection:No((function(e){for(var t=this.doc.sel.ranges,r=-1,n=0;n<t.length;n++){var o=t[n];if(o.empty())o.head.line>r&&(Wl(this,o.head.line,e,!0),r=o.head.line,n==this.doc.sel.primIndex&&uo(this));else{var i=o.from(),a=o.to(),l=Math.max(r,i.line);r=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var s=l;s<r;++s)Wl(this,s,e);var u=this.doc.sel.ranges;0==i.ch&&t.length==u.length&&u[n].from().ch>0&&Hi(this.doc,n,new si(i,u[n].to()),q)}}})),getTokenAt:function(e,t){return Et(this,e,t)},getLineTokens:function(e,t){return Et(this,lt(e),t,!0)},getTokenTypeAt:function(e){e=ht(this.doc,e);var t,r=wt(this,Je(this.doc,e.line)),n=0,o=(r.length-1)/2,i=e.ch;if(0==i)t=r[2];else for(;;){var a=n+o>>1;if((a?r[2*a-1]:0)>=i)o=a;else{if(!(r[2*a+1]<i)){t=r[2*a+2];break}n=a+1}}var l=t?t.indexOf("overlay "):-1;return l<0?t:0==l?null:t.slice(0,l-1)},getModeAt:function(t){var r=this.doc.mode;return r.innerMode?e.innerMode(r,this.getTokenAt(t).state).mode:r},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=[];if(!r.hasOwnProperty(t))return n;var o=r[t],i=this.getModeAt(e);if("string"==typeof i[t])o[i[t]]&&n.push(o[i[t]]);else if(i[t])for(var a=0;a<i[t].length;a++){var l=o[i[t][a]];l&&n.push(l)}else i.helperType&&o[i.helperType]?n.push(o[i.helperType]):o[i.name]&&n.push(o[i.name]);for(var s=0;s<o._global.length;s++){var u=o._global[s];u.pred(i,this)&&-1==W(n,u.val)&&n.push(u.val)}return n},getStateAfter:function(e,t){var r=this.doc;return _t(this,(e=pt(r,null==e?r.first+r.size-1:e))+1,t).state},cursorCoords:function(e,t){var r=this.doc.sel.primary();return _n(this,null==e?r.head:"object"==typeof e?ht(this.doc,e):e?r.from():r.to(),t||"page")},charCoords:function(e,t){return wn(this,ht(this.doc,e),t||"page")},coordsChar:function(e,t){return Sn(this,(e=bn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=bn(this,{top:e,left:0},t||"page").top,ot(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,r){var n,o=!1;if("number"==typeof e){var i=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>i&&(e=i,o=!0),n=Je(this.doc,e)}else n=e;return yn(this,n,{top:0,left:0},t||"page",r||o).top+(o?this.doc.height-lr(n):0)},defaultTextHeight:function(){return An(this.display)},defaultCharWidth:function(){return jn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,n,o){var i=this.display,a=(e=_n(this,ht(this.doc,e))).bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),i.sizer.appendChild(t),"over"==n)a=e.top;else if("above"==n||"near"==n){var s=Math.max(i.wrapper.clientHeight,this.doc.height),u=Math.max(i.sizer.clientWidth,i.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(a=e.bottom),l+t.offsetWidth>u&&(l=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==o?(l=i.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?l=0:"middle"==o&&(l=(i.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),r&&ao(this,{left:l,top:a,right:l+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:No(fl),triggerOnKeyPress:No(hl),triggerOnKeyUp:pl,triggerOnMouseDown:No(wl),execCommand:function(e){if(Ja.hasOwnProperty(e))return Ja[e].call(null,this)},triggerElectric:No((function(e){Gl(this,e)})),findPosH:function(e,t,r,n){var o=1;t<0&&(o=-1,t=-t);for(var i=ht(this.doc,e),a=0;a<t&&!(i=Xl(this.doc,i,o,r,n)).hitSide;++a);return i},moveH:No((function(e,t){var r=this;this.extendSelectionsBy((function(n){return r.display.shift||r.doc.extend||n.empty()?Xl(r.doc,n.head,e,t,r.options.rtlMoveVisually):e<0?n.from():n.to()}),G)})),deleteH:No((function(e,t){var r=this.doc.sel,n=this.doc;r.somethingSelected()?n.replaceSelection("",null,"+delete"):Ka(this,(function(r){var o=Xl(n,r.head,e,t,!1);return e<0?{from:o,to:r.head}:{from:r.head,to:o}}))})),findPosV:function(e,t,r,n){var o=1,i=n;t<0&&(o=-1,t=-t);for(var a=ht(this.doc,e),l=0;l<t;++l){var s=_n(this,a,"div");if(null==i?i=s.left:s.left=i,(a=Jl(this,s,o,r)).hitSide)break}return a},moveV:No((function(e,t){var r=this,n=this.doc,o=[],i=!this.display.shift&&!n.extend&&n.sel.somethingSelected();if(n.extendSelectionsBy((function(a){if(i)return e<0?a.from():a.to();var l=_n(r,a.head,"div");null!=a.goalColumn&&(l.left=a.goalColumn),o.push(l.left);var s=Jl(r,l,e,t);return"page"==t&&a==n.sel.primary()&&so(r,wn(r,s,"div").top-l.top),s}),G),o.length)for(var a=0;a<n.sel.ranges.length;a++)n.sel.ranges[a].goalColumn=o[a]})),findWordAt:function(e){var t=Je(this.doc,e.line).text,r=e.ch,n=e.ch;if(t){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&n!=t.length||!r?++n:--r;for(var i=t.charAt(r),a=oe(i,o)?function(e){return oe(e,o)}:/\s/.test(i)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!oe(e)};r>0&&a(t.charAt(r-1));)--r;for(;n<t.length&&a(t.charAt(n));)++n}return new si(lt(e.line,r),lt(e.line,n))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?R(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),be(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==I()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:No((function(e,t){co(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Yr(this)-this.display.barHeight,width:e.scrollWidth-Yr(this)-this.display.barWidth,clientHeight:Zr(this),clientWidth:Qr(this)}},scrollIntoView:No((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:lt(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?fo(this,e):ho(this,e.from,e.to,e.margin)})),setSize:No((function(e,t){var r=this,n=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=n(e)),null!=t&&(this.display.wrapper.style.height=n(t)),this.options.lineWrapping&&pn(this);var o=this.display.viewFrom;this.doc.iter(o,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Hn(r,o,"widget");break}++o})),this.curOp.forceUpdate=!0,be(this,"refresh",this)})),operation:function(e){return Io(this,e)},startOperation:function(){return Eo(this)},endOperation:function(){return Co(this)},refresh:No((function(){var e=this.display.cachedTextHeight;Fn(this),this.curOp.forceUpdate=!0,hn(this),co(this,this.doc.scrollLeft,this.doc.scrollTop),Ko(this.display),(null==e||Math.abs(e-An(this.display))>.5||this.options.lineWrapping)&&Nn(this),be(this,"refresh",this)})),swapDoc:No((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),_i(this,e),hn(this),this.display.input.reset(),co(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Mr(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ke(e),e.registerHelper=function(t,n,o){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][n]=o},e.registerGlobalHelper=function(t,n,o,i){e.registerHelper(t,n,i),r[t]._global.push({pred:o,val:i})}}function Xl(e,t,r,n,o){var i=t,a=r,l=Je(e,t.line),s=o&&"rtl"==e.direction?-r:r;function u(){var r=t.line+s;return!(r<e.first||r>=e.first+e.size)&&(t=new lt(r,t.ch,t.sticky),l=Je(e,r))}function c(i){var a;if("codepoint"==n){var c=l.text.charCodeAt(t.ch+(r>0?0:-1));if(isNaN(c))a=null;else{var f=r>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new lt(t.line,Math.max(0,Math.min(l.text.length,t.ch+r*(f?2:1))),-r)}}else a=o?Xa(e.cm,l,t,r):Qa(l,t,r);if(null==a){if(i||!u())return!1;t=Za(o,e.cm,l,t.line,s)}else t=a;return!0}if("char"==n||"codepoint"==n)c();else if("column"==n)c(!0);else if("word"==n||"group"==n)for(var f=null,d="group"==n,p=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(r<0)||c(!h);h=!1){var m=l.text.charAt(t.ch)||"\n",v=oe(m,p)?"w":d&&"\n"==m?"n":!d||/\s/.test(m)?null:"p";if(!d||h||v||(v="s"),f&&f!=v){r<0&&(r=1,c(),t.sticky="after");break}if(v&&(f=v),r>0&&!c(!h))break}var g=Qi(e,t,i,a,!0);return ut(i,g)&&(g.hitSide=!0),g}function Jl(t,r,n,o){var i,a,l=t.doc,s=r.left;if("page"==o){var u=Math.min(t.display.wrapper.clientHeight,window.innerHeight||e.documentElement.clientHeight),c=Math.max(u-.5*An(t.display),3);i=(n>0?r.bottom:r.top)+n*c}else"line"==o&&(i=n>0?r.bottom+3:r.top-3);for(;(a=Sn(t,s,i)).outside;){if(n<0?i<=0:i>=l.height){a.hitSide=!0;break}i+=5*n}return a}var es=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function ts(e,t){var r=rn(e,t.line);if(!r||r.hidden)return null;var n=Je(e.doc,t.line),o=Jr(r,n,t.line),i=he(n,e.doc.direction),a="left";i&&(a=de(i,t.ch)%2?"right":"left");var l=sn(o.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function rs(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ns(e,t){return t&&(e.bad=!0),e}function os(e,t,r,n,o){var i="",a=!1,l=e.doc.lineSeparator(),s=!1;function u(e){return function(t){return t.id==e}}function c(){a&&(i+=l,s&&(i+=l),a=s=!1)}function f(e){e&&(c(),i+=e)}function d(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(r)return void f(r);var i,p=t.getAttribute("cm-marker");if(p){var h=e.findMarks(lt(n,0),lt(o+1,0),u(+p));return void(h.length&&(i=h[0].find(0))&&f(et(e.doc,i.from,i.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&c();for(var v=0;v<t.childNodes.length;v++)d(t.childNodes[v]);/^(pre|p)$/i.test(t.nodeName)&&(s=!0),m&&(a=!0)}else 3==t.nodeType&&f(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;d(t),t!=r;)t=t.nextSibling,s=!1;return i}function is(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[r]))return ns(e.clipPos(lt(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var o=0;o<e.display.view.length;o++){var i=e.display.view[o];if(i.node==n)return as(i,t,r)}}function as(e,t,r){var n=e.text.firstChild,o=!1;if(!t||!P(n,t))return ns(lt(nt(e.line),0),!0);if(t==n&&(o=!0,t=n.childNodes[r],r=0,!t)){var i=e.rest?Z(e.rest):e.line;return ns(lt(nt(i),i.text.length),o)}var a=3==t.nodeType?t:null,l=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,r&&(r=a.nodeValue.length));l.parentNode!=n;)l=l.parentNode;var s=e.measure,u=s.maps;function c(t,r,n){for(var o=-1;o<(u?u.length:0);o++)for(var i=o<0?s.map:u[o],a=0;a<i.length;a+=3){var l=i[a+2];if(l==t||l==r){var c=nt(o<0?e.line:e.rest[o]),f=i[a]+n;return(n<0||l!=t)&&(f=i[a+(n?1:0)]),lt(c,f)}}}var f=c(a,l,r);if(f)return ns(f,o);for(var d=l.nextSibling,p=a?a.nodeValue.length-r:0;d;d=d.nextSibling){if(f=c(d,d.firstChild,0))return ns(lt(f.line,f.ch-p),o);p+=d.textContent.length}for(var h=l.previousSibling,m=r;h;h=h.previousSibling){if(f=c(h,h.firstChild,-1))return ns(lt(f.line,f.ch+m),o);m+=h.textContent.length}}es.prototype.init=function(e){var t=this,r=this,n=r.cm,o=r.div=e.lineDiv;function i(e){for(var t=e.target;t;t=t.parentNode){if(t==o)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(i(e)&&!we(n,e)){if(n.somethingSelected())Vl({lineWise:!1,text:n.getSelections()}),"cut"==e.type&&n.replaceSelection("",null,"cut");else{if(!n.options.lineWiseCopyCut)return;var t=Kl(n);Vl({lineWise:!0,text:t.text}),"cut"==e.type&&n.operation((function(){n.setSelections(t.ranges,0,q),n.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=Ul.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var l=Ql(),s=l.firstChild;n.display.lineSpace.insertBefore(l,n.display.lineSpace.firstChild),s.value=Ul.text.join("\n");var u=I();D(s),setTimeout((function(){n.display.lineSpace.removeChild(l),u.focus(),u==o&&r.showPrimarySelection()}),50)}}o.contentEditable=!0,Yl(o,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize),ve(o,"paste",(function(e){!i(e)||we(n,e)||$l(e,n)||s<=11&&setTimeout(Ro(n,(function(){return t.updateFromDOM()})),20)})),ve(o,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),ve(o,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),ve(o,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),ve(o,"touchstart",(function(){return r.forceCompositionEnd()})),ve(o,"input",(function(){t.composing||t.readFromDOMSoon()})),ve(o,"copy",a),ve(o,"cut",a)},es.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},es.prototype.prepareSelection=function(){var e=$n(this.cm,!1);return e.focus=I()==this.div,e},es.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},es.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},es.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),o=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||o.line>=t.display.viewTo||i.line<t.display.viewFrom)e.removeAllRanges();else{var a=is(t,e.anchorNode,e.anchorOffset),l=is(t,e.focusNode,e.focusOffset);if(!a||a.bad||!l||l.bad||0!=st(dt(a,l),o)||0!=st(ft(a,l),i)){var s=t.display.view,u=o.line>=t.display.viewFrom&&ts(t,o)||{node:s[0].measure.map[2],offset:0},c=i.line<t.display.viewTo&&ts(t,i);if(!c){var f=s[s.length-1].measure,d=f.maps?f.maps[f.maps.length-1]:f.map;c={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}}if(u&&c){var p,h=e.rangeCount&&e.getRangeAt(0);try{p=C(u.node,u.offset,c.offset,c.node)}catch(e){}p&&(!n&&t.state.focused?(e.collapse(u.node,u.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},es.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},es.prototype.showMultipleSelections=function(e){M(this.cm.display.cursorDiv,e.cursors),M(this.cm.display.selectionDiv,e.selection)},es.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},es.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return P(this.div,t)},es.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&I()==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},es.prototype.blur=function(){this.div.blur()},es.prototype.getField=function(){return this.div},es.prototype.supportsTouch=function(){return!0},es.prototype.receivedFocus=function(){var e=this,t=this;function r(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,r))}this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):Io(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,r)},es.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},es.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(y&&f&&this.cm.display.gutterSpecs.length&&rs(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var r=is(t,e.anchorNode,e.anchorOffset),n=is(t,e.focusNode,e.focusOffset);r&&n&&Io(t,(function(){Vi(t.doc,ci(r,n),q),(r.bad||n.bad)&&(t.curOp.selectionChanged=!0)}))}}},es.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,r,n=this.cm,o=n.display,i=n.doc.sel.primary(),a=i.from(),l=i.to();if(0==a.ch&&a.line>n.firstLine()&&(a=lt(a.line-1,Je(n.doc,a.line-1).length)),l.ch==Je(n.doc,l.line).text.length&&l.line<n.lastLine()&&(l=lt(l.line+1,0)),a.line<o.viewFrom||l.line>o.viewTo-1)return!1;a.line==o.viewFrom||0==(e=zn(n,a.line))?(t=nt(o.view[0].line),r=o.view[0].node):(t=nt(o.view[e].line),r=o.view[e-1].node.nextSibling);var s,u,c=zn(n,l.line);if(c==o.view.length-1?(s=o.viewTo-1,u=o.lineDiv.lastChild):(s=nt(o.view[c+1].line)-1,u=o.view[c+1].node.previousSibling),!r)return!1;for(var f=n.doc.splitLines(os(n,r,u,t,s)),d=et(n.doc,lt(t,0),lt(s,Je(n.doc,s).text.length));f.length>1&&d.length>1;)if(Z(f)==Z(d))f.pop(),d.pop(),s--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),t++}for(var p=0,h=0,m=f[0],v=d[0],g=Math.min(m.length,v.length);p<g&&m.charCodeAt(p)==v.charCodeAt(p);)++p;for(var y=Z(f),b=Z(d),w=Math.min(y.length-(1==f.length?p:0),b.length-(1==d.length?p:0));h<w&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==f.length&&1==d.length&&t==a.line)for(;p&&p>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;f[f.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(p).replace(/\u200b+$/,"");var _=lt(t,p),x=lt(s,d.length?Z(d).length-h:0);return f.length>1||f[0]||st(_,x)?(aa(n.doc,f,_,x,"+input"),!0):void 0},es.prototype.ensurePolled=function(){this.forceCompositionEnd()},es.prototype.reset=function(){this.forceCompositionEnd()},es.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},es.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},es.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Io(this.cm,(function(){return Fn(e.cm)}))},es.prototype.setUneditable=function(e){e.contentEditable="false"},es.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ro(this.cm,ql)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},es.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},es.prototype.onContextMenu=function(){},es.prototype.resetPosition=function(){},es.prototype.needsContentAttribute=!0;var ls=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null};function ss(t,r){if((r=r?F(r):{}).value=t.value,!r.tabindex&&t.tabIndex&&(r.tabindex=t.tabIndex),!r.placeholder&&t.placeholder&&(r.placeholder=t.placeholder),null==r.autofocus){var n=I();r.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==e.body}function o(){t.value=s.getValue()}var i;if(t.form&&(ve(t.form,"submit",o),!r.leaveSubmitMethodAlone)){var a=t.form;i=a.submit;try{var l=a.submit=function(){o(),a.submit=i,a.submit(),a.submit=l}}catch(e){}}r.finishInit=function(e){e.save=o,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,o(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display="",t.form&&(ye(t.form,"submit",o),r.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var s=Fl((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),r);return s}function us(e){e.off=ye,e.on=ve,e.wheelEventPixels=ii,e.Doc=Oa,e.splitLines=Ne,e.countColumn=H,e.findColumn=K,e.isWordChar=ne,e.Pass=V,e.signal=be,e.Line=cr,e.changeEnd=fi,e.scrollbarModel=ko,e.Pos=lt,e.cmpPos=st,e.modes=Be,e.mimeModes=We,e.resolveMode=qe,e.getMode=$e,e.modeExtensions=Ge,e.extendMode=Ke,e.copyState=Ye,e.startState=Ze,e.innerMode=Qe,e.commands=Ja,e.keyMap=Ha,e.keyName=$a,e.isModifierKey=Va,e.lookupKey=Ua,e.normalizeKeyMap=Wa,e.StringStream=Xe,e.SharedTextMarker=ba,e.TextMarker=ga,e.LineWidget=pa,e.e_preventDefault=Se,e.e_stopPropagation=Oe,e.e_stop=Ce,e.addClass=R,e.contains=P,e.rmClass=T,e.keyNames=Na}ls.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var o=this.textarea;function i(e){if(!we(n,e)){if(n.somethingSelected())Vl({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var t=Kl(n);Vl({lineWise:!0,text:t.text}),"cut"==e.type?n.setSelections(t.ranges,null,q):(r.prevInput="",o.value=t.text.join("\n"),D(o))}"cut"==e.type&&(n.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(o.style.width="0px"),ve(o,"input",(function(){l&&s>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()})),ve(o,"paste",(function(e){we(n,e)||$l(e,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())})),ve(o,"cut",i),ve(o,"copy",i),ve(e.scroller,"paste",(function(t){if(!qr(e,t)&&!we(n,t)){if(!o.dispatchEvent)return n.state.pasteIncoming=+new Date,void r.focus();var i=new Event("paste");i.clipboardData=t.clipboardData,o.dispatchEvent(i)}})),ve(e.lineSpace,"selectstart",(function(t){qr(e,t)||Se(t)})),ve(o,"compositionstart",(function(){var e=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:n.markText(e,n.getCursor("to"),{className:"CodeMirror-composing"})}})),ve(o,"compositionend",(function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)}))},ls.prototype.createField=function(e){this.wrapper=Ql(),this.textarea=this.wrapper.firstChild},ls.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ls.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=$n(e);if(e.options.moveInputWithCursor){var o=_n(e,r.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-i.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-i.left))}return n},ls.prototype.showSelection=function(e){var t=this.cm.display;M(t.cursorDiv,e.cursors),M(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ls.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&D(this.textarea),l&&s>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",l&&s>=9&&(this.hasSelection=null))}},ls.prototype.getField=function(){return this.textarea},ls.prototype.supportsTouch=function(){return!1},ls.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!b||I()!=this.textarea))try{this.textarea.focus()}catch(e){}},ls.prototype.blur=function(){this.textarea.blur()},ls.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ls.prototype.receivedFocus=function(){this.slowPoll()},ls.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},ls.prototype.fastPoll=function(){var e=!1,t=this;function r(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,r))}t.pollingFast=!0,t.polling.set(20,r)},ls.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||De(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=r.value;if(o==n&&!t.somethingSelected())return!1;if(l&&s>=9&&this.hasSelection===o||w&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=o.charCodeAt(0);if(8203!=i||n||(n="\u200b"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var a=0,u=Math.min(n.length,o.length);a<u&&n.charCodeAt(a)==o.charCodeAt(a);)++a;return Io(t,(function(){ql(t,o.slice(a),n.length-a,null,e.composing?"*compose":null),o.length>1e3||o.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ls.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ls.prototype.onKeyPress=function(){l&&s>=9&&(this.hasSelection=null),this.fastPoll()},ls.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,o=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=Dn(r,e),a=n.scroller.scrollTop;if(i&&!p){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(i)&&Ro(r,Vi)(r.doc,ci(i),q);var c,f=o.style.cssText,d=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(l?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",u&&(c=window.scrollY),n.input.focus(),u&&window.scrollTo(null,c),n.input.reset(),r.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=g,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll),l&&s>=9&&v(),O){Ce(e);var m=function(){ye(window,"mouseup",m),setTimeout(g,20)};ve(window,"mouseup",m)}else setTimeout(g,50)}function v(){if(null!=o.selectionStart){var e=r.somethingSelected(),i="\u200b"+(e?o.value:"");o.value="\u21da",o.value=i,t.prevInput=e?"":"\u200b",o.selectionStart=1,o.selectionEnd=i.length,n.selForContextMenu=r.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,o.style.cssText=f,l&&s<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=a),null!=o.selectionStart)){(!l||l&&s<9)&&v();var e=0,i=function(){n.selForContextMenu==r.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&"\u200b"==t.prevInput?Ro(r,Xi)(r):e++<10?n.detectingSelectAll=setTimeout(i,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(i,200)}}},ls.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},ls.prototype.setUneditable=function(){},ls.prototype.needsContentAttribute=!1,Nl(Fl),Zl(Fl);var cs="iter insert remove copy getEditor constructor".split(" ");for(var fs in Oa.prototype)Oa.prototype.hasOwnProperty(fs)&&W(cs,fs)<0&&(Fl.prototype[fs]=function(e){return function(){return e.apply(this.doc,arguments)}}(Oa.prototype[fs]));return ke(Oa),Fl.inputStyles={textarea:ls,contenteditable:es},Fl.defineMode=function(e){Fl.defaults.mode||"null"==e||(Fl.defaults.mode=e),Ue.apply(this,arguments)},Fl.defineMIME=Ve,Fl.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Fl.defineMIME("text/plain","null"),Fl.defineExtension=function(e,t){Fl.prototype[e]=t},Fl.defineDocExtension=function(e,t){Oa.prototype[e]=t},Fl.fromTextArea=ss,us(Fl),Fl.version="5.65.5",Fl}()},7530:(e,t,r)=>{!function(e){"use strict";function t(e){for(var t={},r=0;r<e.length;++r)t[e[r].toLowerCase()]=!0;return t}e.defineMode("css",(function(t,r){var n=r.inline;r.propertyKeywords||(r=e.resolveMode("text/css"));var o,i,a=t.indentUnit,l=r.tokenHooks,s=r.documentTypes||{},u=r.mediaTypes||{},c=r.mediaFeatures||{},f=r.mediaValueKeywords||{},d=r.propertyKeywords||{},p=r.nonStandardPropertyKeywords||{},h=r.fontProperties||{},m=r.counterDescriptors||{},v=r.colorKeywords||{},g=r.valueKeywords||{},y=r.allowNested,b=r.lineComment,w=!0===r.supportsAtComponent,_=!1!==t.highlightNonStandardPropertyKeywords;function x(e,t){return o=t,e}function k(e,t){var r=e.next();if(l[r]){var n=l[r](e,t);if(!1!==n)return n}return"@"==r?(e.eatWhile(/[\w\\\-]/),x("def",e.current())):"="==r||("~"==r||"|"==r)&&e.eat("=")?x(null,"compare"):'"'==r||"'"==r?(t.tokenize=S(r),t.tokenize(e,t)):"#"==r?(e.eatWhile(/[\w\\\-]/),x("atom","hash")):"!"==r?(e.match(/^\s*\w*/),x("keyword","important")):/\d/.test(r)||"."==r&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),x("number","unit")):"-"!==r?/[,+>*\/]/.test(r)?x(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?x(null,r):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=O),x("variable callee","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),x("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable")):e.match(/^\w+-/)?x("meta","meta"):void 0}function S(e){return function(t,r){for(var n,o=!1;null!=(n=t.next());){if(n==e&&!o){")"==e&&t.backUp(1);break}o=!o&&"\\"==n}return(n==e||!o&&")"!=e)&&(r.tokenize=null),x("string","string")}}function O(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=S(")"),x(null,"(")}function E(e,t,r){this.type=e,this.indent=t,this.prev=r}function C(e,t,r,n){return e.context=new E(r,t.indentation()+(!1===n?0:a),e.context),r}function T(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function L(e,t,r){return j[r.context.type](e,t,r)}function M(e,t,r,n){for(var o=n||1;o>0;o--)r.context=r.context.prev;return L(e,t,r)}function A(e){var t=e.current().toLowerCase();i=g.hasOwnProperty(t)?"atom":v.hasOwnProperty(t)?"keyword":"variable"}var j={top:function(e,t,r){if("{"==e)return C(r,t,"block");if("}"==e&&r.context.prev)return T(r);if(w&&/@component/i.test(e))return C(r,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return C(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return C(r,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return C(r,t,"at");if("hash"==e)i="builtin";else if("word"==e)i="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return C(r,t,"interpolation");if(":"==e)return"pseudo";if(y&&"("==e)return C(r,t,"parens")}return r.context.type},block:function(e,t,r){if("word"==e){var n=t.current().toLowerCase();return d.hasOwnProperty(n)?(i="property","maybeprop"):p.hasOwnProperty(n)?(i=_?"string-2":"property","maybeprop"):y?(i=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(i+=" error","maybeprop")}return"meta"==e?"block":y||"hash"!=e&&"qualifier"!=e?j.top(e,t,r):(i="error","block")},maybeprop:function(e,t,r){return":"==e?C(r,t,"prop"):L(e,t,r)},prop:function(e,t,r){if(";"==e)return T(r);if("{"==e&&y)return C(r,t,"propBlock");if("}"==e||"{"==e)return M(e,t,r);if("("==e)return C(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)A(t);else if("interpolation"==e)return C(r,t,"interpolation")}else i+=" error";return"prop"},propBlock:function(e,t,r){return"}"==e?T(r):"word"==e?(i="property","maybeprop"):r.context.type},parens:function(e,t,r){return"{"==e||"}"==e?M(e,t,r):")"==e?T(r):"("==e?C(r,t,"parens"):"interpolation"==e?C(r,t,"interpolation"):("word"==e&&A(t),"parens")},pseudo:function(e,t,r){return"meta"==e?"pseudo":"word"==e?(i="variable-3",r.context.type):L(e,t,r)},documentTypes:function(e,t,r){return"word"==e&&s.hasOwnProperty(t.current())?(i="tag",r.context.type):j.atBlock(e,t,r)},atBlock:function(e,t,r){if("("==e)return C(r,t,"atBlock_parens");if("}"==e||";"==e)return M(e,t,r);if("{"==e)return T(r)&&C(r,t,y?"block":"top");if("interpolation"==e)return C(r,t,"interpolation");if("word"==e){var n=t.current().toLowerCase();i="only"==n||"not"==n||"and"==n||"or"==n?"keyword":u.hasOwnProperty(n)?"attribute":c.hasOwnProperty(n)?"property":f.hasOwnProperty(n)?"keyword":d.hasOwnProperty(n)?"property":p.hasOwnProperty(n)?_?"string-2":"property":g.hasOwnProperty(n)?"atom":v.hasOwnProperty(n)?"keyword":"error"}return r.context.type},atComponentBlock:function(e,t,r){return"}"==e?M(e,t,r):"{"==e?T(r)&&C(r,t,y?"block":"top",!1):("word"==e&&(i="error"),r.context.type)},atBlock_parens:function(e,t,r){return")"==e?T(r):"{"==e||"}"==e?M(e,t,r,2):j.atBlock(e,t,r)},restricted_atBlock_before:function(e,t,r){return"{"==e?C(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(i="variable","restricted_atBlock_before"):L(e,t,r)},restricted_atBlock:function(e,t,r){return"}"==e?(r.stateArg=null,T(r)):"word"==e?(i="@font-face"==r.stateArg&&!h.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!m.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,r){return"word"==e?(i="variable","keyframes"):"{"==e?C(r,t,"top"):L(e,t,r)},at:function(e,t,r){return";"==e?T(r):"{"==e||"}"==e?M(e,t,r):("word"==e?i="tag":"hash"==e&&(i="builtin"),"at")},interpolation:function(e,t,r){return"}"==e?T(r):"{"==e||";"==e?M(e,t,r):("word"==e?i="variable":"variable"!=e&&"("!=e&&")"!=e&&(i="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:n?"block":"top",stateArg:null,context:new E(n?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var r=(t.tokenize||k)(e,t);return r&&"object"==typeof r&&(o=r[1],r=r[0]),i=r,"comment"!=o&&(t.state=j[t.state](o,e,t)),i},indent:function(e,t){var r=e.context,n=t&&t.charAt(0),o=r.indent;return"prop"!=r.type||"}"!=n&&")"!=n||(r=r.prev),r.prev&&("}"!=n||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=n||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=n||"at"!=r.type&&"atBlock"!=r.type)||(o=Math.max(0,r.indent-a)):o=(r=r.prev).indent),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}}));var r=["domain","regexp","url","url-prefix"],n=t(r),o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=t(o),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],l=t(a),s=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],u=t(s),c=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],f=t(c),d=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],p=t(d),h=t(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),m=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),v=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],g=t(v),y=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],b=t(y),w=r.concat(o).concat(a).concat(s).concat(c).concat(d).concat(v).concat(y);function _(e,t){for(var r,n=!1;null!=(r=e.next());){if(n&&"/"==r){t.tokenize=null;break}n="*"==r}return["comment","comment"]}e.registerHelper("hintWords","css",w),e.defineMIME("text/css",{documentTypes:n,mediaTypes:i,mediaFeatures:l,mediaValueKeywords:u,propertyKeywords:f,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:m,colorKeywords:g,valueKeywords:b,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=_,_(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:i,mediaFeatures:l,mediaValueKeywords:u,propertyKeywords:f,nonStandardPropertyKeywords:p,colorKeywords:g,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=_,_(e,t)):["operator","operator"]},":":function(e){return!!e.match(/^\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:i,mediaFeatures:l,mediaValueKeywords:u,propertyKeywords:f,nonStandardPropertyKeywords:p,colorKeywords:g,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=_,_(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:n,mediaTypes:i,mediaFeatures:l,propertyKeywords:f,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:m,colorKeywords:g,valueKeywords:b,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=_,_(e,t))}},name:"css",helperType:"gss"})}(r(3458))},372:(e,t,r)=>{!function(e){"use strict";var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function r(e,t,r){var n=e.current(),o=n.search(t);return o>-1?e.backUp(n.length-o):n.match(/<\/?$/)&&(e.backUp(n.length),e.match(t,!1)||e.match(n)),r}var n={};function o(e){var t=n[e];return t||(n[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function i(e,t){var r=e.match(o(t));return r?/^\s*(.*?)\s*$/.exec(r[2])[1]:""}function a(e,t){return new RegExp((t?"^":"")+"</\\s*"+e+"\\s*>","i")}function l(e,t){for(var r in e)for(var n=t[r]||(t[r]=[]),o=e[r],i=o.length-1;i>=0;i--)n.unshift(o[i])}function s(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(!n[0]||n[1].test(i(t,n[0])))return n[2]}}e.defineMode("htmlmixed",(function(n,o){var i=e.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:o.multilineTagIndentFactor,multilineTagIndentPastTag:o.multilineTagIndentPastTag,allowMissingTagName:o.allowMissingTagName}),u={},c=o&&o.tags,f=o&&o.scriptTypes;if(l(t,u),c&&l(c,u),f)for(var d=f.length-1;d>=0;d--)u.script.unshift(["type",f[d].matches,f[d].mode]);function p(t,o){var l,c=i.token(t,o.htmlState),f=/\btag\b/.test(c);if(f&&!/[<>\s\/]/.test(t.current())&&(l=o.htmlState.tagName&&o.htmlState.tagName.toLowerCase())&&u.hasOwnProperty(l))o.inTag=l+" ";else if(o.inTag&&f&&/>$/.test(t.current())){var d=/^([\S]+) (.*)/.exec(o.inTag);o.inTag=null;var h=">"==t.current()&&s(u[d[1]],d[2]),m=e.getMode(n,h),v=a(d[1],!0),g=a(d[1],!1);o.token=function(e,t){return e.match(v,!1)?(t.token=p,t.localState=t.localMode=null,null):r(e,g,t.localMode.token(e,t.localState))},o.localMode=m,o.localState=e.startState(m,i.indent(o.htmlState,"",""))}else o.inTag&&(o.inTag+=t.current(),t.eol()&&(o.inTag+=" "));return c}return{startState:function(){return{token:p,inTag:null,localMode:null,localState:null,htmlState:e.startState(i)}},copyState:function(t){var r;return t.localState&&(r=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:r,htmlState:e.copyState(i,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,r,n){return!t.localMode||/^\s*<\//.test(r)?i.indent(t.htmlState,r,n):t.localMode.indent?t.localMode.indent(t.localState,r,n):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||i}}}}),"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}(r(3458),r(2941),r(2215),r(7530))},2215:(e,t,r)=>{!function(e){"use strict";e.defineMode("javascript",(function(t,r){var n,o,i=t.indentUnit,a=r.statementIndent,l=r.jsonld,s=r.json||l,u=!1!==r.trackScope,c=r.typescript,f=r.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),o=e("keyword d"),i=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:o,break:o,continue:o,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:i,typeof:i,instanceof:i,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),p=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function v(e,t,r){return n=e,o=r,t}function g(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=y(r),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return v("number","number");if("."==r&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return v(r);if("="==r&&e.eat(">"))return v("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return v("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),v("number","number");if("/"==r)return e.eat("*")?(t.tokenize=b,b(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):ot(e,t,1)?(m(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==r)return t.tokenize=w,w(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),v("meta","meta");if("#"==r&&e.eatWhile(f))return v("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),v("comment","comment");if(p.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?v("."):v("operator","operator",e.current());if(f.test(r)){e.eatWhile(f);var n=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(n)){var o=d[n];return v(o.type,o.style,n)}if("async"==n&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",n)}return v("variable","variable",n)}}function y(e){return function(t,r){var n,o=!1;if(l&&"@"==t.peek()&&t.match(h))return r.tokenize=g,v("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||o);)o=!o&&"\\"==n;return o||(r.tokenize=g),v("string","string")}}function b(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=g;break}n="*"==r}return v("comment","comment")}function w(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=g;break}n=!n&&"\\"==r}return v("quasi","string-2",e.current())}var _="([{}])";function x(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(c){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var o=0,i=!1,a=r-1;a>=0;--a){var l=e.string.charAt(a),s=_.indexOf(l);if(s>=0&&s<3){if(!o){++a;break}if(0==--o){"("==l&&(i=!0);break}}else if(s>=3&&s<6)++o;else if(f.test(l))i=!0;else if(/["'\/`]/.test(l))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==l&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(i&&!o){++a;break}}i&&!o&&(t.fatArrowAt=a)}}var k={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function S(e,t,r,n,o,i){this.indented=e,this.column=t,this.type=r,this.prev=o,this.info=i,null!=n&&(this.align=n)}function O(e,t){if(!u)return!1;for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}function E(e,t,r,n,o){var i=e.cc;for(C.state=e,C.stream=o,C.marked=null,C.cc=i,C.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((i.length?i.pop():s?q:U)(r,n)){for(;i.length&&i[i.length-1].lex;)i.pop()();return C.marked?C.marked:"variable"==r&&O(e,n)?"variable-2":t}}var C={state:null,column:null,marked:null,cc:null};function T(){for(var e=arguments.length-1;e>=0;e--)C.cc.push(arguments[e])}function L(){return T.apply(null,arguments),!0}function M(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function A(e){var t=C.state;if(C.marked="def",u){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=j(e,t.context);if(null!=n)return void(t.context=n)}else if(!M(e,t.localVars))return void(t.localVars=new R(e,t.localVars));r.globalVars&&!M(e,t.globalVars)&&(t.globalVars=new R(e,t.globalVars))}}function j(e,t){if(t){if(t.block){var r=j(e,t.prev);return r?r==t.prev?t:new I(r,t.vars,!0):null}return M(e,t.vars)?t:new I(t.prev,new R(e,t.vars),!1)}return null}function P(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function I(e,t,r){this.prev=e,this.vars=t,this.block=r}function R(e,t){this.name=e,this.next=t}var N=new R("this",new R("arguments",null));function D(){C.state.context=new I(C.state.context,C.state.localVars,!1),C.state.localVars=N}function z(){C.state.context=new I(C.state.context,C.state.localVars,!0),C.state.localVars=null}function F(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}function H(e,t){var r=function(){var r=C.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var o=r.lexical;o&&")"==o.type&&o.align;o=o.prev)n=o.indented;r.lexical=new S(n,C.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function B(){var e=C.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function W(e){function t(r){return r==e?L():";"==e||"}"==r||")"==r||"]"==r?T():L(t)}return t}function U(e,t){return"var"==e?L(H("vardef",t),Te,W(";"),B):"keyword a"==e?L(H("form"),G,U,B):"keyword b"==e?L(H("form"),U,B):"keyword d"==e?C.stream.match(/^\s*$/,!1)?L():L(H("stat"),Y,W(";"),B):"debugger"==e?L(W(";")):"{"==e?L(H("}"),z,de,B,F):";"==e?L():"if"==e?("else"==C.state.lexical.info&&C.state.cc[C.state.cc.length-1]==B&&C.state.cc.pop()(),L(H("form"),G,U,B,Ie)):"function"==e?L(ze):"for"==e?L(H("form"),z,Re,U,F,B):"class"==e||c&&"interface"==t?(C.marked="keyword",L(H("form","class"==e?e:t),Ue,B)):"variable"==e?c&&"declare"==t?(C.marked="keyword",L(U)):c&&("module"==t||"enum"==t||"type"==t)&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword","enum"==t?L(tt):"type"==t?L(He,W("operator"),ge,W(";")):L(H("form"),Le,W("{"),H("}"),de,B,B)):c&&"namespace"==t?(C.marked="keyword",L(H("form"),q,U,B)):c&&"abstract"==t?(C.marked="keyword",L(U)):L(H("stat"),ie):"switch"==e?L(H("form"),G,W("{"),H("}","switch"),z,de,B,B,F):"case"==e?L(q,W(":")):"default"==e?L(W(":")):"catch"==e?L(H("form"),D,V,U,B,F):"export"==e?L(H("stat"),Ge,B):"import"==e?L(H("stat"),Ye,B):"async"==e?L(U):"@"==t?L(q,U):T(H("stat"),q,W(";"),B)}function V(e){if("("==e)return L(Be,W(")"))}function q(e,t){return K(e,t,!1)}function $(e,t){return K(e,t,!0)}function G(e){return"("!=e?T():L(H(")"),Y,W(")"),B)}function K(e,t,r){if(C.state.fatArrowAt==C.stream.start){var n=r?te:ee;if("("==e)return L(D,H(")"),ce(Be,")"),B,W("=>"),n,F);if("variable"==e)return T(D,Le,W("=>"),n,F)}var o=r?Z:Q;return k.hasOwnProperty(e)?L(o):"function"==e?L(ze,o):"class"==e||c&&"interface"==t?(C.marked="keyword",L(H("form"),We,B)):"keyword c"==e||"async"==e?L(r?$:q):"("==e?L(H(")"),Y,W(")"),B,o):"operator"==e||"spread"==e?L(r?$:q):"["==e?L(H("]"),et,B,o):"{"==e?fe(le,"}",null,o):"quasi"==e?T(X,o):"new"==e?L(re(r)):L()}function Y(e){return e.match(/[;\}\)\],]/)?T():T(q)}function Q(e,t){return","==e?L(Y):Z(e,t,!1)}function Z(e,t,r){var n=0==r?Q:Z,o=0==r?q:$;return"=>"==e?L(D,r?te:ee,F):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?L(n):c&&"<"==t&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?L(H(">"),ce(ge,">"),B,n):"?"==t?L(q,W(":"),o):L(o):"quasi"==e?T(X,n):";"!=e?"("==e?fe($,")","call",n):"."==e?L(ae,n):"["==e?L(H("]"),Y,W("]"),B,n):c&&"as"==t?(C.marked="keyword",L(ge,n)):"regexp"==e?(C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),L(o)):void 0:void 0}function X(e,t){return"quasi"!=e?T():"${"!=t.slice(t.length-2)?L(X):L(Y,J)}function J(e){if("}"==e)return C.marked="string-2",C.state.tokenize=w,L(X)}function ee(e){return x(C.stream,C.state),T("{"==e?U:q)}function te(e){return x(C.stream,C.state),T("{"==e?U:$)}function re(e){return function(t){return"."==t?L(e?oe:ne):"variable"==t&&c?L(Oe,e?Z:Q):T(e?$:q)}}function ne(e,t){if("target"==t)return C.marked="keyword",L(Q)}function oe(e,t){if("target"==t)return C.marked="keyword",L(Z)}function ie(e){return":"==e?L(B,U):T(Q,W(";"),B)}function ae(e){if("variable"==e)return C.marked="property",L()}function le(e,t){return"async"==e?(C.marked="property",L(le)):"variable"==e||"keyword"==C.style?(C.marked="property","get"==t||"set"==t?L(se):(c&&C.state.fatArrowAt==C.stream.start&&(r=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+r[0].length),L(ue))):"number"==e||"string"==e?(C.marked=l?"property":C.style+" property",L(ue)):"jsonld-keyword"==e?L(ue):c&&P(t)?(C.marked="keyword",L(le)):"["==e?L(q,pe,W("]"),ue):"spread"==e?L($,ue):"*"==t?(C.marked="keyword",L(le)):":"==e?T(ue):void 0;var r}function se(e){return"variable"!=e?T(ue):(C.marked="property",L(ze))}function ue(e){return":"==e?L($):"("==e?T(ze):void 0}function ce(e,t,r){function n(o,i){if(r?r.indexOf(o)>-1:","==o){var a=C.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),L((function(r,n){return r==t||n==t?T():T(e)}),n)}return o==t||i==t?L():r&&r.indexOf(";")>-1?T(e):L(W(t))}return function(r,o){return r==t||o==t?L():T(e,n)}}function fe(e,t,r){for(var n=3;n<arguments.length;n++)C.cc.push(arguments[n]);return L(H(t,r),ce(e,t),B)}function de(e){return"}"==e?L():T(U,de)}function pe(e,t){if(c){if(":"==e)return L(ge);if("?"==t)return L(pe)}}function he(e,t){if(c&&(":"==e||"in"==t))return L(ge)}function me(e){if(c&&":"==e)return C.stream.match(/^\s*\w+\s+is\b/,!1)?L(q,ve,ge):L(ge)}function ve(e,t){if("is"==t)return C.marked="keyword",L()}function ge(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(C.marked="keyword",L("typeof"==t?$:ge)):"variable"==e||"void"==t?(C.marked="type",L(Se)):"|"==t||"&"==t?L(ge):"string"==e||"number"==e||"atom"==e?L(Se):"["==e?L(H("]"),ce(ge,"]",","),B,Se):"{"==e?L(H("}"),be,B,Se):"("==e?L(ce(ke,")"),ye,Se):"<"==e?L(ce(ge,">"),ge):"quasi"==e?T(_e,Se):void 0}function ye(e){if("=>"==e)return L(ge)}function be(e){return e.match(/[\}\)\]]/)?L():","==e||";"==e?L(be):T(we,be)}function we(e,t){return"variable"==e||"keyword"==C.style?(C.marked="property",L(we)):"?"==t||"number"==e||"string"==e?L(we):":"==e?L(ge):"["==e?L(W("variable"),he,W("]"),we):"("==e?T(Fe,we):e.match(/[;\}\)\],]/)?void 0:L()}function _e(e,t){return"quasi"!=e?T():"${"!=t.slice(t.length-2)?L(_e):L(ge,xe)}function xe(e){if("}"==e)return C.marked="string-2",C.state.tokenize=w,L(_e)}function ke(e,t){return"variable"==e&&C.stream.match(/^\s*[?:]/,!1)||"?"==t?L(ke):":"==e?L(ge):"spread"==e?L(ke):T(ge)}function Se(e,t){return"<"==t?L(H(">"),ce(ge,">"),B,Se):"|"==t||"."==e||"&"==t?L(ge):"["==e?L(ge,W("]"),Se):"extends"==t||"implements"==t?(C.marked="keyword",L(ge)):"?"==t?L(ge,W(":"),ge):void 0}function Oe(e,t){if("<"==t)return L(H(">"),ce(ge,">"),B,Se)}function Ee(){return T(ge,Ce)}function Ce(e,t){if("="==t)return L(ge)}function Te(e,t){return"enum"==t?(C.marked="keyword",L(tt)):T(Le,pe,je,Pe)}function Le(e,t){return c&&P(t)?(C.marked="keyword",L(Le)):"variable"==e?(A(t),L()):"spread"==e?L(Le):"["==e?fe(Ae,"]"):"{"==e?fe(Me,"}"):void 0}function Me(e,t){return"variable"!=e||C.stream.match(/^\s*:/,!1)?("variable"==e&&(C.marked="property"),"spread"==e?L(Le):"}"==e?T():"["==e?L(q,W("]"),W(":"),Me):L(W(":"),Le,je)):(A(t),L(je))}function Ae(){return T(Le,je)}function je(e,t){if("="==t)return L($)}function Pe(e){if(","==e)return L(Te)}function Ie(e,t){if("keyword b"==e&&"else"==t)return L(H("form","else"),U,B)}function Re(e,t){return"await"==t?L(Re):"("==e?L(H(")"),Ne,B):void 0}function Ne(e){return"var"==e?L(Te,De):"variable"==e?L(De):T(De)}function De(e,t){return")"==e?L():";"==e?L(De):"in"==t||"of"==t?(C.marked="keyword",L(q,De)):T(q,De)}function ze(e,t){return"*"==t?(C.marked="keyword",L(ze)):"variable"==e?(A(t),L(ze)):"("==e?L(D,H(")"),ce(Be,")"),B,me,U,F):c&&"<"==t?L(H(">"),ce(Ee,">"),B,ze):void 0}function Fe(e,t){return"*"==t?(C.marked="keyword",L(Fe)):"variable"==e?(A(t),L(Fe)):"("==e?L(D,H(")"),ce(Be,")"),B,me,F):c&&"<"==t?L(H(">"),ce(Ee,">"),B,Fe):void 0}function He(e,t){return"keyword"==e||"variable"==e?(C.marked="type",L(He)):"<"==t?L(H(">"),ce(Ee,">"),B):void 0}function Be(e,t){return"@"==t&&L(q,Be),"spread"==e?L(Be):c&&P(t)?(C.marked="keyword",L(Be)):c&&"this"==e?L(pe,je):T(Le,pe,je)}function We(e,t){return"variable"==e?Ue(e,t):Ve(e,t)}function Ue(e,t){if("variable"==e)return A(t),L(Ve)}function Ve(e,t){return"<"==t?L(H(">"),ce(Ee,">"),B,Ve):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(C.marked="keyword"),L(c?ge:q,Ve)):"{"==e?L(H("}"),qe,B):void 0}function qe(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&P(t))&&C.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(C.marked="keyword",L(qe)):"variable"==e||"keyword"==C.style?(C.marked="property",L($e,qe)):"number"==e||"string"==e?L($e,qe):"["==e?L(q,pe,W("]"),$e,qe):"*"==t?(C.marked="keyword",L(qe)):c&&"("==e?T(Fe,qe):";"==e||","==e?L(qe):"}"==e?L():"@"==t?L(q,qe):void 0}function $e(e,t){if("!"==t)return L($e);if("?"==t)return L($e);if(":"==e)return L(ge,je);if("="==t)return L($);var r=C.state.lexical.prev;return T(r&&"interface"==r.info?Fe:ze)}function Ge(e,t){return"*"==t?(C.marked="keyword",L(Je,W(";"))):"default"==t?(C.marked="keyword",L(q,W(";"))):"{"==e?L(ce(Ke,"}"),Je,W(";")):T(U)}function Ke(e,t){return"as"==t?(C.marked="keyword",L(W("variable"))):"variable"==e?T($,Ke):void 0}function Ye(e){return"string"==e?L():"("==e?T(q):"."==e?T(Q):T(Qe,Ze,Je)}function Qe(e,t){return"{"==e?fe(Qe,"}"):("variable"==e&&A(t),"*"==t&&(C.marked="keyword"),L(Xe))}function Ze(e){if(","==e)return L(Qe,Ze)}function Xe(e,t){if("as"==t)return C.marked="keyword",L(Qe)}function Je(e,t){if("from"==t)return C.marked="keyword",L(q)}function et(e){return"]"==e?L():T(ce($,"]"))}function tt(){return T(H("form"),Le,W("{"),H("}"),ce(rt,"}"),B,B)}function rt(){return T(Le,je)}function nt(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function ot(e,t,r){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return D.lex=z.lex=!0,F.lex=!0,B.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new S((e||0)-i,0,"block",!1),localVars:r.localVars,context:r.localVars&&new I(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),x(e,t)),t.tokenize!=b&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=o&&"--"!=o?n:"incdec",E(t,r,n,o,e))},indent:function(t,n){if(t.tokenize==b||t.tokenize==w)return e.Pass;if(t.tokenize!=g)return 0;var o,l=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==B)s=s.prev;else if(c!=Ie&&c!=F)break}for(;("stat"==s.type||"form"==s.type)&&("}"==l||(o=t.cc[t.cc.length-1])&&(o==Q||o==Z)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;a&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var f=s.type,d=l==f;return"vardef"==f?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==f&&"{"==l?s.indented:"form"==f?s.indented+i:"stat"==f?s.indented+(nt(t,n)?a||i:0):"switch"!=s.info||d||0==r.doubleIndentSwitch?s.align?s.column+(d?0:1):s.indented+(d?0:i):s.indented+(/^(?:case|default)\b/.test(n)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:l,jsonMode:s,expressionAllowed:ot,skipExpression:function(t){E(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(r(3458))},2941:(e,t,r)=>{!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(n,o){var i,a,l=n.indentUnit,s={},u=o.htmlMode?t:r;for(var c in u)s[c]=u[c];for(var c in o)s[c]=o[c];function f(e,t){function r(r){return t.tokenize=r,r(e,t)}var n=e.next();return"<"==n?e.eat("!")?e.eat("[")?e.match("CDATA[")?r(h("atom","]]>")):null:e.match("--")?r(h("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),r(m(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=h("meta","?>"),"meta"):(i=e.eat("/")?"closeTag":"openTag",t.tokenize=d,"tag bracket"):"&"==n?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function d(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=f,i=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return i="equals",null;if("<"==r){t.tokenize=f,t.state=w,t.tagName=t.tagStart=null;var n=t.tokenize(e,t);return n?n+" tag error":"tag error"}return/[\'\"]/.test(r)?(t.tokenize=p(r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(e){var t=function(t,r){for(;!t.eol();)if(t.next()==e){r.tokenize=d;break}return"string"};return t.isInAttribute=!0,t}function h(e,t){return function(r,n){for(;!r.eol();){if(r.match(t)){n.tokenize=f;break}r.next()}return e}}function m(e){return function(t,r){for(var n;null!=(n=t.next());){if("<"==n)return r.tokenize=m(e+1),r.tokenize(t,r);if(">"==n){if(1==e){r.tokenize=f;break}return r.tokenize=m(e-1),r.tokenize(t,r)}}return"meta"}}function v(e){return e&&e.toLowerCase()}function g(e,t,r){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=r,(s.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function y(e){e.context&&(e.context=e.context.prev)}function b(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!s.contextGrabbers.hasOwnProperty(v(r))||!s.contextGrabbers[v(r)].hasOwnProperty(v(t)))return;y(e)}}function w(e,t,r){return"openTag"==e?(r.tagStart=t.column(),_):"closeTag"==e?x:w}function _(e,t,r){return"word"==e?(r.tagName=t.current(),a="tag",O):s.allowMissingTagName&&"endTag"==e?(a="tag bracket",O(e,t,r)):(a="error",_)}function x(e,t,r){if("word"==e){var n=t.current();return r.context&&r.context.tagName!=n&&s.implicitlyClosed.hasOwnProperty(v(r.context.tagName))&&y(r),r.context&&r.context.tagName==n||!1===s.matchClosing?(a="tag",k):(a="tag error",S)}return s.allowMissingTagName&&"endTag"==e?(a="tag bracket",k(e,t,r)):(a="error",S)}function k(e,t,r){return"endTag"!=e?(a="error",k):(y(r),w)}function S(e,t,r){return a="error",k(e,t,r)}function O(e,t,r){if("word"==e)return a="attribute",E;if("endTag"==e||"selfcloseTag"==e){var n=r.tagName,o=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||s.autoSelfClosers.hasOwnProperty(v(n))?b(r,n):(b(r,n),r.context=new g(r,n,o==r.indented)),w}return a="error",O}function E(e,t,r){return"equals"==e?C:(s.allowMissing||(a="error"),O(e,t,r))}function C(e,t,r){return"string"==e?T:"word"==e&&s.allowUnquoted?(a="string",O):(a="error",O(e,t,r))}function T(e,t,r){return"string"==e?T:O(e,t,r)}return f.isInText=!0,{startState:function(e){var t={tokenize:f,state:w,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;i=null;var r=t.tokenize(e,t);return(r||i)&&"comment"!=r&&(a=null,t.state=t.state(i||r,e,t),a&&(r="error"==a?r+" error":a)),r},indent:function(t,r,n){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+l;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=d&&t.tokenize!=f)return n?n.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==s.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+l*(s.multilineTagIndentFactor||1);if(s.alignCDATA&&/<!\[CDATA\[/.test(r))return 0;var i=r&&/^<(\/)?([\w_:\.-]*)/.exec(r);if(i&&i[1])for(;o;){if(o.tagName==i[2]){o=o.prev;break}if(!s.implicitlyClosed.hasOwnProperty(v(o.tagName)))break;o=o.prev}else if(i)for(;o;){var a=s.contextGrabbers[v(o.tagName)];if(!a||!a.hasOwnProperty(v(i[2])))break;o=o.prev}for(;o&&o.prev&&!o.startOfLine;)o=o.prev;return o?o.indent+l:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:s.htmlMode?"html":"xml",helperType:s.htmlMode?"html":"xml",skipAttribute:function(e){e.state==C&&(e.state=O)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],r=e.context;r;r=r.prev)t.push(r.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(r(3458))},4436:(e,t,r)=>{var n=r(7045),o=r(5366),i=function(){"use strict";var e=[],t=[],r=/\/\*\s*csslint([^\*]*)\*\//,l=new o.util.EventTarget;return l.version="1.0.4",l.addRule=function(t){e.push(t),e[t.id]=t},l.clearRules=function(){e=[]},l.getRules=function(){return[].concat(e).sort((function(e,t){return e.id>t.id?1:0}))},l.getRuleset=function(){for(var t={},r=0,n=e.length;r<n;)t[e[r++].id]=1;return t},l.addFormatter=function(e){t[e.id]=e},l.getFormatter=function(e){return t[e]},l.format=function(e,t,r,n){var o=this.getFormatter(r),i=null;return o&&(i=o.startFormat(),i+=o.formatResults(e,t,n||{}),i+=o.endFormat()),i},l.hasFormat=function(e){return t.hasOwnProperty(e)},l.verify=function(t,l){var s,u,c,f=0,d={},p=[],h=new o.css.Parser({starHack:!0,ieFilters:!0,underscoreHack:!0,strict:!1});u=t.replace(/\n\r?/g,"$split$").split("$split$"),i.Util.forEach(u,(function(e,t){var r=e&&e.match(/\/\*[ \t]*csslint[ \t]+allow:[ \t]*([^\*]*)\*\//i),n=r&&r[1],o={};n&&(n.toLowerCase().split(",").forEach((function(e){o[e.trim()]=!0})),Object.keys(o).length>0&&(d[t+1]=o))}));var m=null,v=null;for(f in i.Util.forEach(u,(function(e,t){null===m&&e.match(/\/\*[ \t]*csslint[ \t]+ignore:start[ \t]*\*\//i)&&(m=t),e.match(/\/\*[ \t]*csslint[ \t]+ignore:end[ \t]*\*\//i)&&(v=t),null!==m&&null!==v&&(p.push([m,v]),m=v=null)})),null!==m&&p.push([m,u.length]),l||(l=this.getRuleset()),r.test(t)&&(l=function(e,t){var n,o=e&&e.match(r),i=o&&o[1];return i&&(n={true:2,"":1,false:0,2:2,1:1,0:0},i.toLowerCase().split(",").forEach((function(e){var r=e.split(":"),o=r[0]||"",i=r[1]||"";t[o.trim()]=n[i.trim()]}))),t}(t,l=n(l))),s=new a(u,l,d,p),l.errors=2,l)l.hasOwnProperty(f)&&l[f]&&e[f]&&e[f].init(h,s);try{h.parse(t)}catch(e){s.error("Fatal error, cannot continue: "+e.message,e.line,e.col,{})}return(c={messages:s.messages,stats:s.stats,ruleset:s.ruleset,allow:s.allow,ignore:s.ignore}).messages.sort((function(e,t){return e.rollup&&!t.rollup?1:!e.rollup&&t.rollup?-1:e.line-t.line})),c},l}();function a(e,t,r,n){"use strict";this.messages=[],this.stats=[],this.lines=e,this.ruleset=t,this.allow=r,this.allow||(this.allow={}),this.ignore=n,this.ignore||(this.ignore=[])}a.prototype={constructor:a,error:function(e,t,r,n){"use strict";this.messages.push({type:"error",line:t,col:r,message:e,evidence:this.lines[t-1],rule:n||{}})},warn:function(e,t,r,n){"use strict";this.report(e,t,r,n)},report:function(e,t,r,n){"use strict";if(!this.allow.hasOwnProperty(t)||!this.allow[t].hasOwnProperty(n.id)){var o=!1;i.Util.forEach(this.ignore,(function(e){e[0]<=t&&t<=e[1]&&(o=!0)})),o||this.messages.push({type:2===this.ruleset[n.id]?"error":"warning",line:t,col:r,message:e,evidence:this.lines[t-1],rule:n})}},info:function(e,t,r,n){"use strict";this.messages.push({type:"info",line:t,col:r,message:e,evidence:this.lines[t-1],rule:n})},rollupError:function(e,t){"use strict";this.messages.push({type:"error",rollup:!0,message:e,rule:t})},rollupWarn:function(e,t){"use strict";this.messages.push({type:"warning",rollup:!0,message:e,rule:t})},stat:function(e,t){"use strict";this.stats[e]=t}},i._Reporter=a,i.Util={mix:function(e,t){"use strict";var r;for(r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return r},indexOf:function(e,t){"use strict";if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t){"use strict";if(e.forEach)return e.forEach(t);for(var r=0,n=e.length;r<n;r++)t(e[r],r,e)}},i.addRule({id:"adjoining-classes",name:"Disallow adjoining classes",desc:"Don't use adjoining classes.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-adjoining-classes",browsers:"IE6",init:function(e,t){"use strict";var r=this;e.addListener("startrule",(function(n){var o,i,a,l,s,u,c=n.selectors;for(l=0;l<c.length;l++)for(o=c[l],s=0;s<o.parts.length;s++)if((i=o.parts[s]).type===e.SELECTOR_PART_TYPE)for(a=0,u=0;u<i.modifiers.length;u++)"class"===i.modifiers[u].type&&a++,a>1&&t.report("Adjoining classes: "+c[l].text,i.line,i.col,r)}))}}),i.addRule({id:"box-model",name:"Beware of broken box size",desc:"Don't use width or height when using padding or border.",url:"https://github.com/CSSLint/csslint/wiki/Beware-of-box-model-size",browsers:"All",init:function(e,t){"use strict";var r,n=this,o={border:1,"border-left":1,"border-right":1,padding:1,"padding-left":1,"padding-right":1},i={border:1,"border-bottom":1,"border-top":1,padding:1,"padding-bottom":1,"padding-top":1},a=!1;function l(){r={},a=!1}function s(){var e,l;if(!a){if(r.height)for(e in i)i.hasOwnProperty(e)&&r[e]&&(l=r[e].value,"padding"===e&&2===l.parts.length&&0===l.parts[0].value||t.report("Using height with "+e+" can sometimes make elements larger than you expect.",r[e].line,r[e].col,n));if(r.width)for(e in o)o.hasOwnProperty(e)&&r[e]&&(l=r[e].value,"padding"===e&&2===l.parts.length&&0===l.parts[1].value||t.report("Using width with "+e+" can sometimes make elements larger than you expect.",r[e].line,r[e].col,n))}}e.addListener("startrule",l),e.addListener("startfontface",l),e.addListener("startpage",l),e.addListener("startpagemargin",l),e.addListener("startkeyframerule",l),e.addListener("startviewport",l),e.addListener("property",(function(e){var t=e.property.text.toLowerCase();i[t]||o[t]?/^0\S*$/.test(e.value)||"border"===t&&"none"===e.value.toString()||(r[t]={line:e.property.line,col:e.property.col,value:e.value}):/^(width|height)/i.test(t)&&/^(length|percentage)/.test(e.value.parts[0].type)?r[t]=1:"box-sizing"===t&&(a=!0)})),e.addListener("endrule",s),e.addListener("endfontface",s),e.addListener("endpage",s),e.addListener("endpagemargin",s),e.addListener("endkeyframerule",s),e.addListener("endviewport",s)}}),i.addRule({id:"box-sizing",name:"Disallow use of box-sizing",desc:"The box-sizing properties isn't supported in IE6 and IE7.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-box-sizing",browsers:"IE6, IE7",tags:["Compatibility"],init:function(e,t){"use strict";var r=this;e.addListener("property",(function(e){"box-sizing"===e.property.text.toLowerCase()&&t.report("The box-sizing property isn't supported in IE6 and IE7.",e.line,e.col,r)}))}}),i.addRule({id:"bulletproof-font-face",name:"Use the bulletproof @font-face syntax",desc:"Use the bulletproof @font-face syntax to avoid 404's in old IE (http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax).",url:"https://github.com/CSSLint/csslint/wiki/Bulletproof-font-face",browsers:"All",init:function(e,t){"use strict";var r,n,o=this,i=!1,a=!0,l=!1;e.addListener("startfontface",(function(){i=!0})),e.addListener("property",(function(e){if(i){var t=e.property.toString().toLowerCase(),o=e.value.toString();if(r=e.line,n=e.col,"src"===t){var s=/^\s?url\(['"].+\.eot\?.*['"]\)\s*format\(['"]embedded-opentype['"]\).*$/i;!o.match(s)&&a?(l=!0,a=!1):o.match(s)&&!a&&(l=!1)}}})),e.addListener("endfontface",(function(){i=!1,l&&t.report("@font-face declaration doesn't follow the fontspring bulletproof syntax.",r,n,o)}))}}),i.addRule({id:"compatible-vendor-prefixes",name:"Require compatible vendor prefixes",desc:"Include all compatible vendor prefixes to reach a wider range of users.",url:"https://github.com/CSSLint/csslint/wiki/Require-compatible-vendor-prefixes",browsers:"All",init:function(e,t){"use strict";var r,n,o,a,l,s,u,c=this,f=!1,d=Array.prototype.push,p=[];for(o in r={animation:"webkit","animation-delay":"webkit","animation-direction":"webkit","animation-duration":"webkit","animation-fill-mode":"webkit","animation-iteration-count":"webkit","animation-name":"webkit","animation-play-state":"webkit","animation-timing-function":"webkit",appearance:"webkit moz","border-end":"webkit moz","border-end-color":"webkit moz","border-end-style":"webkit moz","border-end-width":"webkit moz","border-image":"webkit moz o","border-radius":"webkit","border-start":"webkit moz","border-start-color":"webkit moz","border-start-style":"webkit moz","border-start-width":"webkit moz","box-align":"webkit moz ms","box-direction":"webkit moz ms","box-flex":"webkit moz ms","box-lines":"webkit ms","box-ordinal-group":"webkit moz ms","box-orient":"webkit moz ms","box-pack":"webkit moz ms","box-sizing":"","box-shadow":"","column-count":"webkit moz ms","column-gap":"webkit moz ms","column-rule":"webkit moz ms","column-rule-color":"webkit moz ms","column-rule-style":"webkit moz ms","column-rule-width":"webkit moz ms","column-width":"webkit moz ms",hyphens:"epub moz","line-break":"webkit ms","margin-end":"webkit moz","margin-start":"webkit moz","marquee-speed":"webkit wap","marquee-style":"webkit wap","padding-end":"webkit moz","padding-start":"webkit moz","tab-size":"moz o","text-size-adjust":"webkit ms",transform:"webkit ms","transform-origin":"webkit ms",transition:"","transition-delay":"","transition-duration":"","transition-property":"","transition-timing-function":"","user-modify":"webkit moz","user-select":"webkit moz ms","word-break":"epub ms","writing-mode":"epub ms"})if(r.hasOwnProperty(o)){for(a=[],s=0,u=(l=r[o].split(" ")).length;s<u;s++)a.push("-"+l[s]+"-"+o);r[o]=a,d.apply(p,a)}e.addListener("startrule",(function(){n=[]})),e.addListener("startkeyframes",(function(e){f=e.prefix||!0})),e.addListener("endkeyframes",(function(){f=!1})),e.addListener("property",(function(e){var t=e.property;i.Util.indexOf(p,t.text)>-1&&(f&&"string"==typeof f&&0===t.text.indexOf("-"+f+"-")||n.push(t))})),e.addListener("endrule",(function(){if(n.length){var e,o,a,l,s,u,f,d,p,h,m={};for(e=0,o=n.length;e<o;e++)for(l in a=n[e],r)r.hasOwnProperty(l)&&(s=r[l],i.Util.indexOf(s,a.text)>-1&&(m[l]||(m[l]={full:s.slice(0),actual:[],actualNodes:[]}),-1===i.Util.indexOf(m[l].actual,a.text)&&(m[l].actual.push(a.text),m[l].actualNodes.push(a))));for(l in m)if(m.hasOwnProperty(l)&&(f=(u=m[l]).full,d=u.actual,f.length>d.length))for(e=0,o=f.length;e<o;e++)p=f[e],-1===i.Util.indexOf(d,p)&&(h=1===d.length?d[0]:2===d.length?d.join(" and "):d.join(", "),t.report("The property "+p+" is compatible with "+h+" and should be included as well.",u.actualNodes[0].line,u.actualNodes[0].col,c))}}))}}),i.addRule({id:"display-property-grouping",name:"Require properties appropriate for display",desc:"Certain properties shouldn't be used with certain display property values.",url:"https://github.com/CSSLint/csslint/wiki/Require-properties-appropriate-for-display",browsers:"All",init:function(e,t){"use strict";var r,n=this,o={display:1,float:"none",height:1,width:1,margin:1,"margin-left":1,"margin-right":1,"margin-bottom":1,"margin-top":1,padding:1,"padding-left":1,"padding-right":1,"padding-bottom":1,"padding-top":1,"vertical-align":1};function i(e,i,a){r[e]&&("string"==typeof o[e]&&r[e].value.toLowerCase()===o[e]||t.report(a||e+" can't be used with display: "+i+".",r[e].line,r[e].col,n))}function a(){r={}}function l(){var e=r.display?r.display.value:null;if(e)switch(e){case"inline":i("height",e),i("width",e),i("margin",e),i("margin-top",e),i("margin-bottom",e),i("float",e,"display:inline has no effect on floated elements (but may be used to fix the IE6 double-margin bug).");break;case"block":i("vertical-align",e);break;case"inline-block":i("float",e);break;default:0===e.indexOf("table-")&&(i("margin",e),i("margin-left",e),i("margin-right",e),i("margin-top",e),i("margin-bottom",e),i("float",e))}}e.addListener("startrule",a),e.addListener("startfontface",a),e.addListener("startkeyframerule",a),e.addListener("startpagemargin",a),e.addListener("startpage",a),e.addListener("startviewport",a),e.addListener("property",(function(e){var t=e.property.text.toLowerCase();o[t]&&(r[t]={value:e.value.text,line:e.property.line,col:e.property.col})})),e.addListener("endrule",l),e.addListener("endfontface",l),e.addListener("endkeyframerule",l),e.addListener("endpagemargin",l),e.addListener("endpage",l),e.addListener("endviewport",l)}}),i.addRule({id:"duplicate-background-images",name:"Disallow duplicate background images",desc:"Every background-image should be unique. Use a common class for e.g. sprites.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-duplicate-background-images",browsers:"All",init:function(e,t){"use strict";var r=this,n={};e.addListener("property",(function(e){var o,i,a=e.property.text,l=e.value;if(a.match(/background/i))for(o=0,i=l.parts.length;o<i;o++)"uri"===l.parts[o].type&&(void 0===n[l.parts[o].uri]?n[l.parts[o].uri]=e:t.report("Background image '"+l.parts[o].uri+"' was used multiple times, first declared at line "+n[l.parts[o].uri].line+", col "+n[l.parts[o].uri].col+".",e.line,e.col,r))}))}}),i.addRule({id:"duplicate-properties",name:"Disallow duplicate properties",desc:"Duplicate properties must appear one after the other.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-duplicate-properties",browsers:"All",init:function(e,t){"use strict";var r,n,o=this;function i(){r={}}e.addListener("startrule",i),e.addListener("startfontface",i),e.addListener("startpage",i),e.addListener("startpagemargin",i),e.addListener("startkeyframerule",i),e.addListener("startviewport",i),e.addListener("property",(function(e){var i=e.property.text.toLowerCase();!r[i]||n===i&&r[i]!==e.value.text||t.report("Duplicate property '"+e.property+"' found.",e.line,e.col,o),r[i]=e.value.text,n=i}))}}),i.addRule({id:"empty-rules",name:"Disallow empty rules",desc:"Rules without any properties specified should be removed.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-empty-rules",browsers:"All",init:function(e,t){"use strict";var r=this,n=0;e.addListener("startrule",(function(){n=0})),e.addListener("property",(function(){n++})),e.addListener("endrule",(function(e){var o=e.selectors;0===n&&t.report("Rule is empty.",o[0].line,o[0].col,r)}))}}),i.addRule({id:"errors",name:"Parsing Errors",desc:"This rule looks for recoverable syntax errors.",browsers:"All",init:function(e,t){"use strict";var r=this;e.addListener("error",(function(e){t.error(e.message,e.line,e.col,r)}))}}),i.addRule({id:"fallback-colors",name:"Require fallback colors",desc:"For older browsers that don't support RGBA, HSL, or HSLA, provide a fallback color.",url:"https://github.com/CSSLint/csslint/wiki/Require-fallback-colors",browsers:"IE6,IE7,IE8",init:function(e,t){"use strict";var r,n=this,o={color:1,background:1,"border-color":1,"border-top-color":1,"border-right-color":1,"border-bottom-color":1,"border-left-color":1,border:1,"border-top":1,"border-right":1,"border-bottom":1,"border-left":1,"background-color":1};function i(){r=null}e.addListener("startrule",i),e.addListener("startfontface",i),e.addListener("startpage",i),e.addListener("startpagemargin",i),e.addListener("startkeyframerule",i),e.addListener("startviewport",i),e.addListener("property",(function(e){var i=e.property.text.toLowerCase(),a=e.value.parts,l=0,s="",u=a.length;if(o[i])for(;l<u;)"color"===a[l].type&&("alpha"in a[l]||"hue"in a[l]?(/([^\)]+)\(/.test(a[l])&&(s=RegExp.$1.toUpperCase()),r&&r.property.text.toLowerCase()===i&&"compat"===r.colorType||t.report("Fallback "+i+" (hex or RGB) should precede "+s+" "+i+".",e.line,e.col,n)):e.colorType="compat"),l++;r=e}))}}),i.addRule({id:"floats",name:"Disallow too many floats",desc:"This rule tests if the float property is used too many times",url:"https://github.com/CSSLint/csslint/wiki/Disallow-too-many-floats",browsers:"All",init:function(e,t){"use strict";var r=this,n=0;e.addListener("property",(function(e){"float"===e.property.text.toLowerCase()&&"none"!==e.value.text.toLowerCase()&&n++})),e.addListener("endstylesheet",(function(){t.stat("floats",n),n>=10&&t.rollupWarn("Too many floats ("+n+"), you're probably using them for layout. Consider using a grid system instead.",r)}))}}),i.addRule({id:"font-faces",name:"Don't use too many web fonts",desc:"Too many different web fonts in the same stylesheet.",url:"https://github.com/CSSLint/csslint/wiki/Don%27t-use-too-many-web-fonts",browsers:"All",init:function(e,t){"use strict";var r=this,n=0;e.addListener("startfontface",(function(){n++})),e.addListener("endstylesheet",(function(){n>5&&t.rollupWarn("Too many @font-face declarations ("+n+").",r)}))}}),i.addRule({id:"font-sizes",name:"Disallow too many font sizes",desc:"Checks the number of font-size declarations.",url:"https://github.com/CSSLint/csslint/wiki/Don%27t-use-too-many-font-size-declarations",browsers:"All",init:function(e,t){"use strict";var r=this,n=0;e.addListener("property",(function(e){"font-size"===e.property.toString()&&n++})),e.addListener("endstylesheet",(function(){t.stat("font-sizes",n),n>=10&&t.rollupWarn("Too many font-size declarations ("+n+"), abstraction needed.",r)}))}}),i.addRule({id:"gradients",name:"Require all gradient definitions",desc:"When using a vendor-prefixed gradient, make sure to use them all.",url:"https://github.com/CSSLint/csslint/wiki/Require-all-gradient-definitions",browsers:"All",init:function(e,t){"use strict";var r,n=this;e.addListener("startrule",(function(){r={moz:0,webkit:0,oldWebkit:0,o:0}})),e.addListener("property",(function(e){/\-(moz|o|webkit)(?:\-(?:linear|radial))\-gradient/i.test(e.value)?r[RegExp.$1]=1:/\-webkit\-gradient/i.test(e.value)&&(r.oldWebkit=1)})),e.addListener("endrule",(function(e){var o=[];r.moz||o.push("Firefox 3.6+"),r.webkit||o.push("Webkit (Safari 5+, Chrome)"),r.oldWebkit||o.push("Old Webkit (Safari 4+, Chrome)"),r.o||o.push("Opera 11.1+"),o.length&&o.length<4&&t.report("Missing vendor-prefixed CSS gradients for "+o.join(", ")+".",e.selectors[0].line,e.selectors[0].col,n)}))}}),i.addRule({id:"ids",name:"Disallow IDs in selectors",desc:"Selectors should not contain IDs.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-IDs-in-selectors",browsers:"All",init:function(e,t){"use strict";var r=this;e.addListener("startrule",(function(n){var o,i,a,l,s,u,c=n.selectors;for(l=0;l<c.length;l++){for(o=c[l],a=0,s=0;s<o.parts.length;s++)if((i=o.parts[s]).type===e.SELECTOR_PART_TYPE)for(u=0;u<i.modifiers.length;u++)"id"===i.modifiers[u].type&&a++;1===a?t.report("Don't use IDs in selectors.",o.line,o.col,r):a>1&&t.report(a+" IDs in the selector, really?",o.line,o.col,r)}}))}}),i.addRule({id:"import-ie-limit",name:"@import limit on IE6-IE9",desc:"IE6-9 supports up to 31 @import per stylesheet",browsers:"IE6, IE7, IE8, IE9",init:function(e,t){"use strict";var r=this,n=0;e.addListener("startpage",(function(){n=0})),e.addListener("import",(function(){n++})),e.addListener("endstylesheet",(function(){n>31&&t.rollupError("Too many @import rules ("+n+"). IE6-9 supports up to 31 import per stylesheet.",r)}))}}),i.addRule({id:"import",name:"Disallow @import",desc:"Don't use @import, use <link> instead.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-%40import",browsers:"All",init:function(e,t){"use strict";var r=this;e.addListener("import",(function(e){t.report("@import prevents parallel downloads, use <link> instead.",e.line,e.col,r)}))}}),i.addRule({id:"important",name:"Disallow !important",desc:"Be careful when using !important declaration",url:"https://github.com/CSSLint/csslint/wiki/Disallow-%21important",browsers:"All",init:function(e,t){"use strict";var r=this,n=0;e.addListener("property",(function(e){!0===e.important&&(n++,t.report("Use of !important",e.line,e.col,r))})),e.addListener("endstylesheet",(function(){t.stat("important",n),n>=10&&t.rollupWarn("Too many !important declarations ("+n+"), try to use less than 10 to avoid specificity issues.",r)}))}}),i.addRule({id:"known-properties",name:"Require use of known properties",desc:"Properties should be known (listed in CSS3 specification) or be a vendor-prefixed property.",url:"https://github.com/CSSLint/csslint/wiki/Require-use-of-known-properties",browsers:"All",init:function(e,t){"use strict";var r=this;e.addListener("property",(function(e){e.invalid&&t.report(e.invalid.message,e.line,e.col,r)}))}}),i.addRule({id:"order-alphabetical",name:"Alphabetical order",desc:"Assure properties are in alphabetical order",browsers:"All",init:function(e,t){"use strict";var r,n=this,o=function(){r=[]},i=function(e){r.join(",")!==r.sort().join(",")&&t.report("Rule doesn't have all its properties in alphabetical order.",e.line,e.col,n)};e.addListener("startrule",o),e.addListener("startfontface",o),e.addListener("startpage",o),e.addListener("startpagemargin",o),e.addListener("startkeyframerule",o),e.addListener("startviewport",o),e.addListener("property",(function(e){var t=e.property.text.toLowerCase().replace(/^-.*?-/,"");r.push(t)})),e.addListener("endrule",i),e.addListener("endfontface",i),e.addListener("endpage",i),e.addListener("endpagemargin",i),e.addListener("endkeyframerule",i),e.addListener("endviewport",i)}}),i.addRule({id:"outline-none",name:"Disallow outline: none",desc:"Use of outline: none or outline: 0 should be limited to :focus rules.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-outline%3Anone",browsers:"All",tags:["Accessibility"],init:function(e,t){"use strict";var r,n=this;function o(e){r=e.selectors?{line:e.line,col:e.col,selectors:e.selectors,propCount:0,outline:!1}:null}function i(){r&&r.outline&&(-1===r.selectors.toString().toLowerCase().indexOf(":focus")?t.report("Outlines should only be modified using :focus.",r.line,r.col,n):1===r.propCount&&t.report("Outlines shouldn't be hidden unless other visual changes are made.",r.line,r.col,n))}e.addListener("startrule",o),e.addListener("startfontface",o),e.addListener("startpage",o),e.addListener("startpagemargin",o),e.addListener("startkeyframerule",o),e.addListener("startviewport",o),e.addListener("property",(function(e){var t=e.property.text.toLowerCase(),n=e.value;r&&(r.propCount++,"outline"!==t||"none"!==n.toString()&&"0"!==n.toString()||(r.outline=!0))})),e.addListener("endrule",i),e.addListener("endfontface",i),e.addListener("endpage",i),e.addListener("endpagemargin",i),e.addListener("endkeyframerule",i),e.addListener("endviewport",i)}}),i.addRule({id:"overqualified-elements",name:"Disallow overqualified elements",desc:"Don't use classes or IDs with elements (a.foo or a#foo).",url:"https://github.com/CSSLint/csslint/wiki/Disallow-overqualified-elements",browsers:"All",init:function(e,t){"use strict";var r=this,n={};e.addListener("startrule",(function(o){var i,a,l,s,u,c,f=o.selectors;for(s=0;s<f.length;s++)for(i=f[s],u=0;u<i.parts.length;u++)if((a=i.parts[u]).type===e.SELECTOR_PART_TYPE)for(c=0;c<a.modifiers.length;c++)l=a.modifiers[c],a.elementName&&"id"===l.type?t.report("Element ("+a+") is overqualified, just use "+l+" without element name.",a.line,a.col,r):"class"===l.type&&(n[l]||(n[l]=[]),n[l].push({modifier:l,part:a}))})),e.addListener("endstylesheet",(function(){var e;for(e in n)n.hasOwnProperty(e)&&1===n[e].length&&n[e][0].part.elementName&&t.report("Element ("+n[e][0].part+") is overqualified, just use "+n[e][0].modifier+" without element name.",n[e][0].part.line,n[e][0].part.col,r)}))}}),i.addRule({id:"qualified-headings",name:"Disallow qualified headings",desc:"Headings should not be qualified (namespaced).",url:"https://github.com/CSSLint/csslint/wiki/Disallow-qualified-headings",browsers:"All",init:function(e,t){"use strict";var r=this;e.addListener("startrule",(function(n){var o,i,a,l,s=n.selectors;for(a=0;a<s.length;a++)for(o=s[a],l=0;l<o.parts.length;l++)(i=o.parts[l]).type===e.SELECTOR_PART_TYPE&&i.elementName&&/h[1-6]/.test(i.elementName.toString())&&l>0&&t.report("Heading ("+i.elementName+") should not be qualified.",i.line,i.col,r)}))}}),i.addRule({id:"regex-selectors",name:"Disallow selectors that look like regexs",desc:"Selectors that look like regular expressions are slow and should be avoided.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-selectors-that-look-like-regular-expressions",browsers:"All",init:function(e,t){"use strict";var r=this;e.addListener("startrule",(function(n){var o,i,a,l,s,u,c=n.selectors;for(l=0;l<c.length;l++)for(o=c[l],s=0;s<o.parts.length;s++)if((i=o.parts[s]).type===e.SELECTOR_PART_TYPE)for(u=0;u<i.modifiers.length;u++)"attribute"===(a=i.modifiers[u]).type&&/([~\|\^\$\*]=)/.test(a)&&t.report("Attribute selectors with "+RegExp.$1+" are slow!",a.line,a.col,r)}))}}),i.addRule({id:"rules-count",name:"Rules Count",desc:"Track how many rules there are.",browsers:"All",init:function(e,t){"use strict";var r=0;e.addListener("startrule",(function(){r++})),e.addListener("endstylesheet",(function(){t.stat("rule-count",r)}))}}),i.addRule({id:"selector-max-approaching",name:"Warn when approaching the 4095 selector limit for IE",desc:"Will warn when selector count is >= 3800 selectors.",browsers:"IE",init:function(e,t){"use strict";var r=this,n=0;e.addListener("startrule",(function(e){n+=e.selectors.length})),e.addListener("endstylesheet",(function(){n>=3800&&t.report("You have "+n+" selectors. Internet Explorer supports a maximum of 4095 selectors per stylesheet. Consider refactoring.",0,0,r)}))}}),i.addRule({id:"selector-max",name:"Error when past the 4095 selector limit for IE",desc:"Will error when selector count is > 4095.",browsers:"IE",init:function(e,t){"use strict";var r=this,n=0;e.addListener("startrule",(function(e){n+=e.selectors.length})),e.addListener("endstylesheet",(function(){n>4095&&t.report("You have "+n+" selectors. Internet Explorer supports a maximum of 4095 selectors per stylesheet. Consider refactoring.",0,0,r)}))}}),i.addRule({id:"selector-newline",name:"Disallow new-line characters in selectors",desc:"New-line characters in selectors are usually a forgotten comma and not a descendant combinator.",browsers:"All",init:function(e,t){"use strict";var r=this;e.addListener("startrule",(function(e){var n,o,i,a,l,s,u,c,f,d,p,h=e.selectors;for(n=0,o=h.length;n<o;n++)for(a=0,s=(i=h[n]).parts.length;a<s;a++)for(l=a+1;l<s;l++)u=i.parts[a],c=i.parts[l],f=u.type,d=u.line,p=c.line,"descendant"===f&&p>d&&t.report("newline character found in selector (forgot a comma?)",d,h[n].parts[0].col,r)}))}}),i.addRule({id:"shorthand",name:"Require shorthand properties",desc:"Use shorthand properties where possible.",url:"https://github.com/CSSLint/csslint/wiki/Require-shorthand-properties",browsers:"All",init:function(e,t){"use strict";var r,n,o,i,a=this,l={},s={margin:["margin-top","margin-bottom","margin-left","margin-right"],padding:["padding-top","padding-bottom","padding-left","padding-right"]};for(r in s)if(s.hasOwnProperty(r))for(n=0,o=s[r].length;n<o;n++)l[s[r][n]]=r;function u(){i={}}function c(e){var r,n,o,l;for(r in s)if(s.hasOwnProperty(r)){for(l=0,n=0,o=s[r].length;n<o;n++)l+=i[s[r][n]]?1:0;l===s[r].length&&t.report("The properties "+s[r].join(", ")+" can be replaced by "+r+".",e.line,e.col,a)}}e.addListener("startrule",u),e.addListener("startfontface",u),e.addListener("property",(function(e){var t=e.property.toString().toLowerCase();l[t]&&(i[t]=1)})),e.addListener("endrule",c),e.addListener("endfontface",c)}}),i.addRule({id:"star-property-hack",name:"Disallow properties with a star prefix",desc:"Checks for the star property hack (targets IE6/7)",url:"https://github.com/CSSLint/csslint/wiki/Disallow-star-hack",browsers:"All",init:function(e,t){"use strict";var r=this;e.addListener("property",(function(e){"*"===e.property.hack&&t.report("Property with star prefix found.",e.property.line,e.property.col,r)}))}}),i.addRule({id:"text-indent",name:"Disallow negative text-indent",desc:"Checks for text indent less than -99px",url:"https://github.com/CSSLint/csslint/wiki/Disallow-negative-text-indent",browsers:"All",init:function(e,t){"use strict";var r,n,o=this;function i(){r=!1,n="inherit"}function a(){r&&"ltr"!==n&&t.report("Negative text-indent doesn't work well with RTL. If you use text-indent for image replacement explicitly set direction for that item to ltr.",r.line,r.col,o)}e.addListener("startrule",i),e.addListener("startfontface",i),e.addListener("property",(function(e){var t=e.property.toString().toLowerCase(),o=e.value;"text-indent"===t&&o.parts[0].value<-99?r=e.property:"direction"===t&&"ltr"===o.toString()&&(n="ltr")})),e.addListener("endrule",a),e.addListener("endfontface",a)}}),i.addRule({id:"underscore-property-hack",name:"Disallow properties with an underscore prefix",desc:"Checks for the underscore property hack (targets IE6)",url:"https://github.com/CSSLint/csslint/wiki/Disallow-underscore-hack",browsers:"All",init:function(e,t){"use strict";var r=this;e.addListener("property",(function(e){"_"===e.property.hack&&t.report("Property with underscore prefix found.",e.property.line,e.property.col,r)}))}}),i.addRule({id:"unique-headings",name:"Headings should only be defined once",desc:"Headings should be defined only once.",url:"https://github.com/CSSLint/csslint/wiki/Headings-should-only-be-defined-once",browsers:"All",init:function(e,t){"use strict";var r=this,n={h1:0,h2:0,h3:0,h4:0,h5:0,h6:0};e.addListener("startrule",(function(e){var o,i,a,l,s,u=e.selectors;for(l=0;l<u.length;l++)if((i=(o=u[l]).parts[o.parts.length-1]).elementName&&/(h[1-6])/i.test(i.elementName.toString())){for(s=0;s<i.modifiers.length;s++)if("pseudo"===i.modifiers[s].type){a=!0;break}a||(n[RegExp.$1]++,n[RegExp.$1]>1&&t.report("Heading ("+i.elementName+") has already been defined.",i.line,i.col,r))}})),e.addListener("endstylesheet",(function(){var e,o=[];for(e in n)n.hasOwnProperty(e)&&n[e]>1&&o.push(n[e]+" "+e+"s");o.length&&t.rollupWarn("You have "+o.join(", ")+" defined in this stylesheet.",r)}))}}),i.addRule({id:"universal-selector",name:"Disallow universal selector",desc:"The universal selector (*) is known to be slow.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-universal-selector",browsers:"All",init:function(e,t){"use strict";var r=this;e.addListener("startrule",(function(e){var n,o,i,a=e.selectors;for(i=0;i<a.length;i++)"*"===(o=(n=a[i]).parts[n.parts.length-1]).elementName&&t.report(r.desc,o.line,o.col,r)}))}}),i.addRule({id:"unqualified-attributes",name:"Disallow unqualified attribute selectors",desc:"Unqualified attribute selectors are known to be slow.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-unqualified-attribute-selectors",browsers:"All",init:function(e,t){"use strict";var r=this;e.addListener("startrule",(function(n){var o,i,a,l,s,u=n.selectors,c=!1;for(l=0;l<u.length;l++)if((i=(o=u[l]).parts[o.parts.length-1]).type===e.SELECTOR_PART_TYPE){for(s=0;s<i.modifiers.length;s++)if("class"===(a=i.modifiers[s]).type||"id"===a.type){c=!0;break}if(!c)for(s=0;s<i.modifiers.length;s++)"attribute"!==(a=i.modifiers[s]).type||i.elementName&&"*"!==i.elementName||t.report(r.desc,i.line,i.col,r)}}))}}),i.addRule({id:"vendor-prefix",name:"Require standard property with vendor prefix",desc:"When using a vendor-prefixed property, make sure to include the standard one.",url:"https://github.com/CSSLint/csslint/wiki/Require-standard-property-with-vendor-prefix",browsers:"All",init:function(e,t){"use strict";var r,n,o=this,i={"-webkit-border-radius":"border-radius","-webkit-border-top-left-radius":"border-top-left-radius","-webkit-border-top-right-radius":"border-top-right-radius","-webkit-border-bottom-left-radius":"border-bottom-left-radius","-webkit-border-bottom-right-radius":"border-bottom-right-radius","-o-border-radius":"border-radius","-o-border-top-left-radius":"border-top-left-radius","-o-border-top-right-radius":"border-top-right-radius","-o-border-bottom-left-radius":"border-bottom-left-radius","-o-border-bottom-right-radius":"border-bottom-right-radius","-moz-border-radius":"border-radius","-moz-border-radius-topleft":"border-top-left-radius","-moz-border-radius-topright":"border-top-right-radius","-moz-border-radius-bottomleft":"border-bottom-left-radius","-moz-border-radius-bottomright":"border-bottom-right-radius","-moz-column-count":"column-count","-webkit-column-count":"column-count","-moz-column-gap":"column-gap","-webkit-column-gap":"column-gap","-moz-column-rule":"column-rule","-webkit-column-rule":"column-rule","-moz-column-rule-style":"column-rule-style","-webkit-column-rule-style":"column-rule-style","-moz-column-rule-color":"column-rule-color","-webkit-column-rule-color":"column-rule-color","-moz-column-rule-width":"column-rule-width","-webkit-column-rule-width":"column-rule-width","-moz-column-width":"column-width","-webkit-column-width":"column-width","-webkit-column-span":"column-span","-webkit-columns":"columns","-moz-box-shadow":"box-shadow","-webkit-box-shadow":"box-shadow","-moz-transform":"transform","-webkit-transform":"transform","-o-transform":"transform","-ms-transform":"transform","-moz-transform-origin":"transform-origin","-webkit-transform-origin":"transform-origin","-o-transform-origin":"transform-origin","-ms-transform-origin":"transform-origin","-moz-box-sizing":"box-sizing","-webkit-box-sizing":"box-sizing"};function a(){r={},n=1}function l(){var e,n,a,l,s,u=[];for(e in r)i[e]&&u.push({actual:e,needed:i[e]});for(n=0,a=u.length;n<a;n++)l=u[n].needed,s=u[n].actual,r[l]?r[l][0].pos<r[s][0].pos&&t.report("Standard property '"+l+"' should come after vendor-prefixed property '"+s+"'.",r[s][0].name.line,r[s][0].name.col,o):t.report("Missing standard property '"+l+"' to go along with '"+s+"'.",r[s][0].name.line,r[s][0].name.col,o)}e.addListener("startrule",a),e.addListener("startfontface",a),e.addListener("startpage",a),e.addListener("startpagemargin",a),e.addListener("startkeyframerule",a),e.addListener("startviewport",a),e.addListener("property",(function(e){var t=e.property.text.toLowerCase();r[t]||(r[t]=[]),r[t].push({name:e.property,value:e.value,pos:n++})})),e.addListener("endrule",l),e.addListener("endfontface",l),e.addListener("endpage",l),e.addListener("endpagemargin",l),e.addListener("endkeyframerule",l),e.addListener("endviewport",l)}}),i.addRule({id:"zero-units",name:"Disallow units for 0 values",desc:"You don't need to specify units when a value is 0.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-units-for-zero-values",browsers:"All",init:function(e,t){"use strict";var r=this;e.addListener("property",(function(e){for(var n=e.value.parts,o=0,i=n.length;o<i;)!n[o].units&&"percentage"!==n[o].type||0!==n[o].value||"time"===n[o].type||t.report("Values of 0 shouldn't have units specified.",n[o].line,n[o].col,r),o++}))}}),function(){"use strict";var e=function(e){return e&&e.constructor===String?e.replace(/["&><]/g,(function(e){switch(e){case'"':return""";case"&":return"&";case"<":return"<";case">":return">"}})):""};i.addFormatter({id:"checkstyle-xml",name:"Checkstyle XML format",startFormat:function(){return'<?xml version="1.0" encoding="utf-8"?><checkstyle>'},endFormat:function(){return"</checkstyle>"},readError:function(t,r){return'<file name="'+e(t)+'"><error line="0" column="0" severty="error" message="'+e(r)+'"></error></file>'},formatResults:function(t,r){var n=t.messages,o=[];return n.length>0&&(o.push('<file name="'+r+'">'),i.Util.forEach(n,(function(t){var r;t.rollup||o.push('<error line="'+t.line+'" column="'+t.col+'" severity="'+t.type+'" message="'+e(t.message)+'" source="'+(((r=t.rule)&&"name"in r?"net.csslint."+r.name.replace(/\s/g,""):"")+'"/>'))})),o.push("</file>")),o.join("")}})}(),i.addFormatter({id:"compact",name:"Compact, 'porcelain' format",startFormat:function(){"use strict";return""},endFormat:function(){"use strict";return""},formatResults:function(e,t,r){"use strict";var n=e.messages,o="";r=r||{};var a=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};return 0===n.length?r.quiet?"":t+": Lint Free!":(i.Util.forEach(n,(function(e){e.rollup?o+=t+": "+a(e.type)+" - "+e.message+" ("+e.rule.id+")\n":o+=t+": line "+e.line+", col "+e.col+", "+a(e.type)+" - "+e.message+" ("+e.rule.id+")\n"})),o)}}),i.addFormatter({id:"csslint-xml",name:"CSSLint XML format",startFormat:function(){"use strict";return'<?xml version="1.0" encoding="utf-8"?><csslint>'},endFormat:function(){"use strict";return"</csslint>"},formatResults:function(e,t){"use strict";var r=e.messages,n=[],o=function(e){return e&&e.constructor===String?e.replace(/"/g,"'").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):""};return r.length>0&&(n.push('<file name="'+t+'">'),i.Util.forEach(r,(function(e){e.rollup?n.push('<issue severity="'+e.type+'" reason="'+o(e.message)+'" evidence="'+o(e.evidence)+'"/>'):n.push('<issue line="'+e.line+'" char="'+e.col+'" severity="'+e.type+'" reason="'+o(e.message)+'" evidence="'+o(e.evidence)+'"/>')})),n.push("</file>")),n.join("")}}),i.addFormatter({id:"json",name:"JSON",startFormat:function(){"use strict";return this.json=[],""},endFormat:function(){"use strict";var e="";return this.json.length>0&&(e=1===this.json.length?JSON.stringify(this.json[0]):JSON.stringify(this.json)),e},formatResults:function(e,t,r){"use strict";return(e.messages.length>0||!r.quiet)&&this.json.push({filename:t,messages:e.messages,stats:e.stats}),""}}),i.addFormatter({id:"junit-xml",name:"JUNIT XML format",startFormat:function(){"use strict";return'<?xml version="1.0" encoding="utf-8"?><testsuites>'},endFormat:function(){"use strict";return"</testsuites>"},formatResults:function(e,t){"use strict";var r=e.messages,n=[],o={error:0,failure:0},i=function(e){return e&&e.constructor===String?e.replace(/"/g,"'").replace(/</g,"<").replace(/>/g,">"):""};return r.length>0&&(r.forEach((function(e){var t,r="warning"===e.type?"error":e.type;e.rollup||(n.push('<testcase time="0" name="'+(((t=e.rule)&&"name"in t?"net.csslint."+t.name.replace(/\s/g,""):"")+'">')),n.push("<"+r+' message="'+i(e.message)+'"><![CDATA['+e.line+":"+e.col+":"+i(e.evidence)+"]]></"+r+">"),n.push("</testcase>"),o[r]+=1)})),n.unshift('<testsuite time="0" tests="'+r.length+'" skipped="0" errors="'+o.error+'" failures="'+o.failure+'" package="net.csslint" name="'+t+'">'),n.push("</testsuite>")),n.join("")}}),i.addFormatter({id:"lint-xml",name:"Lint XML format",startFormat:function(){"use strict";return'<?xml version="1.0" encoding="utf-8"?><lint>'},endFormat:function(){"use strict";return"</lint>"},formatResults:function(e,t){"use strict";var r=e.messages,n=[],o=function(e){return e&&e.constructor===String?e.replace(/"/g,"'").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):""};return r.length>0&&(n.push('<file name="'+t+'">'),i.Util.forEach(r,(function(e){if(e.rollup)n.push('<issue severity="'+e.type+'" reason="'+o(e.message)+'" evidence="'+o(e.evidence)+'"/>');else{var t="";e.rule&&e.rule.id&&(t='rule="'+o(e.rule.id)+'" '),n.push("<issue "+t+'line="'+e.line+'" char="'+e.col+'" severity="'+e.type+'" reason="'+o(e.message)+'" evidence="'+o(e.evidence)+'"/>')}})),n.push("</file>")),n.join("")}}),i.addFormatter({id:"text",name:"Plain Text",startFormat:function(){"use strict";return""},endFormat:function(){"use strict";return""},formatResults:function(e,t,r){"use strict";var n=e.messages,o="";if(r=r||{},0===n.length)return r.quiet?"":"\n\ncsslint: No errors in "+t+".";o="\n\ncsslint: There ",1===n.length?o+="is 1 problem":o+="are "+n.length+" problems",o+=" in "+t+".";var a=t.lastIndexOf("/"),l=t;return-1===a&&(a=t.lastIndexOf("\\")),a>-1&&(l=t.substring(a+1)),i.Util.forEach(n,(function(e,t){o=o+"\n\n"+l,e.rollup?(o+="\n"+(t+1)+": "+e.type,o+="\n"+e.message):(o+="\n"+(t+1)+": "+e.type+" at line "+e.line+", col "+e.col,o+="\n"+e.message,o+="\n"+e.evidence)})),o}}),t.u=i},8954:(e,t,r)=>{var n=r(6299)(r(6285),"DataView");e.exports=n},8206:(e,t,r)=>{var n=r(7106),o=r(7903),i=r(4607),a=r(718),l=r(1676);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=l,e.exports=s},9764:(e,t,r)=>{var n=r(5450),o=r(3299),i=r(3616),a=r(4967),l=r(9879);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=l,e.exports=s},6566:(e,t,r)=>{var n=r(6299)(r(6285),"Map");e.exports=n},1795:(e,t,r)=>{var n=r(1543),o=r(419),i=r(6857),a=r(5487),l=r(6433);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=l,e.exports=s},7968:(e,t,r)=>{var n=r(6299)(r(6285),"Promise");e.exports=n},6562:(e,t,r)=>{var n=r(6299)(r(6285),"Set");e.exports=n},154:(e,t,r)=>{var n=r(1795),o=r(7036),i=r(8283);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},4505:(e,t,r)=>{var n=r(9764),o=r(9922),i=r(4205),a=r(8285),l=r(7037),s=r(3266);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=l,u.prototype.set=s,e.exports=u},5816:(e,t,r)=>{var n=r(6285).Symbol;e.exports=n},7423:(e,t,r)=>{var n=r(6285).Uint8Array;e.exports=n},1405:(e,t,r)=>{var n=r(6299)(r(6285),"WeakMap");e.exports=n},3351:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},5918:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},2977:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}},2549:(e,t,r)=>{var n=r(1350);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},2742:e=>{e.exports=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}},5173:(e,t,r)=>{var n=r(5337),o=r(3399),i=r(3858),a=r(5753),l=r(6611),s=r(5805),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),c=!r&&o(e),f=!r&&!c&&a(e),d=!r&&!c&&!f&&s(e),p=r||c||f||d,h=p?n(e.length,String):[],m=h.length;for(var v in e)!t&&!u.call(e,v)||p&&("length"==v||f&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,m))||h.push(v);return h}},5584:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},1415:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},7405:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},9875:(e,t,r)=>{var n=r(5443)("length");e.exports=n},8775:(e,t,r)=>{var n=r(79),o=r(1391),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},3354:(e,t,r)=>{var n=r(1391);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},79:(e,t,r)=>{var n=r(9297);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},1704:(e,t,r)=>{var n=r(154),o=r(2549),i=r(2742),a=r(5584),l=r(4490),s=r(7202);e.exports=function(e,t,r,u){var c=-1,f=o,d=!0,p=e.length,h=[],m=t.length;if(!p)return h;r&&(t=a(t,l(r))),u?(f=i,d=!1):t.length>=200&&(f=s,d=!1,t=new n(t));e:for(;++c<p;){var v=e[c],g=null==r?v:r(v);if(v=u||0!==v?v:0,d&&g==g){for(var y=m;y--;)if(t[y]===g)continue e;h.push(v)}else f(t,g,u)||h.push(v)}return h}},5467:(e,t,r)=>{var n=r(9458),o=r(8310)(n);e.exports=o},8120:(e,t,r)=>{var n=r(5467);e.exports=function(e,t){var r=[];return n(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}},5784:e=>{e.exports=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},6221:e=>{e.exports=function(e,t,r){var n;return r(e,(function(e,r,o){if(t(e,r,o))return n=r,!1})),n}},9753:(e,t,r)=>{var n=r(1415),o=r(9619);e.exports=function e(t,r,i,a,l){var s=-1,u=t.length;for(i||(i=o),l||(l=[]);++s<u;){var c=t[s];r>0&&i(c)?r>1?e(c,r-1,i,a,l):n(l,c):a||(l[l.length]=c)}return l}},3317:(e,t,r)=>{var n=r(2667)();e.exports=n},9458:(e,t,r)=>{var n=r(3317),o=r(1839);e.exports=function(e,t){return e&&n(e,t,o)}},4616:(e,t,r)=>{var n=r(7413),o=r(3742);e.exports=function(e,t){for(var r=0,i=(t=n(t,e)).length;null!=e&&r<i;)e=e[o(t[r++])];return r&&r==i?e:void 0}},1213:(e,t,r)=>{var n=r(1415),o=r(3858);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},9124:(e,t,r)=>{var n=r(5816),o=r(1900),i=r(9488),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},7178:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,r){return null!=e&&t.call(e,r)}},9598:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},1350:(e,t,r)=>{var n=r(5784),o=r(482),i=r(5055);e.exports=function(e,t,r){return t==t?i(e,t,r):n(e,o,r)}},3367:(e,t,r)=>{var n=r(154),o=r(2549),i=r(2742),a=r(5584),l=r(4490),s=r(7202),u=Math.min;e.exports=function(e,t,r){for(var c=r?i:o,f=e[0].length,d=e.length,p=d,h=Array(d),m=1/0,v=[];p--;){var g=e[p];p&&t&&(g=a(g,l(t))),m=u(g.length,m),h[p]=!r&&(t||f>=120&&g.length>=120)?new n(p&&g):void 0}g=e[0];var y=-1,b=h[0];e:for(;++y<f&&v.length<m;){var w=g[y],_=t?t(w):w;if(w=r||0!==w?w:0,!(b?s(b,_):c(v,_,r))){for(p=d;--p;){var x=h[p];if(!(x?s(x,_):c(e[p],_,r)))continue e}b&&b.push(_),v.push(w)}}return v}},5899:(e,t,r)=>{var n=r(9124),o=r(2982);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},5125:(e,t,r)=>{var n=r(6970),o=r(2982);e.exports=function e(t,r,i,a,l){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,i,a,e,l))}},6970:(e,t,r)=>{var n=r(4505),o=r(5174),i=r(3706),a=r(2658),l=r(3929),s=r(3858),u=r(5753),c=r(5805),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,v,g){var y=s(e),b=s(t),w=y?d:l(e),_=b?d:l(t),x=(w=w==f?p:w)==p,k=(_=_==f?p:_)==p,S=w==_;if(S&&u(e)){if(!u(t))return!1;y=!0,x=!1}if(S&&!x)return g||(g=new n),y||c(e)?o(e,t,r,m,v,g):i(e,t,w,r,m,v,g);if(!(1&r)){var O=x&&h.call(e,"__wrapped__"),E=k&&h.call(t,"__wrapped__");if(O||E){var C=O?e.value():e,T=E?t.value():t;return g||(g=new n),v(C,T,r,m,g)}}return!!S&&(g||(g=new n),a(e,t,r,m,v,g))}},8625:(e,t,r)=>{var n=r(4505),o=r(5125);e.exports=function(e,t,r,i){var a=r.length,l=a,s=!i;if(null==e)return!l;for(e=Object(e);a--;){var u=r[a];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<l;){var c=(u=r[a])[0],f=e[c],d=u[1];if(s&&u[2]){if(void 0===f&&!(c in e))return!1}else{var p=new n;if(i)var h=i(f,d,c,e,t,p);if(!(void 0===h?o(d,f,3,i,p):h))return!1}}return!0}},482:e=>{e.exports=function(e){return e!=e}},9069:(e,t,r)=>{var n=r(1009),o=r(3205),i=r(4082),a=r(2398),l=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,c=s.toString,f=u.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?d:l).test(a(e))}},7240:(e,t,r)=>{var n=r(9124),o=r(8061),i=r(2982),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},2064:(e,t,r)=>{var n=r(2209),o=r(3214),i=r(429),a=r(3858),l=r(5325);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):n(e):l(e)}},3145:(e,t,r)=>{var n=r(7557),o=r(3918),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6348:(e,t,r)=>{var n=r(4082),o=r(7557),i=r(2605),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var l in e)("constructor"!=l||!t&&a.call(e,l))&&r.push(l);return r}},9409:(e,t,r)=>{var n=r(5467),o=r(5046);e.exports=function(e,t){var r=-1,i=o(e)?Array(e.length):[];return n(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}},2209:(e,t,r)=>{var n=r(8625),o=r(8093),i=r(3247);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},3214:(e,t,r)=>{var n=r(5125),o=r(2952),i=r(3118),a=r(1237),l=r(6996),s=r(3247),u=r(3742);e.exports=function(e,t){return a(e)&&l(t)?s(u(e),t):function(r){var a=o(r,e);return void 0===a&&a===t?i(r,e):n(t,a,3)}}},7889:(e,t,r)=>{var n=r(4616),o=r(5168),i=r(7413);e.exports=function(e,t,r){for(var a=-1,l=t.length,s={};++a<l;){var u=t[a],c=n(e,u);r(c,u)&&o(s,i(u,e),c)}return s}},5443:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},1833:(e,t,r)=>{var n=r(4616);e.exports=function(e){return function(t){return n(t,e)}}},3040:(e,t,r)=>{var n=r(7547),o=r(6611),i=Array.prototype.splice;e.exports=function(e,t){for(var r=e?t.length:0,a=r-1;r--;){var l=t[r];if(r==a||l!==s){var s=l;o(l)?i.call(e,l,1):n(e,l)}}return e}},2978:(e,t,r)=>{var n=r(429),o=r(6441),i=r(3415);e.exports=function(e,t){return i(o(e,t,n),e+"")}},5168:(e,t,r)=>{var n=r(8775),o=r(7413),i=r(6611),a=r(4082),l=r(3742);e.exports=function(e,t,r,s){if(!a(e))return e;for(var u=-1,c=(t=o(t,e)).length,f=c-1,d=e;null!=d&&++u<c;){var p=l(t[u]),h=r;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(u!=f){var m=d[p];void 0===(h=s?s(m,p,d):void 0)&&(h=a(m)?m:i(t[u+1])?[]:{})}n(d,p,h),d=d[p]}return e}},147:(e,t,r)=>{var n=r(3179),o=r(9297),i=r(429),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},6306:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}},5337:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},5631:(e,t,r)=>{var n=r(5816),o=r(5584),i=r(3858),a=r(754),l=n?n.prototype:void 0,s=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return s?s.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r}},301:(e,t,r)=>{var n=r(1259),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},4490:e=>{e.exports=function(e){return function(t){return e(t)}}},3631:(e,t,r)=>{var n=r(154),o=r(2549),i=r(2742),a=r(7202),l=r(4031),s=r(150);e.exports=function(e,t,r){var u=-1,c=o,f=e.length,d=!0,p=[],h=p;if(r)d=!1,c=i;else if(f>=200){var m=t?null:l(e);if(m)return s(m);d=!1,c=a,h=new n}else h=t?[]:p;e:for(;++u<f;){var v=e[u],g=t?t(v):v;if(v=r||0!==v?v:0,d&&g==g){for(var y=h.length;y--;)if(h[y]===g)continue e;t&&h.push(g),p.push(v)}else c(h,g,r)||(h!==p&&h.push(g),p.push(v))}return p}},7547:(e,t,r)=>{var n=r(7413),o=r(2359),i=r(6175),a=r(3742);e.exports=function(e,t){return t=n(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},6862:(e,t,r)=>{var n=r(5584);e.exports=function(e,t){return n(t,(function(t){return e[t]}))}},7202:e=>{e.exports=function(e,t){return e.has(t)}},4286:(e,t,r)=>{var n=r(4655);e.exports=function(e){return n(e)?e:[]}},7546:(e,t,r)=>{var n=r(429);e.exports=function(e){return"function"==typeof e?e:n}},7413:(e,t,r)=>{var n=r(3858),o=r(1237),i=r(902),a=r(3156);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},22:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},7339:(e,t,r)=>{var n=r(8775),o=r(79);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var l=-1,s=t.length;++l<s;){var u=t[l],c=i?i(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),a?o(r,u,c):n(r,u,c)}return r}},1815:(e,t,r)=>{var n=r(6285)["__core-js_shared__"];e.exports=n},716:(e,t,r)=>{var n=r(2978),o=r(4007);e.exports=function(e){return n((function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,l=i>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,l&&o(r[0],r[1],l)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,a)}return t}))}},8310:(e,t,r)=>{var n=r(5046);e.exports=function(e,t){return function(r,o){if(null==r)return r;if(!n(r))return e(r,o);for(var i=r.length,a=t?i:-1,l=Object(r);(t?a--:++a<i)&&!1!==o(l[a],a,l););return r}}},2667:e=>{e.exports=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),l=a.length;l--;){var s=a[e?l:++o];if(!1===r(i[s],s,i))break}return t}}},4031:(e,t,r)=>{var n=r(6562),o=r(4911),i=r(150),a=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:o;e.exports=a},9297:(e,t,r)=>{var n=r(6299),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},5174:(e,t,r)=>{var n=r(154),o=r(7405),i=r(7202);e.exports=function(e,t,r,a,l,s){var u=1&r,c=e.length,f=t.length;if(c!=f&&!(u&&f>c))return!1;var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var h=-1,m=!0,v=2&r?new n:void 0;for(s.set(e,t),s.set(t,e);++h<c;){var g=e[h],y=t[h];if(a)var b=u?a(y,g,h,t,e,s):a(g,y,h,e,t,s);if(void 0!==b){if(b)continue;m=!1;break}if(v){if(!o(t,(function(e,t){if(!i(v,t)&&(g===e||l(g,e,r,a,s)))return v.push(t)}))){m=!1;break}}else if(g!==y&&!l(g,y,r,a,s)){m=!1;break}}return s.delete(e),s.delete(t),m}},3706:(e,t,r)=>{var n=r(5816),o=r(7423),i=r(1391),a=r(5174),l=r(3866),s=r(150),u=n?n.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,f,d){switch(r){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||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+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 p=l;case"[object Set]":var h=1&n;if(p||(p=s),e.size!=t.size&&!h)return!1;var m=d.get(e);if(m)return m==t;n|=2,d.set(e,t);var v=a(p(e),p(t),n,u,f,d);return d.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},2658:(e,t,r)=>{var n=r(8616),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,a,l){var s=1&r,u=n(e),c=u.length;if(c!=n(t).length&&!s)return!1;for(var f=c;f--;){var d=u[f];if(!(s?d in t:o.call(t,d)))return!1}var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var m=!0;l.set(e,t),l.set(t,e);for(var v=s;++f<c;){var g=e[d=u[f]],y=t[d];if(i)var b=s?i(y,g,d,t,e,l):i(g,y,d,e,t,l);if(!(void 0===b?g===y||a(g,y,r,i,l):b)){m=!1;break}v||(v="constructor"==d)}if(m&&!v){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(m=!1)}return l.delete(e),l.delete(t),m}},2076:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},8616:(e,t,r)=>{var n=r(1213),o=r(6375),i=r(1839);e.exports=function(e){return n(e,i,o)}},2484:(e,t,r)=>{var n=r(1213),o=r(5446),i=r(8088);e.exports=function(e){return n(e,i,o)}},6208:(e,t,r)=>{var n=r(6123);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},8093:(e,t,r)=>{var n=r(6996),o=r(1839);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,n(a)]}return t}},6299:(e,t,r)=>{var n=r(9069),o=r(3521);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},1353:(e,t,r)=>{var n=r(363)(Object.getPrototypeOf,Object);e.exports=n},1900:(e,t,r)=>{var n=r(5816),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),r=e[l];try{e[l]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[l]=r:delete e[l]),o}},6375:(e,t,r)=>{var n=r(2977),o=r(255),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=l},5446:(e,t,r)=>{var n=r(1415),o=r(1353),i=r(6375),a=r(255),l=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=o(e);return t}:a;e.exports=l},3929:(e,t,r)=>{var n=r(8954),o=r(6566),i=r(7968),a=r(6562),l=r(1405),s=r(9124),u=r(2398),c="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",m=u(n),v=u(o),g=u(i),y=u(a),b=u(l),w=s;(n&&w(new n(new ArrayBuffer(1)))!=h||o&&w(new o)!=c||i&&w(i.resolve())!=f||a&&w(new a)!=d||l&&w(new l)!=p)&&(w=function(e){var t=s(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case m:return h;case v:return c;case g:return f;case y:return d;case b:return p}return t}),e.exports=w},3521:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},9898:(e,t,r)=>{var n=r(7413),o=r(3399),i=r(3858),a=r(6611),l=r(8061),s=r(3742);e.exports=function(e,t,r){for(var u=-1,c=(t=n(t,e)).length,f=!1;++u<c;){var d=s(t[u]);if(!(f=null!=e&&r(e,d)))break;e=e[d]}return f||++u!=c?f:!!(c=null==e?0:e.length)&&l(c)&&a(d,c)&&(i(e)||o(e))}},2426:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},7106:(e,t,r)=>{var n=r(4378);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},7903:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},4607:(e,t,r)=>{var n=r(4378),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},718:(e,t,r)=>{var n=r(4378),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},1676:(e,t,r)=>{var n=r(4378);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},9619:(e,t,r)=>{var n=r(5816),o=r(3399),i=r(3858),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},6611:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},4007:(e,t,r)=>{var n=r(1391),o=r(5046),i=r(6611),a=r(4082);e.exports=function(e,t,r){if(!a(r))return!1;var l=typeof t;return!!("number"==l?o(r)&&i(t,r.length):"string"==l&&t in r)&&n(r[t],e)}},1237:(e,t,r)=>{var n=r(3858),o=r(754),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},6123:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},3205:(e,t,r)=>{var n,o=r(1815),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},7557:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},6996:(e,t,r)=>{var n=r(4082);e.exports=function(e){return e==e&&!n(e)}},5450:e=>{e.exports=function(){this.__data__=[],this.size=0}},3299:(e,t,r)=>{var n=r(3354),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},3616:(e,t,r)=>{var n=r(3354);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},4967:(e,t,r)=>{var n=r(3354);e.exports=function(e){return n(this.__data__,e)>-1}},9879:(e,t,r)=>{var n=r(3354);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},1543:(e,t,r)=>{var n=r(8206),o=r(9764),i=r(6566);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},419:(e,t,r)=>{var n=r(6208);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6857:(e,t,r)=>{var n=r(6208);e.exports=function(e){return n(this,e).get(e)}},5487:(e,t,r)=>{var n=r(6208);e.exports=function(e){return n(this,e).has(e)}},6433:(e,t,r)=>{var n=r(6208);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},3866:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},3247:e=>{e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},110:(e,t,r)=>{var n=r(6762);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},4378:(e,t,r)=>{var n=r(6299)(Object,"create");e.exports=n},3918:(e,t,r)=>{var n=r(363)(Object.keys,Object);e.exports=n},2605:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},7001:(e,t,r)=>{e=r.nmd(e);var n=r(2076),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=l},9488:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},363:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},6441:(e,t,r)=>{var n=r(3351),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,l=o(i.length-t,0),s=Array(l);++a<l;)s[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=r(s),n(e,this,u)}}},6175:(e,t,r)=>{var n=r(4616),o=r(6306);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},6285:(e,t,r)=>{var n=r(2076),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},7036:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8283:e=>{e.exports=function(e){return this.__data__.has(e)}},150:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},3415:(e,t,r)=>{var n=r(147),o=r(5374)(n);e.exports=o},5374:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},9922:(e,t,r)=>{var n=r(9764);e.exports=function(){this.__data__=new n,this.size=0}},4205:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},8285:e=>{e.exports=function(e){return this.__data__.get(e)}},7037:e=>{e.exports=function(e){return this.__data__.has(e)}},3266:(e,t,r)=>{var n=r(9764),o=r(6566),i=r(1795);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},5055:e=>{e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}},2126:(e,t,r)=>{var n=r(9875),o=r(2426),i=r(1241);e.exports=function(e){return o(e)?i(e):n(e)}},902:(e,t,r)=>{var n=r(110),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)})),t}));e.exports=a},3742:(e,t,r)=>{var n=r(754);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},2398:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1259:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},1241:e=>{var t="\\ud800-\\udfff",r="["+t+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+o+")"+"?",u="[\\ufe0e\\ufe0f]?",c=u+s+("(?:\\u200d(?:"+[i,a,l].join("|")+")"+u+s+")*"),f="(?:"+[i+n+"?",n,a,l,r].join("|")+")",d=RegExp(o+"(?="+o+")|"+f+c,"g");e.exports=function(e){for(var t=d.lastIndex=0;d.test(e);)++t;return t}},8618:(e,t,r)=>{var n=r(8775),o=r(7339),i=r(716),a=r(5046),l=r(7557),s=r(1839),u=Object.prototype.hasOwnProperty,c=i((function(e,t){if(l(t)||a(t))o(t,s(t),e);else for(var r in t)u.call(t,r)&&n(e,r,t[r])}));e.exports=c},9021:(e,t,r)=>{var n=r(1415),o=r(9753),i=r(22),a=r(3858);e.exports=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],l=e;l--;)t[l-1]=arguments[l];return n(a(r)?i(r):[r],o(t,1))}},3179:e=>{e.exports=function(e){return function(){return e}}},3708:(e,t,r)=>{var n=r(4082),o=r(1390),i=r(9347),a=Math.max,l=Math.min;e.exports=function(e,t,r){var s,u,c,f,d,p,h=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var r=s,n=u;return s=u=void 0,h=t,f=e.apply(n,r)}function b(e){var r=e-p;return void 0===p||r>=t||r<0||v&&e-h>=c}function w(){var e=o();if(b(e))return _(e);d=setTimeout(w,function(e){var r=t-(e-p);return v?l(r,c-(e-h)):r}(e))}function _(e){return d=void 0,g&&s?y(e):(s=u=void 0,f)}function x(){var e=o(),r=b(e);if(s=arguments,u=this,p=e,r){if(void 0===d)return function(e){return h=e,d=setTimeout(w,t),m?y(e):f}(p);if(v)return clearTimeout(d),d=setTimeout(w,t),y(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=i(t)||0,n(r)&&(m=!!r.leading,c=(v="maxWait"in r)?a(i(r.maxWait)||0,t):c,g="trailing"in r?!!r.trailing:g),x.cancel=function(){void 0!==d&&clearTimeout(d),h=0,s=p=u=d=void 0},x.flush=function(){return void 0===d?f:_(o())},x}},3167:(e,t,r)=>{var n=r(1704),o=r(9753),i=r(2978),a=r(4655),l=i((function(e,t){return a(e)?n(e,o(t,1,a,!0)):[]}));e.exports=l},1391:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},547:(e,t,r)=>{var n=r(2977),o=r(8120),i=r(2064),a=r(3858);e.exports=function(e,t){return(a(e)?n:o)(e,i(t,3))}},2406:(e,t,r)=>{var n=r(6221),o=r(9458),i=r(2064);e.exports=function(e,t){return n(e,i(t,3),o)}},8232:(e,t,r)=>{var n=r(5918),o=r(5467),i=r(7546),a=r(3858);e.exports=function(e,t){return(a(e)?n:o)(e,i(t))}},2952:(e,t,r)=>{var n=r(4616);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},1587:(e,t,r)=>{var n=r(7178),o=r(9898);e.exports=function(e,t){return null!=e&&o(e,t,n)}},3118:(e,t,r)=>{var n=r(9598),o=r(9898);e.exports=function(e,t){return null!=e&&o(e,t,n)}},429:e=>{e.exports=function(e){return e}},8925:(e,t,r)=>{var n=r(1350),o=r(5046),i=r(7606),a=r(1646),l=r(3109),s=Math.max;e.exports=function(e,t,r,u){e=o(e)?e:l(e),r=r&&!u?a(r):0;var c=e.length;return r<0&&(r=s(c+r,0)),i(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&n(e,t,r)>-1}},8993:(e,t,r)=>{var n=r(1350),o=r(1646),i=Math.max;e.exports=function(e,t,r){var a=null==e?0:e.length;if(!a)return-1;var l=null==r?0:o(r);return l<0&&(l=i(a+l,0)),n(e,t,l)}},1641:(e,t,r)=>{var n=r(5584),o=r(3367),i=r(2978),a=r(4286),l=i((function(e){var t=n(e,a);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=l},3399:(e,t,r)=>{var n=r(5899),o=r(2982),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},3858:e=>{var t=Array.isArray;e.exports=t},5046:(e,t,r)=>{var n=r(1009),o=r(8061);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},4655:(e,t,r)=>{var n=r(5046),o=r(2982);e.exports=function(e){return o(e)&&n(e)}},5753:(e,t,r)=>{e=r.nmd(e);var n=r(6285),o=r(8416),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?n.Buffer:void 0,s=(l?l.isBuffer:void 0)||o;e.exports=s},418:(e,t,r)=>{var n=r(3145),o=r(3929),i=r(3399),a=r(3858),l=r(5046),s=r(5753),u=r(7557),c=r(5805),f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(l(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||s(e)||c(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!n(e).length;for(var r in e)if(f.call(e,r))return!1;return!0}},8961:(e,t,r)=>{var n=r(5125);e.exports=function(e,t){return n(e,t)}},1009:(e,t,r)=>{var n=r(9124),o=r(4082);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},8061:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},1733:e=>{e.exports=function(e){return null===e}},8546:(e,t,r)=>{var n=r(9124),o=r(2982);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==n(e)}},4082:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},2982:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},7606:(e,t,r)=>{var n=r(9124),o=r(3858),i=r(2982);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==n(e)}},754:(e,t,r)=>{var n=r(9124),o=r(2982);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},5805:(e,t,r)=>{var n=r(7240),o=r(4490),i=r(7001),a=i&&i.isTypedArray,l=a?o(a):n;e.exports=l},2211:e=>{e.exports=function(e){return void 0===e}},1839:(e,t,r)=>{var n=r(5173),o=r(3145),i=r(5046);e.exports=function(e){return i(e)?n(e):o(e)}},8088:(e,t,r)=>{var n=r(5173),o=r(6348),i=r(5046);e.exports=function(e){return i(e)?n(e,!0):o(e)}},2359:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},6459:function(e,t,r){e=r.nmd(e),function(){var n,o="Expected a function",i="__lodash_hash_undefined__",a="__lodash_placeholder__",l=16,s=32,u=64,c=128,f=256,d=1/0,p=9007199254740991,h=NaN,m=4294967295,v=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",s],["partialRight",u],["rearg",f]],g="[object Arguments]",y="[object Array]",b="[object Boolean]",w="[object Date]",_="[object Error]",x="[object Function]",k="[object GeneratorFunction]",S="[object Map]",O="[object Number]",E="[object Object]",C="[object Promise]",T="[object RegExp]",L="[object Set]",M="[object String]",A="[object Symbol]",j="[object WeakMap]",P="[object ArrayBuffer]",I="[object DataView]",R="[object Float32Array]",N="[object Float64Array]",D="[object Int8Array]",z="[object Int16Array]",F="[object Int32Array]",H="[object Uint8Array]",B="[object Uint8ClampedArray]",W="[object Uint16Array]",U="[object Uint32Array]",V=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Y=RegExp(G.source),Q=RegExp(K.source),Z=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ne.source),ie=/^\s+/,ae=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Le="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Me="['\u2019]",Ae="["+ke+"]",je="["+Le+"]",Pe="["+Se+"]",Ie="\\d+",Re="["+Oe+"]",Ne="["+Ee+"]",De="[^"+ke+Le+Ie+Oe+Ee+Ce+"]",ze="\\ud83c[\\udffb-\\udfff]",Fe="[^"+ke+"]",He="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+Ce+"]",Ue="\\u200d",Ve="(?:"+Ne+"|"+De+")",qe="(?:"+We+"|"+De+")",$e="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ge="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Pe+"|"+ze+")"+"?",Ye="["+Te+"]?",Qe=Ye+Ke+("(?:"+Ue+"(?:"+[Fe,He,Be].join("|")+")"+Ye+Ke+")*"),Ze="(?:"+[Re,He,Be].join("|")+")"+Qe,Xe="(?:"+[Fe+Pe+"?",Pe,He,Be,Ae].join("|")+")",Je=RegExp(Me,"g"),et=RegExp(Pe,"g"),tt=RegExp(ze+"(?="+ze+")|"+Xe+Qe,"g"),rt=RegExp([We+"?"+Ne+"+"+$e+"(?="+[je,We,"$"].join("|")+")",qe+"+"+Ge+"(?="+[je,We+Ve,"$"].join("|")+")",We+"?"+Ve+"+"+$e,We+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ze].join("|"),"g"),nt=RegExp("["+Ue+ke+Se+Te+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,lt={};lt[R]=lt[N]=lt[D]=lt[z]=lt[F]=lt[H]=lt[B]=lt[W]=lt[U]=!0,lt[g]=lt[y]=lt[P]=lt[b]=lt[I]=lt[w]=lt[_]=lt[x]=lt[S]=lt[O]=lt[E]=lt[T]=lt[L]=lt[M]=lt[j]=!1;var st={};st[g]=st[y]=st[P]=st[I]=st[b]=st[w]=st[R]=st[N]=st[D]=st[z]=st[F]=st[S]=st[O]=st[E]=st[T]=st[L]=st[M]=st[A]=st[H]=st[B]=st[W]=st[U]=!0,st[_]=st[x]=st[j]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ft=parseInt,dt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,pt="object"==typeof self&&self&&self.Object===Object&&self,ht=dt||pt||Function("return this")(),mt=t&&!t.nodeType&&t,vt=mt&&e&&!e.nodeType&&e,gt=vt&&vt.exports===mt,yt=gt&&dt.process,bt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),wt=bt&&bt.isArrayBuffer,_t=bt&&bt.isDate,xt=bt&&bt.isMap,kt=bt&&bt.isRegExp,St=bt&&bt.isSet,Ot=bt&&bt.isTypedArray;function Et(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Ct(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}function Tt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Lt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Mt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function At(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}function jt(e,t){return!!(null==e?0:e.length)&&Wt(e,t,0)>-1}function Pt(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function It(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function Rt(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function Nt(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function Dt(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function zt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Ft=$t("length");function Ht(e,t,r){var n;return r(e,(function(e,r,o){if(t(e,r,o))return n=r,!1})),n}function Bt(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Wt(e,t,r){return t==t?function(e,t,r){var n=r-1,o=e.length;for(;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):Bt(e,Vt,r)}function Ut(e,t,r,n){for(var o=r-1,i=e.length;++o<i;)if(n(e[o],t))return o;return-1}function Vt(e){return e!=e}function qt(e,t){var r=null==e?0:e.length;return r?Yt(e,t)/r:h}function $t(e){return function(t){return null==t?n:t[e]}}function Gt(e){return function(t){return null==e?n:e[t]}}function Kt(e,t,r,n,o){return o(e,(function(e,o,i){r=n?(n=!1,e):t(r,e,o,i)})),r}function Yt(e,t){for(var r,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==n&&(r=r===n?a:r+a)}return r}function Qt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Zt(e){return e?e.slice(0,hr(e)+1).replace(ie,""):e}function Xt(e){return function(t){return e(t)}}function Jt(e,t){return It(t,(function(t){return e[t]}))}function er(e,t){return e.has(t)}function tr(e,t){for(var r=-1,n=e.length;++r<n&&Wt(t,e[r],0)>-1;);return r}function rr(e,t){for(var r=e.length;r--&&Wt(t,e[r],0)>-1;);return r}var nr=Gt({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),or=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ir(e){return"\\"+ut[e]}function ar(e){return nt.test(e)}function lr(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function sr(e,t){return function(r){return e(t(r))}}function ur(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var l=e[r];l!==t&&l!==a||(e[r]=a,i[o++]=r)}return i}function cr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function fr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function dr(e){return ar(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Ft(e)}function pr(e){return ar(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function hr(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var mr=Gt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var vr=function e(t){var r,ae=(t=null==t?ht:vr.defaults(ht.Object(),t,vr.pick(ht,it))).Array,ke=t.Date,Se=t.Error,Oe=t.Function,Ee=t.Math,Ce=t.Object,Te=t.RegExp,Le=t.String,Me=t.TypeError,Ae=ae.prototype,je=Oe.prototype,Pe=Ce.prototype,Ie=t["__core-js_shared__"],Re=je.toString,Ne=Pe.hasOwnProperty,De=0,ze=(r=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Fe=Pe.toString,He=Re.call(Ce),Be=ht._,We=Te("^"+Re.call(Ne).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=gt?t.Buffer:n,Ve=t.Symbol,qe=t.Uint8Array,$e=Ue?Ue.allocUnsafe:n,Ge=sr(Ce.getPrototypeOf,Ce),Ke=Ce.create,Ye=Pe.propertyIsEnumerable,Qe=Ae.splice,Ze=Ve?Ve.isConcatSpreadable:n,Xe=Ve?Ve.iterator:n,tt=Ve?Ve.toStringTag:n,nt=function(){try{var e=pi(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),ut=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,dt=ke&&ke.now!==ht.Date.now&&ke.now,pt=t.setTimeout!==ht.setTimeout&&t.setTimeout,mt=Ee.ceil,vt=Ee.floor,yt=Ce.getOwnPropertySymbols,bt=Ue?Ue.isBuffer:n,Ft=t.isFinite,Gt=Ae.join,gr=sr(Ce.keys,Ce),yr=Ee.max,br=Ee.min,wr=ke.now,_r=t.parseInt,xr=Ee.random,kr=Ae.reverse,Sr=pi(t,"DataView"),Or=pi(t,"Map"),Er=pi(t,"Promise"),Cr=pi(t,"Set"),Tr=pi(t,"WeakMap"),Lr=pi(Ce,"create"),Mr=Tr&&new Tr,Ar={},jr=Fi(Sr),Pr=Fi(Or),Ir=Fi(Er),Rr=Fi(Cr),Nr=Fi(Tr),Dr=Ve?Ve.prototype:n,zr=Dr?Dr.valueOf:n,Fr=Dr?Dr.toString:n;function Hr(e){if(rl(e)&&!qa(e)&&!(e instanceof Vr)){if(e instanceof Ur)return e;if(Ne.call(e,"__wrapped__"))return Hi(e)}return new Ur(e)}var Br=function(){function e(){}return function(t){if(!tl(t))return{};if(Ke)return Ke(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Wr(){}function Ur(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Vr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function qr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function $r(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Gr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Kr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Gr;++t<r;)this.add(e[t])}function Yr(e){var t=this.__data__=new $r(e);this.size=t.size}function Qr(e,t){var r=qa(e),n=!r&&Va(e),o=!r&&!n&&Ya(e),i=!r&&!n&&!o&&cl(e),a=r||n||o||i,l=a?Qt(e.length,Le):[],s=l.length;for(var u in e)!t&&!Ne.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||wi(u,s))||l.push(u);return l}function Zr(e){var t=e.length;return t?e[Yn(0,t-1)]:n}function Xr(e,t){return Ni(Ao(e),sn(t,0,e.length))}function Jr(e){return Ni(Ao(e))}function en(e,t,r){(r!==n&&!Ba(e[t],r)||r===n&&!(t in e))&&an(e,t,r)}function tn(e,t,r){var o=e[t];Ne.call(e,t)&&Ba(o,r)&&(r!==n||t in e)||an(e,t,r)}function rn(e,t){for(var r=e.length;r--;)if(Ba(e[r][0],t))return r;return-1}function nn(e,t,r,n){return pn(e,(function(e,o,i){t(n,e,r(e),i)})),n}function on(e,t){return e&&jo(t,jl(t),e)}function an(e,t,r){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ln(e,t){for(var r=-1,o=t.length,i=ae(o),a=null==e;++r<o;)i[r]=a?n:Cl(e,t[r]);return i}function sn(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function un(e,t,r,o,i,a){var l,s=1&t,u=2&t,c=4&t;if(r&&(l=i?r(e,o,i,a):r(e)),l!==n)return l;if(!tl(e))return e;var f=qa(e);if(f){if(l=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!s)return Ao(e,l)}else{var d=vi(e),p=d==x||d==k;if(Ya(e))return Oo(e,s);if(d==E||d==g||p&&!i){if(l=u||p?{}:yi(e),!s)return u?function(e,t){return jo(e,mi(e),t)}(e,function(e,t){return e&&jo(t,Pl(t),e)}(l,e)):function(e,t){return jo(e,hi(e),t)}(e,on(l,e))}else{if(!st[d])return i?e:{};l=function(e,t,r){var n=e.constructor;switch(t){case P:return Eo(e);case b:case w:return new n(+e);case I:return function(e,t){var r=t?Eo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case R:case N:case D:case z:case F:case H:case B:case W:case U:return Co(e,r);case S:return new n;case O:case M:return new n(e);case T:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case L:return new n;case A:return o=e,zr?Ce(zr.call(o)):{}}var o}(e,d,s)}}a||(a=new Yr);var h=a.get(e);if(h)return h;a.set(e,l),ll(e)?e.forEach((function(n){l.add(un(n,t,r,n,e,a))})):nl(e)&&e.forEach((function(n,o){l.set(o,un(n,t,r,o,e,a))}));var m=f?n:(c?u?ai:ii:u?Pl:jl)(e);return Tt(m||e,(function(n,o){m&&(n=e[o=n]),tn(l,o,un(n,t,r,o,e,a))})),l}function cn(e,t,r){var o=r.length;if(null==e)return!o;for(e=Ce(e);o--;){var i=r[o],a=t[i],l=e[i];if(l===n&&!(i in e)||!a(l))return!1}return!0}function fn(e,t,r){if("function"!=typeof e)throw new Me(o);return ji((function(){e.apply(n,r)}),t)}function dn(e,t,r,n){var o=-1,i=jt,a=!0,l=e.length,s=[],u=t.length;if(!l)return s;r&&(t=It(t,Xt(r))),n?(i=Pt,a=!1):t.length>=200&&(i=er,a=!1,t=new Kr(t));e:for(;++o<l;){var c=e[o],f=null==r?c:r(c);if(c=n||0!==c?c:0,a&&f==f){for(var d=u;d--;)if(t[d]===f)continue e;s.push(c)}else i(t,f,n)||s.push(c)}return s}Hr.templateSettings={escape:Z,evaluate:X,interpolate:J,variable:"",imports:{_:Hr}},Hr.prototype=Wr.prototype,Hr.prototype.constructor=Hr,Ur.prototype=Br(Wr.prototype),Ur.prototype.constructor=Ur,Vr.prototype=Br(Wr.prototype),Vr.prototype.constructor=Vr,qr.prototype.clear=function(){this.__data__=Lr?Lr(null):{},this.size=0},qr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qr.prototype.get=function(e){var t=this.__data__;if(Lr){var r=t[e];return r===i?n:r}return Ne.call(t,e)?t[e]:n},qr.prototype.has=function(e){var t=this.__data__;return Lr?t[e]!==n:Ne.call(t,e)},qr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Lr&&t===n?i:t,this},$r.prototype.clear=function(){this.__data__=[],this.size=0},$r.prototype.delete=function(e){var t=this.__data__,r=rn(t,e);return!(r<0)&&(r==t.length-1?t.pop():Qe.call(t,r,1),--this.size,!0)},$r.prototype.get=function(e){var t=this.__data__,r=rn(t,e);return r<0?n:t[r][1]},$r.prototype.has=function(e){return rn(this.__data__,e)>-1},$r.prototype.set=function(e,t){var r=this.__data__,n=rn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Gr.prototype.clear=function(){this.size=0,this.__data__={hash:new qr,map:new(Or||$r),string:new qr}},Gr.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},Gr.prototype.get=function(e){return fi(this,e).get(e)},Gr.prototype.has=function(e){return fi(this,e).has(e)},Gr.prototype.set=function(e,t){var r=fi(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Kr.prototype.add=Kr.prototype.push=function(e){return this.__data__.set(e,i),this},Kr.prototype.has=function(e){return this.__data__.has(e)},Yr.prototype.clear=function(){this.__data__=new $r,this.size=0},Yr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Yr.prototype.get=function(e){return this.__data__.get(e)},Yr.prototype.has=function(e){return this.__data__.has(e)},Yr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof $r){var n=r.__data__;if(!Or||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Gr(n)}return r.set(e,t),this.size=r.size,this};var pn=Ro(_n),hn=Ro(xn,!0);function mn(e,t){var r=!0;return pn(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function vn(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],l=t(a);if(null!=l&&(s===n?l==l&&!ul(l):r(l,s)))var s=l,u=a}return u}function gn(e,t){var r=[];return pn(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function yn(e,t,r,n,o){var i=-1,a=e.length;for(r||(r=bi),o||(o=[]);++i<a;){var l=e[i];t>0&&r(l)?t>1?yn(l,t-1,r,n,o):Rt(o,l):n||(o[o.length]=l)}return o}var bn=No(),wn=No(!0);function _n(e,t){return e&&bn(e,t,jl)}function xn(e,t){return e&&wn(e,t,jl)}function kn(e,t){return At(t,(function(t){return Xa(e[t])}))}function Sn(e,t){for(var r=0,o=(t=_o(t,e)).length;null!=e&&r<o;)e=e[zi(t[r++])];return r&&r==o?e:n}function On(e,t,r){var n=t(e);return qa(e)?n:Rt(n,r(e))}function En(e){return null==e?e===n?"[object Undefined]":"[object Null]":tt&&tt in Ce(e)?function(e){var t=Ne.call(e,tt),r=e[tt];try{e[tt]=n;var o=!0}catch(e){}var i=Fe.call(e);o&&(t?e[tt]=r:delete e[tt]);return i}(e):function(e){return Fe.call(e)}(e)}function Cn(e,t){return e>t}function Tn(e,t){return null!=e&&Ne.call(e,t)}function Ln(e,t){return null!=e&&t in Ce(e)}function Mn(e,t,r){for(var o=r?Pt:jt,i=e[0].length,a=e.length,l=a,s=ae(a),u=1/0,c=[];l--;){var f=e[l];l&&t&&(f=It(f,Xt(t))),u=br(f.length,u),s[l]=!r&&(t||i>=120&&f.length>=120)?new Kr(l&&f):n}f=e[0];var d=-1,p=s[0];e:for(;++d<i&&c.length<u;){var h=f[d],m=t?t(h):h;if(h=r||0!==h?h:0,!(p?er(p,m):o(c,m,r))){for(l=a;--l;){var v=s[l];if(!(v?er(v,m):o(e[l],m,r)))continue e}p&&p.push(m),c.push(h)}}return c}function An(e,t,r){var o=null==(e=Li(e,t=_o(t,e)))?e:e[zi(Zi(t))];return null==o?n:Et(o,e,r)}function jn(e){return rl(e)&&En(e)==g}function Pn(e,t,r,o,i){return e===t||(null==e||null==t||!rl(e)&&!rl(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var l=qa(e),s=qa(t),u=l?y:vi(e),c=s?y:vi(t),f=(u=u==g?E:u)==E,d=(c=c==g?E:c)==E,p=u==c;if(p&&Ya(e)){if(!Ya(t))return!1;l=!0,f=!1}if(p&&!f)return a||(a=new Yr),l||cl(e)?ni(e,t,r,o,i,a):function(e,t,r,n,o,i,a){switch(r){case I:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case P:return!(e.byteLength!=t.byteLength||!i(new qe(e),new qe(t)));case b:case w:case O:return Ba(+e,+t);case _:return e.name==t.name&&e.message==t.message;case T:case M:return e==t+"";case S:var l=lr;case L:var s=1&n;if(l||(l=cr),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;n|=2,a.set(e,t);var c=ni(l(e),l(t),n,o,i,a);return a.delete(e),c;case A:if(zr)return zr.call(e)==zr.call(t)}return!1}(e,t,u,r,o,i,a);if(!(1&r)){var h=f&&Ne.call(e,"__wrapped__"),m=d&&Ne.call(t,"__wrapped__");if(h||m){var v=h?e.value():e,x=m?t.value():t;return a||(a=new Yr),i(v,x,r,o,a)}}if(!p)return!1;return a||(a=new Yr),function(e,t,r,o,i,a){var l=1&r,s=ii(e),u=s.length,c=ii(t),f=c.length;if(u!=f&&!l)return!1;var d=u;for(;d--;){var p=s[d];if(!(l?p in t:Ne.call(t,p)))return!1}var h=a.get(e),m=a.get(t);if(h&&m)return h==t&&m==e;var v=!0;a.set(e,t),a.set(t,e);var g=l;for(;++d<u;){var y=e[p=s[d]],b=t[p];if(o)var w=l?o(b,y,p,t,e,a):o(y,b,p,e,t,a);if(!(w===n?y===b||i(y,b,r,o,a):w)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var _=e.constructor,x=t.constructor;_==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(v=!1)}return a.delete(e),a.delete(t),v}(e,t,r,o,i,a)}(e,t,r,o,Pn,i))}function In(e,t,r,o){var i=r.length,a=i,l=!o;if(null==e)return!a;for(e=Ce(e);i--;){var s=r[i];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var u=(s=r[i])[0],c=e[u],f=s[1];if(l&&s[2]){if(c===n&&!(u in e))return!1}else{var d=new Yr;if(o)var p=o(c,f,u,e,t,d);if(!(p===n?Pn(f,c,3,o,d):p))return!1}}return!0}function Rn(e){return!(!tl(e)||(t=e,ze&&ze in t))&&(Xa(e)?We:ge).test(Fi(e));var t}function Nn(e){return"function"==typeof e?e:null==e?os:"object"==typeof e?qa(e)?Wn(e[0],e[1]):Bn(e):ps(e)}function Dn(e){if(!Oi(e))return gr(e);var t=[];for(var r in Ce(e))Ne.call(e,r)&&"constructor"!=r&&t.push(r);return t}function zn(e){if(!tl(e))return function(e){var t=[];if(null!=e)for(var r in Ce(e))t.push(r);return t}(e);var t=Oi(e),r=[];for(var n in e)("constructor"!=n||!t&&Ne.call(e,n))&&r.push(n);return r}function Fn(e,t){return e<t}function Hn(e,t){var r=-1,n=Ga(e)?ae(e.length):[];return pn(e,(function(e,o,i){n[++r]=t(e,o,i)})),n}function Bn(e){var t=di(e);return 1==t.length&&t[0][2]?Ci(t[0][0],t[0][1]):function(r){return r===e||In(r,e,t)}}function Wn(e,t){return xi(e)&&Ei(t)?Ci(zi(e),t):function(r){var o=Cl(r,e);return o===n&&o===t?Tl(r,e):Pn(t,o,3)}}function Un(e,t,r,o,i){e!==t&&bn(t,(function(a,l){if(i||(i=new Yr),tl(a))!function(e,t,r,o,i,a,l){var s=Mi(e,r),u=Mi(t,r),c=l.get(u);if(c)return void en(e,r,c);var f=a?a(s,u,r+"",e,t,l):n,d=f===n;if(d){var p=qa(u),h=!p&&Ya(u),m=!p&&!h&&cl(u);f=u,p||h||m?qa(s)?f=s:Ka(s)?f=Ao(s):h?(d=!1,f=Oo(u,!0)):m?(d=!1,f=Co(u,!0)):f=[]:il(u)||Va(u)?(f=s,Va(s)?f=yl(s):tl(s)&&!Xa(s)||(f=yi(u))):d=!1}d&&(l.set(u,f),i(f,u,o,a,l),l.delete(u));en(e,r,f)}(e,t,l,r,Un,o,i);else{var s=o?o(Mi(e,l),a,l+"",e,t,i):n;s===n&&(s=a),en(e,l,s)}}),Pl)}function Vn(e,t){var r=e.length;if(r)return wi(t+=t<0?r:0,r)?e[t]:n}function qn(e,t,r){t=t.length?It(t,(function(e){return qa(e)?function(t){return Sn(t,1===e.length?e[0]:e)}:e})):[os];var n=-1;t=It(t,Xt(ci()));var o=Hn(e,(function(e,r,o){var i=It(t,(function(t){return t(e)}));return{criteria:i,index:++n,value:e}}));return function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(o,(function(e,t){return function(e,t,r){var n=-1,o=e.criteria,i=t.criteria,a=o.length,l=r.length;for(;++n<a;){var s=To(o[n],i[n]);if(s)return n>=l?s:s*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function $n(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var a=t[n],l=Sn(e,a);r(l,a)&&eo(i,_o(a,e),l)}return i}function Gn(e,t,r,n){var o=n?Ut:Wt,i=-1,a=t.length,l=e;for(e===t&&(t=Ao(t)),r&&(l=It(e,Xt(r)));++i<a;)for(var s=0,u=t[i],c=r?r(u):u;(s=o(l,c,s,n))>-1;)l!==e&&Qe.call(l,s,1),Qe.call(e,s,1);return e}function Kn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;wi(o)?Qe.call(e,o,1):po(e,o)}}return e}function Yn(e,t){return e+vt(xr()*(t-e+1))}function Qn(e,t){var r="";if(!e||t<1||t>p)return r;do{t%2&&(r+=e),(t=vt(t/2))&&(e+=e)}while(t);return r}function Zn(e,t){return Pi(Ti(e,t,os),e+"")}function Xn(e){return Zr(Bl(e))}function Jn(e,t){var r=Bl(e);return Ni(r,sn(t,0,r.length))}function eo(e,t,r,o){if(!tl(e))return e;for(var i=-1,a=(t=_o(t,e)).length,l=a-1,s=e;null!=s&&++i<a;){var u=zi(t[i]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=l){var f=s[u];(c=o?o(f,u,s):n)===n&&(c=tl(f)?f:wi(t[i+1])?[]:{})}tn(s,u,c),s=s[u]}return e}var to=Mr?function(e,t){return Mr.set(e,t),e}:os,ro=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:ts(t),writable:!0})}:os;function no(e){return Ni(Bl(e))}function oo(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=ae(o);++n<o;)i[n]=e[n+t];return i}function io(e,t){var r;return pn(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}function ao(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;n<o;){var i=n+o>>>1,a=e[i];null!==a&&!ul(a)&&(r?a<=t:a<t)?n=i+1:o=i}return o}return lo(e,t,os,r)}function lo(e,t,r,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=r(t))!=t,s=null===t,u=ul(t),c=t===n;i<a;){var f=vt((i+a)/2),d=r(e[f]),p=d!==n,h=null===d,m=d==d,v=ul(d);if(l)var g=o||m;else g=c?m&&(o||p):s?m&&p&&(o||!h):u?m&&p&&!h&&(o||!v):!h&&!v&&(o?d<=t:d<t);g?i=f+1:a=f}return br(a,4294967294)}function so(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var a=e[r],l=t?t(a):a;if(!r||!Ba(l,s)){var s=l;i[o++]=0===a?0:a}}return i}function uo(e){return"number"==typeof e?e:ul(e)?h:+e}function co(e){if("string"==typeof e)return e;if(qa(e))return It(e,co)+"";if(ul(e))return Fr?Fr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fo(e,t,r){var n=-1,o=jt,i=e.length,a=!0,l=[],s=l;if(r)a=!1,o=Pt;else if(i>=200){var u=t?null:Zo(e);if(u)return cr(u);a=!1,o=er,s=new Kr}else s=t?[]:l;e:for(;++n<i;){var c=e[n],f=t?t(c):c;if(c=r||0!==c?c:0,a&&f==f){for(var d=s.length;d--;)if(s[d]===f)continue e;t&&s.push(f),l.push(c)}else o(s,f,r)||(s!==l&&s.push(f),l.push(c))}return l}function po(e,t){return null==(e=Li(e,t=_o(t,e)))||delete e[zi(Zi(t))]}function ho(e,t,r,n){return eo(e,t,r(Sn(e,t)),n)}function mo(e,t,r,n){for(var o=e.length,i=n?o:-1;(n?i--:++i<o)&&t(e[i],i,e););return r?oo(e,n?0:i,n?i+1:o):oo(e,n?i+1:0,n?o:i)}function vo(e,t){var r=e;return r instanceof Vr&&(r=r.value()),Nt(t,(function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))}),r)}function go(e,t,r){var n=e.length;if(n<2)return n?fo(e[0]):[];for(var o=-1,i=ae(n);++o<n;)for(var a=e[o],l=-1;++l<n;)l!=o&&(i[o]=dn(i[o]||a,e[l],t,r));return fo(yn(i,1),t,r)}function yo(e,t,r){for(var o=-1,i=e.length,a=t.length,l={};++o<i;){var s=o<a?t[o]:n;r(l,e[o],s)}return l}function bo(e){return Ka(e)?e:[]}function wo(e){return"function"==typeof e?e:os}function _o(e,t){return qa(e)?e:xi(e,t)?[e]:Di(bl(e))}var xo=Zn;function ko(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:oo(e,t,r)}var So=ut||function(e){return ht.clearTimeout(e)};function Oo(e,t){if(t)return e.slice();var r=e.length,n=$e?$e(r):new e.constructor(r);return e.copy(n),n}function Eo(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}function Co(e,t){var r=t?Eo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function To(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=ul(e),l=t!==n,s=null===t,u=t==t,c=ul(t);if(!s&&!c&&!a&&e>t||a&&l&&u&&!s&&!c||o&&l&&u||!r&&u||!i)return 1;if(!o&&!a&&!c&&e<t||c&&r&&i&&!o&&!a||s&&r&&i||!l&&i||!u)return-1}return 0}function Lo(e,t,r,n){for(var o=-1,i=e.length,a=r.length,l=-1,s=t.length,u=yr(i-a,0),c=ae(s+u),f=!n;++l<s;)c[l]=t[l];for(;++o<a;)(f||o<i)&&(c[r[o]]=e[o]);for(;u--;)c[l++]=e[o++];return c}function Mo(e,t,r,n){for(var o=-1,i=e.length,a=-1,l=r.length,s=-1,u=t.length,c=yr(i-l,0),f=ae(c+u),d=!n;++o<c;)f[o]=e[o];for(var p=o;++s<u;)f[p+s]=t[s];for(;++a<l;)(d||o<i)&&(f[p+r[a]]=e[o++]);return f}function Ao(e,t){var r=-1,n=e.length;for(t||(t=ae(n));++r<n;)t[r]=e[r];return t}function jo(e,t,r,o){var i=!r;r||(r={});for(var a=-1,l=t.length;++a<l;){var s=t[a],u=o?o(r[s],e[s],s,r,e):n;u===n&&(u=e[s]),i?an(r,s,u):tn(r,s,u)}return r}function Po(e,t){return function(r,n){var o=qa(r)?Ct:nn,i=t?t():{};return o(r,e,ci(n,2),i)}}function Io(e){return Zn((function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:n,l=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,l&&_i(r[0],r[1],l)&&(a=i<3?n:a,i=1),t=Ce(t);++o<i;){var s=r[o];s&&e(t,s,o,a)}return t}))}function Ro(e,t){return function(r,n){if(null==r)return r;if(!Ga(r))return e(r,n);for(var o=r.length,i=t?o:-1,a=Ce(r);(t?i--:++i<o)&&!1!==n(a[i],i,a););return r}}function No(e){return function(t,r,n){for(var o=-1,i=Ce(t),a=n(t),l=a.length;l--;){var s=a[e?l:++o];if(!1===r(i[s],s,i))break}return t}}function Do(e){return function(t){var r=ar(t=bl(t))?pr(t):n,o=r?r[0]:t.charAt(0),i=r?ko(r,1).join(""):t.slice(1);return o[e]()+i}}function zo(e){return function(t){return Nt(Xl(Vl(t).replace(Je,"")),e,"")}}function Fo(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 r=Br(e.prototype),n=e.apply(r,t);return tl(n)?n:r}}function Ho(e){return function(t,r,o){var i=Ce(t);if(!Ga(t)){var a=ci(r,3);t=jl(t),r=function(e){return a(i[e],e,i)}}var l=e(t,r,o);return l>-1?i[a?t[l]:l]:n}}function Bo(e){return oi((function(t){var r=t.length,i=r,a=Ur.prototype.thru;for(e&&t.reverse();i--;){var l=t[i];if("function"!=typeof l)throw new Me(o);if(a&&!s&&"wrapper"==si(l))var s=new Ur([],!0)}for(i=s?i:r;++i<r;){var u=si(l=t[i]),c="wrapper"==u?li(l):n;s=c&&ki(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[si(c[0])].apply(s,c[3]):1==l.length&&ki(l)?s[u]():s.thru(l)}return function(){var e=arguments,n=e[0];if(s&&1==e.length&&qa(n))return s.plant(n).value();for(var o=0,i=r?t[o].apply(this,e):n;++o<r;)i=t[o].call(this,i);return i}}))}function Wo(e,t,r,o,i,a,l,s,u,f){var d=t&c,p=1&t,h=2&t,m=24&t,v=512&t,g=h?n:Fo(e);return function c(){for(var y=arguments.length,b=ae(y),w=y;w--;)b[w]=arguments[w];if(m)var _=ui(c),x=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(b,_);if(o&&(b=Lo(b,o,i,m)),a&&(b=Mo(b,a,l,m)),y-=x,m&&y<f){var k=ur(b,_);return Yo(e,t,Wo,c.placeholder,r,b,k,s,u,f-y)}var S=p?r:this,O=h?S[e]:e;return y=b.length,s?b=function(e,t){var r=e.length,o=br(t.length,r),i=Ao(e);for(;o--;){var a=t[o];e[o]=wi(a,r)?i[a]:n}return e}(b,s):v&&y>1&&b.reverse(),d&&u<y&&(b.length=u),this&&this!==ht&&this instanceof c&&(O=g||Fo(O)),O.apply(S,b)}}function Uo(e,t){return function(r,n){return function(e,t,r,n){return _n(e,(function(e,o,i){t(n,r(e),o,i)})),n}(r,e,t(n),{})}}function Vo(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=co(r),o=co(o)):(r=uo(r),o=uo(o)),i=e(r,o)}return i}}function qo(e){return oi((function(t){return t=It(t,Xt(ci())),Zn((function(r){var n=this;return e(t,(function(e){return Et(e,n,r)}))}))}))}function $o(e,t){var r=(t=t===n?" ":co(t)).length;if(r<2)return r?Qn(t,e):t;var o=Qn(t,mt(e/dr(t)));return ar(t)?ko(pr(o),0,e).join(""):o.slice(0,e)}function Go(e){return function(t,r,o){return o&&"number"!=typeof o&&_i(t,r,o)&&(r=o=n),t=hl(t),r===n?(r=t,t=0):r=hl(r),function(e,t,r,n){for(var o=-1,i=yr(mt((t-e)/(r||1)),0),a=ae(i);i--;)a[n?i:++o]=e,e+=r;return a}(t,r,o=o===n?t<r?1:-1:hl(o),e)}}function Ko(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=gl(t),r=gl(r)),e(t,r)}}function Yo(e,t,r,o,i,a,l,c,f,d){var p=8&t;t|=p?s:u,4&(t&=~(p?u:s))||(t&=-4);var h=[e,t,i,p?a:n,p?l:n,p?n:a,p?n:l,c,f,d],m=r.apply(n,h);return ki(e)&&Ai(m,h),m.placeholder=o,Ii(m,e,t)}function Qo(e){var t=Ee[e];return function(e,r){if(e=gl(e),(r=null==r?0:br(ml(r),292))&&Ft(e)){var n=(bl(e)+"e").split("e");return+((n=(bl(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Zo=Cr&&1/cr(new Cr([,-0]))[1]==d?function(e){return new Cr(e)}:us;function Xo(e){return function(t){var r=vi(t);return r==S?lr(t):r==L?fr(t):function(e,t){return It(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(e,t,r,i,d,p,h,m){var v=2&t;if(!v&&"function"!=typeof e)throw new Me(o);var g=i?i.length:0;if(g||(t&=-97,i=d=n),h=h===n?h:yr(ml(h),0),m=m===n?m:ml(m),g-=d?d.length:0,t&u){var y=i,b=d;i=d=n}var w=v?n:li(e),_=[e,t,r,i,d,y,b,p,h,m];if(w&&function(e,t){var r=e[1],n=t[1],o=r|n,i=o<131,l=n==c&&8==r||n==c&&r==f&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!i&&!l)return e;1&n&&(e[2]=t[2],o|=1&r?0:4);var s=t[3];if(s){var u=e[3];e[3]=u?Lo(u,s,t[4]):s,e[4]=u?ur(e[3],a):t[4]}(s=t[5])&&(u=e[5],e[5]=u?Mo(u,s,t[6]):s,e[6]=u?ur(e[5],a):t[6]);(s=t[7])&&(e[7]=s);n&c&&(e[8]=null==e[8]?t[8]:br(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(_,w),e=_[0],t=_[1],r=_[2],i=_[3],d=_[4],!(m=_[9]=_[9]===n?v?0:e.length:yr(_[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||t==l?function(e,t,r){var o=Fo(e);return function i(){for(var a=arguments.length,l=ae(a),s=a,u=ui(i);s--;)l[s]=arguments[s];var c=a<3&&l[0]!==u&&l[a-1]!==u?[]:ur(l,u);return(a-=c.length)<r?Yo(e,t,Wo,i.placeholder,n,l,c,n,n,r-a):Et(this&&this!==ht&&this instanceof i?o:e,this,l)}}(e,t,m):t!=s&&33!=t||d.length?Wo.apply(n,_):function(e,t,r,n){var o=1&t,i=Fo(e);return function t(){for(var a=-1,l=arguments.length,s=-1,u=n.length,c=ae(u+l),f=this&&this!==ht&&this instanceof t?i:e;++s<u;)c[s]=n[s];for(;l--;)c[s++]=arguments[++a];return Et(f,o?r:this,c)}}(e,t,r,i);else var x=function(e,t,r){var n=1&t,o=Fo(e);return function t(){return(this&&this!==ht&&this instanceof t?o:e).apply(n?r:this,arguments)}}(e,t,r);return Ii((w?to:Ai)(x,_),e,t)}function ei(e,t,r,o){return e===n||Ba(e,Pe[r])&&!Ne.call(o,r)?t:e}function ti(e,t,r,o,i,a){return tl(e)&&tl(t)&&(a.set(t,e),Un(e,t,n,ti,a),a.delete(t)),e}function ri(e){return il(e)?n:e}function ni(e,t,r,o,i,a){var l=1&r,s=e.length,u=t.length;if(s!=u&&!(l&&u>s))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,p=!0,h=2&r?new Kr:n;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],v=t[d];if(o)var g=l?o(v,m,d,t,e,a):o(m,v,d,e,t,a);if(g!==n){if(g)continue;p=!1;break}if(h){if(!zt(t,(function(e,t){if(!er(h,t)&&(m===e||i(m,e,r,o,a)))return h.push(t)}))){p=!1;break}}else if(m!==v&&!i(m,v,r,o,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function oi(e){return Pi(Ti(e,n,$i),e+"")}function ii(e){return On(e,jl,hi)}function ai(e){return On(e,Pl,mi)}var li=Mr?function(e){return Mr.get(e)}:us;function si(e){for(var t=e.name+"",r=Ar[t],n=Ne.call(Ar,t)?r.length:0;n--;){var o=r[n],i=o.func;if(null==i||i==e)return o.name}return t}function ui(e){return(Ne.call(Hr,"placeholder")?Hr:e).placeholder}function ci(){var e=Hr.iteratee||is;return e=e===is?Nn:e,arguments.length?e(arguments[0],arguments[1]):e}function fi(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function di(e){for(var t=jl(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Ei(o)]}return t}function pi(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Rn(r)?r:n}var hi=yt?function(e){return null==e?[]:(e=Ce(e),At(yt(e),(function(t){return Ye.call(e,t)})))}:vs,mi=yt?function(e){for(var t=[];e;)Rt(t,hi(e)),e=Ge(e);return t}:vs,vi=En;function gi(e,t,r){for(var n=-1,o=(t=_o(t,e)).length,i=!1;++n<o;){var a=zi(t[n]);if(!(i=null!=e&&r(e,a)))break;e=e[a]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&el(o)&&wi(a,o)&&(qa(e)||Va(e))}function yi(e){return"function"!=typeof e.constructor||Oi(e)?{}:Br(Ge(e))}function bi(e){return qa(e)||Va(e)||!!(Ze&&e&&e[Ze])}function wi(e,t){var r=typeof e;return!!(t=null==t?p:t)&&("number"==r||"symbol"!=r&&be.test(e))&&e>-1&&e%1==0&&e<t}function _i(e,t,r){if(!tl(r))return!1;var n=typeof t;return!!("number"==n?Ga(r)&&wi(t,r.length):"string"==n&&t in r)&&Ba(r[t],e)}function xi(e,t){if(qa(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!ul(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Ce(t))}function ki(e){var t=si(e),r=Hr[t];if("function"!=typeof r||!(t in Vr.prototype))return!1;if(e===r)return!0;var n=li(r);return!!n&&e===n[0]}(Sr&&vi(new Sr(new ArrayBuffer(1)))!=I||Or&&vi(new Or)!=S||Er&&vi(Er.resolve())!=C||Cr&&vi(new Cr)!=L||Tr&&vi(new Tr)!=j)&&(vi=function(e){var t=En(e),r=t==E?e.constructor:n,o=r?Fi(r):"";if(o)switch(o){case jr:return I;case Pr:return S;case Ir:return C;case Rr:return L;case Nr:return j}return t});var Si=Ie?Xa:gs;function Oi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function Ei(e){return e==e&&!tl(e)}function Ci(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in Ce(r)))}}function Ti(e,t,r){return t=yr(t===n?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=yr(n.length-t,0),a=ae(i);++o<i;)a[o]=n[t+o];o=-1;for(var l=ae(t+1);++o<t;)l[o]=n[o];return l[t]=r(a),Et(e,this,l)}}function Li(e,t){return t.length<2?e:Sn(e,oo(t,0,-1))}function Mi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ai=Ri(to),ji=pt||function(e,t){return ht.setTimeout(e,t)},Pi=Ri(ro);function Ii(e,t,r){var n=t+"";return Pi(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Tt(v,(function(r){var n="_."+r[0];t&r[1]&&!jt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ue):[]}(n),r)))}function Ri(e){var t=0,r=0;return function(){var o=wr(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ni(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var a=Yn(r,i),l=e[a];e[a]=e[r],e[r]=l}return e.length=t,e}var Di=function(e){var t=Ra(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,r,n,o){t.push(n?o.replace(de,"$1"):r||e)})),t}));function zi(e){if("string"==typeof e||ul(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fi(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Hi(e){if(e instanceof Vr)return e.clone();var t=new Ur(e.__wrapped__,e.__chain__);return t.__actions__=Ao(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bi=Zn((function(e,t){return Ka(e)?dn(e,yn(t,1,Ka,!0)):[]})),Wi=Zn((function(e,t){var r=Zi(t);return Ka(r)&&(r=n),Ka(e)?dn(e,yn(t,1,Ka,!0),ci(r,2)):[]})),Ui=Zn((function(e,t){var r=Zi(t);return Ka(r)&&(r=n),Ka(e)?dn(e,yn(t,1,Ka,!0),n,r):[]}));function Vi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ml(r);return o<0&&(o=yr(n+o,0)),Bt(e,ci(t,3),o)}function qi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=ml(r),i=r<0?yr(o+i,0):br(i,o-1)),Bt(e,ci(t,3),i,!0)}function $i(e){return(null==e?0:e.length)?yn(e,1):[]}function Gi(e){return e&&e.length?e[0]:n}var Ki=Zn((function(e){var t=It(e,bo);return t.length&&t[0]===e[0]?Mn(t):[]})),Yi=Zn((function(e){var t=Zi(e),r=It(e,bo);return t===Zi(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Mn(r,ci(t,2)):[]})),Qi=Zn((function(e){var t=Zi(e),r=It(e,bo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Mn(r,n,t):[]}));function Zi(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Xi=Zn(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?Gn(e,t):e}var ea=oi((function(e,t){var r=null==e?0:e.length,n=ln(e,t);return Kn(e,It(t,(function(e){return wi(e,r)?+e:e})).sort(To)),n}));function ta(e){return null==e?e:kr.call(e)}var ra=Zn((function(e){return fo(yn(e,1,Ka,!0))})),na=Zn((function(e){var t=Zi(e);return Ka(t)&&(t=n),fo(yn(e,1,Ka,!0),ci(t,2))})),oa=Zn((function(e){var t=Zi(e);return t="function"==typeof t?t:n,fo(yn(e,1,Ka,!0),n,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=At(e,(function(e){if(Ka(e))return t=yr(e.length,t),!0})),Qt(t,(function(t){return It(e,$t(t))}))}function aa(e,t){if(!e||!e.length)return[];var r=ia(e);return null==t?r:It(r,(function(e){return Et(t,n,e)}))}var la=Zn((function(e,t){return Ka(e)?dn(e,t):[]})),sa=Zn((function(e){return go(At(e,Ka))})),ua=Zn((function(e){var t=Zi(e);return Ka(t)&&(t=n),go(At(e,Ka),ci(t,2))})),ca=Zn((function(e){var t=Zi(e);return t="function"==typeof t?t:n,go(At(e,Ka),n,t)})),fa=Zn(ia);var da=Zn((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,aa(e,r)}));function pa(e){var t=Hr(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ma=oi((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return ln(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Vr&&wi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:n}),new Ur(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)}));var va=Po((function(e,t,r){Ne.call(e,r)?++e[r]:an(e,r,1)}));var ga=Ho(Vi),ya=Ho(qi);function ba(e,t){return(qa(e)?Tt:pn)(e,ci(t,3))}function wa(e,t){return(qa(e)?Lt:hn)(e,ci(t,3))}var _a=Po((function(e,t,r){Ne.call(e,r)?e[r].push(t):an(e,r,[t])}));var xa=Zn((function(e,t,r){var n=-1,o="function"==typeof t,i=Ga(e)?ae(e.length):[];return pn(e,(function(e){i[++n]=o?Et(t,e,r):An(e,t,r)})),i})),ka=Po((function(e,t,r){an(e,r,t)}));function Sa(e,t){return(qa(e)?It:Hn)(e,ci(t,3))}var Oa=Po((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var Ea=Zn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&_i(e,t[0],t[1])?t=[]:r>2&&_i(t[0],t[1],t[2])&&(t=[t[0]]),qn(e,yn(t,1),[])})),Ca=dt||function(){return ht.Date.now()};function Ta(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Jo(e,c,n,n,n,n,t)}function La(e,t){var r;if("function"!=typeof t)throw new Me(o);return e=ml(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Ma=Zn((function(e,t,r){var n=1;if(r.length){var o=ur(r,ui(Ma));n|=s}return Jo(e,n,t,r,o)})),Aa=Zn((function(e,t,r){var n=3;if(r.length){var o=ur(r,ui(Aa));n|=s}return Jo(t,n,e,r,o)}));function ja(e,t,r){var i,a,l,s,u,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Me(o);function m(t){var r=i,o=a;return i=a=n,f=t,s=e.apply(o,r)}function v(e){var r=e-c;return c===n||r>=t||r<0||p&&e-f>=l}function g(){var e=Ca();if(v(e))return y(e);u=ji(g,function(e){var r=t-(e-c);return p?br(r,l-(e-f)):r}(e))}function y(e){return u=n,h&&i?m(e):(i=a=n,s)}function b(){var e=Ca(),r=v(e);if(i=arguments,a=this,c=e,r){if(u===n)return function(e){return f=e,u=ji(g,t),d?m(e):s}(c);if(p)return So(u),u=ji(g,t),m(c)}return u===n&&(u=ji(g,t)),s}return t=gl(t)||0,tl(r)&&(d=!!r.leading,l=(p="maxWait"in r)?yr(gl(r.maxWait)||0,t):l,h="trailing"in r?!!r.trailing:h),b.cancel=function(){u!==n&&So(u),f=0,i=c=a=u=n},b.flush=function(){return u===n?s:y(Ca())},b}var Pa=Zn((function(e,t){return fn(e,1,t)})),Ia=Zn((function(e,t,r){return fn(e,gl(t)||0,r)}));function Ra(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Me(o);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Ra.Cache||Gr),r}function Na(e){if("function"!=typeof e)throw new Me(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ra.Cache=Gr;var Da=xo((function(e,t){var r=(t=1==t.length&&qa(t[0])?It(t[0],Xt(ci())):It(yn(t,1),Xt(ci()))).length;return Zn((function(n){for(var o=-1,i=br(n.length,r);++o<i;)n[o]=t[o].call(this,n[o]);return Et(e,this,n)}))})),za=Zn((function(e,t){var r=ur(t,ui(za));return Jo(e,s,n,t,r)})),Fa=Zn((function(e,t){var r=ur(t,ui(Fa));return Jo(e,u,n,t,r)})),Ha=oi((function(e,t){return Jo(e,f,n,n,n,t)}));function Ba(e,t){return e===t||e!=e&&t!=t}var Wa=Ko(Cn),Ua=Ko((function(e,t){return e>=t})),Va=jn(function(){return arguments}())?jn:function(e){return rl(e)&&Ne.call(e,"callee")&&!Ye.call(e,"callee")},qa=ae.isArray,$a=wt?Xt(wt):function(e){return rl(e)&&En(e)==P};function Ga(e){return null!=e&&el(e.length)&&!Xa(e)}function Ka(e){return rl(e)&&Ga(e)}var Ya=bt||gs,Qa=_t?Xt(_t):function(e){return rl(e)&&En(e)==w};function Za(e){if(!rl(e))return!1;var t=En(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!il(e)}function Xa(e){if(!tl(e))return!1;var t=En(e);return t==x||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==ml(e)}function el(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function tl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rl(e){return null!=e&&"object"==typeof e}var nl=xt?Xt(xt):function(e){return rl(e)&&vi(e)==S};function ol(e){return"number"==typeof e||rl(e)&&En(e)==O}function il(e){if(!rl(e)||En(e)!=E)return!1;var t=Ge(e);if(null===t)return!0;var r=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Re.call(r)==He}var al=kt?Xt(kt):function(e){return rl(e)&&En(e)==T};var ll=St?Xt(St):function(e){return rl(e)&&vi(e)==L};function sl(e){return"string"==typeof e||!qa(e)&&rl(e)&&En(e)==M}function ul(e){return"symbol"==typeof e||rl(e)&&En(e)==A}var cl=Ot?Xt(Ot):function(e){return rl(e)&&el(e.length)&&!!lt[En(e)]};var fl=Ko(Fn),dl=Ko((function(e,t){return e<=t}));function pl(e){if(!e)return[];if(Ga(e))return sl(e)?pr(e):Ao(e);if(Xe&&e[Xe])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Xe]());var t=vi(e);return(t==S?lr:t==L?cr:Bl)(e)}function hl(e){return e?(e=gl(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ml(e){var t=hl(e),r=t%1;return t==t?r?t-r:t:0}function vl(e){return e?sn(ml(e),0,m):0}function gl(e){if("number"==typeof e)return e;if(ul(e))return h;if(tl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var r=ve.test(e);return r||ye.test(e)?ft(e.slice(2),r?2:8):me.test(e)?h:+e}function yl(e){return jo(e,Pl(e))}function bl(e){return null==e?"":co(e)}var wl=Io((function(e,t){if(Oi(t)||Ga(t))jo(t,jl(t),e);else for(var r in t)Ne.call(t,r)&&tn(e,r,t[r])})),_l=Io((function(e,t){jo(t,Pl(t),e)})),xl=Io((function(e,t,r,n){jo(t,Pl(t),e,n)})),kl=Io((function(e,t,r,n){jo(t,jl(t),e,n)})),Sl=oi(ln);var Ol=Zn((function(e,t){e=Ce(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&_i(t[0],t[1],i)&&(o=1);++r<o;)for(var a=t[r],l=Pl(a),s=-1,u=l.length;++s<u;){var c=l[s],f=e[c];(f===n||Ba(f,Pe[c])&&!Ne.call(e,c))&&(e[c]=a[c])}return e})),El=Zn((function(e){return e.push(n,ti),Et(Rl,n,e)}));function Cl(e,t,r){var o=null==e?n:Sn(e,t);return o===n?r:o}function Tl(e,t){return null!=e&&gi(e,t,Ln)}var Ll=Uo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=r}),ts(os)),Ml=Uo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Ne.call(e,t)?e[t].push(r):e[t]=[r]}),ci),Al=Zn(An);function jl(e){return Ga(e)?Qr(e):Dn(e)}function Pl(e){return Ga(e)?Qr(e,!0):zn(e)}var Il=Io((function(e,t,r){Un(e,t,r)})),Rl=Io((function(e,t,r,n){Un(e,t,r,n)})),Nl=oi((function(e,t){var r={};if(null==e)return r;var n=!1;t=It(t,(function(t){return t=_o(t,e),n||(n=t.length>1),t})),jo(e,ai(e),r),n&&(r=un(r,7,ri));for(var o=t.length;o--;)po(r,t[o]);return r}));var Dl=oi((function(e,t){return null==e?{}:function(e,t){return $n(e,t,(function(t,r){return Tl(e,r)}))}(e,t)}));function zl(e,t){if(null==e)return{};var r=It(ai(e),(function(e){return[e]}));return t=ci(t),$n(e,r,(function(e,r){return t(e,r[0])}))}var Fl=Xo(jl),Hl=Xo(Pl);function Bl(e){return null==e?[]:Jt(e,jl(e))}var Wl=zo((function(e,t,r){return t=t.toLowerCase(),e+(r?Ul(t):t)}));function Ul(e){return Zl(bl(e).toLowerCase())}function Vl(e){return(e=bl(e))&&e.replace(we,nr).replace(et,"")}var ql=zo((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),$l=zo((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Gl=Do("toLowerCase");var Kl=zo((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Yl=zo((function(e,t,r){return e+(r?" ":"")+Zl(t)}));var Ql=zo((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Zl=Do("toUpperCase");function Xl(e,t,r){return e=bl(e),(t=r?n:t)===n?function(e){return ot.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Jl=Zn((function(e,t){try{return Et(e,n,t)}catch(e){return Za(e)?e:new Se(e)}})),es=oi((function(e,t){return Tt(t,(function(t){t=zi(t),an(e,t,Ma(e[t],e))})),e}));function ts(e){return function(){return e}}var rs=Bo(),ns=Bo(!0);function os(e){return e}function is(e){return Nn("function"==typeof e?e:un(e,1))}var as=Zn((function(e,t){return function(r){return An(r,e,t)}})),ls=Zn((function(e,t){return function(r){return An(e,r,t)}}));function ss(e,t,r){var n=jl(t),o=kn(t,n);null!=r||tl(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=kn(t,jl(t)));var i=!(tl(r)&&"chain"in r&&!r.chain),a=Xa(e);return Tt(o,(function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=Ao(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Rt([this.value()],arguments))})})),e}function us(){}var cs=qo(It),fs=qo(Mt),ds=qo(zt);function ps(e){return xi(e)?$t(zi(e)):function(e){return function(t){return Sn(t,e)}}(e)}var hs=Go(),ms=Go(!0);function vs(){return[]}function gs(){return!1}var ys=Vo((function(e,t){return e+t}),0),bs=Qo("ceil"),ws=Vo((function(e,t){return e/t}),1),_s=Qo("floor");var xs,ks=Vo((function(e,t){return e*t}),1),Ss=Qo("round"),Os=Vo((function(e,t){return e-t}),0);return Hr.after=function(e,t){if("function"!=typeof t)throw new Me(o);return e=ml(e),function(){if(--e<1)return t.apply(this,arguments)}},Hr.ary=Ta,Hr.assign=wl,Hr.assignIn=_l,Hr.assignInWith=xl,Hr.assignWith=kl,Hr.at=Sl,Hr.before=La,Hr.bind=Ma,Hr.bindAll=es,Hr.bindKey=Aa,Hr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Hr.chain=pa,Hr.chunk=function(e,t,r){t=(r?_i(e,t,r):t===n)?1:yr(ml(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,l=ae(mt(o/t));i<o;)l[a++]=oo(e,i,i+=t);return l},Hr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o},Hr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ae(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return Rt(qa(r)?Ao(r):[r],yn(t,1))},Hr.cond=function(e){var t=null==e?0:e.length,r=ci();return e=t?It(e,(function(e){if("function"!=typeof e[1])throw new Me(o);return[r(e[0]),e[1]]})):[],Zn((function(r){for(var n=-1;++n<t;){var o=e[n];if(Et(o[0],this,r))return Et(o[1],this,r)}}))},Hr.conforms=function(e){return function(e){var t=jl(e);return function(r){return cn(r,e,t)}}(un(e,1))},Hr.constant=ts,Hr.countBy=va,Hr.create=function(e,t){var r=Br(e);return null==t?r:on(r,t)},Hr.curry=function e(t,r,o){var i=Jo(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Hr.curryRight=function e(t,r,o){var i=Jo(t,l,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Hr.debounce=ja,Hr.defaults=Ol,Hr.defaultsDeep=El,Hr.defer=Pa,Hr.delay=Ia,Hr.difference=Bi,Hr.differenceBy=Wi,Hr.differenceWith=Ui,Hr.drop=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,(t=r||t===n?1:ml(t))<0?0:t,o):[]},Hr.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,0,(t=o-(t=r||t===n?1:ml(t)))<0?0:t):[]},Hr.dropRightWhile=function(e,t){return e&&e.length?mo(e,ci(t,3),!0,!0):[]},Hr.dropWhile=function(e,t){return e&&e.length?mo(e,ci(t,3),!0):[]},Hr.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&_i(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=ml(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:ml(o))<0&&(o+=i),o=r>o?0:vl(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},Hr.filter=function(e,t){return(qa(e)?At:gn)(e,ci(t,3))},Hr.flatMap=function(e,t){return yn(Sa(e,t),1)},Hr.flatMapDeep=function(e,t){return yn(Sa(e,t),d)},Hr.flatMapDepth=function(e,t,r){return r=r===n?1:ml(r),yn(Sa(e,t),r)},Hr.flatten=$i,Hr.flattenDeep=function(e){return(null==e?0:e.length)?yn(e,d):[]},Hr.flattenDepth=function(e,t){return(null==e?0:e.length)?yn(e,t=t===n?1:ml(t)):[]},Hr.flip=function(e){return Jo(e,512)},Hr.flow=rs,Hr.flowRight=ns,Hr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},Hr.functions=function(e){return null==e?[]:kn(e,jl(e))},Hr.functionsIn=function(e){return null==e?[]:kn(e,Pl(e))},Hr.groupBy=_a,Hr.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},Hr.intersection=Ki,Hr.intersectionBy=Yi,Hr.intersectionWith=Qi,Hr.invert=Ll,Hr.invertBy=Ml,Hr.invokeMap=xa,Hr.iteratee=is,Hr.keyBy=ka,Hr.keys=jl,Hr.keysIn=Pl,Hr.map=Sa,Hr.mapKeys=function(e,t){var r={};return t=ci(t,3),_n(e,(function(e,n,o){an(r,t(e,n,o),e)})),r},Hr.mapValues=function(e,t){var r={};return t=ci(t,3),_n(e,(function(e,n,o){an(r,n,t(e,n,o))})),r},Hr.matches=function(e){return Bn(un(e,1))},Hr.matchesProperty=function(e,t){return Wn(e,un(t,1))},Hr.memoize=Ra,Hr.merge=Il,Hr.mergeWith=Rl,Hr.method=as,Hr.methodOf=ls,Hr.mixin=ss,Hr.negate=Na,Hr.nthArg=function(e){return e=ml(e),Zn((function(t){return Vn(t,e)}))},Hr.omit=Nl,Hr.omitBy=function(e,t){return zl(e,Na(ci(t)))},Hr.once=function(e){return La(2,e)},Hr.orderBy=function(e,t,r,o){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(r=o?n:r)||(r=null==r?[]:[r]),qn(e,t,r))},Hr.over=cs,Hr.overArgs=Da,Hr.overEvery=fs,Hr.overSome=ds,Hr.partial=za,Hr.partialRight=Fa,Hr.partition=Oa,Hr.pick=Dl,Hr.pickBy=zl,Hr.property=ps,Hr.propertyOf=function(e){return function(t){return null==e?n:Sn(e,t)}},Hr.pull=Xi,Hr.pullAll=Ji,Hr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Gn(e,t,ci(r,2)):e},Hr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Gn(e,t,n,r):e},Hr.pullAt=ea,Hr.range=hs,Hr.rangeRight=ms,Hr.rearg=Ha,Hr.reject=function(e,t){return(qa(e)?At:gn)(e,Na(ci(t,3)))},Hr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],i=e.length;for(t=ci(t,3);++n<i;){var a=e[n];t(a,n,e)&&(r.push(a),o.push(n))}return Kn(e,o),r},Hr.rest=function(e,t){if("function"!=typeof e)throw new Me(o);return Zn(e,t=t===n?t:ml(t))},Hr.reverse=ta,Hr.sampleSize=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:ml(t),(qa(e)?Xr:Jn)(e,t)},Hr.set=function(e,t,r){return null==e?e:eo(e,t,r)},Hr.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:eo(e,t,r,o)},Hr.shuffle=function(e){return(qa(e)?Jr:no)(e)},Hr.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&_i(e,t,r)?(t=0,r=o):(t=null==t?0:ml(t),r=r===n?o:ml(r)),oo(e,t,r)):[]},Hr.sortBy=Ea,Hr.sortedUniq=function(e){return e&&e.length?so(e):[]},Hr.sortedUniqBy=function(e,t){return e&&e.length?so(e,ci(t,2)):[]},Hr.split=function(e,t,r){return r&&"number"!=typeof r&&_i(e,t,r)&&(t=r=n),(r=r===n?m:r>>>0)?(e=bl(e))&&("string"==typeof t||null!=t&&!al(t))&&!(t=co(t))&&ar(e)?ko(pr(e),0,r):e.split(t,r):[]},Hr.spread=function(e,t){if("function"!=typeof e)throw new Me(o);return t=null==t?0:yr(ml(t),0),Zn((function(r){var n=r[t],o=ko(r,0,t);return n&&Rt(o,n),Et(e,this,o)}))},Hr.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Hr.take=function(e,t,r){return e&&e.length?oo(e,0,(t=r||t===n?1:ml(t))<0?0:t):[]},Hr.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,(t=o-(t=r||t===n?1:ml(t)))<0?0:t,o):[]},Hr.takeRightWhile=function(e,t){return e&&e.length?mo(e,ci(t,3),!1,!0):[]},Hr.takeWhile=function(e,t){return e&&e.length?mo(e,ci(t,3)):[]},Hr.tap=function(e,t){return t(e),e},Hr.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new Me(o);return tl(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ja(e,t,{leading:n,maxWait:t,trailing:i})},Hr.thru=ha,Hr.toArray=pl,Hr.toPairs=Fl,Hr.toPairsIn=Hl,Hr.toPath=function(e){return qa(e)?It(e,zi):ul(e)?[e]:Ao(Di(bl(e)))},Hr.toPlainObject=yl,Hr.transform=function(e,t,r){var n=qa(e),o=n||Ya(e)||cl(e);if(t=ci(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:tl(e)&&Xa(i)?Br(Ge(e)):{}}return(o?Tt:_n)(e,(function(e,n,o){return t(r,e,n,o)})),r},Hr.unary=function(e){return Ta(e,1)},Hr.union=ra,Hr.unionBy=na,Hr.unionWith=oa,Hr.uniq=function(e){return e&&e.length?fo(e):[]},Hr.uniqBy=function(e,t){return e&&e.length?fo(e,ci(t,2)):[]},Hr.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?fo(e,n,t):[]},Hr.unset=function(e,t){return null==e||po(e,t)},Hr.unzip=ia,Hr.unzipWith=aa,Hr.update=function(e,t,r){return null==e?e:ho(e,t,wo(r))},Hr.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:ho(e,t,wo(r),o)},Hr.values=Bl,Hr.valuesIn=function(e){return null==e?[]:Jt(e,Pl(e))},Hr.without=la,Hr.words=Xl,Hr.wrap=function(e,t){return za(wo(t),e)},Hr.xor=sa,Hr.xorBy=ua,Hr.xorWith=ca,Hr.zip=fa,Hr.zipObject=function(e,t){return yo(e||[],t||[],tn)},Hr.zipObjectDeep=function(e,t){return yo(e||[],t||[],eo)},Hr.zipWith=da,Hr.entries=Fl,Hr.entriesIn=Hl,Hr.extend=_l,Hr.extendWith=xl,ss(Hr,Hr),Hr.add=ys,Hr.attempt=Jl,Hr.camelCase=Wl,Hr.capitalize=Ul,Hr.ceil=bs,Hr.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=gl(r))==r?r:0),t!==n&&(t=(t=gl(t))==t?t:0),sn(gl(e),t,r)},Hr.clone=function(e){return un(e,4)},Hr.cloneDeep=function(e){return un(e,5)},Hr.cloneDeepWith=function(e,t){return un(e,5,t="function"==typeof t?t:n)},Hr.cloneWith=function(e,t){return un(e,4,t="function"==typeof t?t:n)},Hr.conformsTo=function(e,t){return null==t||cn(e,t,jl(t))},Hr.deburr=Vl,Hr.defaultTo=function(e,t){return null==e||e!=e?t:e},Hr.divide=ws,Hr.endsWith=function(e,t,r){e=bl(e),t=co(t);var o=e.length,i=r=r===n?o:sn(ml(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},Hr.eq=Ba,Hr.escape=function(e){return(e=bl(e))&&Q.test(e)?e.replace(K,or):e},Hr.escapeRegExp=function(e){return(e=bl(e))&&oe.test(e)?e.replace(ne,"\\$&"):e},Hr.every=function(e,t,r){var o=qa(e)?Mt:mn;return r&&_i(e,t,r)&&(t=n),o(e,ci(t,3))},Hr.find=ga,Hr.findIndex=Vi,Hr.findKey=function(e,t){return Ht(e,ci(t,3),_n)},Hr.findLast=ya,Hr.findLastIndex=qi,Hr.findLastKey=function(e,t){return Ht(e,ci(t,3),xn)},Hr.floor=_s,Hr.forEach=ba,Hr.forEachRight=wa,Hr.forIn=function(e,t){return null==e?e:bn(e,ci(t,3),Pl)},Hr.forInRight=function(e,t){return null==e?e:wn(e,ci(t,3),Pl)},Hr.forOwn=function(e,t){return e&&_n(e,ci(t,3))},Hr.forOwnRight=function(e,t){return e&&xn(e,ci(t,3))},Hr.get=Cl,Hr.gt=Wa,Hr.gte=Ua,Hr.has=function(e,t){return null!=e&&gi(e,t,Tn)},Hr.hasIn=Tl,Hr.head=Gi,Hr.identity=os,Hr.includes=function(e,t,r,n){e=Ga(e)?e:Bl(e),r=r&&!n?ml(r):0;var o=e.length;return r<0&&(r=yr(o+r,0)),sl(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&Wt(e,t,r)>-1},Hr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ml(r);return o<0&&(o=yr(n+o,0)),Wt(e,t,o)},Hr.inRange=function(e,t,r){return t=hl(t),r===n?(r=t,t=0):r=hl(r),function(e,t,r){return e>=br(t,r)&&e<yr(t,r)}(e=gl(e),t,r)},Hr.invoke=Al,Hr.isArguments=Va,Hr.isArray=qa,Hr.isArrayBuffer=$a,Hr.isArrayLike=Ga,Hr.isArrayLikeObject=Ka,Hr.isBoolean=function(e){return!0===e||!1===e||rl(e)&&En(e)==b},Hr.isBuffer=Ya,Hr.isDate=Qa,Hr.isElement=function(e){return rl(e)&&1===e.nodeType&&!il(e)},Hr.isEmpty=function(e){if(null==e)return!0;if(Ga(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||Ya(e)||cl(e)||Va(e)))return!e.length;var t=vi(e);if(t==S||t==L)return!e.size;if(Oi(e))return!Dn(e).length;for(var r in e)if(Ne.call(e,r))return!1;return!0},Hr.isEqual=function(e,t){return Pn(e,t)},Hr.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?Pn(e,t,n,r):!!o},Hr.isError=Za,Hr.isFinite=function(e){return"number"==typeof e&&Ft(e)},Hr.isFunction=Xa,Hr.isInteger=Ja,Hr.isLength=el,Hr.isMap=nl,Hr.isMatch=function(e,t){return e===t||In(e,t,di(t))},Hr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,In(e,t,di(t),r)},Hr.isNaN=function(e){return ol(e)&&e!=+e},Hr.isNative=function(e){if(Si(e))throw new Se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rn(e)},Hr.isNil=function(e){return null==e},Hr.isNull=function(e){return null===e},Hr.isNumber=ol,Hr.isObject=tl,Hr.isObjectLike=rl,Hr.isPlainObject=il,Hr.isRegExp=al,Hr.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=p},Hr.isSet=ll,Hr.isString=sl,Hr.isSymbol=ul,Hr.isTypedArray=cl,Hr.isUndefined=function(e){return e===n},Hr.isWeakMap=function(e){return rl(e)&&vi(e)==j},Hr.isWeakSet=function(e){return rl(e)&&"[object WeakSet]"==En(e)},Hr.join=function(e,t){return null==e?"":Gt.call(e,t)},Hr.kebabCase=ql,Hr.last=Zi,Hr.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=ml(r))<0?yr(o+i,0):br(i,o-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):Bt(e,Vt,i,!0)},Hr.lowerCase=$l,Hr.lowerFirst=Gl,Hr.lt=fl,Hr.lte=dl,Hr.max=function(e){return e&&e.length?vn(e,os,Cn):n},Hr.maxBy=function(e,t){return e&&e.length?vn(e,ci(t,2),Cn):n},Hr.mean=function(e){return qt(e,os)},Hr.meanBy=function(e,t){return qt(e,ci(t,2))},Hr.min=function(e){return e&&e.length?vn(e,os,Fn):n},Hr.minBy=function(e,t){return e&&e.length?vn(e,ci(t,2),Fn):n},Hr.stubArray=vs,Hr.stubFalse=gs,Hr.stubObject=function(){return{}},Hr.stubString=function(){return""},Hr.stubTrue=function(){return!0},Hr.multiply=ks,Hr.nth=function(e,t){return e&&e.length?Vn(e,ml(t)):n},Hr.noConflict=function(){return ht._===this&&(ht._=Be),this},Hr.noop=us,Hr.now=Ca,Hr.pad=function(e,t,r){e=bl(e);var n=(t=ml(t))?dr(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return $o(vt(o),r)+e+$o(mt(o),r)},Hr.padEnd=function(e,t,r){e=bl(e);var n=(t=ml(t))?dr(e):0;return t&&n<t?e+$o(t-n,r):e},Hr.padStart=function(e,t,r){e=bl(e);var n=(t=ml(t))?dr(e):0;return t&&n<t?$o(t-n,r)+e:e},Hr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),_r(bl(e).replace(ie,""),t||0)},Hr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&_i(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=hl(e),t===n?(t=e,e=0):t=hl(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=xr();return br(e+i*(t-e+ct("1e-"+((i+"").length-1))),t)}return Yn(e,t)},Hr.reduce=function(e,t,r){var n=qa(e)?Nt:Kt,o=arguments.length<3;return n(e,ci(t,4),r,o,pn)},Hr.reduceRight=function(e,t,r){var n=qa(e)?Dt:Kt,o=arguments.length<3;return n(e,ci(t,4),r,o,hn)},Hr.repeat=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:ml(t),Qn(bl(e),t)},Hr.replace=function(){var e=arguments,t=bl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Hr.result=function(e,t,r){var o=-1,i=(t=_o(t,e)).length;for(i||(i=1,e=n);++o<i;){var a=null==e?n:e[zi(t[o])];a===n&&(o=i,a=r),e=Xa(a)?a.call(e):a}return e},Hr.round=Ss,Hr.runInContext=e,Hr.sample=function(e){return(qa(e)?Zr:Xn)(e)},Hr.size=function(e){if(null==e)return 0;if(Ga(e))return sl(e)?dr(e):e.length;var t=vi(e);return t==S||t==L?e.size:Dn(e).length},Hr.snakeCase=Kl,Hr.some=function(e,t,r){var o=qa(e)?zt:io;return r&&_i(e,t,r)&&(t=n),o(e,ci(t,3))},Hr.sortedIndex=function(e,t){return ao(e,t)},Hr.sortedIndexBy=function(e,t,r){return lo(e,t,ci(r,2))},Hr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ao(e,t);if(n<r&&Ba(e[n],t))return n}return-1},Hr.sortedLastIndex=function(e,t){return ao(e,t,!0)},Hr.sortedLastIndexBy=function(e,t,r){return lo(e,t,ci(r,2),!0)},Hr.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=ao(e,t,!0)-1;if(Ba(e[r],t))return r}return-1},Hr.startCase=Yl,Hr.startsWith=function(e,t,r){return e=bl(e),r=null==r?0:sn(ml(r),0,e.length),t=co(t),e.slice(r,r+t.length)==t},Hr.subtract=Os,Hr.sum=function(e){return e&&e.length?Yt(e,os):0},Hr.sumBy=function(e,t){return e&&e.length?Yt(e,ci(t,2)):0},Hr.template=function(e,t,r){var o=Hr.templateSettings;r&&_i(e,t,r)&&(t=n),e=bl(e),t=xl({},t,o,ei);var i,a,l=xl({},t.imports,o.imports,ei),s=jl(l),u=Jt(l,s),c=0,f=t.interpolate||_e,d="__p += '",p=Te((t.escape||_e).source+"|"+f.source+"|"+(f===J?pe:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),h="//# sourceURL="+(Ne.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(p,(function(t,r,n,o,l,s){return n||(n=o),d+=e.slice(c,s).replace(xe,ir),r&&(i=!0,d+="' +\n__e("+r+") +\n'"),l&&(a=!0,d+="';\n"+l+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=s+t.length,t})),d+="';\n";var m=Ne.call(t,"variable")&&t.variable;if(m){if(fe.test(m))throw new Se("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(V,""):d).replace(q,"$1").replace($,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=Jl((function(){return Oe(s,h+"return "+d).apply(n,u)}));if(v.source=d,Za(v))throw v;return v},Hr.times=function(e,t){if((e=ml(e))<1||e>p)return[];var r=m,n=br(e,m);t=ci(t),e-=m;for(var o=Qt(n,t);++r<e;)t(r);return o},Hr.toFinite=hl,Hr.toInteger=ml,Hr.toLength=vl,Hr.toLower=function(e){return bl(e).toLowerCase()},Hr.toNumber=gl,Hr.toSafeInteger=function(e){return e?sn(ml(e),-9007199254740991,p):0===e?e:0},Hr.toString=bl,Hr.toUpper=function(e){return bl(e).toUpperCase()},Hr.trim=function(e,t,r){if((e=bl(e))&&(r||t===n))return Zt(e);if(!e||!(t=co(t)))return e;var o=pr(e),i=pr(t);return ko(o,tr(o,i),rr(o,i)+1).join("")},Hr.trimEnd=function(e,t,r){if((e=bl(e))&&(r||t===n))return e.slice(0,hr(e)+1);if(!e||!(t=co(t)))return e;var o=pr(e);return ko(o,0,rr(o,pr(t))+1).join("")},Hr.trimStart=function(e,t,r){if((e=bl(e))&&(r||t===n))return e.replace(ie,"");if(!e||!(t=co(t)))return e;var o=pr(e);return ko(o,tr(o,pr(t))).join("")},Hr.truncate=function(e,t){var r=30,o="...";if(tl(t)){var i="separator"in t?t.separator:i;r="length"in t?ml(t.length):r,o="omission"in t?co(t.omission):o}var a=(e=bl(e)).length;if(ar(e)){var l=pr(e);a=l.length}if(r>=a)return e;var s=r-dr(o);if(s<1)return o;var u=l?ko(l,0,s).join(""):e.slice(0,s);if(i===n)return u+o;if(l&&(s+=u.length-s),al(i)){if(e.slice(s).search(i)){var c,f=u;for(i.global||(i=Te(i.source,bl(he.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var d=c.index;u=u.slice(0,d===n?s:d)}}else if(e.indexOf(co(i),s)!=s){var p=u.lastIndexOf(i);p>-1&&(u=u.slice(0,p))}return u+o},Hr.unescape=function(e){return(e=bl(e))&&Y.test(e)?e.replace(G,mr):e},Hr.uniqueId=function(e){var t=++De;return bl(e)+t},Hr.upperCase=Ql,Hr.upperFirst=Zl,Hr.each=ba,Hr.eachRight=wa,Hr.first=Gi,ss(Hr,(xs={},_n(Hr,(function(e,t){Ne.call(Hr.prototype,t)||(xs[t]=e)})),xs),{chain:!1}),Hr.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Hr[e].placeholder=Hr})),Tt(["drop","take"],(function(e,t){Vr.prototype[e]=function(r){r=r===n?1:yr(ml(r),0);var o=this.__filtered__&&!t?new Vr(this):this.clone();return o.__filtered__?o.__takeCount__=br(r,o.__takeCount__):o.__views__.push({size:br(r,m),type:e+(o.__dir__<0?"Right":"")}),o},Vr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Vr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ci(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Tt(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Vr.prototype[e]=function(){return this[r](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Vr.prototype[e]=function(){return this.__filtered__?new Vr(this):this[r](1)}})),Vr.prototype.compact=function(){return this.filter(os)},Vr.prototype.find=function(e){return this.filter(e).head()},Vr.prototype.findLast=function(e){return this.reverse().find(e)},Vr.prototype.invokeMap=Zn((function(e,t){return"function"==typeof e?new Vr(this):this.map((function(r){return An(r,e,t)}))})),Vr.prototype.reject=function(e){return this.filter(Na(ci(e)))},Vr.prototype.slice=function(e,t){e=ml(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Vr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ml(t))<0?r.dropRight(-t):r.take(t-e)),r)},Vr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vr.prototype.toArray=function(){return this.take(m)},_n(Vr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Hr[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(Hr.prototype[t]=function(){var t=this.__wrapped__,l=o?[1]:arguments,s=t instanceof Vr,u=l[0],c=s||qa(t),f=function(e){var t=i.apply(Hr,Rt([e],l));return o&&d?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(s=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,m=s&&!p;if(!a&&c){t=m?t:new Vr(this);var v=e.apply(t,l);return v.__actions__.push({func:ha,args:[f],thisArg:n}),new Ur(v,d)}return h&&m?e.apply(this,l):(v=this.thru(f),h?o?v.value()[0]:v.value():v)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ae[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Hr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(qa(o)?o:[],e)}return this[r]((function(r){return t.apply(qa(r)?r:[],e)}))}})),_n(Vr.prototype,(function(e,t){var r=Hr[t];if(r){var n=r.name+"";Ne.call(Ar,n)||(Ar[n]=[]),Ar[n].push({name:t,func:r})}})),Ar[Wo(n,2).name]=[{name:"wrapper",func:n}],Vr.prototype.clone=function(){var e=new Vr(this.__wrapped__);return e.__actions__=Ao(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ao(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ao(this.__views__),e},Vr.prototype.reverse=function(){if(this.__filtered__){var e=new Vr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=qa(e),n=t<0,o=r?e.length:0,i=function(e,t,r){var n=-1,o=r.length;for(;++n<o;){var i=r[n],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=br(t,e+a);break;case"takeRight":e=yr(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,s=l-a,u=n?l:a-1,c=this.__iteratees__,f=c.length,d=0,p=br(s,this.__takeCount__);if(!r||!n&&o==s&&p==s)return vo(e,this.__actions__);var h=[];e:for(;s--&&d<p;){for(var m=-1,v=e[u+=t];++m<f;){var g=c[m],y=g.iteratee,b=g.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}h[d++]=v}return h},Hr.prototype.at=ma,Hr.prototype.chain=function(){return pa(this)},Hr.prototype.commit=function(){return new Ur(this.value(),this.__chain__)},Hr.prototype.next=function(){this.__values__===n&&(this.__values__=pl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Hr.prototype.plant=function(e){for(var t,r=this;r instanceof Wr;){var o=Hi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},Hr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vr){var t=e;return this.__actions__.length&&(t=new Vr(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:n}),new Ur(t,this.__chain__)}return this.thru(ta)},Hr.prototype.toJSON=Hr.prototype.valueOf=Hr.prototype.value=function(){return vo(this.__wrapped__,this.__actions__)},Hr.prototype.first=Hr.prototype.head,Xe&&(Hr.prototype[Xe]=function(){return this}),Hr}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(ht._=vr,define((function(){return vr}))):vt?((vt.exports=vr)._=vr,mt._=vr):ht._=vr}.call(this)},5077:(e,t,r)=>{var n=r(5584),o=r(2064),i=r(9409),a=r(3858);e.exports=function(e,t){return(a(e)?n:i)(e,o(t,3))}},6762:(e,t,r)=>{var n=r(1795);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},4911:e=>{e.exports=function(){}},1390:(e,t,r)=>{var n=r(6285);e.exports=function(){return n.Date.now()}},1329:(e,t,r)=>{var n=r(5584),o=r(2064),i=r(7889),a=r(2484);e.exports=function(e,t){if(null==e)return{};var r=n(a(e),(function(e){return[e]}));return t=o(t),i(e,r,(function(e,r){return t(e,r[0])}))}},5325:(e,t,r)=>{var n=r(5443),o=r(1833),i=r(1237),a=r(3742);e.exports=function(e){return i(e)?n(a(e)):o(e)}},6810:(e,t,r)=>{var n=r(2064),o=r(3040);e.exports=function(e,t){var r=[];if(!e||!e.length)return r;var i=-1,a=[],l=e.length;for(t=n(t,3);++i<l;){var s=e[i];t(s,i,e)&&(r.push(s),a.push(i))}return o(e,a),r}},5961:(e,t,r)=>{var n=r(5168);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},9608:(e,t,r)=>{var n=r(3145),o=r(3929),i=r(5046),a=r(7606),l=r(2126);e.exports=function(e){if(null==e)return 0;if(i(e))return a(e)?l(e):e.length;var t=o(e);return"[object Map]"==t||"[object Set]"==t?e.size:n(e).length}},255:e=>{e.exports=function(){return[]}},8416:e=>{e.exports=function(){return!1}},802:(e,t,r)=>{var n=r(9347),o=1/0;e.exports=function(e){return e?(e=n(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},1646:(e,t,r)=>{var n=r(802);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},9347:(e,t,r)=>{var n=r(301),o=r(4082),i=r(754),a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||s.test(e)?u(e.slice(2),r?2:8):a.test(e)?NaN:+e}},3156:(e,t,r)=>{var n=r(5631);e.exports=function(e){return null==e?"":n(e)}},3792:(e,t,r)=>{var n=r(3631);e.exports=function(e){return e&&e.length?n(e):[]}},7886:(e,t,r)=>{var n=r(3631);e.exports=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?n(e,void 0,t):[]}},3109:(e,t,r)=>{var n=r(6862),o=r(1839);e.exports=function(e){return null==e?[]:n(e,o(e))}},8780:e=>{"use strict";e.exports={__proto__:null,aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",currentColor:"The value of the 'color' property.",activeBorder:"Active window border.",activecaption:"Active window caption.",appworkspace:"Background color of multiple document interface.",background:"Desktop background.",buttonface:"The face background color for 3-D elements that appear 3-D due to one layer of surrounding border.",buttonhighlight:"The color of the border facing the light source for 3-D elements that appear 3-D due to one layer of surrounding border.",buttonshadow:"The color of the border away from the light source for 3-D elements that appear 3-D due to one layer of surrounding border.",buttontext:"Text on push buttons.",captiontext:"Text in caption, size box, and scrollbar arrow box.",graytext:"Grayed (disabled) text. This color is set to #000 if the current display driver does not support a solid gray color.",greytext:"Greyed (disabled) text. This color is set to #000 if the current display driver does not support a solid grey color.",highlight:"Item(s) selected in a control.",highlighttext:"Text of item(s) selected in a control.",inactiveborder:"Inactive window border.",inactivecaption:"Inactive window caption.",inactivecaptiontext:"Color of text in an inactive caption.",infobackground:"Background color for tooltip controls.",infotext:"Text color for tooltip controls.",menu:"Menu background.",menutext:"Text in menus.",scrollbar:"Scroll bar gray area.",threeddarkshadow:"The color of the darker (generally outer) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedface:"The face background color for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedhighlight:"The color of the lighter (generally outer) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedlightshadow:"The color of the darker (generally inner) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedshadow:"The color of the lighter (generally inner) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",window:"Window background.",windowframe:"Window frame.",windowtext:"Text in windows."}},2402:(e,t,r)=>{"use strict";e.exports=i;var n=r(7337),o=r(232);function i(e,t,r){n.call(this,e,t,r,o.COMBINATOR_TYPE),this.type="unknown",/^\s+$/.test(e)?this.type="descendant":">"===e?this.type="child":"+"===e?this.type="adjacent-sibling":"~"===e&&(this.type="sibling")}i.prototype=new n,i.prototype.constructor=i},4022:(e,t,r)=>{"use strict";e.exports=i;var n=r(6012),o=r(6912);function i(e,t){this.match=function(t){var r;return t.mark(),(r=e(t))?t.drop():t.restore(),r},this.toString="function"==typeof t?t:function(){return t}}i.prec={MOD:5,SEQ:4,ANDAND:3,OROR:2,ALT:1},i.parse=function(e){var t,r,a,l,s,u,c,f,d;if(t=new n(e),r=function(e){var r=t.readMatch(e);if(null===r)throw new o("Expected "+e,t.getLine(),t.getCol());return r},a=function(){for(var e=[l()];null!==t.readMatch(" | ");)e.push(l());return 1===e.length?e[0]:i.alt.apply(i,e)},l=function(){for(var e=[s()];null!==t.readMatch(" || ");)e.push(s());return 1===e.length?e[0]:i.oror.apply(i,e)},s=function(){for(var e=[u()];null!==t.readMatch(" && ");)e.push(u());return 1===e.length?e[0]:i.andand.apply(i,e)},u=function(){for(var e=[c()];null!==t.readMatch(/^ (?![&|\]])/);)e.push(c());return 1===e.length?e[0]:i.seq.apply(i,e)},c=function(){var e=f();if(null!==t.readMatch("?"))return e.question();if(null!==t.readMatch("*"))return e.star();if(null!==t.readMatch("+"))return e.plus();if(null!==t.readMatch("#"))return e.hash();if(null!==t.readMatch(/^\{\s*/)){var n=r(/^\d+/);r(/^\s*,\s*/);var o=r(/^\d+/);return r(/^\s*\}/),e.braces(+n,+o)}return e},f=function(){if(null!==t.readMatch("[ ")){var e=a();return r(" ]"),e}return i.fromType(r(/^[^ ?*+#{]+/))},d=a(),!t.eof())throw new o("Expected end of string",t.getLine(),t.getCol());return d},i.cast=function(e){return e instanceof i?e:i.parse(e)},i.fromType=function(e){var t=r(6831);return new i((function(r){return r.hasNext()&&t.isType(r,e)}),e)},i.seq=function(){var e=Array.prototype.slice.call(arguments).map(i.cast);return 1===e.length?e[0]:new i((function(t){var r,n=!0;for(r=0;n&&r<e.length;r++)n=e[r].match(t);return n}),(function(t){var r=i.prec.SEQ,n=e.map((function(e){return e.toString(r)})).join(" ");return t>r&&(n="[ "+n+" ]"),n}))},i.alt=function(){var e=Array.prototype.slice.call(arguments).map(i.cast);return 1===e.length?e[0]:new i((function(t){var r,n=!1;for(r=0;!n&&r<e.length;r++)n=e[r].match(t);return n}),(function(t){var r=i.prec.ALT,n=e.map((function(e){return e.toString(r)})).join(" | ");return t>r&&(n="[ "+n+" ]"),n}))},i.many=function(e){var t=Array.prototype.slice.call(arguments,1).reduce((function(e,t){if(t.expand){var n=r(6831);e.push.apply(e,n.complex[t.expand].options)}else e.push(i.cast(t));return e}),[]);!0===e&&(e=t.map((function(){return!0})));var n=new i((function(r){var n=[],o=0,i=0,a=function(l){for(var s=0;s<t.length;s++)if(!n[s])if(r.mark(),t[s].match(r)){if(n[s]=!0,a(l+(!1===e||e[s]?1:0)))return r.drop(),!0;r.restore(),n[s]=!1}else r.drop();return function(e){return 0===i?(o=Math.max(e,o),e===t.length):e===o}(l)};if(a(0)||(i++,a(0)),!1===e)return o>0;for(var l=0;l<t.length;l++)if(e[l]&&!n[l])return!1;return!0}),(function(r){var n=!1===e?i.prec.OROR:i.prec.ANDAND,o=t.map((function(t,r){return!1===e||e[r]?t.toString(n):t.toString(i.prec.MOD)+"?"})).join(!1===e?" || ":" && ");return r>n&&(o="[ "+o+" ]"),o}));return n.options=t,n},i.andand=function(){var e=Array.prototype.slice.call(arguments);return e.unshift(!0),i.many.apply(i,e)},i.oror=function(){var e=Array.prototype.slice.call(arguments);return e.unshift(!1),i.many.apply(i,e)},i.prototype={constructor:i,match:function(){throw new Error("unimplemented")},toString:function(){throw new Error("unimplemented")},func:function(){return this.match.bind(this)},then:function(e){return i.seq(this,e)},or:function(e){return i.alt(this,e)},andand:function(e){return i.many(!0,this,e)},oror:function(e){return i.many(!1,this,e)},star:function(){return this.braces(0,1/0,"*")},plus:function(){return this.braces(1,1/0,"+")},question:function(){return this.braces(0,1,"?")},hash:function(){return this.braces(1,1/0,"#",i.cast(","))},braces:function(e,t,r,n){var o=this,a=n?n.then(this):this;return r||(r="{"+e+","+t+"}"),new i((function(r){var i;for(i=0;i<t&&(i>0&&n?a.match(r):o.match(r));i++);return i>=e}),(function(){return o.toString(i.prec.MOD)+r}))}}},1899:(e,t,r)=>{"use strict";e.exports=i;var n=r(7337),o=r(232);function i(e,t){n.call(this,"("+e+(null!==t?":"+t:"")+")",e.startLine,e.startCol,o.MEDIA_FEATURE_TYPE),this.name=e,this.value=t}i.prototype=new n,i.prototype.constructor=i},7567:(e,t,r)=>{"use strict";e.exports=i;var n=r(7337),o=r(232);function i(e,t,r,i,a){n.call(this,(e?e+" ":"")+(t||"")+(t&&r.length>0?" and ":"")+r.join(" and "),i,a,o.MEDIA_QUERY_TYPE),this.modifier=e,this.mediaType=t,this.features=r}i.prototype=new n,i.prototype.constructor=i},232:(e,t,r)=>{"use strict";e.exports=y;var n=r(8053),o=r(6912),i=r(7337),a=r(2402),l=r(1899),s=r(7567),u=r(5556),c=r(5076),f=r(1915),d=r(5548),p=r(9890),h=r(753),m=r(3333),v=r(3778),g=r(7832);function y(e){n.call(this),this.options=e||{},this._tokenStream=null}y.DEFAULT_TYPE=0,y.COMBINATOR_TYPE=1,y.MEDIA_FEATURE_TYPE=2,y.MEDIA_QUERY_TYPE=3,y.PROPERTY_NAME_TYPE=4,y.PROPERTY_VALUE_TYPE=5,y.PROPERTY_VALUE_PART_TYPE=6,y.SELECTOR_TYPE=7,y.SELECTOR_PART_TYPE=8,y.SELECTOR_SUB_PART_TYPE=9,y.prototype=function(){var e,t=new n,r={__proto__:null,constructor:y,DEFAULT_TYPE:0,COMBINATOR_TYPE:1,MEDIA_FEATURE_TYPE:2,MEDIA_QUERY_TYPE:3,PROPERTY_NAME_TYPE:4,PROPERTY_VALUE_TYPE:5,PROPERTY_VALUE_PART_TYPE:6,SELECTOR_TYPE:7,SELECTOR_PART_TYPE:8,SELECTOR_SUB_PART_TYPE:9,_stylesheet:function(){var e,t,r,n=this._tokenStream;for(this.fire("startstylesheet"),this._charset(),this._skipCruft();n.peek()===v.IMPORT_SYM;)this._import(),this._skipCruft();for(;n.peek()===v.NAMESPACE_SYM;)this._namespace(),this._skipCruft();for(r=n.peek();r>v.EOF;){try{switch(r){case v.MEDIA_SYM:this._media(),this._skipCruft();break;case v.PAGE_SYM:this._page(),this._skipCruft();break;case v.FONT_FACE_SYM:this._font_face(),this._skipCruft();break;case v.KEYFRAMES_SYM:this._keyframes(),this._skipCruft();break;case v.VIEWPORT_SYM:this._viewport(),this._skipCruft();break;case v.DOCUMENT_SYM:this._document(),this._skipCruft();break;case v.SUPPORTS_SYM:this._supports(),this._skipCruft();break;case v.UNKNOWN_SYM:if(n.get(),this.options.strict)throw new o("Unknown @ rule.",n.LT(0).startLine,n.LT(0).startCol);for(this.fire({type:"error",error:null,message:"Unknown @ rule: "+n.LT(0).value+".",line:n.LT(0).startLine,col:n.LT(0).startCol}),e=0;n.advance([v.LBRACE,v.RBRACE])===v.LBRACE;)e++;for(;e;)n.advance([v.RBRACE]),e--;break;case v.S:this._readWhitespace();break;default:if(!this._ruleset())switch(r){case v.CHARSET_SYM:throw t=n.LT(1),this._charset(!1),new o("@charset not allowed here.",t.startLine,t.startCol);case v.IMPORT_SYM:throw t=n.LT(1),this._import(!1),new o("@import not allowed here.",t.startLine,t.startCol);case v.NAMESPACE_SYM:throw t=n.LT(1),this._namespace(!1),new o("@namespace not allowed here.",t.startLine,t.startCol);default:n.get(),this._unexpectedToken(n.token())}}}catch(e){if(!(e instanceof o)||this.options.strict)throw e;this.fire({type:"error",error:e,message:e.message,line:e.line,col:e.col})}r=n.peek()}r!==v.EOF&&this._unexpectedToken(n.token()),this.fire("endstylesheet")},_charset:function(e){var t,r,n,o=this._tokenStream;o.match(v.CHARSET_SYM)&&(r=o.token().startLine,n=o.token().startCol,this._readWhitespace(),o.mustMatch(v.STRING),t=o.token().value,this._readWhitespace(),o.mustMatch(v.SEMICOLON),!1!==e&&this.fire({type:"charset",charset:t,line:r,col:n}))},_import:function(e){var t,r,n,o=this._tokenStream;o.mustMatch(v.IMPORT_SYM),r=o.token(),this._readWhitespace(),o.mustMatch([v.STRING,v.URI]),t=o.token().value.replace(/^(?:url\()?["']?([^"']+?)["']?\)?$/,"$1"),this._readWhitespace(),n=this._media_query_list(),o.mustMatch(v.SEMICOLON),this._readWhitespace(),!1!==e&&this.fire({type:"import",uri:t,media:n,line:r.startLine,col:r.startCol})},_namespace:function(e){var t,r,n,o,i=this._tokenStream;i.mustMatch(v.NAMESPACE_SYM),t=i.token().startLine,r=i.token().startCol,this._readWhitespace(),i.match(v.IDENT)&&(n=i.token().value,this._readWhitespace()),i.mustMatch([v.STRING,v.URI]),o=i.token().value.replace(/(?:url\()?["']([^"']+)["']\)?/,"$1"),this._readWhitespace(),i.mustMatch(v.SEMICOLON),this._readWhitespace(),!1!==e&&this.fire({type:"namespace",prefix:n,uri:o,line:t,col:r})},_supports:function(e){var t,r,n=this._tokenStream;if(n.match(v.SUPPORTS_SYM)){for(t=n.token().startLine,r=n.token().startCol,this._readWhitespace(),this._supports_condition(),this._readWhitespace(),n.mustMatch(v.LBRACE),this._readWhitespace(),!1!==e&&this.fire({type:"startsupports",line:t,col:r});this._ruleset(););n.mustMatch(v.RBRACE),this._readWhitespace(),this.fire({type:"endsupports",line:t,col:r})}},_supports_condition:function(){var e,t=this._tokenStream;if(t.match(v.IDENT))"not"===(e=t.token().value.toLowerCase())?(t.mustMatch(v.S),this._supports_condition_in_parens()):t.unget();else for(this._supports_condition_in_parens(),this._readWhitespace();t.peek()===v.IDENT;)"and"!==(e=t.LT(1).value.toLowerCase())&&"or"!==e||(t.mustMatch(v.IDENT),this._readWhitespace(),this._supports_condition_in_parens(),this._readWhitespace())},_supports_condition_in_parens:function(){var e=this._tokenStream;e.match(v.LPAREN)?(this._readWhitespace(),e.match(v.IDENT)?"not"===e.token().value.toLowerCase()?(this._readWhitespace(),this._supports_condition(),this._readWhitespace(),e.mustMatch(v.RPAREN)):(e.unget(),this._supports_declaration_condition(!1)):(this._supports_condition(),this._readWhitespace(),e.mustMatch(v.RPAREN))):this._supports_declaration_condition()},_supports_declaration_condition:function(e){var t=this._tokenStream;!1!==e&&t.mustMatch(v.LPAREN),this._readWhitespace(),this._declaration(),t.mustMatch(v.RPAREN)},_media:function(){var e,t,r,n=this._tokenStream;for(n.mustMatch(v.MEDIA_SYM),e=n.token().startLine,t=n.token().startCol,this._readWhitespace(),r=this._media_query_list(),n.mustMatch(v.LBRACE),this._readWhitespace(),this.fire({type:"startmedia",media:r,line:e,col:t});;)if(n.peek()===v.PAGE_SYM)this._page();else if(n.peek()===v.FONT_FACE_SYM)this._font_face();else if(n.peek()===v.VIEWPORT_SYM)this._viewport();else if(n.peek()===v.DOCUMENT_SYM)this._document();else if(n.peek()===v.SUPPORTS_SYM)this._supports();else if(n.peek()===v.MEDIA_SYM)this._media();else if(!this._ruleset())break;n.mustMatch(v.RBRACE),this._readWhitespace(),this.fire({type:"endmedia",media:r,line:e,col:t})},_media_query_list:function(){var e=this._tokenStream,t=[];for(this._readWhitespace(),e.peek()!==v.IDENT&&e.peek()!==v.LPAREN||t.push(this._media_query());e.match(v.COMMA);)this._readWhitespace(),t.push(this._media_query());return t},_media_query:function(){var e=this._tokenStream,t=null,r=null,n=null,o=[];if(e.match(v.IDENT)&&("only"!==(r=e.token().value.toLowerCase())&&"not"!==r?(e.unget(),r=null):n=e.token()),this._readWhitespace(),e.peek()===v.IDENT?(t=this._media_type(),null===n&&(n=e.token())):e.peek()===v.LPAREN&&(null===n&&(n=e.LT(1)),o.push(this._media_expression())),null===t&&0===o.length)return null;for(this._readWhitespace();e.match(v.IDENT);)"and"!==e.token().value.toLowerCase()&&this._unexpectedToken(e.token()),this._readWhitespace(),o.push(this._media_expression());return new s(r,t,o,n.startLine,n.startCol)},_media_type:function(){return this._media_feature()},_media_expression:function(){var e,t,r=this._tokenStream,n=null;return r.mustMatch(v.LPAREN),e=this._media_feature(),this._readWhitespace(),r.match(v.COLON)&&(this._readWhitespace(),t=r.LT(1),n=this._expression()),r.mustMatch(v.RPAREN),this._readWhitespace(),new l(e,n?new i(n,t.startLine,t.startCol):null)},_media_feature:function(){var e=this._tokenStream;return this._readWhitespace(),e.mustMatch(v.IDENT),i.fromToken(e.token())},_page:function(){var e,t,r=this._tokenStream,n=null,o=null;r.mustMatch(v.PAGE_SYM),e=r.token().startLine,t=r.token().startCol,this._readWhitespace(),r.match(v.IDENT)&&"auto"===(n=r.token().value).toLowerCase()&&this._unexpectedToken(r.token()),r.peek()===v.COLON&&(o=this._pseudo_page()),this._readWhitespace(),this.fire({type:"startpage",id:n,pseudo:o,line:e,col:t}),this._readDeclarations(!0,!0),this.fire({type:"endpage",id:n,pseudo:o,line:e,col:t})},_margin:function(){var e,t,r=this._tokenStream,n=this._margin_sym();return!!n&&(e=r.token().startLine,t=r.token().startCol,this.fire({type:"startpagemargin",margin:n,line:e,col:t}),this._readDeclarations(!0),this.fire({type:"endpagemargin",margin:n,line:e,col:t}),!0)},_margin_sym:function(){var e=this._tokenStream;return e.match([v.TOPLEFTCORNER_SYM,v.TOPLEFT_SYM,v.TOPCENTER_SYM,v.TOPRIGHT_SYM,v.TOPRIGHTCORNER_SYM,v.BOTTOMLEFTCORNER_SYM,v.BOTTOMLEFT_SYM,v.BOTTOMCENTER_SYM,v.BOTTOMRIGHT_SYM,v.BOTTOMRIGHTCORNER_SYM,v.LEFTTOP_SYM,v.LEFTMIDDLE_SYM,v.LEFTBOTTOM_SYM,v.RIGHTTOP_SYM,v.RIGHTMIDDLE_SYM,v.RIGHTBOTTOM_SYM])?i.fromToken(e.token()):null},_pseudo_page:function(){var e=this._tokenStream;return e.mustMatch(v.COLON),e.mustMatch(v.IDENT),e.token().value},_font_face:function(){var e,t,r=this._tokenStream;r.mustMatch(v.FONT_FACE_SYM),e=r.token().startLine,t=r.token().startCol,this._readWhitespace(),this.fire({type:"startfontface",line:e,col:t}),this._readDeclarations(!0),this.fire({type:"endfontface",line:e,col:t})},_viewport:function(){var e,t,r=this._tokenStream;r.mustMatch(v.VIEWPORT_SYM),e=r.token().startLine,t=r.token().startCol,this._readWhitespace(),this.fire({type:"startviewport",line:e,col:t}),this._readDeclarations(!0),this.fire({type:"endviewport",line:e,col:t})},_document:function(){var e,t=this._tokenStream,r=[],n="";for(t.mustMatch(v.DOCUMENT_SYM),e=t.token(),/^@\-([^\-]+)\-/.test(e.value)&&(n=RegExp.$1),this._readWhitespace(),r.push(this._document_function());t.match(v.COMMA);)this._readWhitespace(),r.push(this._document_function());t.mustMatch(v.LBRACE),this._readWhitespace(),this.fire({type:"startdocument",functions:r,prefix:n,line:e.startLine,col:e.startCol});for(var o=!0;o;)switch(t.peek()){case v.PAGE_SYM:this._page();break;case v.FONT_FACE_SYM:this._font_face();break;case v.VIEWPORT_SYM:this._viewport();break;case v.MEDIA_SYM:this._media();break;case v.KEYFRAMES_SYM:this._keyframes();break;case v.DOCUMENT_SYM:this._document();break;default:o=Boolean(this._ruleset())}t.mustMatch(v.RBRACE),e=t.token(),this._readWhitespace(),this.fire({type:"enddocument",functions:r,prefix:n,line:e.startLine,col:e.startCol})},_document_function:function(){var e,t=this._tokenStream;return t.match(v.URI)?(e=t.token().value,this._readWhitespace()):e=this._function(),e},_operator:function(e){var t=this._tokenStream,r=null;return(t.match([v.SLASH,v.COMMA])||e&&t.match([v.PLUS,v.STAR,v.MINUS]))&&(r=t.token(),this._readWhitespace()),r?f.fromToken(r):null},_combinator:function(){var e,t=this._tokenStream,r=null;return t.match([v.PLUS,v.GREATER,v.TILDE])&&(e=t.token(),r=new a(e.value,e.startLine,e.startCol),this._readWhitespace()),r},_unary_operator:function(){var e=this._tokenStream;return e.match([v.MINUS,v.PLUS])?e.token().value:null},_property:function(){var e,t,r,n,o=this._tokenStream,i=null,a=null;return o.peek()===v.STAR&&this.options.starHack&&(o.get(),a=(t=o.token()).value,r=t.startLine,n=t.startCol),o.match(v.IDENT)&&("_"===(e=(t=o.token()).value).charAt(0)&&this.options.underscoreHack&&(a="_",e=e.substring(1)),i=new u(e,a,r||t.startLine,n||t.startCol),this._readWhitespace()),i},_ruleset:function(){var e,t=this._tokenStream;try{e=this._selectors_group()}catch(e){if(!(e instanceof o)||this.options.strict)throw e;if(this.fire({type:"error",error:e,message:e.message,line:e.line,col:e.col}),t.advance([v.RBRACE])!==v.RBRACE)throw e;return!0}return e&&(this.fire({type:"startrule",selectors:e,line:e[0].line,col:e[0].col}),this._readDeclarations(!0),this.fire({type:"endrule",selectors:e,line:e[0].line,col:e[0].col})),e},_selectors_group:function(){var e,t=this._tokenStream,r=[];if(null!==(e=this._selector()))for(r.push(e);t.match(v.COMMA);)this._readWhitespace(),null!==(e=this._selector())?r.push(e):this._unexpectedToken(t.LT(1));return r.length?r:null},_selector:function(){var e=this._tokenStream,t=[],r=null,n=null,o=null;if(null===(r=this._simple_selector_sequence()))return null;for(t.push(r);;)if(null!==(n=this._combinator()))t.push(n),null===(r=this._simple_selector_sequence())?this._unexpectedToken(e.LT(1)):t.push(r);else{if(!this._readWhitespace())break;o=new a(e.token().value,e.token().startLine,e.token().startCol),n=this._combinator(),null===(r=this._simple_selector_sequence())?null!==n&&this._unexpectedToken(e.LT(1)):(null!==n?t.push(n):t.push(o),t.push(r))}return new d(t,t[0].line,t[0].col)},_simple_selector_sequence:function(){var e,t,r=this._tokenStream,n=null,o=[],i="",a=[function(){return r.match(v.HASH)?new h(r.token().value,"id",r.token().startLine,r.token().startCol):null},this._class,this._attrib,this._pseudo,this._negation],l=0,s=a.length,u=null;for(e=r.LT(1).startLine,t=r.LT(1).startCol,(n=this._type_selector())||(n=this._universal()),null!==n&&(i+=n);r.peek()!==v.S;){for(;l<s&&null===u;)u=a[l++].call(this);if(null===u){if(""===i)return null;break}l=0,o.push(u),i+=u.toString(),u=null}return""!==i?new p(n,o,i,e,t):null},_type_selector:function(){var e=this._tokenStream,t=this._namespace_prefix(),r=this._element_name();return r?(t&&(r.text=t+r.text,r.col-=t.length),r):(t&&(e.unget(),t.length>1&&e.unget()),null)},_class:function(){var e,t=this._tokenStream;return t.match(v.DOT)?(t.mustMatch(v.IDENT),e=t.token(),new h("."+e.value,"class",e.startLine,e.startCol-1)):null},_element_name:function(){var e,t=this._tokenStream;return t.match(v.IDENT)?(e=t.token(),new h(e.value,"elementName",e.startLine,e.startCol)):null},_namespace_prefix:function(){var e=this._tokenStream,t="";return e.LA(1)!==v.PIPE&&e.LA(2)!==v.PIPE||(e.match([v.IDENT,v.STAR])&&(t+=e.token().value),e.mustMatch(v.PIPE),t+="|"),t.length?t:null},_universal:function(){var e,t=this._tokenStream,r="";return(e=this._namespace_prefix())&&(r+=e),t.match(v.STAR)&&(r+="*"),r.length?r:null},_attrib:function(){var e,t,r=this._tokenStream,n=null;return r.match(v.LBRACKET)?(n=(t=r.token()).value,n+=this._readWhitespace(),(e=this._namespace_prefix())&&(n+=e),r.mustMatch(v.IDENT),n+=r.token().value,n+=this._readWhitespace(),r.match([v.PREFIXMATCH,v.SUFFIXMATCH,v.SUBSTRINGMATCH,v.EQUALS,v.INCLUDES,v.DASHMATCH])&&(n+=r.token().value,n+=this._readWhitespace(),r.mustMatch([v.IDENT,v.STRING]),n+=r.token().value,n+=this._readWhitespace()),r.mustMatch(v.RBRACKET),new h(n+"]","attribute",t.startLine,t.startCol)):null},_pseudo:function(){var e,t,r=this._tokenStream,n=null,i=":";if(r.match(v.COLON)){if(r.match(v.COLON)&&(i+=":"),r.match(v.IDENT)?(n=r.token().value,e=r.token().startLine,t=r.token().startCol-i.length):r.peek()===v.FUNCTION&&(e=r.LT(1).startLine,t=r.LT(1).startCol-i.length,n=this._functional_pseudo()),!n){var a=r.LT(1).startLine,l=r.LT(0).startCol;throw new o("Expected a `FUNCTION` or `IDENT` after colon at line "+a+", col "+l+".",a,l)}n=new h(i+n,"pseudo",e,t)}return n},_functional_pseudo:function(){var e=this._tokenStream,t=null;return e.match(v.FUNCTION)&&(t=e.token().value,t+=this._readWhitespace(),t+=this._expression(),e.mustMatch(v.RPAREN),t+=")"),t},_expression:function(){for(var e=this._tokenStream,t="";e.match([v.PLUS,v.MINUS,v.DIMENSION,v.NUMBER,v.STRING,v.IDENT,v.LENGTH,v.FREQ,v.ANGLE,v.TIME,v.RESOLUTION,v.SLASH]);)t+=e.token().value,t+=this._readWhitespace();return t.length?t:null},_negation:function(){var e,t,r,n=this._tokenStream,o="",i=null;return n.match(v.NOT)&&(o=n.token().value,e=n.token().startLine,t=n.token().startCol,o+=this._readWhitespace(),o+=r=this._negation_arg(),o+=this._readWhitespace(),n.match(v.RPAREN),o+=n.token().value,(i=new h(o,"not",e,t)).args.push(r)),i},_negation_arg:function(){var e,t,r=this._tokenStream,n=[this._type_selector,this._universal,function(){return r.match(v.HASH)?new h(r.token().value,"id",r.token().startLine,r.token().startCol):null},this._class,this._attrib,this._pseudo],o=null,i=0,a=n.length;for(e=r.LT(1).startLine,t=r.LT(1).startCol;i<a&&null===o;)o=n[i].call(this),i++;return null===o&&this._unexpectedToken(r.LT(1)),"elementName"===o.type?new p(o,[],o.toString(),e,t):new p(null,[o],o.toString(),e,t)},_declaration:function(){var e=this._tokenStream,t=null,r=null,n=null,o=null,i="";if(null!==(t=this._property())){e.mustMatch(v.COLON),this._readWhitespace(),(r=this._expr())&&0!==r.length||this._unexpectedToken(e.LT(1)),n=this._prio(),i=t.toString(),(this.options.starHack&&"*"===t.hack||this.options.underscoreHack&&"_"===t.hack)&&(i=t.text);try{this._validateProperty(i,r)}catch(e){o=e}return this.fire({type:"property",property:t,value:r,important:n,line:t.line,col:t.col,invalid:o}),!0}return!1},_prio:function(){var e=this._tokenStream.match(v.IMPORTANT_SYM);return this._readWhitespace(),e},_expr:function(e){var t=[],r=null,n=null;if(null!==(r=this._term(e)))for(t.push(r);;){if((n=this._operator(e))&&t.push(n),null===(r=this._term(e)))break;t.push(r)}return t.length>0?new c(t,t[0].line,t[0].col):null},_term:function(e){var t,r,n,o,i=this._tokenStream,a=null,l=null,s=null;return null!==(t=this._unary_operator())&&(n=i.token().startLine,o=i.token().startCol),i.peek()===v.IE_FUNCTION&&this.options.ieFilters?(a=this._ie_function(),null===t&&(n=i.token().startLine,o=i.token().startCol)):e&&i.match([v.LPAREN,v.LBRACE,v.LBRACKET])?(l=(r=i.token()).endChar,a=r.value+this._expr(e).text,null===t&&(n=i.token().startLine,o=i.token().startCol),i.mustMatch(v.type(l)),a+=l,this._readWhitespace()):i.match([v.NUMBER,v.PERCENTAGE,v.LENGTH,v.ANGLE,v.TIME,v.FREQ,v.STRING,v.IDENT,v.URI,v.UNICODE_RANGE])?(a=i.token().value,null===t&&(n=i.token().startLine,o=i.token().startCol,s=f.fromToken(i.token())),this._readWhitespace()):null===(r=this._hexcolor())?(null===t&&(n=i.LT(1).startLine,o=i.LT(1).startCol),null===a&&(a=i.LA(3)===v.EQUALS&&this.options.ieFilters?this._ie_function():this._function())):(a=r.value,null===t&&(n=r.startLine,o=r.startCol)),null!==s?s:null!==a?new f(null!==t?t+a:a,n,o):null},_function:function(){var e,t=this._tokenStream,r=null;if(t.match(v.FUNCTION)){if(r=t.token().value,this._readWhitespace(),r+=this._expr(!0),this.options.ieFilters&&t.peek()===v.EQUALS)do{for(this._readWhitespace()&&(r+=t.token().value),t.LA(0)===v.COMMA&&(r+=t.token().value),t.match(v.IDENT),r+=t.token().value,t.match(v.EQUALS),r+=t.token().value,e=t.peek();e!==v.COMMA&&e!==v.S&&e!==v.RPAREN;)t.get(),r+=t.token().value,e=t.peek()}while(t.match([v.COMMA,v.S]));t.match(v.RPAREN),r+=")",this._readWhitespace()}return r},_ie_function:function(){var e,t=this._tokenStream,r=null;if(t.match([v.IE_FUNCTION,v.FUNCTION])){r=t.token().value;do{for(this._readWhitespace()&&(r+=t.token().value),t.LA(0)===v.COMMA&&(r+=t.token().value),t.match(v.IDENT),r+=t.token().value,t.match(v.EQUALS),r+=t.token().value,e=t.peek();e!==v.COMMA&&e!==v.S&&e!==v.RPAREN;)t.get(),r+=t.token().value,e=t.peek()}while(t.match([v.COMMA,v.S]));t.match(v.RPAREN),r+=")",this._readWhitespace()}return r},_hexcolor:function(){var e,t=this._tokenStream,r=null;if(t.match(v.HASH)){if(e=(r=t.token()).value,!/#[a-f0-9]{3,6}/i.test(e))throw new o("Expected a hex color but found '"+e+"' at line "+r.startLine+", col "+r.startCol+".",r.startLine,r.startCol);this._readWhitespace()}return r},_keyframes:function(){var e,t,r,n=this._tokenStream,o="";for(n.mustMatch(v.KEYFRAMES_SYM),e=n.token(),/^@\-([^\-]+)\-/.test(e.value)&&(o=RegExp.$1),this._readWhitespace(),r=this._keyframe_name(),this._readWhitespace(),n.mustMatch(v.LBRACE),this.fire({type:"startkeyframes",name:r,prefix:o,line:e.startLine,col:e.startCol}),this._readWhitespace(),t=n.peek();t===v.IDENT||t===v.PERCENTAGE;)this._keyframe_rule(),this._readWhitespace(),t=n.peek();this.fire({type:"endkeyframes",name:r,prefix:o,line:e.startLine,col:e.startCol}),this._readWhitespace(),n.mustMatch(v.RBRACE),this._readWhitespace()},_keyframe_name:function(){var e=this._tokenStream;return e.mustMatch([v.IDENT,v.STRING]),i.fromToken(e.token())},_keyframe_rule:function(){var e=this._key_list();this.fire({type:"startkeyframerule",keys:e,line:e[0].line,col:e[0].col}),this._readDeclarations(!0),this.fire({type:"endkeyframerule",keys:e,line:e[0].line,col:e[0].col})},_key_list:function(){var e=this._tokenStream,t=[];for(t.push(this._key()),this._readWhitespace();e.match(v.COMMA);)this._readWhitespace(),t.push(this._key()),this._readWhitespace();return t},_key:function(){var e,t=this._tokenStream;if(t.match(v.PERCENTAGE))return i.fromToken(t.token());if(t.match(v.IDENT)){if(e=t.token(),/from|to/i.test(e.value))return i.fromToken(e);t.unget()}this._unexpectedToken(t.LT(1))},_skipCruft:function(){for(;this._tokenStream.match([v.S,v.CDO,v.CDC]););},_readDeclarations:function(e,t){var r,n=this._tokenStream;this._readWhitespace(),e&&n.mustMatch(v.LBRACE),this._readWhitespace();try{for(;;){if(n.match(v.SEMICOLON)||t&&this._margin());else{if(!this._declaration())break;if(!n.match(v.SEMICOLON))break}this._readWhitespace()}n.mustMatch(v.RBRACE),this._readWhitespace()}catch(e){if(!(e instanceof o)||this.options.strict)throw e;if(this.fire({type:"error",error:e,message:e.message,line:e.line,col:e.col}),(r=n.advance([v.SEMICOLON,v.RBRACE]))===v.SEMICOLON)this._readDeclarations(!1,t);else if(r!==v.RBRACE)throw e}},_readWhitespace:function(){for(var e=this._tokenStream,t="";e.match(v.S);)t+=e.token().value;return t},_unexpectedToken:function(e){throw new o("Unexpected token '"+e.value+"' at line "+e.startLine+", col "+e.startCol+".",e.startLine,e.startCol)},_verifyEnd:function(){this._tokenStream.LA(1)!==v.EOF&&this._unexpectedToken(this._tokenStream.LT(1))},_validateProperty:function(e,t){g.validate(e,t)},parse:function(e){this._tokenStream=new m(e,v),this._stylesheet()},parseStyleSheet:function(e){return this.parse(e)},parseMediaQuery:function(e){this._tokenStream=new m(e,v);var t=this._media_query();return this._verifyEnd(),t},parsePropertyValue:function(e){this._tokenStream=new m(e,v),this._readWhitespace();var t=this._expr();return this._readWhitespace(),this._verifyEnd(),t},parseRule:function(e){this._tokenStream=new m(e,v),this._readWhitespace();var t=this._ruleset();return this._readWhitespace(),this._verifyEnd(),t},parseSelector:function(e){this._tokenStream=new m(e,v),this._readWhitespace();var t=this._selector();return this._readWhitespace(),this._verifyEnd(),t},parseStyleAttribute:function(e){e+="}",this._tokenStream=new m(e,v),this._readDeclarations()}};for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e]);return t}()},8986:e=>{"use strict";e.exports={__proto__:null,"align-items":"flex-start | flex-end | center | baseline | stretch","align-content":"flex-start | flex-end | center | space-between | space-around | stretch","align-self":"auto | flex-start | flex-end | center | baseline | stretch",all:"initial | inherit | unset","-webkit-align-items":"flex-start | flex-end | center | baseline | stretch","-webkit-align-content":"flex-start | flex-end | center | space-between | space-around | stretch","-webkit-align-self":"auto | flex-start | flex-end | center | baseline | stretch","alignment-adjust":"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | <percentage> | <length>","alignment-baseline":"auto | baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical",animation:1,"animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"[ none | forwards | backwards | both ]#","animation-iteration-count":"[ <number> | infinite ]#","animation-name":"[ none | <single-animation-name> ]#","animation-play-state":"[ running | paused ]#","animation-timing-function":1,"-moz-animation-delay":"<time>#","-moz-animation-direction":"[ normal | alternate ]#","-moz-animation-duration":"<time>#","-moz-animation-iteration-count":"[ <number> | infinite ]#","-moz-animation-name":"[ none | <single-animation-name> ]#","-moz-animation-play-state":"[ running | paused ]#","-ms-animation-delay":"<time>#","-ms-animation-direction":"[ normal | alternate ]#","-ms-animation-duration":"<time>#","-ms-animation-iteration-count":"[ <number> | infinite ]#","-ms-animation-name":"[ none | <single-animation-name> ]#","-ms-animation-play-state":"[ running | paused ]#","-webkit-animation-delay":"<time>#","-webkit-animation-direction":"[ normal | alternate ]#","-webkit-animation-duration":"<time>#","-webkit-animation-fill-mode":"[ none | forwards | backwards | both ]#","-webkit-animation-iteration-count":"[ <number> | infinite ]#","-webkit-animation-name":"[ none | <single-animation-name> ]#","-webkit-animation-play-state":"[ running | paused ]#","-o-animation-delay":"<time>#","-o-animation-direction":"[ normal | alternate ]#","-o-animation-duration":"<time>#","-o-animation-iteration-count":"[ <number> | infinite ]#","-o-animation-name":"[ none | <single-animation-name> ]#","-o-animation-play-state":"[ running | paused ]#",appearance:"none | auto","-moz-appearance":"none | button | button-arrow-down | button-arrow-next | button-arrow-previous | button-arrow-up | button-bevel | button-focus | caret | checkbox | checkbox-container | checkbox-label | checkmenuitem | dualbutton | groupbox | listbox | listitem | menuarrow | menubar | menucheckbox | menuimage | menuitem | menuitemtext | menulist | menulist-button | menulist-text | menulist-textfield | menupopup | menuradio | menuseparator | meterbar | meterchunk | progressbar | progressbar-vertical | progresschunk | progresschunk-vertical | radio | radio-container | radio-label | radiomenuitem | range | range-thumb | resizer | resizerpanel | scale-horizontal | scalethumbend | scalethumb-horizontal | scalethumbstart | scalethumbtick | scalethumb-vertical | scale-vertical | scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical | searchfield | separator | sheet | spinner | spinner-downbutton | spinner-textfield | spinner-upbutton | splitter | statusbar | statusbarpanel | tab | tabpanel | tabpanels | tab-scroll-arrow-back | tab-scroll-arrow-forward | textfield | textfield-multiline | toolbar | toolbarbutton | toolbarbutton-dropdown | toolbargripper | toolbox | tooltip | treeheader | treeheadercell | treeheadersortarrow | treeitem | treeline | treetwisty | treetwistyopen | treeview | -moz-mac-unified-toolbar | -moz-win-borderless-glass | -moz-win-browsertabbar-toolbox | -moz-win-communicationstext | -moz-win-communications-toolbox | -moz-win-exclude-glass | -moz-win-glass | -moz-win-mediatext | -moz-win-media-toolbox | -moz-window-button-box | -moz-window-button-box-maximized | -moz-window-button-close | -moz-window-button-maximize | -moz-window-button-minimize | -moz-window-button-restore | -moz-window-frame-bottom | -moz-window-frame-left | -moz-window-frame-right | -moz-window-titlebar | -moz-window-titlebar-maximized","-ms-appearance":"none | icon | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal","-webkit-appearance":"none | button | button-bevel | caps-lock-indicator | caret | checkbox | default-button | listbox\t| listitem | media-fullscreen-button | media-mute-button | media-play-button | media-seek-back-button\t| media-seek-forward-button\t| media-slider | media-sliderthumb | menulist\t| menulist-button\t| menulist-text\t| menulist-textfield | push-button\t| radio\t| searchfield\t| searchfield-cancel-button\t| searchfield-decoration | searchfield-results-button | searchfield-results-decoration | slider-horizontal | slider-vertical | sliderthumb-horizontal | sliderthumb-vertical\t| square-button\t| textarea\t| textfield\t| scrollbarbutton-down | scrollbarbutton-left | scrollbarbutton-right | scrollbarbutton-up | scrollbargripper-horizontal | scrollbargripper-vertical | scrollbarthumb-horizontal | scrollbarthumb-vertical | scrollbartrack-horizontal | scrollbartrack-vertical","-o-appearance":"none | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal",azimuth:"<azimuth>","backface-visibility":"visible | hidden",background:1,"background-attachment":"<attachment>#","background-clip":"<box>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","baseline-shift":"baseline | sub | super | <percentage> | <length>",behavior:1,binding:1,bleed:"<length>","bookmark-label":"<content> | <attr> | <string>","bookmark-level":"none | <integer>","bookmark-state":"open | closed","bookmark-target":"none | <uri> | <attr>",border:"<border-width> || <border-style> || <color>","border-bottom":"<border-width> || <border-style> || <color>","border-bottom-color":"<color>","border-bottom-left-radius":"<x-one-radius>","border-bottom-right-radius":"<x-one-radius>","border-bottom-style":"<border-style>","border-bottom-width":"<border-width>","border-collapse":"collapse | separate","border-color":"<color>{1,4}","border-image":1,"border-image-outset":"[ <length> | <number> ]{1,4}","border-image-repeat":"[ stretch | repeat | round ]{1,2}","border-image-slice":"<border-image-slice>","border-image-source":"<image> | none","border-image-width":"[ <length> | <percentage> | <number> | auto ]{1,4}","border-left":"<border-width> || <border-style> || <color>","border-left-color":"<color>","border-left-style":"<border-style>","border-left-width":"<border-width>","border-radius":"<border-radius>","border-right":"<border-width> || <border-style> || <color>","border-right-color":"<color>","border-right-style":"<border-style>","border-right-width":"<border-width>","border-spacing":"<length>{1,2}","border-style":"<border-style>{1,4}","border-top":"<border-width> || <border-style> || <color>","border-top-color":"<color>","border-top-left-radius":"<x-one-radius>","border-top-right-radius":"<x-one-radius>","border-top-style":"<border-style>","border-top-width":"<border-width>","border-width":"<border-width>{1,4}",bottom:"<margin-width>","-moz-box-align":"start | end | center | baseline | stretch","-moz-box-decoration-break":"slice | clone","-moz-box-direction":"normal | reverse","-moz-box-flex":"<number>","-moz-box-flex-group":"<integer>","-moz-box-lines":"single | multiple","-moz-box-ordinal-group":"<integer>","-moz-box-orient":"horizontal | vertical | inline-axis | block-axis","-moz-box-pack":"start | end | center | justify","-o-box-decoration-break":"slice | clone","-webkit-box-align":"start | end | center | baseline | stretch","-webkit-box-decoration-break":"slice | clone","-webkit-box-direction":"normal | reverse","-webkit-box-flex":"<number>","-webkit-box-flex-group":"<integer>","-webkit-box-lines":"single | multiple","-webkit-box-ordinal-group":"<integer>","-webkit-box-orient":"horizontal | vertical | inline-axis | block-axis","-webkit-box-pack":"start | end | center | justify","box-decoration-break":"slice | clone","box-shadow":"<box-shadow>","box-sizing":"content-box | border-box","break-after":"auto | always | avoid | left | right | page | column | avoid-page | avoid-column","break-before":"auto | always | avoid | left | right | page | column | avoid-page | avoid-column","break-inside":"auto | avoid | avoid-page | avoid-column","caption-side":"top | bottom",clear:"none | right | left | both",clip:"<shape> | auto","-webkit-clip-path":"<clip-source> | <clip-path> | none","clip-path":"<clip-source> | <clip-path> | none","clip-rule":"nonzero | evenodd",color:"<color>","color-interpolation":"auto | sRGB | linearRGB","color-interpolation-filters":"auto | sRGB | linearRGB","color-profile":1,"color-rendering":"auto | optimizeSpeed | optimizeQuality","column-count":"<integer> | auto","column-fill":"auto | balance","column-gap":"<length> | normal","column-rule":"<border-width> || <border-style> || <color>","column-rule-color":"<color>","column-rule-style":"<border-style>","column-rule-width":"<border-width>","column-span":"none | all","column-width":"<length> | auto",columns:1,content:1,"counter-increment":1,"counter-reset":1,crop:"<shape> | auto",cue:"cue-after | cue-before","cue-after":1,"cue-before":1,cursor:1,direction:"ltr | rtl",display:"inline | block | list-item | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | grid | inline-grid | run-in | ruby | ruby-base | ruby-text | ruby-base-container | ruby-text-container | contents | none | -moz-box | -moz-inline-block | -moz-inline-box | -moz-inline-grid | -moz-inline-stack | -moz-inline-table | -moz-grid | -moz-grid-group | -moz-grid-line | -moz-groupbox | -moz-deck | -moz-popup | -moz-stack | -moz-marker | -webkit-box | -webkit-inline-box | -ms-flexbox | -ms-inline-flexbox | flex | -webkit-flex | inline-flex | -webkit-inline-flex","dominant-baseline":"auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge","drop-initial-after-adjust":"central | middle | after-edge | text-after-edge | ideographic | alphabetic | mathematical | <percentage> | <length>","drop-initial-after-align":"baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical","drop-initial-before-adjust":"before-edge | text-before-edge | central | middle | hanging | mathematical | <percentage> | <length>","drop-initial-before-align":"caps-height | baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical","drop-initial-size":"auto | line | <length> | <percentage>","drop-initial-value":"<integer>",elevation:"<angle> | below | level | above | higher | lower","empty-cells":"show | hide","enable-background":1,fill:"<paint>","fill-opacity":"<opacity-value>","fill-rule":"nonzero | evenodd",filter:"<filter-function-list> | none",fit:"fill | hidden | meet | slice","fit-position":1,flex:"<flex>","flex-basis":"<width>","flex-direction":"row | row-reverse | column | column-reverse","flex-flow":"<flex-direction> || <flex-wrap>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap | wrap | wrap-reverse","-webkit-flex":"<flex>","-webkit-flex-basis":"<width>","-webkit-flex-direction":"row | row-reverse | column | column-reverse","-webkit-flex-flow":"<flex-direction> || <flex-wrap>","-webkit-flex-grow":"<number>","-webkit-flex-shrink":"<number>","-webkit-flex-wrap":"nowrap | wrap | wrap-reverse","-ms-flex":"<flex>","-ms-flex-align":"start | end | center | stretch | baseline","-ms-flex-direction":"row | row-reverse | column | column-reverse","-ms-flex-order":"<number>","-ms-flex-pack":"start | end | center | justify","-ms-flex-wrap":"nowrap | wrap | wrap-reverse",float:"left | right | none","float-offset":1,"flood-color":1,"flood-opacity":"<opacity-value>",font:"<font-shorthand> | caption | icon | menu | message-box | small-caption | status-bar","font-family":"<font-family>","font-feature-settings":"<feature-tag-value> | normal","font-kerning":"auto | normal | none","font-size":"<font-size>","font-size-adjust":"<number> | none","font-stretch":"<font-stretch>","font-style":"<font-style>","font-variant":"<font-variant> | normal | none","font-variant-alternates":"<font-variant-alternates> | normal","font-variant-caps":"<font-variant-caps> | normal","font-variant-east-asian":"<font-variant-east-asian> | normal","font-variant-ligatures":"<font-variant-ligatures> | normal | none","font-variant-numeric":"<font-variant-numeric> | normal","font-variant-position":"normal | sub | super","font-weight":"<font-weight>","glyph-orientation-horizontal":"<glyph-angle>","glyph-orientation-vertical":"auto | <glyph-angle>",grid:1,"grid-area":1,"grid-auto-columns":1,"grid-auto-flow":1,"grid-auto-position":1,"grid-auto-rows":1,"grid-cell-stacking":"columns | rows | layer","grid-column":1,"grid-columns":1,"grid-column-align":"start | end | center | stretch","grid-column-sizing":1,"grid-column-start":1,"grid-column-end":1,"grid-column-span":"<integer>","grid-flow":"none | rows | columns","grid-layer":"<integer>","grid-row":1,"grid-rows":1,"grid-row-align":"start | end | center | stretch","grid-row-start":1,"grid-row-end":1,"grid-row-span":"<integer>","grid-row-sizing":1,"grid-template":1,"grid-template-areas":1,"grid-template-columns":1,"grid-template-rows":1,"hanging-punctuation":1,height:"<margin-width> | <content-sizing>","hyphenate-after":"<integer> | auto","hyphenate-before":"<integer> | auto","hyphenate-character":"<string> | auto","hyphenate-lines":"no-limit | <integer>","hyphenate-resource":1,hyphens:"none | manual | auto",icon:1,"image-orientation":"angle | auto","image-rendering":"auto | optimizeSpeed | optimizeQuality","image-resolution":1,"ime-mode":"auto | normal | active | inactive | disabled","inline-box-align":"last | <integer>","justify-content":"flex-start | flex-end | center | space-between | space-around","-webkit-justify-content":"flex-start | flex-end | center | space-between | space-around",kerning:"auto | <length>",left:"<margin-width>","letter-spacing":"<length> | normal","line-height":"<line-height>","line-break":"auto | loose | normal | strict","line-stacking":1,"line-stacking-ruby":"exclude-ruby | include-ruby","line-stacking-shift":"consider-shifts | disregard-shifts","line-stacking-strategy":"inline-line-height | block-line-height | max-height | grid-height","list-style":1,"list-style-image":"<uri> | none","list-style-position":"inside | outside","list-style-type":"disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | lower-alpha | upper-alpha | none",margin:"<margin-width>{1,4}","margin-bottom":"<margin-width>","margin-left":"<margin-width>","margin-right":"<margin-width>","margin-top":"<margin-width>",mark:1,"mark-after":1,"mark-before":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,marks:1,"marquee-direction":1,"marquee-play-count":1,"marquee-speed":1,"marquee-style":1,mask:1,"max-height":"<length> | <percentage> | <content-sizing> | none","max-width":"<length> | <percentage> | <content-sizing> | none","min-height":"<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats","min-width":"<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats","move-to":1,"nav-down":1,"nav-index":1,"nav-left":1,"nav-right":1,"nav-up":1,"object-fit":"fill | contain | cover | none | scale-down","object-position":"<position>",opacity:"<opacity-value>",order:"<integer>","-webkit-order":"<integer>",orphans:"<integer>",outline:1,"outline-color":"<color> | invert","outline-offset":1,"outline-style":"<border-style>","outline-width":"<border-width>",overflow:"visible | hidden | scroll | auto","overflow-style":1,"overflow-wrap":"normal | break-word","overflow-x":1,"overflow-y":1,padding:"<padding-width>{1,4}","padding-bottom":"<padding-width>","padding-left":"<padding-width>","padding-right":"<padding-width>","padding-top":"<padding-width>",page:1,"page-break-after":"auto | always | avoid | left | right","page-break-before":"auto | always | avoid | left | right","page-break-inside":"auto | avoid","page-policy":1,pause:1,"pause-after":1,"pause-before":1,perspective:1,"perspective-origin":1,phonemes:1,pitch:1,"pitch-range":1,"play-during":1,"pointer-events":"auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all",position:"static | relative | absolute | fixed","presentation-level":1,"punctuation-trim":1,quotes:1,"rendering-intent":1,resize:1,rest:1,"rest-after":1,"rest-before":1,richness:1,right:"<margin-width>",rotation:1,"rotation-point":1,"ruby-align":1,"ruby-overhang":1,"ruby-position":1,"ruby-span":1,"shape-rendering":"auto | optimizeSpeed | crispEdges | geometricPrecision",size:1,speak:"normal | none | spell-out","speak-header":"once | always","speak-numeral":"digits | continuous","speak-punctuation":"code | none","speech-rate":1,src:1,"stop-color":1,"stop-opacity":"<opacity-value>",stress:1,"string-set":1,stroke:"<paint>","stroke-dasharray":"none | <dasharray>","stroke-dashoffset":"<percentage> | <length>","stroke-linecap":"butt | round | square","stroke-linejoin":"miter | round | bevel","stroke-miterlimit":"<miterlimit>","stroke-opacity":"<opacity-value>","stroke-width":"<percentage> | <length>","table-layout":"auto | fixed","tab-size":"<integer> | <length>",target:1,"target-name":1,"target-new":1,"target-position":1,"text-align":"left | right | center | justify | match-parent | start | end","text-align-last":1,"text-anchor":"start | middle | end","text-decoration":"<text-decoration-line> || <text-decoration-style> || <text-decoration-color>","text-decoration-color":"<text-decoration-color>","text-decoration-line":"<text-decoration-line>","text-decoration-style":"<text-decoration-style>","text-emphasis":1,"text-height":1,"text-indent":"<length> | <percentage>","text-justify":"auto | none | inter-word | inter-ideograph | inter-cluster | distribute | kashida","text-outline":1,"text-overflow":1,"text-rendering":"auto | optimizeSpeed | optimizeLegibility | geometricPrecision","text-shadow":1,"text-transform":"capitalize | uppercase | lowercase | none","text-wrap":"normal | none | avoid",top:"<margin-width>","-ms-touch-action":"auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation","touch-action":"auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation",transform:1,"transform-origin":1,"transform-style":1,transition:1,"transition-delay":1,"transition-duration":1,"transition-property":1,"transition-timing-function":1,"unicode-bidi":"normal | embed | isolate | bidi-override | isolate-override | plaintext","user-modify":"read-only | read-write | write-only","user-select":"none | text | toggle | element | elements | all","vertical-align":"auto | use-script | baseline | sub | super | top | text-top | central | middle | bottom | text-bottom | <percentage> | <length>",visibility:"visible | hidden | collapse","voice-balance":1,"voice-duration":1,"voice-family":1,"voice-pitch":1,"voice-pitch-range":1,"voice-rate":1,"voice-stress":1,"voice-volume":1,volume:1,"white-space":"normal | pre | nowrap | pre-wrap | pre-line | -pre-wrap | -o-pre-wrap | -moz-pre-wrap | -hp-pre-wrap","white-space-collapse":1,widows:"<integer>",width:"<length> | <percentage> | <content-sizing> | auto","will-change":"<will-change>","word-break":"normal | keep-all | break-all","word-spacing":"<length> | normal","word-wrap":"normal | break-word","writing-mode":"horizontal-tb | vertical-rl | vertical-lr | lr-tb | rl-tb | tb-rl | bt-rl | tb-lr | bt-lr | lr-bt | rl-bt | lr | rl | tb","z-index":"<integer> | auto",zoom:"<number> | <percentage> | normal"}},5556:(e,t,r)=>{"use strict";e.exports=i;var n=r(7337),o=r(232);function i(e,t,r,i){n.call(this,e,r,i,o.PROPERTY_NAME_TYPE),this.hack=t}i.prototype=new n,i.prototype.constructor=i,i.prototype.toString=function(){return(this.hack?this.hack:"")+this.text}},5076:(e,t,r)=>{"use strict";e.exports=i;var n=r(7337),o=r(232);function i(e,t,r){n.call(this,e.join(" "),t,r,o.PROPERTY_VALUE_TYPE),this.parts=e}i.prototype=new n,i.prototype.constructor=i},4282:e=>{"use strict";function t(e){this._i=0,this._parts=e.parts,this._marks=[],this.value=e}e.exports=t,t.prototype.count=function(){return this._parts.length},t.prototype.isFirst=function(){return 0===this._i},t.prototype.hasNext=function(){return this._i<this._parts.length},t.prototype.mark=function(){this._marks.push(this._i)},t.prototype.peek=function(e){return this.hasNext()?this._parts[this._i+(e||0)]:null},t.prototype.next=function(){return this.hasNext()?this._parts[this._i++]:null},t.prototype.previous=function(){return this._i>0?this._parts[--this._i]:null},t.prototype.restore=function(){this._marks.length&&(this._i=this._marks.pop())},t.prototype.drop=function(){this._marks.pop()}},1915:(e,t,r)=>{"use strict";e.exports=l;var n=r(7337),o=r(8780),i=r(232),a=r(3778);function l(e,t,r,a){var s,u=a||{};if(n.call(this,e,t,r,i.PROPERTY_VALUE_PART_TYPE),this.type="unknown",/^([+\-]?[\d\.]+)([a-z]+)$/i.test(e))switch(this.type="dimension",this.value=+RegExp.$1,this.units=RegExp.$2,this.units.toLowerCase()){case"em":case"rem":case"ex":case"px":case"cm":case"mm":case"in":case"pt":case"pc":case"ch":case"vh":case"vw":case"vmax":case"vmin":this.type="length";break;case"fr":this.type="grid";break;case"deg":case"rad":case"grad":case"turn":this.type="angle";break;case"ms":case"s":this.type="time";break;case"hz":case"khz":this.type="frequency";break;case"dpi":case"dpcm":this.type="resolution"}else/^([+\-]?[\d\.]+)%$/i.test(e)?(this.type="percentage",this.value=+RegExp.$1):/^([+\-]?\d+)$/i.test(e)?(this.type="integer",this.value=+RegExp.$1):/^([+\-]?[\d\.]+)$/i.test(e)?(this.type="number",this.value=+RegExp.$1):/^#([a-f0-9]{3,6})/i.test(e)?(this.type="color",3===(s=RegExp.$1).length?(this.red=parseInt(s.charAt(0)+s.charAt(0),16),this.green=parseInt(s.charAt(1)+s.charAt(1),16),this.blue=parseInt(s.charAt(2)+s.charAt(2),16)):(this.red=parseInt(s.substring(0,2),16),this.green=parseInt(s.substring(2,4),16),this.blue=parseInt(s.substring(4,6),16))):/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i.test(e)?(this.type="color",this.red=+RegExp.$1,this.green=+RegExp.$2,this.blue=+RegExp.$3):/^rgb\(\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)/i.test(e)?(this.type="color",this.red=255*+RegExp.$1/100,this.green=255*+RegExp.$2/100,this.blue=255*+RegExp.$3/100):/^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d\.]+)\s*\)/i.test(e)?(this.type="color",this.red=+RegExp.$1,this.green=+RegExp.$2,this.blue=+RegExp.$3,this.alpha=+RegExp.$4):/^rgba\(\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*,\s*([\d\.]+)\s*\)/i.test(e)?(this.type="color",this.red=255*+RegExp.$1/100,this.green=255*+RegExp.$2/100,this.blue=255*+RegExp.$3/100,this.alpha=+RegExp.$4):/^hsl\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)/i.test(e)?(this.type="color",this.hue=+RegExp.$1,this.saturation=+RegExp.$2/100,this.lightness=+RegExp.$3/100):/^hsla\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*,\s*([\d\.]+)\s*\)/i.test(e)?(this.type="color",this.hue=+RegExp.$1,this.saturation=+RegExp.$2/100,this.lightness=+RegExp.$3/100,this.alpha=+RegExp.$4):/^url\(("([^\\"]|\\.)*")\)/i.test(e)?(this.type="uri",this.uri=l.parseString(RegExp.$1)):/^([^\(]+)\(/i.test(e)?(this.type="function",this.name=RegExp.$1,this.value=e):/^"([^\n\r\f\\"]|\\\r\n|\\[^\r0-9a-f]|\\[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)*"/i.test(e)||/^'([^\n\r\f\\']|\\\r\n|\\[^\r0-9a-f]|\\[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)*'/i.test(e)?(this.type="string",this.value=l.parseString(e)):o[e.toLowerCase()]?(this.type="color",s=o[e.toLowerCase()].substring(1),this.red=parseInt(s.substring(0,2),16),this.green=parseInt(s.substring(2,4),16),this.blue=parseInt(s.substring(4,6),16)):/^[,\/]$/.test(e)?(this.type="operator",this.value=e):/^-?[a-z_\u00A0-\uFFFF][a-z0-9\-_\u00A0-\uFFFF]*$/i.test(e)&&(this.type="identifier",this.value=e);this.wasIdent=Boolean(u.ident)}l.prototype=new n,l.prototype.constructor=l,l.parseString=function(e){return(e=e.slice(1,-1)).replace(/\\(\r\n|[^\r0-9a-f]|[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?)/gi,(function(e,t){if(/^(\n|\r\n|\r|\f)$/.test(t))return"";var r=/^[0-9a-f]{1,6}/i.exec(t);if(r){var n=parseInt(r[0],16);return String.fromCodePoint?String.fromCodePoint(n):String.fromCharCode(n)}return t}))},l.serializeString=function(e){return'"'+e.replace(/["\r\n\f]/g,(function(e,t){return'"'===t?"\\"+t:"\\"+(String.codePointAt?String.codePointAt(0):String.charCodeAt(0)).toString(16)+" "}))+'"'},l.fromToken=function(e){return new l(e.value,e.startLine,e.startCol,{ident:e.type===a.IDENT})}},2071:e=>{"use strict";var t=e.exports={__proto__:null,":first-letter":1,":first-line":1,":before":1,":after":1};t.ELEMENT=1,t.CLASS=2,t.isElement=function(e){return 0===e.indexOf("::")||t[e.toLowerCase()]===t.ELEMENT}},5548:(e,t,r)=>{"use strict";e.exports=a;var n=r(7337),o=r(232),i=r(1070);function a(e,t,r){n.call(this,e.join(" "),t,r,o.SELECTOR_TYPE),this.parts=e,this.specificity=i.calculate(this)}a.prototype=new n,a.prototype.constructor=a},9890:(e,t,r)=>{"use strict";e.exports=i;var n=r(7337),o=r(232);function i(e,t,r,i,a){n.call(this,r,i,a,o.SELECTOR_PART_TYPE),this.elementName=e,this.modifiers=t}i.prototype=new n,i.prototype.constructor=i},753:(e,t,r)=>{"use strict";e.exports=i;var n=r(7337),o=r(232);function i(e,t,r,i){n.call(this,e,r,i,o.SELECTOR_SUB_PART_TYPE),this.type=t,this.args=[]}i.prototype=new n,i.prototype.constructor=i},1070:(e,t,r)=>{"use strict";e.exports=i;var n=r(2071),o=r(9890);function i(e,t,r,n){this.a=e,this.b=t,this.c=r,this.d=n}i.prototype={constructor:i,compare:function(e){var t,r,n=["a","b","c","d"];for(t=0,r=n.length;t<r;t++){if(this[n[t]]<e[n[t]])return-1;if(this[n[t]]>e[n[t]])return 1}return 0},valueOf:function(){return 1e3*this.a+100*this.b+10*this.c+this.d},toString:function(){return this.a+","+this.b+","+this.c+","+this.d}},i.calculate=function(e){var t,r,a,l=0,s=0,u=0;function c(e){var t,r,o,i,a,f=e.elementName?e.elementName.text:"";for(f&&"*"!==f.charAt(f.length-1)&&u++,t=0,o=e.modifiers.length;t<o;t++)switch((a=e.modifiers[t]).type){case"class":case"attribute":s++;break;case"id":l++;break;case"pseudo":n.isElement(a.text)?u++:s++;break;case"not":for(r=0,i=a.args.length;r<i;r++)c(a.args[r])}}for(t=0,r=e.parts.length;t<r;t++)(a=e.parts[t])instanceof o&&c(a);return new i(0,l,s,u)}},3333:(e,t,r)=>{"use strict";e.exports=g;var n=r(3099),o=r(1915),i=r(3778),a=/^[0-9a-fA-F]$/,l=/^[\u00A0-\uFFFF]$/,s=/\n|\r\n|\r|\f/,u=/\u0009|\u000a|\u000c|\u000d|\u0020/;function c(e){return null!==e&&a.test(e)}function f(e){return null!==e&&/\d/.test(e)}function d(e){return null!==e&&u.test(e)}function p(e){return null!==e&&s.test(e)}function h(e){return null!==e&&/[a-z_\u00A0-\uFFFF\\]/i.test(e)}function m(e){return null!==e&&(h(e)||/[0-9\-\\]/.test(e))}function v(e){return null!==e&&(h(e)||/\-\\/.test(e))}function g(e){n.call(this,e,i)}g.prototype=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}(new n,{_getToken:function(){var e,t=this._reader,r=null,n=t.getLine(),o=t.getCol();for(e=t.read();e;){switch(e){case"/":r="*"===t.peek()?this.commentToken(e,n,o):this.charToken(e,n,o);break;case"|":case"~":case"^":case"$":case"*":r="="===t.peek()?this.comparisonToken(e,n,o):this.charToken(e,n,o);break;case'"':case"'":r=this.stringToken(e,n,o);break;case"#":r=m(t.peek())?this.hashToken(e,n,o):this.charToken(e,n,o);break;case".":r=f(t.peek())?this.numberToken(e,n,o):this.charToken(e,n,o);break;case"-":r="-"===t.peek()?this.htmlCommentEndToken(e,n,o):h(t.peek())?this.identOrFunctionToken(e,n,o):this.charToken(e,n,o);break;case"!":r=this.importantToken(e,n,o);break;case"@":r=this.atRuleToken(e,n,o);break;case":":r=this.notToken(e,n,o);break;case"<":r=this.htmlCommentStartToken(e,n,o);break;case"\\":r=/[^\r\n\f]/.test(t.peek())?this.identOrFunctionToken(this.readEscape(e,!0),n,o):this.charToken(e,n,o);break;case"U":case"u":if("+"===t.peek()){r=this.unicodeRangeToken(e,n,o);break}default:r=f(e)?this.numberToken(e,n,o):d(e)?this.whitespaceToken(e,n,o):v(e)?this.identOrFunctionToken(e,n,o):this.charToken(e,n,o)}break}return r||null!==e||(r=this.createToken(i.EOF,null,n,o)),r},createToken:function(e,t,r,n,o){var i=this._reader;return{value:t,type:e,channel:(o=o||{}).channel,endChar:o.endChar,hide:o.hide||!1,startLine:r,startCol:n,endLine:i.getLine(),endCol:i.getCol()}},atRuleToken:function(e,t,r){var n=e,o=this._reader,a=i.CHAR;return o.mark(),n=e+this.readName(),(a=i.type(n.toLowerCase()))!==i.CHAR&&a!==i.UNKNOWN||(n.length>1?a=i.UNKNOWN_SYM:(a=i.CHAR,n=e,o.reset())),this.createToken(a,n,t,r)},charToken:function(e,t,r){var n=i.type(e),o={};return-1===n?n=i.CHAR:o.endChar=i[n].endChar,this.createToken(n,e,t,r,o)},commentToken:function(e,t,r){var n=this.readComment(e);return this.createToken(i.COMMENT,n,t,r)},comparisonToken:function(e,t,r){var n=e+this._reader.read(),o=i.type(n)||i.CHAR;return this.createToken(o,n,t,r)},hashToken:function(e,t,r){var n=this.readName(e);return this.createToken(i.HASH,n,t,r)},htmlCommentStartToken:function(e,t,r){var n=this._reader,o=e;return n.mark(),"\x3c!--"===(o+=n.readCount(3))?this.createToken(i.CDO,o,t,r):(n.reset(),this.charToken(e,t,r))},htmlCommentEndToken:function(e,t,r){var n=this._reader,o=e;return n.mark(),"--\x3e"===(o+=n.readCount(2))?this.createToken(i.CDC,o,t,r):(n.reset(),this.charToken(e,t,r))},identOrFunctionToken:function(e,t,r){var n,o=this._reader,a=this.readName(e),l=i.IDENT;return"("===o.peek()?(a+=o.read(),["url(","url-prefix(","domain("].indexOf(a.toLowerCase())>-1?(o.mark(),null===(n=this.readURI(a))?(o.reset(),l=i.FUNCTION):(l=i.URI,a=n)):l=i.FUNCTION):":"===o.peek()&&"progid"===a.toLowerCase()&&(a+=o.readTo("("),l=i.IE_FUNCTION),this.createToken(l,a,t,r)},importantToken:function(e,t,r){var n,o,a=this._reader,l=e,s=i.CHAR;for(a.mark(),o=a.read();o;){if("/"===o){if("*"!==a.peek())break;if(""===(n=this.readComment(o)))break}else{if(!d(o)){if(/i/i.test(o)){n=a.readCount(8),/mportant/i.test(n)&&(l+=o+n,s=i.IMPORTANT_SYM);break}break}l+=o+this.readWhitespace()}o=a.read()}return s===i.CHAR?(a.reset(),this.charToken(e,t,r)):this.createToken(s,l,t,r)},notToken:function(e,t,r){var n=this._reader,o=e;return n.mark(),":not("===(o+=n.readCount(4)).toLowerCase()?this.createToken(i.NOT,o,t,r):(n.reset(),this.charToken(e,t,r))},numberToken:function(e,t,r){var n,o=this._reader,a=this.readNumber(e),l=i.NUMBER,s=o.peek();return v(s)?(a+=n=this.readName(o.read()),l=/^em$|^ex$|^px$|^gd$|^rem$|^vw$|^vh$|^vmax$|^vmin$|^ch$|^cm$|^mm$|^in$|^pt$|^pc$/i.test(n)?i.LENGTH:/^deg|^rad$|^grad$|^turn$/i.test(n)?i.ANGLE:/^ms$|^s$/i.test(n)?i.TIME:/^hz$|^khz$/i.test(n)?i.FREQ:/^dpi$|^dpcm$/i.test(n)?i.RESOLUTION:i.DIMENSION):"%"===s&&(a+=o.read(),l=i.PERCENTAGE),this.createToken(l,a,t,r)},stringToken:function(e,t,r){for(var n,o=e,a=e,l=this._reader,s=i.STRING,u=l.read();u;){if(a+=u,"\\"===u){if(null===(u=l.read()))break;if(/[^\r\n\f0-9a-f]/i.test(u))a+=u;else{for(n=0;c(u)&&n<6;n++)a+=u,u=l.read();if("\r"===u&&"\n"===l.peek()&&(a+=u,u=l.read()),!d(u))continue;a+=u}}else{if(u===o)break;if(p(l.peek())){s=i.INVALID;break}}u=l.read()}return null===u&&(s=i.INVALID),this.createToken(s,a,t,r)},unicodeRangeToken:function(e,t,r){var n,o=this._reader,a=e,l=i.CHAR;return"+"===o.peek()&&(o.mark(),a+=o.read(),2===(a+=this.readUnicodeRangePart(!0)).length?o.reset():(l=i.UNICODE_RANGE,-1===a.indexOf("?")&&"-"===o.peek()&&(o.mark(),n=o.read(),1===(n+=this.readUnicodeRangePart(!1)).length?o.reset():a+=n))),this.createToken(l,a,t,r)},whitespaceToken:function(e,t,r){var n=e+this.readWhitespace();return this.createToken(i.S,n,t,r)},readUnicodeRangePart:function(e){for(var t=this._reader,r="",n=t.peek();c(n)&&r.length<6;)t.read(),r+=n,n=t.peek();if(e)for(;"?"===n&&r.length<6;)t.read(),r+=n,n=t.peek();return r},readWhitespace:function(){for(var e=this._reader,t="",r=e.peek();d(r);)e.read(),t+=r,r=e.peek();return t},readNumber:function(e){for(var t=this._reader,r=e,n="."===e,o=t.peek();o;){if(f(o))r+=t.read();else{if("."!==o)break;if(n)break;n=!0,r+=t.read()}o=t.peek()}return r},readString:function(){var e=this.stringToken(this._reader.read(),0,0);return e.type===i.INVALID?null:e.value},readURI:function(e){for(var t=this._reader,r=e,n="",i=t.peek();i&&d(i);)t.read(),i=t.peek();for("'"===i||'"'===i?null!==(n=this.readString())&&(n=o.parseString(n)):n=this.readUnquotedURL(),i=t.peek();i&&d(i);)t.read(),i=t.peek();return null===n||")"!==i?r=null:r+=o.serializeString(n)+t.read(),r},readUnquotedURL:function(e){var t,r=this._reader,n=e||"";for(t=r.peek();t;t=r.peek())if(l.test(t)||/^[\-!#$%&*-\[\]-~]$/.test(t))n+=t,r.read();else{if("\\"!==t)break;if(!/^[^\r\n\f]$/.test(r.peek(2)))break;n+=this.readEscape(r.read(),!0)}return n},readName:function(e){var t,r=this._reader,n=e||"";for(t=r.peek();t;t=r.peek())if("\\"===t){if(!/^[^\r\n\f]$/.test(r.peek(2)))break;n+=this.readEscape(r.read(),!0)}else{if(!m(t))break;n+=r.read()}return n},readEscape:function(e,t){var r=this._reader,n=e||"",o=0,i=r.peek();if(c(i))do{n+=r.read(),i=r.peek()}while(i&&c(i)&&++o<6);if(1===n.length){if(!/^[^\r\n\f0-9a-f]$/.test(i))throw new Error("Bad escape sequence.");if(r.read(),t)return i}else"\r"===i?(r.read(),"\n"===r.peek()&&(i+=r.read())):/^[ \t\n\f]$/.test(i)?r.read():i="";if(t){var a=parseInt(n.slice(e.length),16);return String.fromCodePoint?String.fromCodePoint(a):String.fromCharCode(a)}return n+i},readComment:function(e){var t=this._reader,r=e||"",n=t.read();if("*"===n){for(;n;){if((r+=n).length>2&&"*"===n&&"/"===t.peek()){r+=t.read();break}n=t.read()}return r}return""}})},3778:e=>{"use strict";var t=e.exports=[{name:"CDO"},{name:"CDC"},{name:"S",whitespace:!0},{name:"COMMENT",comment:!0,hide:!0,channel:"comment"},{name:"INCLUDES",text:"~="},{name:"DASHMATCH",text:"|="},{name:"PREFIXMATCH",text:"^="},{name:"SUFFIXMATCH",text:"$="},{name:"SUBSTRINGMATCH",text:"*="},{name:"STRING"},{name:"IDENT"},{name:"HASH"},{name:"IMPORT_SYM",text:"@import"},{name:"PAGE_SYM",text:"@page"},{name:"MEDIA_SYM",text:"@media"},{name:"FONT_FACE_SYM",text:"@font-face"},{name:"CHARSET_SYM",text:"@charset"},{name:"NAMESPACE_SYM",text:"@namespace"},{name:"SUPPORTS_SYM",text:"@supports"},{name:"VIEWPORT_SYM",text:["@viewport","@-ms-viewport","@-o-viewport"]},{name:"DOCUMENT_SYM",text:["@document","@-moz-document"]},{name:"UNKNOWN_SYM"},{name:"KEYFRAMES_SYM",text:["@keyframes","@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"]},{name:"IMPORTANT_SYM"},{name:"LENGTH"},{name:"ANGLE"},{name:"TIME"},{name:"FREQ"},{name:"DIMENSION"},{name:"PERCENTAGE"},{name:"NUMBER"},{name:"URI"},{name:"FUNCTION"},{name:"UNICODE_RANGE"},{name:"INVALID"},{name:"PLUS",text:"+"},{name:"GREATER",text:">"},{name:"COMMA",text:","},{name:"TILDE",text:"~"},{name:"NOT"},{name:"TOPLEFTCORNER_SYM",text:"@top-left-corner"},{name:"TOPLEFT_SYM",text:"@top-left"},{name:"TOPCENTER_SYM",text:"@top-center"},{name:"TOPRIGHT_SYM",text:"@top-right"},{name:"TOPRIGHTCORNER_SYM",text:"@top-right-corner"},{name:"BOTTOMLEFTCORNER_SYM",text:"@bottom-left-corner"},{name:"BOTTOMLEFT_SYM",text:"@bottom-left"},{name:"BOTTOMCENTER_SYM",text:"@bottom-center"},{name:"BOTTOMRIGHT_SYM",text:"@bottom-right"},{name:"BOTTOMRIGHTCORNER_SYM",text:"@bottom-right-corner"},{name:"LEFTTOP_SYM",text:"@left-top"},{name:"LEFTMIDDLE_SYM",text:"@left-middle"},{name:"LEFTBOTTOM_SYM",text:"@left-bottom"},{name:"RIGHTTOP_SYM",text:"@right-top"},{name:"RIGHTMIDDLE_SYM",text:"@right-middle"},{name:"RIGHTBOTTOM_SYM",text:"@right-bottom"},{name:"RESOLUTION",state:"media"},{name:"IE_FUNCTION"},{name:"CHAR"},{name:"PIPE",text:"|"},{name:"SLASH",text:"/"},{name:"MINUS",text:"-"},{name:"STAR",text:"*"},{name:"LBRACE",endChar:"}",text:"{"},{name:"RBRACE",text:"}"},{name:"LBRACKET",endChar:"]",text:"["},{name:"RBRACKET",text:"]"},{name:"EQUALS",text:"="},{name:"COLON",text:":"},{name:"SEMICOLON",text:";"},{name:"LPAREN",endChar:")",text:"("},{name:"RPAREN",text:")"},{name:"DOT",text:"."}];!function(){var e=[],r=Object.create(null);t.UNKNOWN=-1,t.unshift({name:"EOF"});for(var n=0,o=t.length;n<o;n++)if(e.push(t[n].name),t[t[n].name]=n,t[n].text)if(t[n].text instanceof Array)for(var i=0;i<t[n].text.length;i++)r[t[n].text[i]]=n;else r[t[n].text]=n;t.name=function(t){return e[t]},t.type=function(e){return r[e]||-1}}()},7832:(e,t,r)=>{"use strict";var n=r(4022),o=r(8986),i=r(6831),a=r(3690),l=r(4282);e.exports={validate:function(e,t){var r,n=e.toString().toLowerCase(),s=new l(t),u=o[n];if(u){if("number"!=typeof u){if(i.isAny(s,"inherit | initial | unset")){if(s.hasNext())throw r=s.next(),new a("Expected end of value but found '"+r+"'.",r.line,r.col);return}this.singleProperty(u,s)}}else if(0!==n.indexOf("-"))throw new a("Unknown property '"+e+"'.",e.line,e.col)},singleProperty:function(e,t){var r,o=t.value;if(!n.parse(e).match(t))throw t.hasNext()&&!t.isFirst()?(r=t.peek(),new a("Expected end of value but found '"+r+"'.",r.line,r.col)):new a("Expected ("+i.describe(e)+") but found '"+o+"'.",o.line,o.col);if(t.hasNext())throw r=t.next(),new a("Expected end of value but found '"+r+"'.",r.line,r.col)}}},3690:e=>{"use strict";function t(e,t,r){this.col=r,this.line=t,this.message=e}e.exports=t,t.prototype=new Error},6831:(e,t,r)=>{"use strict";var n,o,i=e.exports,a=r(4022);n=i,o={isLiteral:function(e,t){var r,n,o=e.text.toString().toLowerCase(),i=t.split(" | "),a=!1;for(r=0,n=i.length;r<n&&!a;r++)"<"===i[r].charAt(0)?a=this.simple[i[r]](e):"()"===i[r].slice(-2)?a="function"===e.type&&e.name===i[r].slice(0,-2):o===i[r].toLowerCase()&&(a=!0);return a},isSimple:function(e){return Boolean(this.simple[e])},isComplex:function(e){return Boolean(this.complex[e])},describe:function(e){return this.complex[e]instanceof a?this.complex[e].toString(0):e},isAny:function(e,t){var r,n,o=t.split(" | "),i=!1;for(r=0,n=o.length;r<n&&!i&&e.hasNext();r++)i=this.isType(e,o[r]);return i},isAnyOfGroup:function(e,t){var r,n,o=t.split(" || "),i=!1;for(r=0,n=o.length;r<n&&!i;r++)i=this.isType(e,o[r]);return!!i&&o[r-1]},isType:function(e,t){var r=e.peek(),n=!1;return"<"!==t.charAt(0)?(n=this.isLiteral(r,t))&&e.next():this.simple[t]?(n=this.simple[t](r))&&e.next():n=this.complex[t]instanceof a?this.complex[t].match(e):this.complex[t](e),n},simple:{__proto__:null,"<absolute-size>":"xx-small | x-small | small | medium | large | x-large | xx-large","<animateable-feature>":"scroll-position | contents | <animateable-feature-name>","<animateable-feature-name>":function(e){return this["<ident>"](e)&&!/^(unset|initial|inherit|will-change|auto|scroll-position|contents)$/i.test(e)},"<angle>":function(e){return"angle"===e.type},"<attachment>":"scroll | fixed | local","<attr>":"attr()","<basic-shape>":"inset() | circle() | ellipse() | polygon()","<bg-image>":"<image> | <gradient> | none","<border-style>":"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset","<border-width>":"<length> | thin | medium | thick","<box>":"padding-box | border-box | content-box","<clip-source>":"<uri>","<color>":function(e){return"color"===e.type||"transparent"===String(e)||"currentColor"===String(e)},"<color-svg>":function(e){return"color"===e.type},"<content>":"content()","<content-sizing>":"fill-available | -moz-available | -webkit-fill-available | max-content | -moz-max-content | -webkit-max-content | min-content | -moz-min-content | -webkit-min-content | fit-content | -moz-fit-content | -webkit-fit-content","<feature-tag-value>":function(e){return"function"===e.type&&/^[A-Z0-9]{4}$/i.test(e)},"<filter-function>":"blur() | brightness() | contrast() | custom() | drop-shadow() | grayscale() | hue-rotate() | invert() | opacity() | saturate() | sepia()","<flex-basis>":"<width>","<flex-direction>":"row | row-reverse | column | column-reverse","<flex-grow>":"<number>","<flex-shrink>":"<number>","<flex-wrap>":"nowrap | wrap | wrap-reverse","<font-size>":"<absolute-size> | <relative-size> | <length> | <percentage>","<font-stretch>":"normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded","<font-style>":"normal | italic | oblique","<font-variant-caps>":"small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps","<font-variant-css21>":"normal | small-caps","<font-weight>":"normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900","<generic-family>":"serif | sans-serif | cursive | fantasy | monospace","<geometry-box>":"<shape-box> | fill-box | stroke-box | view-box","<glyph-angle>":function(e){return"angle"===e.type&&"deg"===e.units},"<gradient>":function(e){return"function"===e.type&&/^(?:\-(?:ms|moz|o|webkit)\-)?(?:repeating\-)?(?:radial\-|linear\-)?gradient/i.test(e)},"<icccolor>":"cielab() | cielch() | cielchab() | icc-color() | icc-named-color()","<ident>":function(e){return"identifier"===e.type||e.wasIdent},"<ident-not-generic-family>":function(e){return this["<ident>"](e)&&!this["<generic-family>"](e)},"<image>":"<uri>","<integer>":function(e){return"integer"===e.type},"<length>":function(e){return!("function"!==e.type||!/^(?:\-(?:ms|moz|o|webkit)\-)?calc/i.test(e))||"length"===e.type||"number"===e.type||"integer"===e.type||"0"===String(e)},"<line>":function(e){return"integer"===e.type},"<line-height>":"<number> | <length> | <percentage> | normal","<margin-width>":"<length> | <percentage> | auto","<miterlimit>":function(e){return this["<number>"](e)&&e.value>=1},"<nonnegative-length-or-percentage>":function(e){return(this["<length>"](e)||this["<percentage>"](e))&&("0"===String(e)||"function"===e.type||e.value>=0)},"<nonnegative-number-or-percentage>":function(e){return(this["<number>"](e)||this["<percentage>"](e))&&("0"===String(e)||"function"===e.type||e.value>=0)},"<number>":function(e){return"number"===e.type||this["<integer>"](e)},"<opacity-value>":function(e){return this["<number>"](e)&&e.value>=0&&e.value<=1},"<padding-width>":"<nonnegative-length-or-percentage>","<percentage>":function(e){return"percentage"===e.type||"0"===String(e)},"<relative-size>":"smaller | larger","<shape>":"rect() | inset-rect()","<shape-box>":"<box> | margin-box","<single-animation-direction>":"normal | reverse | alternate | alternate-reverse","<single-animation-name>":function(e){return this["<ident>"](e)&&/^-?[a-z_][-a-z0-9_]+$/i.test(e)&&!/^(none|unset|initial|inherit)$/i.test(e)},"<string>":function(e){return"string"===e.type},"<time>":function(e){return"time"===e.type},"<uri>":function(e){return"uri"===e.type},"<width>":"<margin-width>"},complex:{__proto__:null,"<azimuth>":"<angle> | [ [ left-side | far-left | left | center-left | center | center-right | right | far-right | right-side ] || behind ] | leftwards | rightwards","<bg-position>":"<position>#","<bg-size>":"[ <length> | <percentage> | auto ]{1,2} | cover | contain","<border-image-slice>":a.many([!0],a.cast("<nonnegative-number-or-percentage>"),a.cast("<nonnegative-number-or-percentage>"),a.cast("<nonnegative-number-or-percentage>"),a.cast("<nonnegative-number-or-percentage>"),"fill"),"<border-radius>":"<nonnegative-length-or-percentage>{1,4} [ / <nonnegative-length-or-percentage>{1,4} ]?","<box-shadow>":"none | <shadow>#","<clip-path>":"<basic-shape> || <geometry-box>","<dasharray>":a.cast("<nonnegative-length-or-percentage>").braces(1,1/0,"#",a.cast(",").question()),"<family-name>":"<string> | <ident-not-generic-family> <ident>*","<filter-function-list>":"[ <filter-function> | <uri> ]+","<flex>":"none | [ <flex-grow> <flex-shrink>? || <flex-basis> ]","<font-family>":"[ <generic-family> | <family-name> ]#","<font-shorthand>":"[ <font-style> || <font-variant-css21> || <font-weight> || <font-stretch> ]? <font-size> [ / <line-height> ]? <font-family>","<font-variant-alternates>":"stylistic() || historical-forms || styleset() || character-variant() || swash() || ornaments() || annotation()","<font-variant-ligatures>":"[ common-ligatures | no-common-ligatures ] || [ discretionary-ligatures | no-discretionary-ligatures ] || [ historical-ligatures | no-historical-ligatures ] || [ contextual | no-contextual ]","<font-variant-numeric>":"[ lining-nums | oldstyle-nums ] || [ proportional-nums | tabular-nums ] || [ diagonal-fractions | stacked-fractions ] || ordinal || slashed-zero","<font-variant-east-asian>":"[ jis78 | jis83 | jis90 | jis04 | simplified | traditional ] || [ full-width | proportional-width ] || ruby","<paint>":"<paint-basic> | <uri> <paint-basic>?","<paint-basic>":"none | currentColor | <color-svg> <icccolor>?","<position>":"[ center | [ left | right ] [ <percentage> | <length> ]? ] && [ center | [ top | bottom ] [ <percentage> | <length> ]? ] | [ left | center | right | <percentage> | <length> ] [ top | center | bottom | <percentage> | <length> ] | [ left | center | right | top | bottom | <percentage> | <length> ]","<repeat-style>":"repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2}","<shadow>":a.many([!0],a.cast("<length>").braces(2,4),"inset","<color>"),"<text-decoration-color>":"<color>","<text-decoration-line>":"none | [ underline || overline || line-through || blink ]","<text-decoration-style>":"solid | double | dotted | dashed | wavy","<will-change>":"auto | <animateable-feature>#","<x-one-radius>":"[ <length> | <percentage> ]{1,2}"}},Object.keys(o).forEach((function(e){n[e]=o[e]})),Object.keys(i.simple).forEach((function(e){var t=i.simple[e];"string"==typeof t&&(i.simple[e]=function(e){return i.isLiteral(e,t)})})),Object.keys(i.complex).forEach((function(e){var t=i.complex[e];"string"==typeof t&&(i.complex[e]=a.parse(t))})),i.complex["<font-variant>"]=a.oror({expand:"<font-variant-ligatures>"},{expand:"<font-variant-alternates>"},"<font-variant-caps>",{expand:"<font-variant-numeric>"},{expand:"<font-variant-east-asian>"})},7285:(e,t,r)=>{"use strict";e.exports={Colors:r(8780),Combinator:r(2402),Parser:r(232),PropertyName:r(5556),PropertyValue:r(5076),PropertyValuePart:r(1915),Matcher:r(4022),MediaFeature:r(1899),MediaQuery:r(7567),Selector:r(5548),SelectorPart:r(9890),SelectorSubPart:r(753),Specificity:r(1070),TokenStream:r(3333),Tokens:r(3778),ValidationError:r(3690)}},5366:(e,t,r)=>{"use strict";e.exports={css:r(7285),util:r(2439)}},8053:e=>{"use strict";function t(){this._listeners=Object.create(null)}e.exports=t,t.prototype={constructor:t,addListener:function(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)},fire:function(e){if("string"==typeof e&&(e={type:e}),void 0!==e.target&&(e.target=this),void 0===e.type)throw new Error("Event object missing 'type' property.");if(this._listeners[e.type])for(var t=this._listeners[e.type].concat(),r=0,n=t.length;r<n;r++)t[r].call(this,e)},removeListener:function(e,t){if(this._listeners[e])for(var r=this._listeners[e],n=0,o=r.length;n<o;n++)if(r[n]===t){r.splice(n,1);break}}}},6012:e=>{"use strict";function t(e){this._input=e.replace(/(\r\n?|\n)/g,"\n"),this._line=1,this._col=1,this._cursor=0}e.exports=t,t.prototype={constructor:t,getCol:function(){return this._col},getLine:function(){return this._line},eof:function(){return this._cursor===this._input.length},peek:function(e){var t=null;return e=void 0===e?1:e,this._cursor<this._input.length&&(t=this._input.charAt(this._cursor+e-1)),t},read:function(){var e=null;return this._cursor<this._input.length&&("\n"===this._input.charAt(this._cursor)?(this._line++,this._col=1):this._col++,e=this._input.charAt(this._cursor++)),e},mark:function(){this._bookmark={cursor:this._cursor,line:this._line,col:this._col}},reset:function(){this._bookmark&&(this._cursor=this._bookmark.cursor,this._line=this._bookmark.line,this._col=this._bookmark.col,delete this._bookmark)},readTo:function(e){for(var t,r="";r.length<e.length||r.lastIndexOf(e)!==r.length-e.length;){if(!(t=this.read()))throw new Error('Expected "'+e+'" at line '+this._line+", col "+this._col+".");r+=t}return r},readWhile:function(e){for(var t="",r=this.peek();null!==r&&e(r);)t+=this.read(),r=this.peek();return t},readMatch:function(e){var t=this._input.substring(this._cursor),r=null;return"string"==typeof e?t.slice(0,e.length)===e&&(r=this.readCount(e.length)):e instanceof RegExp&&e.test(t)&&(r=this.readCount(RegExp.lastMatch.length)),r},readCount:function(e){for(var t="";e--;)t+=this.read();return t}}},6912:e=>{"use strict";function t(e,t,r){Error.call(this),this.name=this.constructor.name,this.col=r,this.line=t,this.message=e}e.exports=t,t.prototype=Object.create(Error.prototype),t.prototype.constructor=t},7337:e=>{"use strict";function t(e,t,r,n){this.col=r,this.line=t,this.text=e,this.type=n}e.exports=t,t.fromToken=function(e){return new t(e.value,e.startLine,e.startCol)},t.prototype={constructor:t,valueOf:function(){return this.toString()},toString:function(){return this.text}}},3099:(e,t,r)=>{"use strict";e.exports=i;var n=r(6012),o=r(6912);function i(e,t){this._reader=new n(e?e.toString():""),this._token=null,this._tokenData=t,this._lt=[],this._ltIndex=0,this._ltIndexCache=[]}i.createTokenData=function(e){var t=[],r=Object.create(null),n=e.concat([]),o=0,i=n.length+1;for(n.UNKNOWN=-1,n.unshift({name:"EOF"});o<i;o++)t.push(n[o].name),n[n[o].name]=o,n[o].text&&(r[n[o].text]=o);return n.name=function(e){return t[e]},n.type=function(e){return r[e]},n},i.prototype={constructor:i,match:function(e,t){e instanceof Array||(e=[e]);for(var r=this.get(t),n=0,o=e.length;n<o;)if(r===e[n++])return!0;return this.unget(),!1},mustMatch:function(e){var t;if(e instanceof Array||(e=[e]),!this.match.apply(this,arguments))throw t=this.LT(1),new o("Expected "+this._tokenData[e[0]].name+" at line "+t.startLine+", col "+t.startCol+".",t.startLine,t.startCol)},advance:function(e,t){for(;0!==this.LA(0)&&!this.match(e,t);)this.get();return this.LA(0)},get:function(e){var t,r,n=this._tokenData,o=0;if(this._lt.length&&this._ltIndex>=0&&this._ltIndex<this._lt.length){for(o++,this._token=this._lt[this._ltIndex++],r=n[this._token.type];void 0!==r.channel&&e!==r.channel&&this._ltIndex<this._lt.length;)this._token=this._lt[this._ltIndex++],r=n[this._token.type],o++;if((void 0===r.channel||e===r.channel)&&this._ltIndex<=this._lt.length)return this._ltIndexCache.push(o),this._token.type}return(t=this._getToken()).type>-1&&!n[t.type].hide&&(t.channel=n[t.type].channel,this._token=t,this._lt.push(t),this._ltIndexCache.push(this._lt.length-this._ltIndex+o),this._lt.length>5&&this._lt.shift(),this._ltIndexCache.length>5&&this._ltIndexCache.shift(),this._ltIndex=this._lt.length),(r=n[t.type])&&(r.hide||void 0!==r.channel&&e!==r.channel)?this.get(e):t.type},LA:function(e){var t,r=e;if(e>0){if(e>5)throw new Error("Too much lookahead.");for(;r;)t=this.get(),r--;for(;r<e;)this.unget(),r++}else if(e<0){if(!this._lt[this._ltIndex+e])throw new Error("Too much lookbehind.");t=this._lt[this._ltIndex+e].type}else t=this._token.type;return t},LT:function(e){return this.LA(e),this._lt[this._ltIndex+e-1]},peek:function(){return this.LA(1)},token:function(){return this._token},tokenName:function(e){return e<0||e>this._tokenData.length?"UNKNOWN_TOKEN":this._tokenData[e].name},tokenType:function(e){return this._tokenData[e]||-1},unget:function(){if(!this._ltIndexCache.length)throw new Error("Too much lookahead.");this._ltIndex-=this._ltIndexCache.pop(),this._token=this._lt[this._ltIndex-1]}}},2439:(e,t,r)=>{"use strict";e.exports={StringReader:r(6012),SyntaxError:r(6912),SyntaxUnit:r(7337),EventTarget:r(8053),TokenStreamBase:r(3099)}},8381:function(e){(function(){var t,r,n;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-n)/1e6},r=process.hrtime,n=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})()):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},3412:(e,t,r)=>{"use strict";var n=r(42);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},1193:(e,t,r)=>{e.exports=r(3412)()},42:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5510:(e,t,r)=>{for(var n=r(5083),o="undefined"==typeof window?r.g:window,i=["moz","webkit"],a="AnimationFrame",l=o["request"+a],s=o["cancel"+a]||o["cancelRequest"+a],u=0;!l&&u<i.length;u++)l=o[i[u]+"Request"+a],s=o[i[u]+"Cancel"+a]||o[i[u]+"CancelRequest"+a];if(!l||!s){var c=0,f=0,d=[];l=function(e){if(0===d.length){var t=n(),r=Math.max(0,16.666666666666668-(t-c));c=r+t,setTimeout((function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(r))}return d.push({handle:++f,callback:e,cancelled:!1}),f},s=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}e.exports=function(e){return l.call(o,e)},e.exports.cancel=function(){s.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=l,e.cancelAnimationFrame=s}},5083:function(e){(function(){var t,r,n,o,i,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-i)/1e6},r=process.hrtime,o=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})(),a=1e9*process.uptime(),i=o-a):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},8743:(e,t,r)=>{"use strict";function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}function o(e){return o="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},o(e)}var i,a=(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},i(e,t)},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});t.fk=void 0;var l,s=r(7363),u="undefined"==typeof navigator||!0===r.g.PREVENT_CODEMIRROR_RENDER;u||(l=r(3458));var c=function(){function e(){}return e.equals=function(e,t){var r=this,n=Object.keys,i=o(e),a=o(t);return e&&t&&"object"===i&&i===a?n(e).length===n(t).length&&n(e).every((function(n){return r.equals(e[n],t[n])})):e===t},e}(),f=function(){function e(e,t){this.editor=e,this.props=t}return e.prototype.delegateCursor=function(e,t,r){var n=this.editor.getDoc();r&&this.editor.focus(),t?n.setCursor(e):n.setCursor(e,null,{scroll:!1})},e.prototype.delegateScroll=function(e){this.editor.scrollTo(e.x,e.y)},e.prototype.delegateSelection=function(e,t){this.editor.getDoc().setSelections(e),t&&this.editor.focus()},e.prototype.apply=function(e){e&&e.selection&&e.selection.ranges&&this.delegateSelection(e.selection.ranges,e.selection.focus||!1),e&&e.cursor&&this.delegateCursor(e.cursor,e.autoScroll||!1,this.editor.getOption("autofocus")||!1),e&&e.scroll&&this.delegateScroll(e.scroll)},e.prototype.applyNext=function(e,t,r){e&&e.selection&&e.selection.ranges&&t&&t.selection&&t.selection.ranges&&!c.equals(e.selection.ranges,t.selection.ranges)&&this.delegateSelection(t.selection.ranges,t.selection.focus||!1),e&&e.cursor&&t&&t.cursor&&!c.equals(e.cursor,t.cursor)&&this.delegateCursor(r.cursor||t.cursor,t.autoScroll||!1,t.autoCursor||!1),e&&e.scroll&&t&&t.scroll&&!c.equals(e.scroll,t.scroll)&&this.delegateScroll(t.scroll)},e.prototype.applyUserDefined=function(e,t){t&&t.cursor&&this.delegateCursor(t.cursor,e.autoScroll||!1,this.editor.getOption("autofocus")||!1)},e.prototype.wire=function(e){var t=this;Object.keys(e||{}).filter((function(e){return/^on/.test(e)})).forEach((function(e){switch(e){case"onBlur":t.editor.on("blur",(function(e,r){t.props.onBlur(t.editor,r)}));break;case"onContextMenu":t.editor.on("contextmenu",(function(e,r){t.props.onContextMenu(t.editor,r)}));break;case"onCopy":t.editor.on("copy",(function(e,r){t.props.onCopy(t.editor,r)}));break;case"onCursor":t.editor.on("cursorActivity",(function(e){t.props.onCursor(t.editor,t.editor.getDoc().getCursor())}));break;case"onCursorActivity":t.editor.on("cursorActivity",(function(e){t.props.onCursorActivity(t.editor)}));break;case"onCut":t.editor.on("cut",(function(e,r){t.props.onCut(t.editor,r)}));break;case"onDblClick":t.editor.on("dblclick",(function(e,r){t.props.onDblClick(t.editor,r)}));break;case"onDragEnter":t.editor.on("dragenter",(function(e,r){t.props.onDragEnter(t.editor,r)}));break;case"onDragLeave":t.editor.on("dragleave",(function(e,r){t.props.onDragLeave(t.editor,r)}));break;case"onDragOver":t.editor.on("dragover",(function(e,r){t.props.onDragOver(t.editor,r)}));break;case"onDragStart":t.editor.on("dragstart",(function(e,r){t.props.onDragStart(t.editor,r)}));break;case"onDrop":t.editor.on("drop",(function(e,r){t.props.onDrop(t.editor,r)}));break;case"onFocus":t.editor.on("focus",(function(e,r){t.props.onFocus(t.editor,r)}));break;case"onGutterClick":t.editor.on("gutterClick",(function(e,r,n,o){t.props.onGutterClick(t.editor,r,n,o)}));break;case"onInputRead":t.editor.on("inputRead",(function(e,r){t.props.onInputRead(t.editor,r)}));break;case"onKeyDown":t.editor.on("keydown",(function(e,r){t.props.onKeyDown(t.editor,r)}));break;case"onKeyHandled":t.editor.on("keyHandled",(function(e,r,n){t.props.onKeyHandled(t.editor,r,n)}));break;case"onKeyPress":t.editor.on("keypress",(function(e,r){t.props.onKeyPress(t.editor,r)}));break;case"onKeyUp":t.editor.on("keyup",(function(e,r){t.props.onKeyUp(t.editor,r)}));break;case"onMouseDown":t.editor.on("mousedown",(function(e,r){t.props.onMouseDown(t.editor,r)}));break;case"onPaste":t.editor.on("paste",(function(e,r){t.props.onPaste(t.editor,r)}));break;case"onRenderLine":t.editor.on("renderLine",(function(e,r,n){t.props.onRenderLine(t.editor,r,n)}));break;case"onScroll":t.editor.on("scroll",(function(e){t.props.onScroll(t.editor,t.editor.getScrollInfo())}));break;case"onSelection":t.editor.on("beforeSelectionChange",(function(e,r){t.props.onSelection(t.editor,r)}));break;case"onTouchStart":t.editor.on("touchstart",(function(e,r){t.props.onTouchStart(t.editor,r)}));break;case"onUpdate":t.editor.on("update",(function(e){t.props.onUpdate(t.editor)}));break;case"onViewportChange":t.editor.on("viewportChange",(function(e,r,n){t.props.onViewportChange(t.editor,r,n)}))}}))},e}(),d=function(e){function t(t){var r=e.call(this,t)||this;return u||(r.applied=!1,r.appliedNext=!1,r.appliedUserDefined=!1,r.deferred=null,r.emulating=!1,r.hydrated=!1,r.initCb=function(){r.props.editorDidConfigure&&r.props.editorDidConfigure(r.editor)},r.mounted=!1),r}return a(t,e),t.prototype.hydrate=function(e){var t=this,r=e&&e.options?e.options:{},o=n({},l.defaults,this.editor.options,r);Object.keys(o).some((function(e){return t.editor.getOption(e)!==o[e]}))&&Object.keys(o).forEach((function(e){r.hasOwnProperty(e)&&t.editor.getOption(e)!==o[e]&&(t.editor.setOption(e,o[e]),t.mirror.setOption(e,o[e]))})),this.hydrated||(this.deferred?this.resolveChange(e.value):this.initChange(e.value||"")),this.hydrated=!0},t.prototype.initChange=function(e){this.emulating=!0;var t=this.editor.getDoc(),r=t.lastLine(),n=t.getLine(t.lastLine()).length;t.replaceRange(e||"",{line:0,ch:0},{line:r,ch:n}),this.mirror.setValue(e),t.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},t.prototype.resolveChange=function(e){this.emulating=!0;var t=this.editor.getDoc();if("undo"===this.deferred.origin?t.undo():"redo"===this.deferred.origin?t.redo():t.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),e&&e!==t.getValue()){var r=t.getCursor();t.setValue(e),t.setCursor(r)}this.emulating=!1,this.deferred=null},t.prototype.mirrorChange=function(e){var t=this.editor.getDoc();return"undo"===e.origin?(t.setHistory(this.mirror.getHistory()),this.mirror.undo()):"redo"===e.origin?(t.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(e.text,e.from,e.to,e.origin),this.mirror.getValue()},t.prototype.componentDidMount=function(){var e=this;u||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&l.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=l(this.ref,this.props.options),this.shared=new f(this.editor,this.props),this.mirror=l((function(){}),this.props.options),this.editor.on("electricInput",(function(){e.mirror.setHistory(e.editor.getDoc().getHistory())})),this.editor.on("cursorActivity",(function(){e.mirror.setCursor(e.editor.getDoc().getCursor())})),this.editor.on("beforeChange",(function(t,r){if(!e.emulating){r.cancel(),e.deferred=r;var n=e.mirrorChange(e.deferred);e.props.onBeforeChange&&e.props.onBeforeChange(e.editor,e.deferred,n)}})),this.editor.on("change",(function(t,r){e.mounted&&e.props.onChange&&e.props.onChange(e.editor,r,e.editor.getValue())})),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},t.prototype.componentDidUpdate=function(e){if(!u){var t={cursor:null};this.props.value!==e.value&&(this.hydrated=!1),this.props.autoCursor||void 0===this.props.autoCursor||(t.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(e,this.props,t),this.appliedNext=!0),this.shared.applyUserDefined(e,t),this.appliedUserDefined=!0}},t.prototype.componentWillUnmount=function(){u||this.props.editorWillUnmount&&this.props.editorWillUnmount(l)},t.prototype.shouldComponentUpdate=function(e,t){return!u},t.prototype.render=function(){var e=this;if(u)return null;var t=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return s.createElement("div",{className:t,ref:function(t){return e.ref=t}})},t}(s.Component);t.fk=d,function(e){function t(t){var r=e.call(this,t)||this;return u||(r.applied=!1,r.appliedUserDefined=!1,r.continueChange=!1,r.detached=!1,r.hydrated=!1,r.initCb=function(){r.props.editorDidConfigure&&r.props.editorDidConfigure(r.editor)},r.mounted=!1,r.onBeforeChangeCb=function(){r.continueChange=!0}),r}a(t,e),t.prototype.hydrate=function(e){var t=this,r=e&&e.options?e.options:{},o=n({},l.defaults,this.editor.options,r);if(Object.keys(o).some((function(e){return t.editor.getOption(e)!==o[e]}))&&Object.keys(o).forEach((function(e){r.hasOwnProperty(e)&&t.editor.getOption(e)!==o[e]&&t.editor.setOption(e,o[e])})),!this.hydrated){var i=this.editor.getDoc(),a=i.lastLine(),s=i.getLine(i.lastLine()).length;i.replaceRange(e.value||"",{line:0,ch:0},{line:a,ch:s})}this.hydrated=!0},t.prototype.componentDidMount=function(){var e=this;u||(this.detached=!0===this.props.detach,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&l.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=l(this.ref,this.props.options),this.shared=new f(this.editor,this.props),this.editor.on("beforeChange",(function(t,r){e.props.onBeforeChange&&e.props.onBeforeChange(e.editor,r,e.editor.getValue(),e.onBeforeChangeCb)})),this.editor.on("change",(function(t,r){e.mounted&&e.props.onChange&&(e.props.onBeforeChange?e.continueChange&&e.props.onChange(e.editor,r,e.editor.getValue()):e.props.onChange(e.editor,r,e.editor.getValue()))})),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},t.prototype.componentDidUpdate=function(e){if(this.detached&&!1===this.props.detach&&(this.detached=!1,e.editorDidAttach&&e.editorDidAttach(this.editor)),this.detached||!0!==this.props.detach||(this.detached=!0,e.editorDidDetach&&e.editorDidDetach(this.editor)),!u&&!this.detached){var t={cursor:null};this.props.value!==e.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),e.autoCursor||void 0===e.autoCursor||(t.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(e),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(e,t),this.appliedUserDefined=!0)}},t.prototype.componentWillUnmount=function(){u||this.props.editorWillUnmount&&this.props.editorWillUnmount(l)},t.prototype.shouldComponentUpdate=function(e,t){var r=!0;return u&&(r=!1),this.detached&&e.detach&&(r=!1),r},t.prototype.render=function(){var e=this;if(u)return null;var t=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return s.createElement("div",{className:t,ref:function(t){return e.ref=t}})}}(s.Component)},2130:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return f.default}}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,r&&r.set(e,o);return o}(r(7363)),i=h(r(4310)),a=h(r(1533)),l=h(r(1443)),s=r(287),u=r(9769),c=r(9899),f=h(r(1665)),d=h(r(4893)),p=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function h(e){return e&&e.__esModule?e:{default:e}}function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(this,arguments)}function g(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(e,t)}(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 _(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function S(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 r,o=E(e);if(t){var i=E(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}(this,r)}}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T=function(e){!function(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&&k(e,t)}(c,e);var t,r,n,i=S(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),C(O(t=i.call(this,e)),"onDragStart",(function(e,r){if((0,d.default)("Draggable: onDragStart: %j",r),!1===t.props.onStart(e,(0,u.createDraggableData)(O(t),r)))return!1;t.setState({dragging:!0,dragged:!0})})),C(O(t),"onDrag",(function(e,r){if(!t.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",r);var n=(0,u.createDraggableData)(O(t),r),o={x:n.x,y:n.y};if(t.props.bounds){var i=o.x,a=o.y;o.x+=t.state.slackX,o.y+=t.state.slackY;var l=w((0,u.getBoundPosition)(O(t),o.x,o.y),2),s=l[0],c=l[1];o.x=s,o.y=c,o.slackX=t.state.slackX+(i-o.x),o.slackY=t.state.slackY+(a-o.y),n.x=o.x,n.y=o.y,n.deltaX=o.x-t.state.x,n.deltaY=o.y-t.state.y}if(!1===t.props.onDrag(e,n))return!1;t.setState(o)})),C(O(t),"onDragStop",(function(e,r){if(!t.state.dragging)return!1;if(!1===t.props.onStop(e,(0,u.createDraggableData)(O(t),r)))return!1;(0,d.default)("Draggable: onDragStop: %j",r);var n={dragging:!1,slackX:0,slackY:0};if(Boolean(t.props.position)){var o=t.props.position,i=o.x,a=o.y;n.x=i,n.y=a}t.setState(n)})),t.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:b({},e.position),slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),t}return t=c,n=[{key:"getDerivedStateFromProps",value:function(e,t){var r=e.position,n=t.prevPropsPosition;return!r||n&&r.x===n.x&&r.y===n.y?null:((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:r,prevPropsPosition:n}),{x:r.x,y:r.y,prevPropsPosition:b({},r)})}}],(r=[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var e,t,r;return null!==(e=null===(t=this.props)||void 0===t||null===(r=t.nodeRef)||void 0===r?void 0:r.current)&&void 0!==e?e:a.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,r=(t.axis,t.bounds,t.children),n=t.defaultPosition,i=t.defaultClassName,a=t.defaultClassNameDragging,c=t.defaultClassNameDragged,d=t.position,h=t.positionOffset,m=(t.scale,g(t,p)),y={},w=null,_=!Boolean(d)||this.state.dragging,x=d||n,k={x:(0,u.canDragX)(this)&&_?this.state.x:x.x,y:(0,u.canDragY)(this)&&_?this.state.y:x.y};this.state.isElementSVG?w=(0,s.createSVGTransform)(k,h):y=(0,s.createCSSTransform)(k,h);var S=(0,l.default)(r.props.className||"",i,(C(e={},a,this.state.dragging),C(e,c,this.state.dragged),e));return o.createElement(f.default,v({},m,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(r),{className:S,style:b(b({},r.props.style),y),transform:w}))}}])&&x(t.prototype,r),n&&x(t,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component);t.default=T,C(T,"displayName","Draggable"),C(T,"propTypes",b(b({},f.default.propTypes),{},{axis:i.default.oneOf(["both","x","y","none"]),bounds:i.default.oneOfType([i.default.shape({left:i.default.number,right:i.default.number,top:i.default.number,bottom:i.default.number}),i.default.string,i.default.oneOf([!1])]),defaultClassName:i.default.string,defaultClassNameDragging:i.default.string,defaultClassNameDragged:i.default.string,defaultPosition:i.default.shape({x:i.default.number,y:i.default.number}),positionOffset:i.default.shape({x:i.default.oneOfType([i.default.number,i.default.string]),y:i.default.oneOfType([i.default.number,i.default.string])}),position:i.default.shape({x:i.default.number,y:i.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe})),C(T,"defaultProps",b(b({},f.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},1665:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,r&&r.set(e,o);return o}(r(7363)),i=f(r(4310)),a=f(r(1533)),l=r(287),s=r(9769),u=r(9899),c=f(r(4893));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function g(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 r,o=b(e);if(t){var i=b(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}(this,r)}}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _={start:"touchstart",move:"touchmove",stop:"touchend"},x={start:"mousedown",move:"mousemove",stop:"mouseup"},k=x,S=function(e){!function(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&&v(e,t)}(u,e);var t,r,n,i=g(u);function u(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(y(e=i.call.apply(i,[this].concat(r))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),w(y(e),"mounted",!1),w(y(e),"handleDragStart",(function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var r=e.findDOMNode();if(!r||!r.ownerDocument||!r.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var n=r.ownerDocument;if(!(e.props.disabled||!(t.target instanceof n.defaultView.Node)||e.props.handle&&!(0,l.matchesSelectorAndParentsTo)(t.target,e.props.handle,r)||e.props.cancel&&(0,l.matchesSelectorAndParentsTo)(t.target,e.props.cancel,r))){"touchstart"===t.type&&t.preventDefault();var o=(0,l.getTouchIdentifier)(t);e.setState({touchIdentifier:o});var i=(0,s.getControlPosition)(t,o,y(e));if(null!=i){var a=i.x,u=i.y,f=(0,s.createCoreData)(y(e),a,u);(0,c.default)("DraggableCore: handleDragStart: %j",f),(0,c.default)("calling",e.props.onStart),!1!==e.props.onStart(t,f)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,l.addUserSelectStyles)(n),e.setState({dragging:!0,lastX:a,lastY:u}),(0,l.addEvent)(n,k.move,e.handleDrag),(0,l.addEvent)(n,k.stop,e.handleDragStop))}}})),w(y(e),"handleDrag",(function(t){var r=(0,s.getControlPosition)(t,e.state.touchIdentifier,y(e));if(null!=r){var n=r.x,o=r.y;if(Array.isArray(e.props.grid)){var i=n-e.state.lastX,a=o-e.state.lastY,l=p((0,s.snapToGrid)(e.props.grid,i,a),2);if(i=l[0],a=l[1],!i&&!a)return;n=e.state.lastX+i,o=e.state.lastY+a}var u=(0,s.createCoreData)(y(e),n,o);if((0,c.default)("DraggableCore: handleDrag: %j",u),!1!==e.props.onDrag(t,u)&&!1!==e.mounted)e.setState({lastX:n,lastY:o});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(t){var f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(f)}}})),w(y(e),"handleDragStop",(function(t){if(e.state.dragging){var r=(0,s.getControlPosition)(t,e.state.touchIdentifier,y(e));if(null!=r){var n=r.x,o=r.y;if(Array.isArray(e.props.grid)){var i=n-e.state.lastX||0,a=o-e.state.lastY||0,u=p((0,s.snapToGrid)(e.props.grid,i,a),2);i=u[0],a=u[1],n=e.state.lastX+i,o=e.state.lastY+a}var f=(0,s.createCoreData)(y(e),n,o);if(!1===e.props.onStop(t,f)||!1===e.mounted)return!1;var d=e.findDOMNode();d&&e.props.enableUserSelectHack&&(0,l.removeUserSelectStyles)(d.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",f),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),d&&((0,c.default)("DraggableCore: Removing handlers"),(0,l.removeEvent)(d.ownerDocument,k.move,e.handleDrag),(0,l.removeEvent)(d.ownerDocument,k.stop,e.handleDragStop))}}})),w(y(e),"onMouseDown",(function(t){return k=x,e.handleDragStart(t)})),w(y(e),"onMouseUp",(function(t){return k=x,e.handleDragStop(t)})),w(y(e),"onTouchStart",(function(t){return k=_,e.handleDragStart(t)})),w(y(e),"onTouchEnd",(function(t){return k=_,e.handleDragStop(t)})),e}return t=u,(r=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,l.addEvent)(e,_.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,l.removeEvent)(t,x.move,this.handleDrag),(0,l.removeEvent)(t,_.move,this.handleDrag),(0,l.removeEvent)(t,x.stop,this.handleDragStop),(0,l.removeEvent)(t,_.stop,this.handleDragStop),(0,l.removeEvent)(e,_.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,l.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){var e,t,r;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(r=t.nodeRef)||void 0===r?void 0:r.current:a.default.findDOMNode(this)}},{key:"render",value:function(){return o.cloneElement(o.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&m(t.prototype,r),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.Component);t.default=S,w(S,"displayName","DraggableCore"),w(S,"propTypes",{allowAnyClick:i.default.bool,disabled:i.default.bool,enableUserSelectHack:i.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:i.default.arrayOf(i.default.number),handle:i.default.string,cancel:i.default.string,nodeRef:i.default.object,onStart:i.default.func,onDrag:i.default.func,onStop:i.default.func,onMouseDown:i.default.func,scale:i.default.number,className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),w(S,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},5838:(e,t,r)=>{"use strict";var n=r(2130),o=n.default,i=n.DraggableCore;e.exports=o,e.exports.default=o,e.exports.DraggableCore=i},287:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=p,t.addEvent=function(e,t,r,n){if(!e)return;var o=s({capture:!0},n);e.addEventListener?e.addEventListener(t,r,o):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r},t.addUserSelectStyles=function(e){if(!e)return;var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&p(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function(e,t){var r=d(e,t,"px");return u({},(0,i.browserPrefixToKey)("transform",i.default),r)},t.createSVGTransform=function(e,t){return d(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,o.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,o.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.getTranslation=d,t.innerHeight=function(e){var t=e.clientHeight,r=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(r.paddingTop),t-=(0,o.int)(r.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,r=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,o.int)(r.paddingLeft),t-=(0,o.int)(r.paddingRight)},t.matchesSelector=f,t.matchesSelectorAndParentsTo=function(e,t,r){var n=e;do{if(f(n,t))return!0;if(n===r)return!1;n=n.parentNode}while(n);return!1},t.offsetXYFromParent=function(e,t,r){var n=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-n.left)/r,i=(e.clientY+t.scrollTop-n.top)/r;return{x:o,y:i}},t.outerHeight=function(e){var t=e.clientHeight,r=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(r.borderTopWidth),t+=(0,o.int)(r.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,r=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,o.int)(r.borderLeftWidth),t+=(0,o.int)(r.borderRightWidth)},t.removeClassName=h,t.removeEvent=function(e,t,r,n){if(!e)return;var o=s({capture:!0},n);e.removeEventListener?e.removeEventListener(t,r,o):e.detachEvent?e.detachEvent("on"+t,r):e["on"+t]=null},t.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&h(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var o=r(9899),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var s=i?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(o,l,s):o[l]=e[l]}o.default=e,r&&r.set(e,o);return o}(r(9118));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c="";function f(e,t){return c||(c=(0,o.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,o.isFunction)(e[t])}))),!!(0,o.isFunction)(e[c])&&e[c](t)}function d(e,t,r){var n=e.x,o=e.y,i="translate(".concat(n).concat(r,",").concat(o).concat(r,")");if(t){var a="".concat("string"==typeof t.x?t.x:t.x+r),l="".concat("string"==typeof t.y?t.y:t.y+r);i="translate(".concat(a,", ").concat(l,")")+i}return i}function p(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function h(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}},9118:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=o,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0,t.getPrefix=n;var r=["Moz","Webkit","O","ms"];function n(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";var i=null===(e=window.document)||void 0===e||null===(t=e.documentElement)||void 0===t?void 0:t.style;if(!i)return"";if(n in i)return"";for(var a=0;a<r.length;a++)if(o(n,r[a])in i)return r[a];return""}function o(e,t){return t?"".concat(t).concat(function(e){for(var t="",r=!0,n=0;n<e.length;n++)r?(t+=e[n].toUpperCase(),r=!1):"-"===e[n]?r=!0:t+=e[n];return t}(e)):e}var i=n();t.default=i},4893:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){0}},9769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,r){var o=e.state,a=!(0,n.isNum)(o.lastX),l=i(e);return a?{node:l,deltaX:0,deltaY:0,lastX:t,lastY:r,x:t,y:r}:{node:l,deltaX:t-o.lastX,deltaY:r-o.lastY,lastX:o.lastX,lastY:o.lastY,x:t,y:r}},t.createDraggableData=function(e,t){var r=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/r,y:e.state.y+t.deltaY/r,deltaX:t.deltaX/r,deltaY:t.deltaY/r,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,r){if(!e.props.bounds)return[t,r];var a=e.props.bounds;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);var l=i(e);if("string"==typeof a){var s,u=l.ownerDocument,c=u.defaultView;if(!((s="parent"===a?l.parentNode:u.querySelector(a))instanceof c.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');var f=s,d=c.getComputedStyle(l),p=c.getComputedStyle(f);a={left:-l.offsetLeft+(0,n.int)(p.paddingLeft)+(0,n.int)(d.marginLeft),top:-l.offsetTop+(0,n.int)(p.paddingTop)+(0,n.int)(d.marginTop),right:(0,o.innerWidth)(f)-(0,o.outerWidth)(l)-l.offsetLeft+(0,n.int)(p.paddingRight)-(0,n.int)(d.marginRight),bottom:(0,o.innerHeight)(f)-(0,o.outerHeight)(l)-l.offsetTop+(0,n.int)(p.paddingBottom)-(0,n.int)(d.marginBottom)}}(0,n.isNum)(a.right)&&(t=Math.min(t,a.right));(0,n.isNum)(a.bottom)&&(r=Math.min(r,a.bottom));(0,n.isNum)(a.left)&&(t=Math.max(t,a.left));(0,n.isNum)(a.top)&&(r=Math.max(r,a.top));return[t,r]},t.getControlPosition=function(e,t,r){var n="number"==typeof t?(0,o.getTouch)(e,t):null;if("number"==typeof t&&!n)return null;var a=i(r),l=r.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,o.offsetXYFromParent)(n||e,l,r.props.scale)},t.snapToGrid=function(e,t,r){var n=Math.round(t/e[0])*e[0],o=Math.round(r/e[1])*e[1];return[n,o]};var n=r(9899),o=r(287);function i(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},9899:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,r){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(r," - do not set this, set it on the child."))},t.findInArray=function(e,t){for(var r=0,n=e.length;r<n;r++)if(t.apply(t,[e[r],r,e]))return e[r]},t.int=function(e){return parseInt(e,10)},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)}},5972:(e,t,r)=>{"use strict";var n=r(3311);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},4310:(e,t,r)=>{e.exports=r(5972)()},3311:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6057:(e,t,r)=>{"use strict";var n=function(e){return e&&"object"==typeof e&&"default"in e?e.default:e}(r(7363)),o=!1;"undefined"!=typeof window&&(o="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch);var i=o,a={borderRadius:"inherit",height:"100%",left:0,position:"absolute",top:0,width:"100%"};function l(e,t,r,n){return r*((e=e/n-1)*e*e*e*e+1)+t}var s=Math.sqrt(2),u=Math.cos,c=Math.max,f=Math.min;function d(e){return f(e.duration,Date.now()-e.mouseDown)}function p(e){return 0<e.mouseUp?Date.now()-e.mouseUp:0}function h(e){var t=e.duration,r=e.radius,n=.85*l(d(e),0,r,t),o=.15*l(p(e),0,r,t),i=.02*r*u(Date.now()/t);return c(0,n+o+i)}function m(e,t,r){return r||f(.6*c(e,t))}function v(e,t){return l(p(e),t,-t,e.duration)}function g(e,t){return f(v(e,t),l(d(e),0,.3,3*e.duration))}function y(e,t,r){return f(1,h(e)/t*2/s)*(r/2-e.x)}function b(e,t,r){return f(1,h(e)/t*2/s)*(r/2-e.y)}function w(e){return h(e)/e.radius}var _=function(e){var t=e.mouseUp,r=e.duration;return!t||Date.now()-t<r};function x(e){var t,r=[],n=!1,o={each:function(e,t){for(var n=0,o=r.length;n<o;n++)e.call(t,r[n])},play:function(){n||(n=!0,o.update())},stop:function(){n=!1,cancelAnimationFrame(t)},getTotalOpacity:function(e){for(var t=0,n=0,o=r.length;n<o;n++)t+=g(r[n],e);return t},update:function(){(r=r.filter(_)).length?t=requestAnimationFrame(o.update):o.stop(),e()},add:function(e){r.push(e),o.play()},release:function(e){for(var t=r.length-1;0<=t;t--)if(!r[t].mouseUp)return r[t].mouseUp=e}};return o}function k(){for(var e=arguments,t={},r=0;r<arguments.length;r++){var n=e[r];if(n)for(var o in n)t[o]=n[o]}return t}var S=2*Math.PI,O={background:!0,className:"ink",duration:1e3,opacity:.25,recenter:!0,hasTouch:i},E=function(e){function t(t){e.apply(this,arguments),this.state={color:"transparent",density:1,height:0,store:x(this.tick.bind(this)),width:0},this.touchEvents=this.touchEvents()}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.touchEvents=function(){return this.props.hasTouch?{onTouchStart:this.t.bind(this),onTouchEnd:this.n.bind(this),onTouchCancel:this.n.bind(this)}:{onMouseDown:this.t.bind(this),onMouseUp:this.n.bind(this),onMouseLeave:this.n.bind(this)}},t.prototype.tick=function(){var e=this.state,t=e.ctx,r=e.color,n=e.density,o=e.height,i=e.width,a=e.store;t.save(),t.scale(n,n),t.clearRect(0,0,i,o),t.fillStyle=r,this.props.background&&(t.globalAlpha=a.getTotalOpacity(this.props.opacity),t.fillRect(0,0,i,o)),a.each(this.makeBlot,this),t.restore()},t.prototype.makeBlot=function(e){var t=this.state,r=t.ctx,n=t.height,o=t.width,i=e.x,a=e.y,l=e.radius;if(r.globalAlpha=v(e,this.props.opacity),r.beginPath(),this.props.recenter){var s=Math.max(n,o);i+=y(e,s,o),a+=b(e,s,n)}r.arc(i,a,l*w(e),0,S),r.closePath(),r.fill()},t.prototype.componentWillUnmount=function(){this.state.store.stop()},t.prototype.pushBlot=function(e,t,r){var n=this,o=this.canvas;o.getDOMNode&&"function"==typeof o.getDOMNode&&(o=o.getDOMNode());var i=o.getBoundingClientRect(),a=i.top,l=i.bottom,s=i.left,u=i.right,c=window.getComputedStyle(o).color,f=this.state.ctx||o.getContext("2d"),d=function(e){return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}(f),p=l-a,h=u-s,v=m(p,h,this.props.radius);this.setState({color:c,ctx:f,density:d,height:p,width:h},(function(){n.state.store.add({duration:n.props.duration,mouseDown:e,mouseUp:0,radius:v,x:t-s,y:r-a})}))},t.prototype.setCanvas=function(e){this.canvas=e},t.prototype.render=function(){var e=this.state,t=e.density,r=e.height,o=e.width,i=this.props,l=i.className,s=i.style,u=k({className:l,ref:this.setCanvas.bind(this),height:r*t,width:o*t,onDragOver:this.n,style:k(a,s)},this.touchEvents);return n.createElement("canvas",u)},t.prototype.t=function(e){var t=e.button,r=e.ctrlKey,n=e.clientX,o=e.clientY,i=e.changedTouches,a=Date.now();if(i)for(var l=0;l<i.length;l++){var s=i[l],u=s.clientX,c=s.clientY;this.pushBlot(a,u,c)}else 0!==t||r||this.pushBlot(a,n,o)},t.prototype.n=function(){this.state.store.release(Date.now())},t}(n.PureComponent);E.defaultProps=O,e.exports=E},2536:(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(r(9971)),l=i(r(3534)),s=i(r(4676)),u=i(r(8381)),c=i(r(5510)),f=i(r(1363)),d=i(r(7363)),p=i(r(1193)),h=1e3/60,m=function(e){function t(r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.wasAnimating=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyle=null,this.clearUnreadPropStyle=function(e){var t=!1,r=o.state,i=r.currentStyle,a=r.currentVelocity,l=r.lastIdealStyle,s=r.lastIdealVelocity;for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)){var c=e[u];"number"==typeof c&&(t||(t=!0,i=n({},i),a=n({},a),l=n({},l),s=n({},s)),i[u]=c,a[u]=0,l[u]=c,s[u]=0)}t&&o.setState({currentStyle:i,currentVelocity:a,lastIdealStyle:l,lastIdealVelocity:s})},this.startAnimationIfNecessary=function(){o.animationID=c.default((function(e){var t=o.props.style;if(f.default(o.state.currentStyle,t,o.state.currentVelocity))return o.wasAnimating&&o.props.onRest&&o.props.onRest(),o.animationID=null,o.wasAnimating=!1,void(o.accumulatedTime=0);o.wasAnimating=!0;var r=e||u.default(),n=r-o.prevTime;if(o.prevTime=r,o.accumulatedTime=o.accumulatedTime+n,o.accumulatedTime>10*h&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();var i=(o.accumulatedTime-Math.floor(o.accumulatedTime/h)*h)/h,a=Math.floor(o.accumulatedTime/h),l={},c={},d={},p={};for(var m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var v=t[m];if("number"==typeof v)d[m]=v,p[m]=0,l[m]=v,c[m]=0;else{for(var g=o.state.lastIdealStyle[m],y=o.state.lastIdealVelocity[m],b=0;b<a;b++){var w=s.default(h/1e3,g,y,v.val,v.stiffness,v.damping,v.precision);g=w[0],y=w[1]}var _=s.default(h/1e3,g,y,v.val,v.stiffness,v.damping,v.precision),x=_[0],k=_[1];d[m]=g+(x-g)*i,p[m]=y+(k-y)*i,l[m]=g,c[m]=y}}o.animationID=null,o.accumulatedTime-=a*h,o.setState({currentStyle:d,currentVelocity:p,lastIdealStyle:l,lastIdealVelocity:c}),o.unreadPropStyle=null,o.startAnimationIfNecessary()}))},this.state=this.defaultState()}return 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)}(t,e),o(t,null,[{key:"propTypes",value:{defaultStyle:p.default.objectOf(p.default.number),style:p.default.objectOf(p.default.oneOfType([p.default.number,p.default.object])).isRequired,children:p.default.func.isRequired,onRest:p.default.func},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyle,r=e.style,n=t||l.default(r),o=a.default(n);return{currentStyle:n,currentVelocity:o,lastIdealStyle:n,lastIdealVelocity:o}},t.prototype.componentDidMount=function(){this.prevTime=u.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyle&&this.clearUnreadPropStyle(this.unreadPropStyle),this.unreadPropStyle=e.style,null==this.animationID&&(this.prevTime=u.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(c.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyle);return e&&d.default.Children.only(e)},t}(d.default.Component);t.default=m,e.exports=t.default},5831:(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(r(9971)),l=i(r(3534)),s=i(r(4676)),u=i(r(8381)),c=i(r(5510)),f=i(r(1363)),d=i(r(7363)),p=i(r(1193)),h=1e3/60;var m=function(e){function t(r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=o.state,r=t.currentStyles,i=t.currentVelocities,a=t.lastIdealStyles,l=t.lastIdealVelocities,s=!1,u=0;u<e.length;u++){var c=e[u],f=!1;for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)){var p=c[d];"number"==typeof p&&(f||(f=!0,s=!0,r[u]=n({},r[u]),i[u]=n({},i[u]),a[u]=n({},a[u]),l[u]=n({},l[u])),r[u][d]=p,i[u][d]=0,a[u][d]=p,l[u][d]=0)}}s&&o.setState({currentStyles:r,currentVelocities:i,lastIdealStyles:a,lastIdealVelocities:l})},this.startAnimationIfNecessary=function(){o.animationID=c.default((function(e){var t=o.props.styles(o.state.lastIdealStyles);if(function(e,t,r){for(var n=0;n<e.length;n++)if(!f.default(e[n],t[n],r[n]))return!1;return!0}(o.state.currentStyles,t,o.state.currentVelocities))return o.animationID=null,void(o.accumulatedTime=0);var r=e||u.default(),n=r-o.prevTime;if(o.prevTime=r,o.accumulatedTime=o.accumulatedTime+n,o.accumulatedTime>10*h&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();for(var i=(o.accumulatedTime-Math.floor(o.accumulatedTime/h)*h)/h,a=Math.floor(o.accumulatedTime/h),l=[],c=[],d=[],p=[],m=0;m<t.length;m++){var v=t[m],g={},y={},b={},w={};for(var _ in v)if(Object.prototype.hasOwnProperty.call(v,_)){var x=v[_];if("number"==typeof x)g[_]=x,y[_]=0,b[_]=x,w[_]=0;else{for(var k=o.state.lastIdealStyles[m][_],S=o.state.lastIdealVelocities[m][_],O=0;O<a;O++){var E=s.default(h/1e3,k,S,x.val,x.stiffness,x.damping,x.precision);k=E[0],S=E[1]}var C=s.default(h/1e3,k,S,x.val,x.stiffness,x.damping,x.precision),T=C[0],L=C[1];g[_]=k+(T-k)*i,y[_]=S+(L-S)*i,b[_]=k,w[_]=S}}d[m]=g,p[m]=y,l[m]=b,c[m]=w}o.animationID=null,o.accumulatedTime-=a*h,o.setState({currentStyles:d,currentVelocities:p,lastIdealStyles:l,lastIdealVelocities:c}),o.unreadPropStyles=null,o.startAnimationIfNecessary()}))},this.state=this.defaultState()}return 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)}(t,e),o(t,null,[{key:"propTypes",value:{defaultStyles:p.default.arrayOf(p.default.objectOf(p.default.number)),styles:p.default.func.isRequired,children:p.default.func.isRequired},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,r=e.styles,n=t||r().map(l.default),o=n.map((function(e){return a.default(e)}));return{currentStyles:n,currentVelocities:o,lastIdealStyles:n,lastIdealVelocities:o}},t.prototype.componentDidMount=function(){this.prevTime=u.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles),this.unreadPropStyles=e.styles(this.state.lastIdealStyles),null==this.animationID&&(this.prevTime=u.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(c.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyles);return e&&d.default.Children.only(e)},t}(d.default.Component);t.default=m,e.exports=t.default},2509:(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(r(9971)),l=i(r(3534)),s=i(r(4676)),u=i(r(5790)),c=i(r(8381)),f=i(r(5510)),d=i(r(1363)),p=i(r(7363)),h=i(r(1193)),m=1e3/60;function v(e,t,r){var n=t;return null==n?e.map((function(e,t){return{key:e.key,data:e.data,style:r[t]}})):e.map((function(e,t){for(var o=0;o<n.length;o++)if(n[o].key===e.key)return{key:n[o].key,data:n[o].data,style:r[t]};return{key:e.key,data:e.data,style:r[t]}}))}function g(e,t,r,n,o,i,l,s,c){for(var f=u.default(n,o,(function(e,n){var o=t(n);return null==o||d.default(i[e],o,l[e])?(r({key:n.key,data:n.data}),null):{key:n.key,data:n.data,style:o}})),p=[],h=[],m=[],v=[],g=0;g<f.length;g++){for(var y=f[g],b=null,w=0;w<n.length;w++)if(n[w].key===y.key){b=w;break}if(null==b){var _=e(y);p[g]=_,m[g]=_;var x=a.default(y.style);h[g]=x,v[g]=x}else p[g]=i[b],m[g]=s[b],h[g]=l[b],v[g]=c[b]}return[f,p,h,m,v]}var y=function(e){function t(r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,r),this.unmounting=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=g(o.props.willEnter,o.props.willLeave,o.props.didLeave,o.state.mergedPropsStyles,e,o.state.currentStyles,o.state.currentVelocities,o.state.lastIdealStyles,o.state.lastIdealVelocities),r=t[0],i=t[1],a=t[2],l=t[3],s=t[4],u=0;u<e.length;u++){var c=e[u].style,f=!1;for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)){var p=c[d];"number"==typeof p&&(f||(f=!0,i[u]=n({},i[u]),a[u]=n({},a[u]),l[u]=n({},l[u]),s[u]=n({},s[u]),r[u]={key:r[u].key,data:r[u].data,style:n({},r[u].style)}),i[u][d]=p,a[u][d]=0,l[u][d]=p,s[u][d]=0,r[u].style[d]=p)}}o.setState({currentStyles:i,currentVelocities:a,mergedPropsStyles:r,lastIdealStyles:l,lastIdealVelocities:s})},this.startAnimationIfNecessary=function(){o.unmounting||(o.animationID=f.default((function(e){if(!o.unmounting){var t=o.props.styles,r="function"==typeof t?t(v(o.state.mergedPropsStyles,o.unreadPropStyles,o.state.lastIdealStyles)):t;if(function(e,t,r,n){if(n.length!==t.length)return!1;for(var o=0;o<n.length;o++)if(n[o].key!==t[o].key)return!1;for(o=0;o<n.length;o++)if(!d.default(e[o],t[o].style,r[o]))return!1;return!0}(o.state.currentStyles,r,o.state.currentVelocities,o.state.mergedPropsStyles))return o.animationID=null,void(o.accumulatedTime=0);var n=e||c.default(),i=n-o.prevTime;if(o.prevTime=n,o.accumulatedTime=o.accumulatedTime+i,o.accumulatedTime>10*m&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();for(var a=(o.accumulatedTime-Math.floor(o.accumulatedTime/m)*m)/m,l=Math.floor(o.accumulatedTime/m),u=g(o.props.willEnter,o.props.willLeave,o.props.didLeave,o.state.mergedPropsStyles,r,o.state.currentStyles,o.state.currentVelocities,o.state.lastIdealStyles,o.state.lastIdealVelocities),f=u[0],p=u[1],h=u[2],y=u[3],b=u[4],w=0;w<f.length;w++){var _=f[w].style,x={},k={},S={},O={};for(var E in _)if(Object.prototype.hasOwnProperty.call(_,E)){var C=_[E];if("number"==typeof C)x[E]=C,k[E]=0,S[E]=C,O[E]=0;else{for(var T=y[w][E],L=b[w][E],M=0;M<l;M++){var A=s.default(m/1e3,T,L,C.val,C.stiffness,C.damping,C.precision);T=A[0],L=A[1]}var j=s.default(m/1e3,T,L,C.val,C.stiffness,C.damping,C.precision),P=j[0],I=j[1];x[E]=T+(P-T)*a,k[E]=L+(I-L)*a,S[E]=T,O[E]=L}}y[w]=S,b[w]=O,p[w]=x,h[w]=k}o.animationID=null,o.accumulatedTime-=l*m,o.setState({currentStyles:p,currentVelocities:h,lastIdealStyles:y,lastIdealVelocities:b,mergedPropsStyles:f}),o.unreadPropStyles=null,o.startAnimationIfNecessary()}})))},this.state=this.defaultState()}return 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)}(t,e),o(t,null,[{key:"propTypes",value:{defaultStyles:h.default.arrayOf(h.default.shape({key:h.default.string.isRequired,data:h.default.any,style:h.default.objectOf(h.default.number).isRequired})),styles:h.default.oneOfType([h.default.func,h.default.arrayOf(h.default.shape({key:h.default.string.isRequired,data:h.default.any,style:h.default.objectOf(h.default.oneOfType([h.default.number,h.default.object])).isRequired}))]).isRequired,children:h.default.func.isRequired,willEnter:h.default.func,willLeave:h.default.func,didLeave:h.default.func},enumerable:!0},{key:"defaultProps",value:{willEnter:function(e){return l.default(e.style)},willLeave:function(){return null},didLeave:function(){}},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,r=e.styles,n=e.willEnter,o=e.willLeave,i=e.didLeave,s="function"==typeof r?r(t):r,u=void 0;u=null==t?s:t.map((function(e){for(var t=0;t<s.length;t++)if(s[t].key===e.key)return s[t];return e}));var c=null==t?s.map((function(e){return l.default(e.style)})):t.map((function(e){return l.default(e.style)})),f=null==t?s.map((function(e){return a.default(e.style)})):t.map((function(e){return a.default(e.style)})),d=g(n,o,i,u,s,c,f,c,f),p=d[0];return{currentStyles:d[1],currentVelocities:d[2],lastIdealStyles:d[3],lastIdealVelocities:d[4],mergedPropsStyles:p}},t.prototype.componentDidMount=function(){this.prevTime=c.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles);var t=e.styles;this.unreadPropStyles="function"==typeof t?t(v(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles)):t,null==this.animationID&&(this.prevTime=c.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){this.unmounting=!0,null!=this.animationID&&(f.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=v(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles),t=this.props.children(e);return t&&p.default.Children.only(t)},t}(p.default.Component);t.default=y,e.exports=t.default},9971:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=0);return t},e.exports=t.default},5790:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n={},o=0;o<e.length;o++)n[e[o].key]=o;var i={};for(o=0;o<t.length;o++)i[t[o].key]=o;var a=[];for(o=0;o<t.length;o++)a[o]=t[o];for(o=0;o<e.length;o++)if(!Object.prototype.hasOwnProperty.call(i,e[o].key)){var l=r(o,e[o]);null!=l&&a.push(l)}return a.sort((function(e,r){var o=i[e.key],a=i[r.key],l=n[e.key],s=n[r.key];if(null!=o&&null!=a)return i[e.key]-i[r.key];if(null!=l&&null!=s)return n[e.key]-n[r.key];if(null!=o){for(var u=0;u<t.length;u++){var c=t[u].key;if(Object.prototype.hasOwnProperty.call(n,c)){if(o<i[c]&&s>n[c])return-1;if(o>i[c]&&s<n[c])return 1}}return 1}for(u=0;u<t.length;u++){c=t[u].key;if(Object.prototype.hasOwnProperty.call(n,c)){if(a<i[c]&&l>n[c])return 1;if(a>i[c]&&l<n[c])return-1}}return-1}))},e.exports=t.default},5826:(e,t)=>{"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},9070:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e.default:e}var o=r(2536);t.y_=n(o),n(r(5831)),n(r(2509));var i=r(3569);t.ST=n(i),n(r(5826)),n(r(3534)),n(r(1381))},1381:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){0};e.exports=t.default},1363:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(0!==r[n])return!1;var o="number"==typeof t[n]?t[n]:t[n].val;if(e[n]!==o)return!1}return!0},e.exports=t.default},3569:(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.default=function(e,t){return n({},l,t,{val:e})};var o,i=r(5826),a=(o=i)&&o.__esModule?o:{default:o},l=n({},a.default.noWobble,{precision:.01});e.exports=t.default},4676:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,n,o,i,a,l){var s=n+(-i*(t-o)+-a*n)*e,u=t+s*e;if(Math.abs(s)<l&&Math.abs(u-o)<l)return r[0]=o,r[1]=0,r;return r[0]=u,r[1]=s,r};var r=[0,0];e.exports=t.default},3534:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]="number"==typeof e[r]?e[r]:e[r].val);return t},e.exports=t.default},4118:(e,t,r)=>{"use strict";var n=r(8614);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},3324:(e,t,r)=>{e.exports=r(4118)()},8614:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7469:(e,t,r)=>{"use strict";var n=r(7363),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,i={},u=null,c=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)l.call(t,n)&&!s.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:a.current}}t.jsx=u,t.jsxs=u},5298:(e,t,r)=>{"use strict";e.exports=r(7469)},7363:e=>{"use strict";e.exports=React},1533:e=>{"use strict";e.exports=ReactDOM},5311:e=>{"use strict";e.exports=jQuery},2902:(e,t,r)=>{"use strict";function n(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function o(e){return!!e&&!!e[Y]}function i(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 r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===Q}(e)||Array.isArray(e)||!!e[K]||!!(null===(t=e.constructor)||void 0===t?void 0:t[K])||p(e)||h(e))}function a(e){return o(e)||n(23,e),e[Y].t}function l(e,t,r){void 0===r&&(r=!1),0===s(e)?(r?Object.keys:Z)(e).forEach((function(n){r&&"symbol"==typeof n||t(n,e[n],e)})):e.forEach((function(r,n){return t(n,r,e)}))}function s(e){var t=e[Y];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:p(e)?2:h(e)?3:0}function u(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){return 2===s(e)?e.get(t):e[t]}function f(e,t,r){var n=s(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e){return V&&e instanceof Map}function h(e){return q&&e instanceof Set}function m(e){return e.o||e.t}function v(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=X(e);delete t[Y];for(var r=Z(t),n=0;n<r.length;n++){var o=r[n],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function g(e,t){return void 0===t&&(t=!1),b(e)||o(e)||!i(e)||(s(e)>1&&(e.set=e.add=e.clear=e.delete=y),Object.freeze(e),t&&l(e,(function(e,t){return g(t,!0)}),!0)),e}function y(){n(2)}function b(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function w(e){var t=J[e];return t||n(18,e),t}function _(e,t){J[e]||(J[e]=t)}function x(){return W}function k(e,t){t&&(w("Patches"),e.u=[],e.s=[],e.v=t)}function S(e){O(e),e.p.forEach(C),e.p=null}function O(e){e===W&&(W=e.l)}function E(e){return W={p:[],l:W,h:e,m:!0,_:0}}function C(e){var t=e[Y];0===t.i||1===t.i?t.j():t.g=!0}function T(e,t){t._=t.p.length;var r=t.p[0],o=void 0!==e&&e!==r;return t.h.O||w("ES5").S(t,e,o),o?(r[Y].P&&(S(t),n(4)),i(e)&&(e=L(t,e),t.l||A(t,e)),t.u&&w("Patches").M(r[Y].t,e,t.u,t.s)):e=L(t,r,[]),S(t),t.u&&t.v(t.u,t.s),e!==G?e:void 0}function L(e,t,r){if(b(t))return t;var n=t[Y];if(!n)return l(t,(function(o,i){return M(e,n,t,o,i,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return A(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=v(n.k):n.o,i=o,a=!1;3===n.i&&(i=new Set(o),o.clear(),a=!0),l(i,(function(t,i){return M(e,n,o,t,i,r,a)})),A(e,o,!1),r&&e.u&&w("Patches").N(n,r,e.u,e.s)}return n.o}function M(e,t,r,n,a,l,s){if(o(a)){var c=L(e,a,l&&t&&3!==t.i&&!u(t.R,n)?l.concat(n):void 0);if(f(r,n,c),!o(c))return;e.m=!1}else s&&r.add(a);if(i(a)&&!b(a)){if(!e.h.D&&e._<1)return;L(e,a),t&&t.A.l||A(e,a)}}function A(e,t,r){void 0===r&&(r=!1),!e.l&&e.h.D&&e.m&&g(t,r)}function j(e,t){var r=e[Y];return(r?m(r):e)[t]}function P(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function I(e){e.P||(e.P=!0,e.l&&I(e.l))}function R(e){e.o||(e.o=v(e.t))}function N(e,t,r){var n=p(t)?w("MapSet").F(t,r):h(t)?w("MapSet").T(t,r):e.O?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:x(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=n,i=ee;r&&(o=[n],i=te);var a=Proxy.revocable(o,i),l=a.revoke,s=a.proxy;return n.k=s,n.j=l,s}(t,r):w("ES5").J(t,r);return(r?r.A:x()).p.push(n),n}function D(e){return o(e)||n(22,e),function e(t){if(!i(t))return t;var r,n=t[Y],o=s(t);if(n){if(!n.P&&(n.i<4||!w("ES5").K(n)))return n.t;n.I=!0,r=z(t,o),n.I=!1}else r=z(t,o);return l(r,(function(t,o){n&&c(n.t,t)===o||f(r,t,e(o))})),3===o?new Set(r):r}(e)}function z(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return v(e)}function F(){function e(e,t){var r=i[e];return r?r.enumerable=t:i[e]=r={configurable:!0,enumerable:t,get:function(){var t=this[Y];return ee.get(t,e)},set:function(t){var r=this[Y];ee.set(r,e,t)}},r}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][Y];if(!o.P)switch(o.i){case 5:n(o)&&I(o);break;case 4:r(o)&&I(o)}}}function r(e){for(var t=e.t,r=e.k,n=Z(r),o=n.length-1;o>=0;o--){var i=n[o];if(i!==Y){var a=t[i];if(void 0===a&&!u(t,i))return!0;var l=r[i],s=l&&l[Y];if(s?s.t!==a:!d(l,a))return!0}}var c=!!t[Y];return n.length!==Z(t).length+(c?0:1)}function n(e){var t=e.k;if(t.length!==e.t.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);if(r&&!r.get)return!0;for(var n=0;n<t.length;n++)if(!t.hasOwnProperty(n))return!0;return!1}var i={};_("ES5",{J:function(t,r){var n=Array.isArray(t),o=function(t,r){if(t){for(var n=Array(r.length),o=0;o<r.length;o++)Object.defineProperty(n,""+o,e(o,!0));return n}var i=X(r);delete i[Y];for(var a=Z(i),l=0;l<a.length;l++){var s=a[l];i[s]=e(s,t||!!i[s].enumerable)}return Object.create(Object.getPrototypeOf(r),i)}(n,t),i={i:n?5:4,A:r?r.A:x(),P:!1,I:!1,R:{},l:r,t,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Y,{value:i,writable:!0}),o},S:function(e,r,i){i?o(r)&&r[Y].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var r=t[Y];if(r){var o=r.t,i=r.k,a=r.R,s=r.i;if(4===s)l(i,(function(t){t!==Y&&(void 0!==o[t]||u(o,t)?a[t]||e(i[t]):(a[t]=!0,I(r)))})),l(o,(function(e){void 0!==i[e]||u(i,e)||(a[e]=!1,I(r))}));else if(5===s){if(n(r)&&(I(r),a.length=!0),i.length<o.length)for(var c=i.length;c<o.length;c++)a[c]=!1;else for(var f=o.length;f<i.length;f++)a[f]=!0;for(var d=Math.min(i.length,o.length),p=0;p<d;p++)i.hasOwnProperty(p)||(a[p]=!0),void 0===a[p]&&e(i[p])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?r(e):n(e)}})}function H(){function e(t){if(!i(t))return t;if(Array.isArray(t))return t.map(e);if(p(t))return new Map(Array.from(t.entries()).map((function(t){return[t[0],e(t[1])]})));if(h(t))return new Set(Array.from(t).map(e));var r=Object.create(Object.getPrototypeOf(t));for(var n in t)r[n]=e(t[n]);return u(t,K)&&(r[K]=t[K]),r}function t(t){return o(t)?e(t):t}var r="add";_("Patches",{$:function(t,o){return o.forEach((function(o){for(var i=o.path,a=o.op,l=t,u=0;u<i.length-1;u++){var f=s(l),d=i[u];"string"!=typeof d&&"number"!=typeof d&&(d=""+d),0!==f&&1!==f||"__proto__"!==d&&"constructor"!==d||n(24),"function"==typeof l&&"prototype"===d&&n(24),"object"!=typeof(l=c(l,d))&&n(15,i.join("/"))}var p=s(l),h=e(o.value),m=i[i.length-1];switch(a){case"replace":switch(p){case 2:return l.set(m,h);case 3:n(16);default:return l[m]=h}case r:switch(p){case 1:return"-"===m?l.push(h):l.splice(m,0,h);case 2:return l.set(m,h);case 3:return l.add(h);default:return l[m]=h}case"remove":switch(p){case 1:return l.splice(m,1);case 2:return l.delete(m);case 3:return l.delete(o.value);default:return delete l[m]}default:n(17,a)}})),t},N:function(e,n,o,i){switch(e.i){case 0:case 4:case 2:return function(e,n,o,i){var a=e.t,s=e.o;l(e.R,(function(e,l){var f=c(a,e),d=c(s,e),p=l?u(a,e)?"replace":r:"remove";if(f!==d||"replace"!==p){var h=n.concat(e);o.push("remove"===p?{op:p,path:h}:{op:p,path:h,value:d}),i.push(p===r?{op:"remove",path:h}:"remove"===p?{op:r,path:h,value:t(f)}:{op:"replace",path:h,value:t(f)})}}))}(e,n,o,i);case 5:case 1:return function(e,n,o,i){var a=e.t,l=e.R,s=e.o;if(s.length<a.length){var u=[s,a];a=u[0],s=u[1];var c=[i,o];o=c[0],i=c[1]}for(var f=0;f<a.length;f++)if(l[f]&&s[f]!==a[f]){var d=n.concat([f]);o.push({op:"replace",path:d,value:t(s[f])}),i.push({op:"replace",path:d,value:t(a[f])})}for(var p=a.length;p<s.length;p++){var h=n.concat([p]);o.push({op:r,path:h,value:t(s[p])})}a.length<s.length&&i.push({op:"replace",path:n.concat(["length"]),value:a.length})}(e,n,o,i);case 3:return function(e,t,n,o){var i=e.t,a=e.o,l=0;i.forEach((function(e){if(!a.has(e)){var i=t.concat([l]);n.push({op:"remove",path:i,value:e}),o.unshift({op:r,path:i,value:e})}l++})),l=0,a.forEach((function(e){if(!i.has(e)){var a=t.concat([l]);n.push({op:r,path:a,value:e}),o.unshift({op:"remove",path:a,value:e})}l++}))}(e,n,o,i)}},M:function(e,t,r,n){r.push({op:"replace",path:[],value:t===G?void 0:t}),n.push({op:"replace",path:[],value:e})}})}r.d(t,{Js:()=>a,QE:()=>ae,Vk:()=>D,ZP:()=>le,aS:()=>ie,mv:()=>o,o$:()=>i,pV:()=>F,vI:()=>H,vV:()=>g});var B,W,U="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),V="undefined"!=typeof Map,q="undefined"!=typeof Set,$="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,G=U?Symbol.for("immer-nothing"):((B={})["immer-nothing"]=!0,B),K=U?Symbol.for("immer-draftable"):"__$immer_draftable",Y=U?Symbol.for("immer-state"):"__$immer_state",Q=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Z="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,X=Object.getOwnPropertyDescriptors||function(e){var t={};return Z(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},J={},ee={get:function(e,t){if(t===Y)return e;var r=m(e);if(!u(r,t))return function(e,t,r){var n,o=P(t,r);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(e.k):void 0}(e,r,t);var n=r[t];return e.I||!i(n)?n:n===j(e.t,t)?(R(e),e.o[t]=N(e.A.h,n,e)):n},has:function(e,t){return t in m(e)},ownKeys:function(e){return Reflect.ownKeys(m(e))},set:function(e,t,r){var n=P(m(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var o=j(m(e),t),i=null==o?void 0:o[Y];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(d(r,o)&&(void 0!==r||u(e.t,t)))return!0;R(e),I(e)}return e.o[t]===r&&(void 0!==r||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==j(e.t,t)||t in e.t?(e.R[t]=!1,R(e),I(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=m(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){n(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){n(12)}},te={};l(ee,(function(e,t){te[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),te.deleteProperty=function(e,t){return te.set.call(this,e,t,void 0)},te.set=function(e,t,r){return ee.set.call(this,e[0],t,r,e[0])};var re=function(){function e(e){var t=this;this.O=$,this.D=!0,this.produce=function(e,r,o){if("function"==typeof e&&"function"!=typeof r){var a=r;r=e;var l=t;return function(e){var t=this;void 0===e&&(e=a);for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return l.produce(e,(function(e){var n;return(n=r).call.apply(n,[t,e].concat(o))}))}}var s;if("function"!=typeof r&&n(6),void 0!==o&&"function"!=typeof o&&n(7),i(e)){var u=E(t),c=N(t,e,void 0),f=!0;try{s=r(c),f=!1}finally{f?S(u):O(u)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(e){return k(u,o),T(e,u)}),(function(e){throw S(u),e})):(k(u,o),T(s,u))}if(!e||"object"!=typeof e){if(void 0===(s=r(e))&&(s=e),s===G&&(s=void 0),t.D&&g(s,!0),o){var d=[],p=[];w("Patches").M(e,s,d,p),o(d,p)}return s}n(21,e)},this.produceWithPatches=function(e,r){if("function"==typeof e)return function(r){for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return t.produceWithPatches(r,(function(t){return e.apply(void 0,[t].concat(o))}))};var n,o,i=t.produce(e,r,(function(e,t){n=e,o=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,n,o]})):[i,n,o]},"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){i(e)||n(8),o(e)&&(e=D(e));var t=E(this),r=N(this,e,void 0);return r[Y].C=!0,O(t),r},t.finishDraft=function(e,t){var r=(e&&e[Y]).A;return k(r,t),T(void 0,r)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!$&&n(20),this.O=e},t.applyPatches=function(e,t){var r;for(r=t.length-1;r>=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));var i=w("Patches").$;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),ne=new re,oe=ne.produce,ie=ne.produceWithPatches.bind(ne),ae=(ne.setAutoFreeze.bind(ne),ne.setUseProxies.bind(ne),ne.applyPatches.bind(ne));ne.createDraft.bind(ne),ne.finishDraft.bind(ne);const le=oe},5280:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ACTION_CLOSE:()=>D,ACTION_NEXT:()=>R,ACTION_PREV:()=>I,ACTION_SWIPE:()=>N,ACTIVE_SLIDE_COMPLETE:()=>L,ACTIVE_SLIDE_ERROR:()=>T,ACTIVE_SLIDE_LOADING:()=>E,ACTIVE_SLIDE_PLAYING:()=>C,CLASS_FLEX_CENTER:()=>A,CLASS_FULLSIZE:()=>M,CLASS_NO_SCROLL:()=>j,CLASS_NO_SCROLL_PADDING:()=>P,Carousel:()=>jt,CarouselModule:()=>Pt,CloseIcon:()=>Ke,Controller:()=>Et,ControllerContext:()=>St,ControllerModule:()=>Ct,ELEMENT_BUTTON:()=>Y,ELEMENT_ICON:()=>Q,EVENT_ON_KEY_DOWN:()=>U,EVENT_ON_KEY_UP:()=>V,EVENT_ON_POINTER_CANCEL:()=>W,EVENT_ON_POINTER_DOWN:()=>z,EVENT_ON_POINTER_LEAVE:()=>B,EVENT_ON_POINTER_MOVE:()=>F,EVENT_ON_POINTER_UP:()=>H,EVENT_ON_WHEEL:()=>q,ErrorIcon:()=>Xe,EventsContext:()=>Le,EventsProvider:()=>Ae,IMAGE_FIT_CONTAIN:()=>Z,IMAGE_FIT_COVER:()=>X,IconButton:()=>Ve,ImageSlide:()=>pt,Lightbox:()=>Jt,LightboxDefaultProps:()=>te,LightboxDispatchContext:()=>De,LightboxPropsContext:()=>je,LightboxPropsProvider:()=>Ie,LightboxStateContext:()=>Re,LightboxStateProvider:()=>He,LoadingIcon:()=>Ze,MODULE_CAROUSEL:()=>o,MODULE_CONTROLLER:()=>i,MODULE_NAVIGATION:()=>a,MODULE_NO_SCROLL:()=>l,MODULE_PORTAL:()=>s,MODULE_ROOT:()=>u,MODULE_TOOLBAR:()=>c,Navigation:()=>Rt,NavigationButton:()=>It,NavigationModule:()=>Nt,NextIcon:()=>Qe,NoScroll:()=>Bt,NoScrollModule:()=>Wt,PLUGIN_CAPTIONS:()=>f,PLUGIN_COUNTER:()=>d,PLUGIN_DOWNLOAD:()=>p,PLUGIN_FULLSCREEN:()=>h,PLUGIN_INLINE:()=>m,PLUGIN_SHARE:()=>v,PLUGIN_SLIDESHOW:()=>g,PLUGIN_THUMBNAILS:()=>y,PLUGIN_ZOOM:()=>b,Portal:()=>qt,PortalModule:()=>$t,PreviousIcon:()=>Ye,Root:()=>Gt,RootModule:()=>Kt,SLIDE_STATUS_COMPLETE:()=>k,SLIDE_STATUS_ERROR:()=>x,SLIDE_STATUS_LOADING:()=>w,SLIDE_STATUS_PLACEHOLDER:()=>S,SLIDE_STATUS_PLAYING:()=>_,SwipeState:()=>ht,TimeoutsContext:()=>Be,TimeoutsProvider:()=>Ue,Toolbar:()=>Yt,ToolbarModule:()=>Qt,UNKNOWN_ACTION_TYPE:()=>J,VK_ARROW_LEFT:()=>G,VK_ARROW_RIGHT:()=>K,VK_ESCAPE:()=>$,activeSlideStatus:()=>O,addToolbarButton:()=>Ce,cleanup:()=>he,clsx:()=>le,composePrefix:()=>fe,computeSlideRect:()=>_e,createIcon:()=>$e,createIconDisabled:()=>Ge,createModule:()=>re,createNode:()=>ne,cssClass:()=>ue,cssVar:()=>ce,default:()=>Jt,devicePixelRatio:()=>xe,getSlide:()=>Oe,getSlideIfPresent:()=>Ee,getSlideIndex:()=>ke,hasSlides:()=>Se,hasWindow:()=>ve,isImageFitCover:()=>be,isImageSlide:()=>ye,label:()=>pe,makeComposePrefix:()=>de,makeUseContext:()=>me,parseLengthPercentage:()=>we,round:()=>ge,setRef:()=>it,stopNavigationEventsPropagation:()=>Te,useAnimation:()=>tt,useContainerRect:()=>rt,useController:()=>Ot,useDelay:()=>nt,useEventCallback:()=>ot,useEvents:()=>Me,useForkRef:()=>at,useLayoutEffect:()=>Je,useLightboxDispatch:()=>ze,useLightboxProps:()=>Pe,useLightboxState:()=>Ne,useLoseFocus:()=>lt,useMotionPreference:()=>et,usePointerEvents:()=>vt,usePointerSwipe:()=>yt,usePreventSwipeNavigation:()=>_t,useRTL:()=>st,useSensors:()=>ut,useThrottle:()=>ct,useTimeouts:()=>We,useWheelSwipe:()=>xt,withPlugins:()=>ae});var n=r(7363);const o="carousel",i="controller",a="navigation",l="no-scroll",s="portal",u="root",c="toolbar",f="captions",d="counter",p="download",h="fullscreen",m="inline",v="share",g="slideshow",y="thumbnails",b="zoom",w="loading",_="playing",x="error",k="complete",S="placeholder",O=e=>`active-slide-${e}`,E=O(w),C=O(_),T=O(x),L=O(k),M="fullsize",A="flex_center",j="no_scroll",P="no_scroll_padding",I="prev",R="next",N="swipe",D="close",z="onPointerDown",F="onPointerMove",H="onPointerUp",B="onPointerLeave",W="onPointerCancel",U="onKeyDown",V="onKeyUp",q="onWheel",$="Escape",G="ArrowLeft",K="ArrowRight",Y="button",Q="icon",Z="contain",X="cover",J="Unknown action type";var ee=r(1533);const te={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[D]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:Z,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullDown:!1,closeOnBackdropClick:!1},portal:{},on:{},styles:{},className:""};function re(e,t){return{name:e,component:t}}function ne(e,t){return{module:e,children:t}}function oe(e,t,r){return e.module.name===t?r(e):e.children?[ne(e.module,e.children.flatMap((e=>{var n;return null!==(n=oe(e,t,r))&&void 0!==n?n:[]})))]:[e]}function ie(e,t,r){return e.flatMap((e=>{var n;return null!==(n=oe(e,t,r))&&void 0!==n?n:[]}))}function ae(e,t=[],r=[]){let n=e;const o=e=>{const t=[...n];for(;t.length>0;){const r=t.pop();if((null==r?void 0:r.module.name)===e)return!0;(null==r?void 0:r.children)&&t.push(...r.children)}return!1},a=(e,t)=>{n=""!==e?ie(n,e,(e=>[ne(t,[e])])):[ne(t,n)]},l=(e,t)=>{n=ie(n,e,(e=>[ne(e.module,[ne(t,e.children)])]))},s=(e,t,r)=>{n=ie(n,e,(e=>{var n;return[ne(e.module,[...r?[ne(t)]:[],...null!==(n=e.children)&&void 0!==n?n:[],...r?[]:[ne(t)]])]}))},u=(e,t,r)=>{n=ie(n,e,(e=>[...r?[ne(t)]:[],e,...r?[]:[ne(t)]]))},c=e=>{l(i,e)},f=(e,t)=>{n=ie(n,e,(e=>[ne(t,e.children)]))},d=e=>{n=ie(n,e,(e=>e.children))},p=e=>{r.push(e)};return t.forEach((e=>{e({contains:o,addParent:a,append:l,addChild:s,addSibling:u,addModule:c,replace:f,remove:d,augment:p})})),{config:n,augmentation:e=>r.reduce(((e,t)=>t(e)),e)}}const le=(...e)=>[...e].filter((e=>Boolean(e))).join(" "),se="yarl__",ue=e=>`${se}${e}`,ce=e=>`--${se}${e}`,fe=(e,t)=>`${e}${t?`_${t}`:""}`,de=e=>t=>fe(e,t),pe=(e,t)=>e&&e[t]?e[t]:t,he=(...e)=>()=>{e.forEach((e=>{e()}))},me=(e,t,r)=>()=>{const o=n.useContext(r);if(!o)throw new Error(`${e} must be used within a ${t}.Provider`);return o},ve=()=>"undefined"!=typeof window;function ge(e,t=0){const r=10**t;return Math.round((e+Number.EPSILON)*r)/r}const ye=e=>void 0===e.type||"image"===e.type,be=(e,t)=>e.imageFit===X||e.imageFit!==Z&&t===X;function we(e){if("number"==typeof e)return{pixel:e};if("string"==typeof e){const t=parseInt(e,10);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function _e(e,t){const r=we(t),n=void 0!==r.percent?e.width/100*r.percent:r.pixel;return{width:Math.max(e.width-2*n,0),height:Math.max(e.height-2*n,0)}}const xe=()=>(ve()?null===window||void 0===window?void 0:window.devicePixelRatio:void 0)||1,ke=(e,t)=>t>0?(e%t+t)%t:0,Se=e=>e.length>0,Oe=(e,t)=>e[ke(t,e.length)],Ee=(e,t)=>Se(e)?Oe(e,t):void 0;function Ce(e,t,r){if(!r)return e;const{buttons:o,...i}=e,a=o.findIndex((e=>e===t)),l=n.isValidElement(r)?n.cloneElement(r,{key:t},null):r;if(a>=0){const e=[...o];return e.splice(a,1,l),{buttons:e,...i}}return{buttons:[l,...o],...i}}function Te(){const e=e=>{e.stopPropagation()};return{onPointerDown:e,onKeyDown:e,onWheel:e}}const Le=n.createContext(null),Me=me("useEvents","EventsContext",Le);function Ae({children:e}){const[t]=n.useState({});n.useEffect((()=>()=>{Object.keys(t).forEach((e=>delete t[e]))}),[t]);const r=n.useMemo((()=>{const e=(e,r)=>{var n;null===(n=t[e])||void 0===n||n.splice(0,t[e].length,...t[e].filter((e=>e!==r)))};return{publish:(...[e,r])=>{var n;null===(n=t[e])||void 0===n||n.forEach((e=>e(r)))},subscribe:(r,n)=>(t[r]||(t[r]=[]),t[r].push(n),()=>e(r,n)),unsubscribe:e}}),[t]);return n.createElement(Le.Provider,{value:r},e)}const je=n.createContext(null),Pe=me("useLightboxProps","LightboxPropsContext",je);function Ie({children:e,...t}){return n.createElement(je.Provider,{value:t},e)}const Re=n.createContext(null),Ne=me("useLightboxState","LightboxStateContext",Re),De=n.createContext(null),ze=me("useLightboxDispatch","LightboxDispatchContext",De);function Fe(e,t){switch(t.type){case"swipe":{const{slides:r}=e,n=(null==t?void 0:t.increment)||0,o=e.globalIndex+n,i=ke(o,r.length);return{slides:r,currentIndex:i,globalIndex:o,currentSlide:Ee(r,i),animation:n||t.duration?{increment:n,duration:t.duration,easing:t.easing}:void 0}}case"update":return{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:Ee(t.slides,t.index)};default:throw new Error(J)}}function He({slides:e,index:t,children:r}){const[o,i]=n.useReducer(Fe,{slides:e,currentIndex:t,globalIndex:t,currentSlide:Ee(e,t)});n.useEffect((()=>{i({type:"update",slides:e,index:t})}),[e,t]);const a=n.useMemo((()=>({...o,state:o,dispatch:i})),[o,i]);return n.createElement(De.Provider,{value:i},n.createElement(Re.Provider,{value:a},r))}const Be=n.createContext(null),We=me("useTimeouts","TimeoutsContext",Be);function Ue({children:e}){const[t]=n.useState([]);n.useEffect((()=>()=>{t.forEach((e=>window.clearTimeout(e))),t.splice(0,t.length)}),[t]);const r=n.useMemo((()=>{const e=e=>{t.splice(0,t.length,...t.filter((t=>t!==e)))};return{setTimeout:(r,n)=>{const o=window.setTimeout((()=>{e(o),r()}),n);return t.push(o),o},clearTimeout:t=>{void 0!==t&&(e(t),window.clearTimeout(t))}}}),[t]);return n.createElement(Be.Provider,{value:r},e)}const Ve=n.forwardRef((function({label:e,className:t,icon:r,renderIcon:o,onClick:i,style:a,...l},s){const{styles:u,labels:c}=Pe();return n.createElement("button",{ref:s,type:"button","aria-label":pe(c,e),className:le(ue(Y),t),onClick:i,style:{...a,...u.button},...l},o?o():n.createElement(r,{className:ue(Q),style:u.icon}))}));function qe(e,t){const r=e=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...e},t);return r.displayName=e,r}function $e(e,t){return qe(e,n.createElement("g",{fill:"currentColor"},n.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}function Ge(e,t){return qe(e,n.createElement(n.Fragment,null,n.createElement("defs",null,n.createElement("mask",{id:"strike"},n.createElement("path",{d:"M0 0h24v24H0z",fill:"white"}),n.createElement("path",{d:"M0 0L24 24",stroke:"black",strokeWidth:4}))),n.createElement("path",{d:"M0.70707 2.121320L21.878680 23.292883",stroke:"currentColor",strokeWidth:2}),n.createElement("g",{fill:"currentColor",mask:"url(#strike)"},n.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t)))}const Ke=$e("Close",n.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Ye=$e("Previous",n.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Qe=$e("Next",n.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),Ze=$e("Loading",n.createElement(n.Fragment,null,Array.from({length:8}).map(((e,t,r)=>n.createElement("line",{key:t,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/r.length*(t+1),transform:`rotate(${360/r.length*t}, 12, 12)`}))))),Xe=$e("Error",n.createElement("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),Je=ve()?n.useLayoutEffect:n.useEffect;function et(){const[e,t]=n.useState(!1);return n.useEffect((()=>{var e,r;const n=null===(e=window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-reduced-motion: reduce)");t(null==n?void 0:n.matches);const o=e=>t(e.matches);return null===(r=null==n?void 0:n.addEventListener)||void 0===r||r.call(n,"change",o),()=>{var e;return null===(e=null==n?void 0:n.removeEventListener)||void 0===e?void 0:e.call(n,"change",o)}}),[]),e}function tt(e,t){const r=n.useRef(),o=n.useRef(),i=et();return Je((()=>{var n,a,l;if(e.current&&void 0!==r.current&&!i){const{keyframes:i,duration:s,easing:u,onfinish:c}=t(r.current,e.current.getBoundingClientRect(),function(e){let t=0,r=0,n=0;const o=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(o){const e=o[1].split(",").map((e=>Number.parseInt(e,10)));6===e.length?(t=e[4],r=e[5]):16===e.length&&(t=e[12],r=e[13],n=e[14])}return{x:t,y:r,z:n}}(e.current))||{};if(i&&s){null===(n=o.current)||void 0===n||n.cancel(),o.current=void 0;try{o.current=null===(l=(a=e.current).animate)||void 0===l?void 0:l.call(a,i,{duration:s,easing:u})}catch(e){console.error(e)}o.current&&(o.current.onfinish=()=>{o.current=void 0,null==c||c()})}}r.current=void 0})),{prepareAnimation:e=>{r.current=e},isAnimationPlaying:()=>{var e;return"running"===(null===(e=o.current)||void 0===e?void 0:e.playState)}}}function rt(){const[e,t]=n.useState(),r=n.useRef(null),o=n.useRef(),i=n.useCallback((e=>{r.current=e,o.current&&(o.current.disconnect(),o.current=void 0);const n=()=>{if(e){const r=window.getComputedStyle(e),n=e=>parseFloat(e)||0;t({width:Math.round(e.clientWidth-n(r.paddingLeft)-n(r.paddingRight)),height:Math.round(e.clientHeight-n(r.paddingTop)-n(r.paddingBottom))})}else t(void 0)};n(),e&&"undefined"!=typeof ResizeObserver&&(o.current=new ResizeObserver(n),o.current.observe(e))}),[]);return n.useMemo((()=>({setContainerRef:i,containerRef:r,containerRect:e})),[i,r,e])}function nt(){const e=n.useRef(),{setTimeout:t,clearTimeout:r}=We();return n.useCallback(((n,o)=>{r(e.current),e.current=t(n,o>0?o:0)}),[t,r])}function ot(e){const t=n.useRef(e);return Je((()=>{t.current=e})),n.useCallback(((...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)}),[])}function it(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function at(e,t){return n.useMemo((()=>null==e&&null==t?null:r=>{it(e,r),it(t,r)}),[e,t])}function lt(e,t=!1){const r=n.useRef(t);Je((()=>{t&&e()}),[t,e]);return{onFocus:n.useCallback((()=>{r.current=!0}),[]),onBlur:n.useCallback((()=>{r.current=!1}),[])}}function st(){const[e,t]=n.useState(!1);return Je((()=>{t("rtl"===window.getComputedStyle(window.document.documentElement).direction)}),[]),e}function ut(){const[e]=n.useState({});return n.useMemo((()=>{const t=(t,r)=>{var n;null===(n=e[t])||void 0===n||n.forEach((e=>{r.isPropagationStopped()||e(r)}))};return{registerSensors:{onPointerDown:e=>t(z,e),onPointerMove:e=>t(F,e),onPointerUp:e=>t(H,e),onPointerLeave:e=>t(B,e),onPointerCancel:e=>t(W,e),onKeyDown:e=>t(U,e),onKeyUp:e=>t(V,e),onWheel:e=>t(q,e)},subscribeSensors:(t,r)=>(e[t]||(e[t]=[]),e[t].unshift(r),()=>{const n=e[t];n&&n.splice(0,n.length,...n.filter((e=>e!==r)))})}}),[e])}function ct(e,t){const r=n.useRef(0),o=nt(),i=ot(((...t)=>{r.current=Date.now(),e(t)}));return n.useCallback(((...e)=>{o((()=>{i(e)}),t-(Date.now()-r.current))}),[t,i,o])}const ft=de("slide"),dt=de("slide_image");function pt({slide:e,offset:t,render:r,rect:o,imageFit:i,imageProps:a,onClick:l,onLoad:s,style:u}){var c,f,d,p,h,m,v;const[g,y]=n.useState(w),{publish:b}=Me(),{setTimeout:_}=We(),E=n.useRef(null);n.useEffect((()=>{0===t&&b(O(g))}),[t,g,b]);const C=ot((e=>{("decode"in e?e.decode():Promise.resolve()).catch((()=>{})).then((()=>{e.parentNode&&(y(k),_((()=>{null==s||s(e)}),0))}))})),T=n.useCallback((e=>{E.current=e,(null==e?void 0:e.complete)&&C(e)}),[C]),L=n.useCallback((e=>{C(e.currentTarget)}),[C]),M=n.useCallback((()=>{y(x)}),[]),A=be(e,i),j=(e,t)=>Number.isFinite(e)?e:t,P=j(Math.max(...(null!==(f=null===(c=e.srcSet)||void 0===c?void 0:c.map((e=>e.width)))&&void 0!==f?f:[]).concat(e.width?[e.width]:[])),(null===(d=E.current)||void 0===d?void 0:d.naturalWidth)||0),I=j(Math.max(...(null!==(h=null===(p=e.srcSet)||void 0===p?void 0:p.map((e=>e.height)))&&void 0!==h?h:[]).concat(e.height?[e.height]:[])),(null===(m=E.current)||void 0===m?void 0:m.naturalHeight)||0),R=P&&I?{maxWidth:`min(${P}px, 100%)`,maxHeight:`min(${I}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},N=null===(v=e.srcSet)||void 0===v?void 0:v.sort(((e,t)=>e.width-t.width)).map((e=>`${e.src} ${e.width}w`)).join(", "),D=N&&o&&ve()?`${Math.round(Math.min(o&&!A&&e.width&&e.height?o.height/e.height*e.width:Number.MAX_VALUE,o.width))}px`:void 0,{style:z,className:F,...H}=a||{};return n.createElement(n.Fragment,null,n.createElement("img",{ref:T,onLoad:L,onError:M,onClick:l,draggable:!1,className:le(ue(dt()),A&&ue(dt("cover")),g!==k&&ue(dt("loading")),F),style:{...R,...u,...z},...H,alt:e.alt,sizes:D,srcSet:N,src:e.src}),g!==k&&n.createElement("div",{className:ue(ft(S))},g===w&&((null==r?void 0:r.iconLoading)?r.iconLoading():n.createElement(Ze,{className:le(ue(Q),ue(ft(w)))})),g===x&&((null==r?void 0:r.iconError)?r.iconError():n.createElement(Xe,{className:le(ue(Q),ue(ft(x)))}))))}var ht,mt;function vt(e,t,r,o,i){n.useEffect((()=>i?()=>{}:he(e(z,t),e(F,r),e(H,o),e(B,o),e(W,o))),[e,t,r,o,i])}!function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL_DOWN=2]="PULL_DOWN",e[e.ANIMATION=3]="ANIMATION"}(ht||(ht={})),function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL_DOWN=2]="PULL_DOWN"}(mt||(mt={}));const gt=30;function yt(e,t,r,o,i,a,l,s,u,c,f,d,p){const h=n.useRef(0),m=n.useRef([]),v=n.useRef(),g=n.useRef(0),y=n.useRef(mt.NONE),b=n.useCallback((e=>{v.current===e.pointerId&&(v.current=void 0,y.current=mt.NONE);const t=m.current;t.splice(0,t.length,...t.filter((t=>t.pointerId!==e.pointerId)))}),[]),w=n.useCallback((e=>{b(e),e.persist(),m.current.push(e)}),[b]),_=ot((e=>{w(e)})),x=ot((e=>{if(m.current.find((t=>t.pointerId===e.pointerId))&&v.current===e.pointerId){const e=Date.now()-g.current,t=h.current;y.current===mt.SWIPE?Math.abs(t)>.3*r||Math.abs(t)>5&&e<o?l(t,e):s(t):y.current===mt.PULL_DOWN&&(t>2*gt?d(t,e):p(t)),h.current=0,y.current=mt.NONE}b(e)}));vt(e,_,ot((e=>{const r=m.current.find((t=>t.pointerId===e.pointerId));if(r){const n=v.current===e.pointerId;if(0===e.buttons)return void(n&&0!==h.current?x(e):b(r));const o=e.clientX-r.clientX,l=e.clientY-r.clientY;if(void 0===v.current){const r=t=>{w(e),v.current=e.pointerId,g.current=Date.now(),y.current=t};Math.abs(o)>Math.abs(l)&&Math.abs(o)>gt&&t(o)?(r(mt.SWIPE),i()):u&&Math.abs(l)>Math.abs(o)&&l>gt&&(r(mt.PULL_DOWN),c())}else n&&(y.current===mt.SWIPE?(h.current=o,a(o)):y.current===mt.PULL_DOWN&&(h.current=l,f(l)))}})),x)}const bt="wheel";function wt(e){(Math.abs(e.deltaX)>Math.abs(e.deltaY)||e.ctrlKey)&&e.preventDefault()}function _t(){const e=n.useRef(null);return n.useCallback((t=>{var r;t?t.addEventListener(bt,wt,{passive:!1}):null===(r=e.current)||void 0===r||r.removeEventListener(bt,wt),e.current=t}),[])}function xt(e,t,r,o,i,a,l,s,u){const c=n.useRef(0),f=n.useRef(0),d=n.useRef(),p=n.useRef(),h=n.useRef(0),m=n.useRef(0),{setTimeout:v,clearTimeout:g}=We(),y=n.useCallback((()=>{d.current&&(g(d.current),d.current=void 0)}),[g]),b=n.useCallback((()=>{p.current&&(g(p.current),p.current=void 0)}),[g]),w=ot((()=>{e!==ht.SWIPE&&(c.current=0,m.current=0,y(),b())}));n.useEffect(w,[e,w]);const _=ot((e=>{p.current=void 0,c.current===e&&u(c.current)})),x=ot((t=>{if(!(t.ctrlKey||Math.abs(t.deltaY)>Math.abs(t.deltaX)))if(e===ht.NONE){if(Math.abs(t.deltaX)<=1.2*Math.abs(h.current))return void(h.current=t.deltaX);if(!r(-t.deltaX))return;if(f.current+=t.deltaX,y(),Math.abs(f.current)>30)f.current=0,h.current=0,m.current=Date.now(),a();else{const e=f.current;d.current=v((()=>{d.current=void 0,e===f.current&&(f.current=0)}),i)}}else if(e===ht.SWIPE){let e=c.current-t.deltaX;if(e=Math.min(Math.abs(e),o)*Math.sign(e),c.current=e,l(e),b(),Math.abs(e)>.2*o)return h.current=t.deltaX,void s(e,Date.now()-m.current);p.current=v((()=>_(e)),2*i)}else h.current=t.deltaX}));n.useEffect((()=>t(q,x)),[t,x])}const kt=de("container"),St=n.createContext(null),Ot=me("useController","ControllerContext",St);function Et({children:e,...t}){var r;const{carousel:o,animation:i,controller:a,on:l,styles:s,render:u}=t,[c,f]=n.useState(),d=Ne(),p=ze(),[h,m]=n.useState(ht.NONE),v=n.useRef(0),g=n.useRef(0),y=n.useRef(1),{registerSensors:b,subscribeSensors:w}=ut(),{subscribe:_,publish:x}=Me(),k=nt(),S=nt(),O=nt(),{containerRef:E,setContainerRef:C,containerRect:T}=rt(),L=at(_t(),C),M=n.useRef(null),j=at(M,void 0),P=st(),z=e=>(P?-1:1)*("number"==typeof e?e:1),F=ot((()=>{var e;return null===(e=E.current)||void 0===e?void 0:e.focus()})),H=ot((()=>t)),B=ot((()=>d)),W=n.useCallback((e=>x(I,e)),[x]),U=n.useCallback((e=>x(R,e)),[x]),q=n.useCallback((()=>x(D)),[x]),G=e=>!(o.finite&&(z(e)>0&&0===d.currentIndex||z(e)<0&&d.currentIndex===d.slides.length-1)),K=e=>{var t;v.current=e,null===(t=E.current)||void 0===t||t.style.setProperty(ce("swipe_offset"),`${Math.round(e)}px`)},Y=a.closeOnPullDown,Q=e=>{var t,r;g.current=e,y.current=Math.min(Math.max(ge(1-e/60*.5,2),.5),1),null===(t=E.current)||void 0===t||t.style.setProperty(ce("pull_down_offset"),`${Math.round(e)}px`),null===(r=E.current)||void 0===r||r.style.setProperty(ce("pull_down_opacity"),`${y.current}`)},{prepareAnimation:Z}=tt(M,((e,t,r)=>{if(M.current&&T)return{keyframes:[{transform:`translate(0, ${e.rect.y-t.y+r.y}px)`,opacity:e.opacity},{transform:"translate(0, 0)",opacity:1}],duration:e.duration,easing:i.easing.fade}})),X=(e,t)=>{if(Y){Q(e);let r=0;M.current&&(r=i.fade*(t?2:1),Z({rect:M.current.getBoundingClientRect(),opacity:y.current,duration:r})),O((()=>{Q(0),m(ht.NONE)}),r),m(ht.ANIMATION),t||q()}},{prepareAnimation:J,isAnimationPlaying:ee}=tt(M,((e,t,r)=>{var n;if(M.current&&T&&(null===(n=d.animation)||void 0===n?void 0:n.duration)){const n=we(o.spacing),i=(n.percent?n.percent*T.width/100:n.pixel)||0;return{keyframes:[{transform:`translate(${z(d.globalIndex-e.index)*(T.width+i)+e.rect.x-t.x+r.x}px, 0)`},{transform:"translate(0, 0)"}],duration:d.animation.duration,easing:d.animation.easing}}})),te=ot((e=>{var t,r;const n=e.offset||0,o=n?i.swipe:null!==(t=i.navigation)&&void 0!==t?t:i.swipe,a=n||ee()?i.easing.swipe:i.easing.navigation;let{direction:l}=e;const s=null!==(r=e.count)&&void 0!==r?r:1;let u=ht.ANIMATION,c=o*s;if(!l){const t=null==T?void 0:T.width,r=e.duration||0,i=t?o/t*Math.abs(n):o;0!==s?(r<i?c=c/i*Math.max(r,i/5):t&&(c=o/t*(t-Math.abs(n))),l=z(n)>0?I:R):c=o/2}let f=0;l===I?G(z(1))?f=-s:(u=ht.NONE,c=o):l===R&&(G(z(-1))?f=s:(u=ht.NONE,c=o)),c=Math.round(c),S((()=>{K(0),m(ht.NONE)}),c),M.current&&J({rect:M.current.getBoundingClientRect(),index:d.globalIndex}),m(u),x(N,{type:"swipe",increment:f,duration:c,easing:a})}));n.useEffect((()=>{var e,t;(null===(e=d.animation)||void 0===e?void 0:e.increment)&&(null===(t=d.animation)||void 0===t?void 0:t.duration)&&k((()=>p({type:"swipe",increment:0})),d.animation.duration)}),[d.animation,p,k]);const re=[w,G,(null==T?void 0:T.width)||0,i.swipe,()=>m(ht.SWIPE),e=>K(e),(e,t)=>te({offset:e,duration:t,count:1}),e=>te({offset:e,count:0})],ne=[()=>{Y&&m(ht.PULL_DOWN)},e=>Q(e),e=>X(e),e=>X(e,!0)];yt(...re,Y,...ne),xt(h,...re);const oe=ot((()=>{var e;a.focus&&(null===(e=E.current)||void 0===e||e.focus())}));n.useEffect(oe,[oe]);const ie=ot((()=>{var e;null===(e=l.view)||void 0===e||e.call(l,{index:d.currentIndex})}));n.useEffect(ie,[d.globalIndex,ie]),n.useEffect((()=>he(_(I,(e=>te({direction:I,...e}))),_(R,(e=>te({direction:R,...e}))),_(N,(e=>p(e))))),[_,te,p]),n.useEffect((()=>w(V,(e=>{e.key===$&&q()}))),[w,q]);const ae=n.useMemo((()=>({prev:W,next:U,close:q,focus:F,slideRect:T?_e(T,o.padding):{width:0,height:0},containerRect:T||{width:0,height:0},subscribeSensors:w,containerRef:E,setCarouselRef:j,toolbarWidth:c,setToolbarWidth:f})),[W,U,q,F,w,T,E,j,c,f,o.padding]);return n.useImperativeHandle(a.ref,(()=>({prev:W,next:U,close:q,focus:F,getLightboxProps:H,getLightboxState:B})),[W,U,q,F,H,B]),n.createElement("div",{ref:L,className:le(ue(kt()),ue(A)),style:{...h===ht.SWIPE?{[ce("swipe_offset")]:`${Math.round(v.current)}px`}:null,...h===ht.PULL_DOWN?{[ce("pull_down_offset")]:`${Math.round(g.current)}px`,[ce("pull_down_opacity")]:`${y.current}`}:null,..."none"!==a.touchAction?{[ce("controller_touch_action")]:a.touchAction}:null,...s.container},...a.aria?{role:"presentation","aria-live":"polite"}:null,tabIndex:-1,...b},T&&n.createElement(St.Provider,{value:ae},e,null===(r=u.controls)||void 0===r?void 0:r.call(u)))}const Ct=re(i,Et);function Tt(e){return fe(o,e)}function Lt(e){return fe("slide",e)}function Mt({slide:e,offset:t}){const r=n.useRef(null),{currentIndex:o}=Ne(),{slideRect:i,close:a}=Ot(),{render:l,carousel:{imageFit:s,imageProps:u},on:{click:c},controller:{closeOnBackdropClick:f},styles:{slide:d}}=Pe();return n.createElement("div",{ref:r,className:le(ue(Lt()),0===t&&ue(Lt("current")),ue(A)),onClick:e=>{const t=r.current,n=e.target instanceof HTMLElement?e.target:void 0;f&&n&&t&&(n===t||Array.from(t.children).find((e=>e===n))&&n.classList.contains(ue(M)))&&a()},style:d},(()=>{var r,a,f,d;let p=null===(r=l.slide)||void 0===r?void 0:r.call(l,{slide:e,offset:t,rect:i});return!p&&ye(e)&&(p=n.createElement(pt,{slide:e,offset:t,render:l,rect:i,imageFit:s,imageProps:u,onClick:0===t?()=>null==c?void 0:c({index:o}):void 0})),p?n.createElement(n.Fragment,null,null===(a=l.slideHeader)||void 0===a?void 0:a.call(l,{slide:e}),(null!==(f=l.slideContainer)&&void 0!==f?f:({children:e})=>e)({slide:e,children:p}),null===(d=l.slideFooter)||void 0===d?void 0:d.call(l,{slide:e})):null})())}function At(){const e=Pe().styles.slide;return n.createElement("div",{className:ue("slide"),style:e})}function jt({carousel:{finite:e,preload:t,padding:r,spacing:o}}){const{slides:i,currentIndex:a,globalIndex:l}=Ne(),{setCarouselRef:s}=Ot(),u=we(o),c=we(r),f=[];if((null==i?void 0:i.length)>0){for(let r=a-t;r<a;r+=1){const o=l+r-a;f.push(!e||r>=0?n.createElement(Mt,{key:o,slide:i[(r+t*i.length)%i.length],offset:r-a}):n.createElement(At,{key:o}))}f.push(n.createElement(Mt,{key:l,slide:i[a],offset:0}));for(let r=a+1;r<=a+t;r+=1){const t=l+r-a;f.push(!e||r<=i.length-1?n.createElement(Mt,{key:t,slide:i[r%i.length],offset:r-a}):n.createElement(At,{key:t}))}}return n.createElement("div",{ref:s,className:le(ue(Tt()),f.length>0&&ue(Tt("with_slides"))),style:{[`${ce(Tt("slides_count"))}`]:f.length,[`${ce(Tt("spacing_px"))}`]:u.pixel||0,[`${ce(Tt("spacing_percent"))}`]:u.percent||0,[`${ce(Tt("padding_px"))}`]:c.pixel||0,[`${ce(Tt("padding_percent"))}`]:c.percent||0}},f)}const Pt=re(o,jt);function It({label:e,icon:t,renderIcon:r,action:o,onClick:i,disabled:a}){return n.createElement(Ve,{label:e,icon:t,renderIcon:r,className:ue(`navigation_${o}`),disabled:a,onClick:i,...lt(Ot().focus,a)})}function Rt({carousel:{finite:e},animation:t,render:{buttonPrev:r,buttonNext:o,iconPrev:i,iconNext:a}}){var l;const{slides:s,currentIndex:u}=Ne(),{prev:c,next:f,subscribeSensors:d}=Ot(),p=st(),h=0===s.length||e&&0===u,m=0===s.length||e&&u===s.length-1,v=(null!==(l=t.navigation)&&void 0!==l?l:t.swipe)/2,g=ct(c,v),y=ct(f,v),b=ot((e=>{e.key!==G||(p?m:h)||(p?y:g)(),e.key!==K||(p?h:m)||(p?g:y)()}));return n.useEffect((()=>d(U,b)),[d,b]),n.createElement(n.Fragment,null,r?r():n.createElement(It,{label:"Previous",action:I,icon:Ye,renderIcon:i,disabled:h,onClick:c}),o?o():n.createElement(It,{label:"Next",action:R,icon:Qe,renderIcon:a,disabled:m,onClick:f}))}const Nt=re(a,Rt),Dt=ue(j),zt=ue(P);function Ft(e){return"style"in e}function Ht(e,t,r){const n=window.getComputedStyle(e),o=r?"padding-left":"padding-right",i=r?n.paddingLeft:n.paddingRight,a=e.style.getPropertyValue(o);return e.style.setProperty(o,`${(parseInt(i,10)||0)+t}px`),()=>{a?e.style.setProperty(o,a):e.style.removeProperty(o)}}function Bt({children:e}){const t=st();return Je((()=>{const e=[],{body:r,documentElement:n}=document,o=Math.round(window.innerWidth-n.clientWidth);if(o>0){e.push(Ht(r,o,t));const n=r.getElementsByTagName("*");for(let r=0;r<n.length;r+=1){const i=n[r];Ft(i)&&"fixed"===window.getComputedStyle(i).getPropertyValue("position")&&!i.classList.contains(zt)&&e.push(Ht(i,o,t))}}return r.classList.add(Dt),()=>{r.classList.remove(Dt),e.forEach((e=>e()))}}),[t]),n.createElement(n.Fragment,null,e)}const Wt=re(l,Bt);function Ut(e){return fe(s,e)}function Vt(e,t,r){const n=e.getAttribute(t);return e.setAttribute(t,r),()=>{n?e.setAttribute(t,n):e.removeAttribute(t)}}function qt({children:e,animation:t,styles:r,className:o,on:i,portal:a,close:l}){const[s,u]=n.useState(!1),[c,f]=n.useState(!1),d=n.useRef([]),{setTimeout:p}=We(),{subscribe:h}=Me(),m=et()?0:t.fade;n.useEffect((()=>(u(!0),()=>{u(!1),f(!1)})),[]);const v=ot((()=>{var e;f(!1),null===(e=i.exiting)||void 0===e||e.call(i),p((()=>{var e;null===(e=i.exited)||void 0===e||e.call(i),l()}),m)}));n.useEffect((()=>h(D,v)),[h,v]);const g=ot((e=>{var t,r,n;e.scrollTop,f(!0),null===(t=i.entering)||void 0===t||t.call(i);const o=null!==(n=null===(r=e.parentNode)||void 0===r?void 0:r.children)&&void 0!==n?n:[];for(let t=0;t<o.length;t+=1){const r=o[t];-1===["TEMPLATE","SCRIPT","STYLE"].indexOf(r.tagName)&&r!==e&&(d.current.push(Vt(r,"inert","true")),d.current.push(Vt(r,"aria-hidden","true")))}p((()=>{var e;null===(e=i.entered)||void 0===e||e.call(i)}),m)})),y=ot((()=>{d.current.forEach((e=>e())),d.current=[]})),b=n.useCallback((e=>{e?g(e):y()}),[g,y]);return s?(0,ee.createPortal)(n.createElement("div",{ref:b,className:le(o,ue("root"),ue(Ut()),ue(P),c&&ue(Ut("open"))),role:"presentation","aria-live":"polite",style:{...t.fade!==te.animation.fade?{[ce("fade_animation_duration")]:`${m}ms`}:null,...t.easing.fade!==te.animation.easing.fade?{[ce("fade_animation_timing_function")]:t.easing.fade}:null,...r.root}},e),a.root||document.body):null}const $t=re(s,qt);function Gt({children:e}){return n.createElement(n.Fragment,null,e)}const Kt=re(u,Gt);function Yt({toolbar:{buttons:e},render:{buttonClose:t,iconClose:r}}){const{close:o,setToolbarWidth:i}=Ot(),{setContainerRef:a,containerRect:l}=rt();Je((()=>{i(null==l?void 0:l.width)}),[i,null==l?void 0:l.width]);return n.createElement("div",{ref:a,className:ue(fe(c,s)),...Te()},null==e?void 0:e.map((e=>e===D?t?t():n.createElement(Ve,{key:D,label:"Close",icon:Ke,renderIcon:r,onClick:o}):e)));var s}const Qt=re(c,Yt);function Zt(e,t){var r;return n.createElement(e.module.component,{key:e.module.name,...t},null===(r=e.children)||void 0===r?void 0:r.map((e=>Zt(e,t))))}function Xt(e,t={}){const{easing:r,...n}=e,{easing:o,...i}=t;return{easing:{...r,...o},...n,...i}}function Jt({carousel:e,animation:t,render:r,toolbar:o,controller:i,on:a,plugins:l,slides:s,index:u,...c}){const{animation:f,carousel:d,render:p,toolbar:h,controller:m,on:v,slides:g,index:y,plugins:b,...w}=te,{config:_,augmentation:x}=ae([ne($t,[ne(Wt,[ne(Ct,[ne(Pt),ne(Qt),ne(Nt)])])])],l||b),k=x({animation:Xt(f,t),carousel:{...d,...e},render:{...p,...r},toolbar:{...h,...o},controller:{...m,...i},on:{...v,...a},...w,...c});return k.open?n.createElement(Ie,{...k},n.createElement(He,{slides:s||g,index:u||y},n.createElement(Ue,null,n.createElement(Ae,null,Zt(ne(Kt,_),k))))):null}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.nc=void 0;r(3572)})(); |