| 1 |
var vl=Object.defineProperty,yl=Object.defineProperties;var wl=Object.getOwnPropertyDescriptors;var lr=Object.getOwnPropertySymbols;var Ao=Object.prototype.hasOwnProperty,Oo=Object.prototype.propertyIsEnumerable;var zo=(e,n,t)=>n in e?vl(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,y=(e,n)=>{for(var t in n||(n={}))Ao.call(n,t)&&zo(e,t,n[t]);if(lr)for(var t of lr(n))Oo.call(n,t)&&zo(e,t,n[t]);return e},B=(e,n)=>yl(e,wl(n));var si=(e,n)=>{var t={};for(var r in e)Ao.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&lr)for(var r of lr(e))n.indexOf(r)<0&&Oo.call(e,r)&&(t[r]=e[r]);return t};import{bn as Yi,br as ue,r as M,j as o,a as ne,aq as re,i as Y,h as v,_,aH as Ue,ao as zs,bA as qi,aZ as Kn,a7 as Ii,a8 as lt,aX as he,ck as Jn,cl as Re,b1 as As,a$ as Os,b0 as Ls,bC as Bs,cm as _l,aK as Fr,ba as Wt,V as Lo,cn as $l,c5 as Zi,bo as Rs,co as Sl,g as xe,cp as jl,ar as Cl,cq as Bo,cr as Dr,l as ae,be as Ps,cs as Il,f as D,m as me,bG as K,ct as X,cu as W,cv as kl,cw as Fs,u as ce,b2 as Qn,cx as Xi,s as Tl,E as Nl,cy as Ml,cz as ki,cA as te,cB as ye,X as _n,cC as Xt,cD as nn,bs as Hr,cE as Ds,cF as Hs,G as qe,cG as El,q as Ji,I as ke,z as Jt,ac as de,k as Vs,c8 as Me,N as Ws,cH as Gs,b4 as $n,cI as Us,cJ as Ro,cK as Po,cL as Qi,bb as _r,cM as zl,bd as $r,cN as Ti,cO as Al,b5 as eo,cP as zn,cQ as Ol,cR as Fo,cd as Ks,ce as Ll,cS as Ys,aG as Do,cT as Bl,cU as Rl,F as er,an as Pl,b7 as Vr,aI as qs,cV as to,aM as Zs,cW as Ho,a9 as Vo,ak as Fl,cX as Dl,cY as Wo,al as Hl,P as Ni,a_ as Xs,aY as Vl,at as Go,au as Uo,cZ as Mi,bx as _t,M as Wl,b3 as Js,b9 as Sr,c_ as Gl,c$ as Ul,d0 as Ko,d1 as Yo,d2 as Kl,d3 as Yl,c9 as ql,d4 as Ei,d5 as xr,d6 as Zl,d7 as Xl,d8 as Jl,d9 as Ql,da as ec,a3 as tc,db as nc,dc as rc,R as ic,bt as oc,dd as Qs,de as sc,df as ea,A as no,B as ta,D as Tt,az as qo,dg as Zo,d as ac,dh as lc,di as ai,dj as li,bB as cc,as as uc,ay as cr}from"./main-294.js";import{D as jr,E as dc,C as pc,$ as hc,a as Wr,b as fc,c as na,S as bc,u as mc,d as gc}from"./bf-487-72.js";import{O as pe,C as ra,S as en,T as ci,a as ui,b as di,c as Xo,d as xc}from"./bf-908-241.js";import{e as Ie,S as zi,i as An,C as ro,f as io,u as vc}from"./bf-176-80.js";import{b as Q,C as On,$ as Ai,S as ia,I as oa,s as wn,a as Jo}from"./bf-986-242.js";import{N as Wn,B as ur,a as yc,S as sa}from"./bf-250-243.js";import{G as it}from"./bf-22-244.js";import{S as Cr,a as Te}from"./bf-764-245.js";import{S as ot,T as wc}from"./bf-934-246.js";import{B as Qo,a as Ln}from"./bf-188-247.js";import{S as _c,a as $c,D as Sc,b as jc,c as Cc}from"./bf-85-248.js";import{L as aa,T as la,M as ca}from"./bf-930-249.js";import{P as Ic}from"./bf-5-86.js";import{F as kc}from"./bf-112-250.js";import{D as Tc}from"./bf-399-251.js";import{R as Nc}from"./bf-379-106.js";import{U as es}from"./bf-508-252.js";import{R as Mc}from"./bf-128-253.js";var Zt={},Gr={};/*! ***************************************************************************** |
| 2 |
Copyright (c) Microsoft Corporation. |
| 3 |
|
| 4 |
Permission to use, copy, modify, and/or distribute this software for any |
| 5 |
purpose with or without fee is hereby granted. |
| 6 |
|
| 7 |
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH |
| 8 |
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
| 9 |
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, |
| 10 |
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
| 11 |
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
| 12 |
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 13 |
PERFORMANCE OF THIS SOFTWARE. |
| 14 |
***************************************************************************** */var Oi=function(e,n){return Oi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])},Oi(e,n)};function L(e,n){Oi(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function Sn(e){return typeof e=="function"}var ts=!1,dt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e)var n=new Error;ts=e},get useDeprecatedSynchronousErrorHandling(){return ts}};function vn(e){setTimeout(function(){throw e},0)}var Ir={closed:!0,next:function(e){},error:function(e){if(dt.useDeprecatedSynchronousErrorHandling)throw e;vn(e)},complete:function(){}},Ke=function(){return Array.isArray||function(e){return e&&typeof e.length=="number"}}();function oo(e){return e!==null&&typeof e=="object"}var Ec=function(){function e(n){return Error.call(this),this.message=n?n.length+` errors occurred during unsubscription: |
| 15 |
`+n.map(function(t,r){return r+1+") "+t.toString()}).join(` |
| 16 |
`):"",this.name="UnsubscriptionError",this.errors=n,this}return e.prototype=Object.create(Error.prototype),e}(),Gn=Ec,ge=function(){function e(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}return e.prototype.unsubscribe=function(){var n;if(!this.closed){var t=this,r=t._parentOrParents,i=t._ctorUnsubscribe,s=t._unsubscribe,a=t._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof e)r.remove(this);else if(r!==null)for(var l=0;l<r.length;++l){var c=r[l];c.remove(this)}if(Sn(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(d){n=d instanceof Gn?ns(d.errors):[d]}}if(Ke(a))for(var l=-1,h=a.length;++l<h;){var u=a[l];if(oo(u))try{u.unsubscribe()}catch(m){n=n||[],m instanceof Gn?n=n.concat(ns(m.errors)):n.push(m)}}if(n)throw new Gn(n)}},e.prototype.add=function(n){var t=n;if(!n)return e.EMPTY;switch(typeof n){case"function":t=new e(n);case"object":if(t===this||t.closed||typeof t.unsubscribe!="function")return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof e)){var r=t;t=new e,t._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}var i=t._parentOrParents;if(i===null)t._parentOrParents=this;else if(i instanceof e){if(i===this)return t;t._parentOrParents=[i,this]}else if(i.indexOf(this)===-1)i.push(this);else return t;var s=this._subscriptions;return s===null?this._subscriptions=[t]:s.push(t),t},e.prototype.remove=function(n){var t=this._subscriptions;if(t){var r=t.indexOf(n);r!==-1&&t.splice(r,1)}},e.EMPTY=function(n){return n.closed=!0,n}(new e),e}();function ns(e){return e.reduce(function(n,t){return n.concat(t instanceof Gn?t.errors:t)},[])}var kr=function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),U=function(e){L(n,e);function n(t,r,i){var s=e.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=Ir;break;case 1:if(!t){s.destination=Ir;break}if(typeof t=="object"){t instanceof n?(s.syncErrorThrowable=t.syncErrorThrowable,s.destination=t,t.add(s)):(s.syncErrorThrowable=!0,s.destination=new rs(s,t));break}default:s.syncErrorThrowable=!0,s.destination=new rs(s,t,r,i);break}return s}return n.prototype[kr]=function(){return this},n.create=function(t,r,i){var s=new n(t,r,i);return s.syncErrorThrowable=!1,s},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},n}(ge),rs=function(e){L(n,e);function n(t,r,i,s){var a=e.call(this)||this;a._parentSubscriber=t;var l,c=a;return Sn(r)?l=r:r&&(l=r.next,i=r.error,s=r.complete,r!==Ir&&(c=Object.create(r),Sn(c.unsubscribe)&&a.add(c.unsubscribe.bind(c)),c.unsubscribe=a.unsubscribe.bind(a))),a._context=c,a._next=l,a._error=i,a._complete=s,a}return n.prototype.next=function(t){if(!this.isStopped&&this._next){var r=this._parentSubscriber;!dt.useDeprecatedSynchronousErrorHandling||!r.syncErrorThrowable?this.__tryOrUnsub(this._next,t):this.__tryOrSetError(r,this._next,t)&&this.unsubscribe()}},n.prototype.error=function(t){if(!this.isStopped){var r=this._parentSubscriber,i=dt.useDeprecatedSynchronousErrorHandling;if(this._error)!i||!r.syncErrorThrowable?(this.__tryOrUnsub(this._error,t),this.unsubscribe()):(this.__tryOrSetError(r,this._error,t),this.unsubscribe());else if(r.syncErrorThrowable)i?(r.syncErrorValue=t,r.syncErrorThrown=!0):vn(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;vn(t)}}},n.prototype.complete=function(){var t=this;if(!this.isStopped){var r=this._parentSubscriber;if(this._complete){var i=function(){return t._complete.call(t._context)};!dt.useDeprecatedSynchronousErrorHandling||!r.syncErrorThrowable?(this.__tryOrUnsub(i),this.unsubscribe()):(this.__tryOrSetError(r,i),this.unsubscribe())}else this.unsubscribe()}},n.prototype.__tryOrUnsub=function(t,r){try{t.call(this._context,r)}catch(i){if(this.unsubscribe(),dt.useDeprecatedSynchronousErrorHandling)throw i;vn(i)}},n.prototype.__tryOrSetError=function(t,r,i){if(!dt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{r.call(this._context,i)}catch(s){return dt.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(vn(s),!0)}return!1},n.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},n}(U);function so(e){for(;e;){var n=e,t=n.closed,r=n.destination,i=n.isStopped;if(t||i)return!1;r&&r instanceof U?e=r:e=null}return!0}function zc(e,n,t){if(e){if(e instanceof U)return e;if(e[kr])return e[kr]()}return!e&&!n&&!t?new U(Ir):new U(e,n,t)}var Tn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Gt(e){return e}function Li(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return ua(e)}function ua(e){return e.length===0?Gt:e.length===1?e[0]:function(t){return e.reduce(function(r,i){return i(r)},t)}}var ee=function(){function e(n){this._isScalar=!1,n&&(this._subscribe=n)}return e.prototype.lift=function(n){var t=new e;return t.source=this,t.operator=n,t},e.prototype.subscribe=function(n,t,r){var i=this.operator,s=zc(n,t,r);if(i?s.add(i.call(s,this.source)):s.add(this.source||dt.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),dt.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},e.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(t){dt.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=t),so(n)&&n.error(t)}},e.prototype.forEach=function(n,t){var r=this;return t=is(t),new t(function(i,s){var a;a=r.subscribe(function(l){try{n(l)}catch(c){s(c),a&&a.unsubscribe()}},s,i)})},e.prototype._subscribe=function(n){var t=this.source;return t&&t.subscribe(n)},e.prototype[Tn]=function(){return this},e.prototype.pipe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n.length===0?this:ua(n)(this)},e.prototype.toPromise=function(n){var t=this;return n=is(n),new n(function(r,i){var s;t.subscribe(function(a){return s=a},function(a){return i(a)},function(){return r(s)})})},e.create=function(n){return new e(n)},e}();function is(e){if(e||(e=dt.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var Ac=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),Vt=Ac,da=function(e){L(n,e);function n(t,r){var i=e.call(this)||this;return i.subject=t,i.subscriber=r,i.closed=!1,i}return n.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,r=t.observers;if(this.subject=null,!(!r||r.length===0||t.isStopped||t.closed)){var i=r.indexOf(this.subscriber);i!==-1&&r.splice(i,1)}}},n}(ge),pa=function(e){L(n,e);function n(t){var r=e.call(this,t)||this;return r.destination=t,r}return n}(U),Ee=function(e){L(n,e);function n(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return n.prototype[kr]=function(){return new pa(this)},n.prototype.lift=function(t){var r=new os(this,this);return r.operator=t,r},n.prototype.next=function(t){if(this.closed)throw new Vt;if(!this.isStopped)for(var r=this.observers,i=r.length,s=r.slice(),a=0;a<i;a++)s[a].next(t)},n.prototype.error=function(t){if(this.closed)throw new Vt;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var r=this.observers,i=r.length,s=r.slice(),a=0;a<i;a++)s[a].error(t);this.observers.length=0},n.prototype.complete=function(){if(this.closed)throw new Vt;this.isStopped=!0;for(var t=this.observers,r=t.length,i=t.slice(),s=0;s<r;s++)i[s].complete();this.observers.length=0},n.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},n.prototype._trySubscribe=function(t){if(this.closed)throw new Vt;return e.prototype._trySubscribe.call(this,t)},n.prototype._subscribe=function(t){if(this.closed)throw new Vt;return this.hasError?(t.error(this.thrownError),ge.EMPTY):this.isStopped?(t.complete(),ge.EMPTY):(this.observers.push(t),new da(this,t))},n.prototype.asObservable=function(){var t=new ee;return t.source=this,t},n.create=function(t,r){return new os(t,r)},n}(ee),os=function(e){L(n,e);function n(t,r){var i=e.call(this)||this;return i.destination=t,i.source=r,i}return n.prototype.next=function(t){var r=this.destination;r&&r.next&&r.next(t)},n.prototype.error=function(t){var r=this.destination;r&&r.error&&this.destination.error(t)},n.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},n.prototype._subscribe=function(t){var r=this.source;return r?this.source.subscribe(t):ge.EMPTY},n}(Ee);function ao(){return function(n){return n.lift(new Oc(n))}}var Oc=function(){function e(n){this.connectable=n}return e.prototype.call=function(n,t){var r=this.connectable;r._refCount++;var i=new Lc(n,r),s=t.subscribe(i);return i.closed||(i.connection=r.connect()),s},e}(),Lc=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.connectable=r,i}return n.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var r=t._refCount;if(r<=0){this.connection=null;return}if(t._refCount=r-1,r>1){this.connection=null;return}var i=this.connection,s=t._connection;this.connection=null,s&&(!i||s===i)&&s.unsubscribe()},n}(U),ha=function(e){L(n,e);function n(t,r){var i=e.call(this)||this;return i.source=t,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return n.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},n.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},n.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,t=this._connection=new ge,t.add(this.source.subscribe(new Rc(this.getSubject(),this))),t.closed&&(this._connection=null,t=ge.EMPTY)),t},n.prototype.refCount=function(){return ao()(this)},n}(ee),Bc=function(){var e=ha.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),Rc=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.connectable=r,i}return n.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},n.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},n.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var r=t._connection;t._refCount=0,t._subject=null,t._connection=null,r&&r.unsubscribe()}},n}(pa);function Pc(e,n,t,r){return function(i){return i.lift(new Fc(e,n,t,r))}}var Fc=function(){function e(n,t,r,i){this.keySelector=n,this.elementSelector=t,this.durationSelector=r,this.subjectSelector=i}return e.prototype.call=function(n,t){return t.subscribe(new Dc(n,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),Dc=function(e){L(n,e);function n(t,r,i,s,a){var l=e.call(this,t)||this;return l.keySelector=r,l.elementSelector=i,l.durationSelector=s,l.subjectSelector=a,l.groups=null,l.attemptedToUnsubscribe=!1,l.count=0,l}return n.prototype._next=function(t){var r;try{r=this.keySelector(t)}catch(i){this.error(i);return}this._group(t,r)},n.prototype._group=function(t,r){var i=this.groups;i||(i=this.groups=new Map);var s=i.get(r),a;if(this.elementSelector)try{a=this.elementSelector(t)}catch(h){this.error(h)}else a=t;if(!s){s=this.subjectSelector?this.subjectSelector():new Ee,i.set(r,s);var l=new Bi(r,s,this);if(this.destination.next(l),this.durationSelector){var c=void 0;try{c=this.durationSelector(new Bi(r,s))}catch(h){this.error(h);return}this.add(c.subscribe(new Hc(r,s,this)))}}s.closed||s.next(a)},n.prototype._error=function(t){var r=this.groups;r&&(r.forEach(function(i,s){i.error(t)}),r.clear()),this.destination.error(t)},n.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(r,i){r.complete()}),t.clear()),this.destination.complete()},n.prototype.removeGroup=function(t){this.groups.delete(t)},n.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,this.count===0&&e.prototype.unsubscribe.call(this))},n}(U),Hc=function(e){L(n,e);function n(t,r,i){var s=e.call(this,r)||this;return s.key=t,s.group=r,s.parent=i,s}return n.prototype._next=function(t){this.complete()},n.prototype._unsubscribe=function(){var t=this,r=t.parent,i=t.key;this.key=this.parent=null,r&&r.removeGroup(i)},n}(U),Bi=function(e){L(n,e);function n(t,r,i){var s=e.call(this)||this;return s.key=t,s.groupSubject=r,s.refCountSubscription=i,s}return n.prototype._subscribe=function(t){var r=new ge,i=this,s=i.refCountSubscription,a=i.groupSubject;return s&&!s.closed&&r.add(new Vc(s)),r.add(a.subscribe(t)),r},n}(ee),Vc=function(e){L(n,e);function n(t){var r=e.call(this)||this;return r.parent=t,t.count++,r}return n.prototype.unsubscribe=function(){var t=this.parent;!t.closed&&!this.closed&&(e.prototype.unsubscribe.call(this),t.count-=1,t.count===0&&t.attemptedToUnsubscribe&&t.unsubscribe())},n}(ge),fa=function(e){L(n,e);function n(t){var r=e.call(this)||this;return r._value=t,r}return Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),n.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r&&!r.closed&&t.next(this._value),r},n.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Vt;return this._value},n.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},n}(Ee),Wc=function(e){L(n,e);function n(t,r){return e.call(this)||this}return n.prototype.schedule=function(t,r){return this},n}(ge),tr=function(e){L(n,e);function n(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.pending=!1,i}return n.prototype.schedule=function(t,r){if(r===void 0&&(r=0),this.closed)return this;this.state=t;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,r)),this.pending=!0,this.delay=r,this.id=this.id||this.requestAsyncId(s,this.id,r),this},n.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),setInterval(t.flush.bind(t,this),i)},n.prototype.recycleAsyncId=function(t,r,i){if(i===void 0&&(i=0),i!==null&&this.delay===i&&this.pending===!1)return r;clearInterval(r)},n.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(t,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(t,r){var i=!1,s=void 0;try{this.work(t)}catch(a){i=!0,s=!!a&&a||new Error(a)}if(i)return this.unsubscribe(),s},n.prototype._unsubscribe=function(){var t=this.id,r=this.scheduler,i=r.actions,s=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,s!==-1&&i.splice(s,1),t!=null&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null},n}(Wc),Gc=function(e){L(n,e);function n(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i}return n.prototype.schedule=function(t,r){return r===void 0&&(r=0),r>0?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},n.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},n.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),i!==null&&i>0||i===null&&this.delay>0?e.prototype.requestAsyncId.call(this,t,r,i):t.flush(this)},n}(tr),Ri=function(){function e(n,t){t===void 0&&(t=e.now),this.SchedulerAction=n,this.now=t}return e.prototype.schedule=function(n,t,r){return t===void 0&&(t=0),new this.SchedulerAction(this,n).schedule(r,t)},e.now=function(){return Date.now()},e}(),nr=function(e){L(n,e);function n(t,r){r===void 0&&(r=Ri.now);var i=e.call(this,t,function(){return n.delegate&&n.delegate!==i?n.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return n.prototype.schedule=function(t,r,i){return r===void 0&&(r=0),n.delegate&&n.delegate!==this?n.delegate.schedule(t,r,i):e.prototype.schedule.call(this,t,r,i)},n.prototype.flush=function(t){var r=this.actions;if(this.active){r.push(t);return}var i;this.active=!0;do if(i=t.execute(t.state,t.delay))break;while(t=r.shift());if(this.active=!1,i){for(;t=r.shift();)t.unsubscribe();throw i}},n}(Ri),Uc=function(e){L(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(nr),ba=new Uc(Gc),ma=ba,jn=new ee(function(e){return e.complete()});function Nn(e){return e?Kc(e):jn}function Kc(e){return new ee(function(n){return e.schedule(function(){return n.complete()})})}function st(e){return e&&typeof e.schedule=="function"}var ga=function(e){return function(n){for(var t=0,r=e.length;t<r&&!n.closed;t++)n.next(e[t]);n.complete()}};function lo(e,n){return new ee(function(t){var r=new ge,i=0;return r.add(n.schedule(function(){if(i===e.length){t.complete();return}t.next(e[i++]),t.closed||r.add(this.schedule())})),r})}function rr(e,n){return n?lo(e,n):new ee(ga(e))}function Ur(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e[e.length-1];return st(t)?(e.pop(),lo(e,t)):rr(e)}function co(e,n){return n?new ee(function(t){return n.schedule(Yc,0,{error:e,subscriber:t})}):new ee(function(t){return t.error(e)})}function Yc(e){var n=e.error,t=e.subscriber;t.error(n)}var Pi;Pi||(Pi={});var Nt=function(){function e(n,t,r){this.kind=n,this.value=t,this.error=r,this.hasValue=n==="N"}return e.prototype.observe=function(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}},e.prototype.do=function(n,t,r){var i=this.kind;switch(i){case"N":return n&&n(this.value);case"E":return t&&t(this.error);case"C":return r&&r()}},e.prototype.accept=function(n,t,r){return n&&typeof n.next=="function"?this.observe(n):this.do(n,t,r)},e.prototype.toObservable=function(){var n=this.kind;switch(n){case"N":return Ur(this.value);case"E":return co(this.error);case"C":return Nn()}throw new Error("unexpected notification kind value")},e.createNext=function(n){return typeof n!="undefined"?new e("N",n):e.undefinedValueNotification},e.createError=function(n){return new e("E",void 0,n)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();function qc(e,n){return n===void 0&&(n=0),function(r){return r.lift(new Zc(e,n))}}var Zc=function(){function e(n,t){t===void 0&&(t=0),this.scheduler=n,this.delay=t}return e.prototype.call=function(n,t){return t.subscribe(new xa(n,this.scheduler,this.delay))},e}(),xa=function(e){L(n,e);function n(t,r,i){i===void 0&&(i=0);var s=e.call(this,t)||this;return s.scheduler=r,s.delay=i,s}return n.dispatch=function(t){var r=t.notification,i=t.destination;r.observe(i),this.unsubscribe()},n.prototype.scheduleMessage=function(t){var r=this.destination;r.add(this.scheduler.schedule(n.dispatch,this.delay,new Xc(t,this.destination)))},n.prototype._next=function(t){this.scheduleMessage(Nt.createNext(t))},n.prototype._error=function(t){this.scheduleMessage(Nt.createError(t)),this.unsubscribe()},n.prototype._complete=function(){this.scheduleMessage(Nt.createComplete()),this.unsubscribe()},n}(U),Xc=function(){function e(n,t){this.notification=n,this.destination=t}return e}(),uo=function(e){L(n,e);function n(t,r,i){t===void 0&&(t=Number.POSITIVE_INFINITY),r===void 0&&(r=Number.POSITIVE_INFINITY);var s=e.call(this)||this;return s.scheduler=i,s._events=[],s._infiniteTimeWindow=!1,s._bufferSize=t<1?1:t,s._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(s._infiniteTimeWindow=!0,s.next=s.nextInfiniteTimeWindow):s.next=s.nextTimeWindow,s}return n.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var r=this._events;r.push(t),r.length>this._bufferSize&&r.shift()}e.prototype.next.call(this,t)},n.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new Jc(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},n.prototype._subscribe=function(t){var r=this._infiniteTimeWindow,i=r?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,a=i.length,l;if(this.closed)throw new Vt;if(this.isStopped||this.hasError?l=ge.EMPTY:(this.observers.push(t),l=new da(this,t)),s&&t.add(t=new xa(t,s)),r)for(var c=0;c<a&&!t.closed;c++)t.next(i[c]);else for(var c=0;c<a&&!t.closed;c++)t.next(i[c].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),l},n.prototype._getNow=function(){return(this.scheduler||ma).now()},n.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),r=this._bufferSize,i=this._windowTime,s=this._events,a=s.length,l=0;l<a&&!(t-s[l].time<i);)l++;return a>r&&(l=Math.max(l,a-r)),l>0&&s.splice(0,l),s},n}(Ee),Jc=function(){function e(n,t){this.time=n,this.value=t}return e}(),Mn=function(e){L(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return n.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),ge.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),ge.EMPTY):e.prototype._subscribe.call(this,t)},n.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},n.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},n.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},n}(Ee),Qc=1,eu=function(){return Promise.resolve()}(),Fi={};function ss(e){return e in Fi?(delete Fi[e],!0):!1}var as={setImmediate:function(e){var n=Qc++;return Fi[n]=!0,eu.then(function(){return ss(n)&&e()}),n},clearImmediate:function(e){ss(e)}},tu=function(e){L(n,e);function n(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i}return n.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,t,r,i):(t.actions.push(this),t.scheduled||(t.scheduled=as.setImmediate(t.flush.bind(t,null))))},n.prototype.recycleAsyncId=function(t,r,i){if(i===void 0&&(i=0),i!==null&&i>0||i===null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,i);t.actions.length===0&&(as.clearImmediate(r),t.scheduled=void 0)},n}(tr),nu=function(e){L(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var r=this.actions,i,s=-1,a=r.length;t=t||r.shift();do if(i=t.execute(t.state,t.delay))break;while(++s<a&&(t=r.shift()));if(this.active=!1,i){for(;++s<a&&(t=r.shift());)t.unsubscribe();throw i}},n}(nr),va=new nu(tu),vr=va,ya=new nr(tr),Ye=ya,ru=function(e){L(n,e);function n(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i}return n.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,t,r,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},n.prototype.recycleAsyncId=function(t,r,i){if(i===void 0&&(i=0),i!==null&&i>0||i===null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,i);t.actions.length===0&&(cancelAnimationFrame(r),t.scheduled=void 0)},n}(tr),iu=function(e){L(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var r=this.actions,i,s=-1,a=r.length;t=t||r.shift();do if(i=t.execute(t.state,t.delay))break;while(++s<a&&(t=r.shift()));if(this.active=!1,i){for(;++s<a&&(t=r.shift());)t.unsubscribe();throw i}},n}(nr),wa=new iu(ru),ou=wa,su=function(e){L(n,e);function n(t,r){t===void 0&&(t=_a),r===void 0&&(r=Number.POSITIVE_INFINITY);var i=e.call(this,t,function(){return i.frame})||this;return i.maxFrames=r,i.frame=0,i.index=-1,i}return n.prototype.flush=function(){for(var t=this,r=t.actions,i=t.maxFrames,s,a;(a=r[0])&&a.delay<=i&&(r.shift(),this.frame=a.delay,!(s=a.execute(a.state,a.delay))););if(s){for(;a=r.shift();)a.unsubscribe();throw s}},n.frameTimeFactor=10,n}(nr),_a=function(e){L(n,e);function n(t,r,i){i===void 0&&(i=t.index+=1);var s=e.call(this,t,r)||this;return s.scheduler=t,s.work=r,s.index=i,s.active=!0,s.index=t.index=i,s}return n.prototype.schedule=function(t,r){if(r===void 0&&(r=0),!this.id)return e.prototype.schedule.call(this,t,r);this.active=!1;var i=new n(this.scheduler,this.work);return this.add(i),i.schedule(t,r)},n.prototype.requestAsyncId=function(t,r,i){i===void 0&&(i=0),this.delay=t.frame+i;var s=t.actions;return s.push(this),s.sort(n.sortActions),!0},n.prototype.recycleAsyncId=function(t,r,i){},n.prototype._execute=function(t,r){if(this.active===!0)return e.prototype._execute.call(this,t,r)},n.sortActions=function(t,r){return t.delay===r.delay?t.index===r.index?0:t.index>r.index?1:-1:t.delay>r.delay?1:-1},n}(tr);function wt(){}function au(e){return!!e&&(e instanceof ee||typeof e.lift=="function"&&typeof e.subscribe=="function")}var lu=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}(),Cn=lu,cu=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}(),ir=cu,uu=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}(),$a=uu;function pt(e,n){return function(r){if(typeof e!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new du(e,n))}}var du=function(){function e(n,t){this.project=n,this.thisArg=t}return e.prototype.call=function(n,t){return t.subscribe(new pu(n,this.project,this.thisArg))},e}(),pu=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.project=r,s.count=0,s.thisArg=i||s,s}return n.prototype._next=function(t){var r;try{r=this.project.call(this.thisArg,t,this.count++)}catch(i){this.destination.error(i);return}this.destination.next(r)},n}(U);function Sa(e,n,t){if(n)if(st(n))t=n;else return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return Sa(e,t).apply(void 0,r).pipe(pt(function(s){return Ke(s)?n.apply(void 0,s):n(s)}))};return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=this,a,l={context:s,subject:a,callbackFunc:e,scheduler:t};return new ee(function(c){if(t){var u={args:r,subscriber:c,params:l};return t.schedule(hu,0,u)}else{if(!a){a=new Mn;var h=function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];a.next(d.length<=1?d[0]:d),a.complete()};try{e.apply(s,r.concat([h]))}catch(d){so(a)&&a.error(d)}}return a.subscribe(c)}})}}function hu(e){var n=this,t=e.args,r=e.subscriber,i=e.params,s=i.callbackFunc,a=i.context,l=i.scheduler,c=i.subject;if(!c){c=i.subject=new Mn;var h=function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];var m=u.length<=1?u[0]:u;n.add(l.schedule(fu,0,{value:m,subject:c}))};try{s.apply(a,t.concat([h]))}catch(u){c.error(u)}}this.add(c.subscribe(r))}function fu(e){var n=e.value,t=e.subject;t.next(n),t.complete()}function ja(e,n,t){if(n)if(st(n))t=n;else return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return ja(e,t).apply(void 0,r).pipe(pt(function(s){return Ke(s)?n.apply(void 0,s):n(s)}))};return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s={subject:void 0,args:r,callbackFunc:e,scheduler:t,context:this};return new ee(function(a){var l=s.context,c=s.subject;if(t)return t.schedule(bu,0,{params:s,subscriber:a,context:l});if(!c){c=s.subject=new Mn;var h=function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];var m=u.shift();if(m){c.error(m);return}c.next(u.length<=1?u[0]:u),c.complete()};try{e.apply(l,r.concat([h]))}catch(u){so(c)&&c.error(u)}}return c.subscribe(a)})}}function bu(e){var n=this,t=e.params,r=e.subscriber,i=e.context,s=t.callbackFunc,a=t.args,l=t.scheduler,c=t.subject;if(!c){c=t.subject=new Mn;var h=function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];var m=u.shift();if(m)n.add(l.schedule(ls,0,{err:m,subject:c}));else{var w=u.length<=1?u[0]:u;n.add(l.schedule(mu,0,{value:w,subject:c}))}};try{s.apply(i,a.concat([h]))}catch(u){this.add(l.schedule(ls,0,{err:u,subject:c}))}}this.add(c.subscribe(r))}function mu(e){var n=e.value,t=e.subject;t.next(n),t.complete()}function ls(e){var n=e.err,t=e.subject;t.error(n)}var an=function(e){L(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.notifyNext=function(t,r,i,s,a){this.destination.next(r)},n.prototype.notifyError=function(t,r){this.destination.error(t)},n.prototype.notifyComplete=function(t){this.destination.complete()},n}(U),gu=function(e){L(n,e);function n(t,r,i){var s=e.call(this)||this;return s.parent=t,s.outerValue=r,s.outerIndex=i,s.index=0,s}return n.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},n.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},n.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},n}(U),xu=function(e){return function(n){return e.then(function(t){n.closed||(n.next(t),n.complete())},function(t){return n.error(t)}).then(null,vn),n}};function vu(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ut=vu(),yu=function(e){return function(n){var t=e[Ut]();do{var r=void 0;try{r=t.next()}catch(i){return n.error(i),n}if(r.done){n.complete();break}if(n.next(r.value),n.closed)break}while(!0);return typeof t.return=="function"&&n.add(function(){t.return&&t.return()}),n}},wu=function(e){return function(n){var t=e[Tn]();if(typeof t.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(n)}},Ca=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Ia(e){return!!e&&typeof e.subscribe!="function"&&typeof e.then=="function"}var Yn=function(e){if(e&&typeof e[Tn]=="function")return wu(e);if(Ca(e))return ga(e);if(Ia(e))return xu(e);if(e&&typeof e[Ut]=="function")return yu(e);var n=oo(e)?"an invalid object":"'"+e+"'",t="You provided "+n+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(t)};function zt(e,n,t,r,i){if(i===void 0&&(i=new gu(e,t,r)),!i.closed)return n instanceof ee?n.subscribe(i):Yn(n)(i)}var cs={};function _u(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=void 0,r=void 0;return st(e[e.length-1])&&(r=e.pop()),typeof e[e.length-1]=="function"&&(t=e.pop()),e.length===1&&Ke(e[0])&&(e=e[0]),rr(e,r).lift(new po(t))}var po=function(){function e(n){this.resultSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new $u(n,this.resultSelector))},e}(),$u=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.resultSelector=r,i.active=0,i.values=[],i.observables=[],i}return n.prototype._next=function(t){this.values.push(cs),this.observables.push(t)},n.prototype._complete=function(){var t=this.observables,r=t.length;if(r===0)this.destination.complete();else{this.active=r,this.toRespond=r;for(var i=0;i<r;i++){var s=t[i];this.add(zt(this,s,void 0,i))}}},n.prototype.notifyComplete=function(t){(this.active-=1)===0&&this.destination.complete()},n.prototype.notifyNext=function(t,r,i){var s=this.values,a=s[i],l=this.toRespond?a===cs?--this.toRespond:this.toRespond:0;s[i]=r,l===0&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))},n.prototype._tryResultSelector=function(t){var r;try{r=this.resultSelector.apply(this,t)}catch(i){this.destination.error(i);return}this.destination.next(r)},n}(an);function Su(e,n){return new ee(function(t){var r=new ge;return r.add(n.schedule(function(){var i=e[Tn]();r.add(i.subscribe({next:function(s){r.add(n.schedule(function(){return t.next(s)}))},error:function(s){r.add(n.schedule(function(){return t.error(s)}))},complete:function(){r.add(n.schedule(function(){return t.complete()}))}}))})),r})}function ju(e,n){return new ee(function(t){var r=new ge;return r.add(n.schedule(function(){return e.then(function(i){r.add(n.schedule(function(){t.next(i),r.add(n.schedule(function(){return t.complete()}))}))},function(i){r.add(n.schedule(function(){return t.error(i)}))})})),r})}function Cu(e,n){if(!e)throw new Error("Iterable cannot be null");return new ee(function(t){var r=new ge,i;return r.add(function(){i&&typeof i.return=="function"&&i.return()}),r.add(n.schedule(function(){i=e[Ut](),r.add(n.schedule(function(){if(!t.closed){var s,a;try{var l=i.next();s=l.value,a=l.done}catch(c){t.error(c);return}a?t.complete():(t.next(s),this.schedule())}}))})),r})}function Iu(e){return e&&typeof e[Tn]=="function"}function ku(e){return e&&typeof e[Ut]=="function"}function ka(e,n){if(e!=null){if(Iu(e))return Su(e,n);if(Ia(e))return ju(e,n);if(Ca(e))return lo(e,n);if(ku(e)||typeof e=="string")return Cu(e,n)}throw new TypeError((e!==null&&typeof e||e)+" is not observable")}function At(e,n){return n?ka(e,n):e instanceof ee?e:new ee(Yn(e))}var we=function(e){L(n,e);function n(t){var r=e.call(this)||this;return r.parent=t,r}return n.prototype._next=function(t){this.parent.notifyNext(t)},n.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},n.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},n}(U),_e=function(e){L(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.notifyNext=function(t){this.destination.next(t)},n.prototype.notifyError=function(t){this.destination.error(t)},n.prototype.notifyComplete=function(){this.destination.complete()},n}(U);function $e(e,n){if(!n.closed){if(e instanceof ee)return e.subscribe(n);var t;try{t=Yn(e)(n)}catch(r){n.error(r)}return t}}function rn(e,n,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof n=="function"?function(r){return r.pipe(rn(function(i,s){return At(e(i,s)).pipe(pt(function(a,l){return n(i,a,s,l)}))},t))}:(typeof n=="number"&&(t=n),function(r){return r.lift(new Tu(e,t))})}var Tu=function(){function e(n,t){t===void 0&&(t=Number.POSITIVE_INFINITY),this.project=n,this.concurrent=t}return e.prototype.call=function(n,t){return t.subscribe(new Nu(n,this.project,this.concurrent))},e}(),Nu=function(e){L(n,e);function n(t,r,i){i===void 0&&(i=Number.POSITIVE_INFINITY);var s=e.call(this,t)||this;return s.project=r,s.concurrent=i,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return n.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},n.prototype._tryNext=function(t){var r,i=this.index++;try{r=this.project(t,i)}catch(s){this.destination.error(s);return}this.active++,this._innerSub(r)},n.prototype._innerSub=function(t){var r=new we(this),i=this.destination;i.add(r);var s=$e(t,r);s!==r&&i.add(s)},n.prototype._complete=function(){this.hasCompleted=!0,this.active===0&&this.buffer.length===0&&this.destination.complete(),this.unsubscribe()},n.prototype.notifyNext=function(t){this.destination.next(t)},n.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},n}(_e),Mu=rn;function ho(e){return e===void 0&&(e=Number.POSITIVE_INFINITY),rn(Gt,e)}function Ta(){return ho(1)}function qn(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Ta()(Ur.apply(void 0,e))}function fo(e){return new ee(function(n){var t;try{t=e()}catch(i){n.error(i);return}var r=t?At(t):Nn();return r.subscribe(n)})}function Eu(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length===1){var t=e[0];if(Ke(t))return dr(t,null);if(oo(t)&&Object.getPrototypeOf(t)===Object.prototype){var r=Object.keys(t);return dr(r.map(function(s){return t[s]}),r)}}if(typeof e[e.length-1]=="function"){var i=e.pop();return e=e.length===1&&Ke(e[0])?e[0]:e,dr(e,null).pipe(pt(function(s){return i.apply(void 0,s)}))}return dr(e,null)}function dr(e,n){return new ee(function(t){var r=e.length;if(r===0){t.complete();return}for(var i=new Array(r),s=0,a=0,l=function(h){var u=At(e[h]),d=!1;t.add(u.subscribe({next:function(m){d||(d=!0,a++),i[h]=m},error:function(m){return t.error(m)},complete:function(){s++,(s===r||!d)&&(a===r&&t.next(n?n.reduce(function(m,w,S){return m[w]=i[S],m},{}):i),t.complete())}}))},c=0;c<r;c++)l(c)})}function Na(e,n,t,r){return Sn(t)&&(r=t,t=void 0),r?Na(e,n,t).pipe(pt(function(i){return Ke(i)?r.apply(void 0,i):r(i)})):new ee(function(i){function s(a){arguments.length>1?i.next(Array.prototype.slice.call(arguments)):i.next(a)}Ma(e,n,s,i,t)})}function Ma(e,n,t,r,i){var s;if(Ou(e)){var a=e;e.addEventListener(n,t,i),s=function(){return a.removeEventListener(n,t,i)}}else if(Au(e)){var l=e;e.on(n,t),s=function(){return l.off(n,t)}}else if(zu(e)){var c=e;e.addListener(n,t),s=function(){return c.removeListener(n,t)}}else if(e&&e.length)for(var h=0,u=e.length;h<u;h++)Ma(e[h],n,t,r,i);else throw new TypeError("Invalid event target");r.add(s)}function zu(e){return e&&typeof e.addListener=="function"&&typeof e.removeListener=="function"}function Au(e){return e&&typeof e.on=="function"&&typeof e.off=="function"}function Ou(e){return e&&typeof e.addEventListener=="function"&&typeof e.removeEventListener=="function"}function Ea(e,n,t){return t?Ea(e,n).pipe(pt(function(r){return Ke(r)?t.apply(void 0,r):t(r)})):new ee(function(r){var i=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return r.next(a.length===1?a[0]:a)},s;try{s=e(i)}catch(a){r.error(a);return}if(Sn(n))return function(){return n(i,s)}})}function Lu(e,n,t,r,i){var s,a;if(arguments.length==1){var l=e;a=l.initialState,n=l.condition,t=l.iterate,s=l.resultSelector||Gt,i=l.scheduler}else r===void 0||st(r)?(a=e,s=Gt,i=r):(a=e,s=r);return new ee(function(c){var h=a;if(i)return i.schedule(Bu,0,{subscriber:c,iterate:t,condition:n,resultSelector:s,state:h});do{if(n){var u=void 0;try{u=n(h)}catch(m){c.error(m);return}if(!u){c.complete();break}}var d=void 0;try{d=s(h)}catch(m){c.error(m);return}if(c.next(d),c.closed)break;try{h=t(h)}catch(m){c.error(m);return}}while(!0)})}function Bu(e){var n=e.subscriber,t=e.condition;if(!n.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(s){n.error(s);return}else e.needIterate=!0;if(t){var r=void 0;try{r=t(e.state)}catch(s){n.error(s);return}if(!r){n.complete();return}if(n.closed)return}var i;try{i=e.resultSelector(e.state)}catch(s){n.error(s);return}if(!n.closed&&(n.next(i),!n.closed))return this.schedule(e)}}function Ru(e,n,t){return n===void 0&&(n=jn),t===void 0&&(t=jn),fo(function(){return e()?n:t})}function In(e){return!Ke(e)&&e-parseFloat(e)+1>=0}function Pu(e,n){return e===void 0&&(e=0),n===void 0&&(n=Ye),(!In(e)||e<0)&&(e=0),(!n||typeof n.schedule!="function")&&(n=Ye),new ee(function(t){return t.add(n.schedule(Fu,e,{subscriber:t,counter:0,period:e})),t})}function Fu(e){var n=e.subscriber,t=e.counter,r=e.period;n.next(t),this.schedule({subscriber:n,counter:t+1,period:r},r)}function za(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Number.POSITIVE_INFINITY,r=null,i=e[e.length-1];return st(i)?(r=e.pop(),e.length>1&&typeof e[e.length-1]=="number"&&(t=e.pop())):typeof i=="number"&&(t=e.pop()),r===null&&e.length===1&&e[0]instanceof ee?e[0]:ho(t)(rr(e,r))}var Aa=new ee(wt);function Du(){return Aa}function Di(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length===0)return jn;var t=e[0],r=e.slice(1);return e.length===1&&Ke(t)?Di.apply(void 0,t):new ee(function(i){var s=function(){return i.add(Di.apply(void 0,r).subscribe(i))};return At(t).subscribe({next:function(a){i.next(a)},error:s,complete:s})})}function Hu(e,n){return n?new ee(function(t){var r=Object.keys(e),i=new ge;return i.add(n.schedule(Vu,0,{keys:r,index:0,subscriber:t,subscription:i,obj:e})),i}):new ee(function(t){for(var r=Object.keys(e),i=0;i<r.length&&!t.closed;i++){var s=r[i];e.hasOwnProperty(s)&&t.next([s,e[s]])}t.complete()})}function Vu(e){var n=e.keys,t=e.index,r=e.subscriber,i=e.subscription,s=e.obj;if(!r.closed)if(t<n.length){var a=n[t];r.next([a,s[a]]),i.add(this.schedule({keys:n,index:t+1,subscriber:r,subscription:i,obj:s}))}else r.complete()}function Oa(e,n){function t(){return!t.pred.apply(t.thisArg,arguments)}return t.pred=e,t.thisArg=n,t}function Kt(e,n){return function(r){return r.lift(new Wu(e,n))}}var Wu=function(){function e(n,t){this.predicate=n,this.thisArg=t}return e.prototype.call=function(n,t){return t.subscribe(new Gu(n,this.predicate,this.thisArg))},e}(),Gu=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.predicate=r,s.thisArg=i,s.count=0,s}return n.prototype._next=function(t){var r;try{r=this.predicate.call(this.thisArg,t,this.count++)}catch(i){this.destination.error(i);return}r&&this.destination.next(t)},n}(U);function Uu(e,n,t){return[Kt(n,t)(new ee(Yn(e))),Kt(Oa(n,t))(new ee(Yn(e)))]}function La(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length===1)if(Ke(e[0]))e=e[0];else return e[0];return rr(e,void 0).lift(new Ku)}var Ku=function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new Yu(n))},e}(),Yu=function(e){L(n,e);function n(t){var r=e.call(this,t)||this;return r.hasFirst=!1,r.observables=[],r.subscriptions=[],r}return n.prototype._next=function(t){this.observables.push(t)},n.prototype._complete=function(){var t=this.observables,r=t.length;if(r===0)this.destination.complete();else{for(var i=0;i<r&&!this.hasFirst;i++){var s=t[i],a=zt(this,s,void 0,i);this.subscriptions&&this.subscriptions.push(a),this.add(a)}this.observables=null}},n.prototype.notifyNext=function(t,r,i){if(!this.hasFirst){this.hasFirst=!0;for(var s=0;s<this.subscriptions.length;s++)if(s!==i){var a=this.subscriptions[s];a.unsubscribe(),this.remove(a)}this.subscriptions=null}this.destination.next(r)},n}(an);function qu(e,n,t){return e===void 0&&(e=0),new ee(function(r){n===void 0&&(n=e,e=0);var i=0,s=e;if(t)return t.schedule(Zu,0,{index:i,count:n,start:e,subscriber:r});do{if(i++>=n){r.complete();break}if(r.next(s++),r.closed)break}while(!0)})}function Zu(e){var n=e.start,t=e.index,r=e.count,i=e.subscriber;if(t>=r){i.complete();return}i.next(n),!i.closed&&(e.index=t+1,e.start=n+1,this.schedule(e))}function Ba(e,n,t){e===void 0&&(e=0);var r=-1;return In(n)?r=Number(n)<1&&1||Number(n):st(n)&&(t=n),st(t)||(t=Ye),new ee(function(i){var s=In(e)?e:+e-t.now();return t.schedule(Xu,s,{index:0,period:r,subscriber:i})})}function Xu(e){var n=e.index,t=e.period,r=e.subscriber;if(r.next(n),!r.closed){if(t===-1)return r.complete();e.index=n+1,this.schedule(e,t)}}function Ju(e,n){return new ee(function(t){var r;try{r=e()}catch(l){t.error(l);return}var i;try{i=n(r)}catch(l){t.error(l);return}var s=i?At(i):jn,a=s.subscribe(t);return function(){a.unsubscribe(),r&&r.unsubscribe()}})}function Ra(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e[e.length-1];return typeof t=="function"&&e.pop(),rr(e,void 0).lift(new Pa(t))}var Pa=function(){function e(n){this.resultSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new Qu(n,this.resultSelector))},e}(),Qu=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.resultSelector=r,s.iterators=[],s.active=0,s.resultSelector=typeof r=="function"?r:void 0,s}return n.prototype._next=function(t){var r=this.iterators;Ke(t)?r.push(new td(t)):typeof t[Ut]=="function"?r.push(new ed(t[Ut]())):r.push(new nd(this.destination,this,t))},n.prototype._complete=function(){var t=this.iterators,r=t.length;if(this.unsubscribe(),r===0){this.destination.complete();return}this.active=r;for(var i=0;i<r;i++){var s=t[i];if(s.stillUnsubscribed){var a=this.destination;a.add(s.subscribe())}else this.active--}},n.prototype.notifyInactive=function(){this.active--,this.active===0&&this.destination.complete()},n.prototype.checkIterators=function(){for(var t=this.iterators,r=t.length,i=this.destination,s=0;s<r;s++){var a=t[s];if(typeof a.hasValue=="function"&&!a.hasValue())return}for(var l=!1,c=[],s=0;s<r;s++){var a=t[s],h=a.next();if(a.hasCompleted()&&(l=!0),h.done){i.complete();return}c.push(h.value)}this.resultSelector?this._tryresultSelector(c):i.next(c),l&&i.complete()},n.prototype._tryresultSelector=function(t){var r;try{r=this.resultSelector.apply(this,t)}catch(i){this.destination.error(i);return}this.destination.next(r)},n}(U),ed=function(){function e(n){this.iterator=n,this.nextResult=n.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var n=this.nextResult;return this.nextResult=this.iterator.next(),n},e.prototype.hasCompleted=function(){var n=this.nextResult;return!!(n&&n.done)},e}(),td=function(){function e(n){this.array=n,this.index=0,this.length=0,this.length=n.length}return e.prototype[Ut]=function(){return this},e.prototype.next=function(n){var t=this.index++,r=this.array;return t<this.length?{value:r[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),nd=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.parent=r,s.observable=i,s.stillUnsubscribed=!0,s.buffer=[],s.isComplete=!1,s}return n.prototype[Ut]=function(){return this},n.prototype.next=function(){var t=this.buffer;return t.length===0&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},n.prototype.hasValue=function(){return this.buffer.length>0},n.prototype.hasCompleted=function(){return this.buffer.length===0&&this.isComplete},n.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},n.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},n.prototype.subscribe=function(){return $e(this.observable,new we(this))},n}(_e),rd=Object.freeze({__proto__:null,ArgumentOutOfRangeError:Cn,AsyncSubject:Mn,BehaviorSubject:fa,ConnectableObservable:ha,EMPTY:jn,EmptyError:ir,GroupedObservable:Bi,NEVER:Aa,Notification:Nt,get NotificationKind(){return Pi},ObjectUnsubscribedError:Vt,Observable:ee,ReplaySubject:uo,Scheduler:Ri,Subject:Ee,Subscriber:U,Subscription:ge,TimeoutError:$a,UnsubscriptionError:Gn,VirtualAction:_a,VirtualTimeScheduler:su,animationFrame:ou,animationFrameScheduler:wa,asap:vr,asapScheduler:va,async:Ye,asyncScheduler:ya,bindCallback:Sa,bindNodeCallback:ja,combineLatest:_u,concat:qn,config:dt,defer:fo,empty:Nn,forkJoin:Eu,from:At,fromEvent:Na,fromEventPattern:Ea,generate:Lu,identity:Gt,iif:Ru,interval:Pu,isObservable:au,merge:za,never:Du,noop:wt,observable:Tn,of:Ur,onErrorResumeNext:Di,pairs:Hu,partition:Uu,pipe:Li,queue:ma,queueScheduler:ba,race:La,range:qu,scheduled:ka,throwError:co,timer:Ba,using:Ju,zip:Ra}),bo=Yi(rd);function Fa(e){return function(t){return t.lift(new id(e))}}var id=function(){function e(n){this.durationSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new od(n,this.durationSelector))},e}(),od=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.durationSelector=r,i.hasValue=!1,i}return n.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var r=void 0;try{var i=this.durationSelector;r=i(t)}catch(a){return this.destination.error(a)}var s=$e(r,new we(this));!s||s.closed?this.clearThrottle():this.add(this.throttled=s)}},n.prototype.clearThrottle=function(){var t=this,r=t.value,i=t.hasValue,s=t.throttled;s&&(this.remove(s),this.throttled=void 0,s.unsubscribe()),i&&(this.value=void 0,this.hasValue=!1,this.destination.next(r))},n.prototype.notifyNext=function(){this.clearThrottle()},n.prototype.notifyComplete=function(){this.clearThrottle()},n}(_e);function sd(e,n){return n===void 0&&(n=Ye),Fa(function(){return Ba(e,n)})}function ad(e){return function(t){return t.lift(new ld(e))}}var ld=function(){function e(n){this.closingNotifier=n}return e.prototype.call=function(n,t){return t.subscribe(new cd(n,this.closingNotifier))},e}(),cd=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.buffer=[],i.add($e(r,new we(i))),i}return n.prototype._next=function(t){this.buffer.push(t)},n.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},n}(_e);function ud(e,n){return n===void 0&&(n=null),function(r){return r.lift(new dd(e,n))}}var dd=function(){function e(n,t){this.bufferSize=n,this.startBufferEvery=t,!t||n===t?this.subscriberClass=pd:this.subscriberClass=hd}return e.prototype.call=function(n,t){return t.subscribe(new this.subscriberClass(n,this.bufferSize,this.startBufferEvery))},e}(),pd=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.bufferSize=r,i.buffer=[],i}return n.prototype._next=function(t){var r=this.buffer;r.push(t),r.length==this.bufferSize&&(this.destination.next(r),this.buffer=[])},n.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},n}(U),hd=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.bufferSize=r,s.startBufferEvery=i,s.buffers=[],s.count=0,s}return n.prototype._next=function(t){var r=this,i=r.bufferSize,s=r.startBufferEvery,a=r.buffers,l=r.count;this.count++,l%s===0&&a.push([]);for(var c=a.length;c--;){var h=a[c];h.push(t),h.length===i&&(a.splice(c,1),this.destination.next(h))}},n.prototype._complete=function(){for(var t=this,r=t.buffers,i=t.destination;r.length>0;){var s=r.shift();s.length>0&&i.next(s)}e.prototype._complete.call(this)},n}(U);function fd(e){var n=arguments.length,t=Ye;st(arguments[arguments.length-1])&&(t=arguments[arguments.length-1],n--);var r=null;n>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return n>=3&&(i=arguments[2]),function(a){return a.lift(new bd(e,r,i,t))}}var bd=function(){function e(n,t,r,i){this.bufferTimeSpan=n,this.bufferCreationInterval=t,this.maxBufferSize=r,this.scheduler=i}return e.prototype.call=function(n,t){return t.subscribe(new gd(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),md=function(){function e(){this.buffer=[]}return e}(),gd=function(e){L(n,e);function n(t,r,i,s,a){var l=e.call(this,t)||this;l.bufferTimeSpan=r,l.bufferCreationInterval=i,l.maxBufferSize=s,l.scheduler=a,l.contexts=[];var c=l.openContext();if(l.timespanOnly=i==null||i<0,l.timespanOnly){var h={subscriber:l,context:c,bufferTimeSpan:r};l.add(c.closeAction=a.schedule(us,r,h))}else{var u={subscriber:l,context:c},d={bufferTimeSpan:r,bufferCreationInterval:i,subscriber:l,scheduler:a};l.add(c.closeAction=a.schedule(Da,r,u)),l.add(a.schedule(xd,i,d))}return l}return n.prototype._next=function(t){for(var r=this.contexts,i=r.length,s,a=0;a<i;a++){var l=r[a],c=l.buffer;c.push(t),c.length==this.maxBufferSize&&(s=l)}s&&this.onBufferFull(s)},n.prototype._error=function(t){this.contexts.length=0,e.prototype._error.call(this,t)},n.prototype._complete=function(){for(var t=this,r=t.contexts,i=t.destination;r.length>0;){var s=r.shift();i.next(s.buffer)}e.prototype._complete.call(this)},n.prototype._unsubscribe=function(){this.contexts=null},n.prototype.onBufferFull=function(t){this.closeContext(t);var r=t.closeAction;if(r.unsubscribe(),this.remove(r),!this.closed&&this.timespanOnly){t=this.openContext();var i=this.bufferTimeSpan,s={subscriber:this,context:t,bufferTimeSpan:i};this.add(t.closeAction=this.scheduler.schedule(us,i,s))}},n.prototype.openContext=function(){var t=new md;return this.contexts.push(t),t},n.prototype.closeContext=function(t){this.destination.next(t.buffer);var r=this.contexts,i=r?r.indexOf(t):-1;i>=0&&r.splice(r.indexOf(t),1)},n}(U);function us(e){var n=e.subscriber,t=e.context;t&&n.closeContext(t),n.closed||(e.context=n.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function xd(e){var n=e.bufferCreationInterval,t=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler,s=r.openContext(),a=this;r.closed||(r.add(s.closeAction=i.schedule(Da,t,{subscriber:r,context:s})),a.schedule(e,n))}function Da(e){var n=e.subscriber,t=e.context;n.closeContext(t)}function vd(e,n){return function(r){return r.lift(new yd(e,n))}}var yd=function(){function e(n,t){this.openings=n,this.closingSelector=t}return e.prototype.call=function(n,t){return t.subscribe(new wd(n,this.openings,this.closingSelector))},e}(),wd=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.closingSelector=i,s.contexts=[],s.add(zt(s,r)),s}return n.prototype._next=function(t){for(var r=this.contexts,i=r.length,s=0;s<i;s++)r[s].buffer.push(t)},n.prototype._error=function(t){for(var r=this.contexts;r.length>0;){var i=r.shift();i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},n.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var r=t.shift();this.destination.next(r.buffer),r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,e.prototype._complete.call(this)},n.prototype.notifyNext=function(t,r){t?this.closeBuffer(t):this.openBuffer(r)},n.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},n.prototype.openBuffer=function(t){try{var r=this.closingSelector,i=r.call(this,t);i&&this.trySubscribe(i)}catch(s){this._error(s)}},n.prototype.closeBuffer=function(t){var r=this.contexts;if(r&&t){var i=t.buffer,s=t.subscription;this.destination.next(i),r.splice(r.indexOf(t),1),this.remove(s),s.unsubscribe()}},n.prototype.trySubscribe=function(t){var r=this.contexts,i=[],s=new ge,a={buffer:i,subscription:s};r.push(a);var l=zt(this,t,a);!l||l.closed?this.closeBuffer(a):(l.context=a,this.add(l),s.add(l))},n}(an);function _d(e){return function(n){return n.lift(new $d(e))}}var $d=function(){function e(n){this.closingSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new Sd(n,this.closingSelector))},e}(),Sd=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.closingSelector=r,i.subscribing=!1,i.openBuffer(),i}return n.prototype._next=function(t){this.buffer.push(t)},n.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},n.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},n.prototype.notifyNext=function(){this.openBuffer()},n.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},n.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var r=this.buffer;this.buffer&&this.destination.next(r),this.buffer=[];var i;try{var s=this.closingSelector;i=s()}catch(a){return this.error(a)}t=new ge,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add($e(i,new we(this))),this.subscribing=!1},n}(_e);function jd(e){return function(t){var r=new Cd(e),i=t.lift(r);return r.caught=i}}var Cd=function(){function e(n){this.selector=n}return e.prototype.call=function(n,t){return t.subscribe(new Id(n,this.selector,this.caught))},e}(),Id=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.selector=r,s.caught=i,s}return n.prototype.error=function(t){if(!this.isStopped){var r=void 0;try{r=this.selector(t,this.caught)}catch(a){e.prototype.error.call(this,a);return}this._unsubscribeAndRecycle();var i=new we(this);this.add(i);var s=$e(r,i);s!==i&&this.add(s)}},n}(_e);function kd(e){return function(n){return n.lift(new po(e))}}function Td(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=null;return typeof e[e.length-1]=="function"&&(t=e.pop()),e.length===1&&Ke(e[0])&&(e=e[0].slice()),function(r){return r.lift.call(At([r].concat(e)),new po(t))}}function Nd(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(t){return t.lift.call(qn.apply(void 0,[t].concat(e)))}}function Ha(e,n){return rn(e,n,1)}function Md(e,n){return Ha(function(){return e},n)}function Ed(e){return function(n){return n.lift(new zd(e,n))}}var zd=function(){function e(n,t){this.predicate=n,this.source=t}return e.prototype.call=function(n,t){return t.subscribe(new Ad(n,this.predicate,this.source))},e}(),Ad=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.predicate=r,s.source=i,s.count=0,s.index=0,s}return n.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},n.prototype._tryPredicate=function(t){var r;try{r=this.predicate(t,this.index++,this.source)}catch(i){this.destination.error(i);return}r&&this.count++},n.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},n}(U);function Od(e){return function(n){return n.lift(new Ld(e))}}var Ld=function(){function e(n){this.durationSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new Bd(n,this.durationSelector))},e}(),Bd=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.durationSelector=r,i.hasValue=!1,i}return n.prototype._next=function(t){try{var r=this.durationSelector.call(this,t);r&&this._tryNext(t,r)}catch(i){this.destination.error(i)}},n.prototype._complete=function(){this.emitValue(),this.destination.complete()},n.prototype._tryNext=function(t,r){var i=this.durationSubscription;this.value=t,this.hasValue=!0,i&&(i.unsubscribe(),this.remove(i)),i=$e(r,new we(this)),i&&!i.closed&&this.add(this.durationSubscription=i)},n.prototype.notifyNext=function(){this.emitValue()},n.prototype.notifyComplete=function(){this.emitValue()},n.prototype.emitValue=function(){if(this.hasValue){var t=this.value,r=this.durationSubscription;r&&(this.durationSubscription=void 0,r.unsubscribe(),this.remove(r)),this.value=void 0,this.hasValue=!1,e.prototype._next.call(this,t)}},n}(_e);function Rd(e,n){return n===void 0&&(n=Ye),function(t){return t.lift(new Pd(e,n))}}var Pd=function(){function e(n,t){this.dueTime=n,this.scheduler=t}return e.prototype.call=function(n,t){return t.subscribe(new Fd(n,this.dueTime,this.scheduler))},e}(),Fd=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.dueTime=r,s.scheduler=i,s.debouncedSubscription=null,s.lastValue=null,s.hasValue=!1,s}return n.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Dd,this.dueTime,this))},n.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},n.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},n.prototype.clearDebounce=function(){var t=this.debouncedSubscription;t!==null&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},n}(U);function Dd(e){e.debouncedNext()}function or(e){return e===void 0&&(e=null),function(n){return n.lift(new Hd(e))}}var Hd=function(){function e(n){this.defaultValue=n}return e.prototype.call=function(n,t){return t.subscribe(new Vd(n,this.defaultValue))},e}(),Vd=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.defaultValue=r,i.isEmpty=!0,i}return n.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},n.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},n}(U);function Va(e){return e instanceof Date&&!isNaN(+e)}function Wd(e,n){n===void 0&&(n=Ye);var t=Va(e),r=t?+e-n.now():Math.abs(e);return function(i){return i.lift(new Gd(r,n))}}var Gd=function(){function e(n,t){this.delay=n,this.scheduler=t}return e.prototype.call=function(n,t){return t.subscribe(new Ud(n,this.delay,this.scheduler))},e}(),Ud=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.delay=r,s.scheduler=i,s.queue=[],s.active=!1,s.errored=!1,s}return n.dispatch=function(t){for(var r=t.source,i=r.queue,s=t.scheduler,a=t.destination;i.length>0&&i[0].time-s.now()<=0;)i.shift().notification.observe(a);if(i.length>0){var l=Math.max(0,i[0].time-s.now());this.schedule(t,l)}else this.unsubscribe(),r.active=!1},n.prototype._schedule=function(t){this.active=!0;var r=this.destination;r.add(t.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},n.prototype.scheduleNotification=function(t){if(this.errored!==!0){var r=this.scheduler,i=new Kd(r.now()+this.delay,t);this.queue.push(i),this.active===!1&&this._schedule(r)}},n.prototype._next=function(t){this.scheduleNotification(Nt.createNext(t))},n.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},n.prototype._complete=function(){this.scheduleNotification(Nt.createComplete()),this.unsubscribe()},n}(U),Kd=function(){function e(n,t){this.time=n,this.notification=t}return e}();function Yd(e,n){return n?function(t){return new Zd(t,n).lift(new ds(e))}:function(t){return t.lift(new ds(e))}}var ds=function(){function e(n){this.delayDurationSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new qd(n,this.delayDurationSelector))},e}(),qd=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.delayDurationSelector=r,i.completed=!1,i.delayNotifierSubscriptions=[],i.index=0,i}return n.prototype.notifyNext=function(t,r,i,s,a){this.destination.next(t),this.removeSubscription(a),this.tryComplete()},n.prototype.notifyError=function(t,r){this._error(t)},n.prototype.notifyComplete=function(t){var r=this.removeSubscription(t);r&&this.destination.next(r),this.tryComplete()},n.prototype._next=function(t){var r=this.index++;try{var i=this.delayDurationSelector(t,r);i&&this.tryDelay(i,t)}catch(s){this.destination.error(s)}},n.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},n.prototype.removeSubscription=function(t){t.unsubscribe();var r=this.delayNotifierSubscriptions.indexOf(t);return r!==-1&&this.delayNotifierSubscriptions.splice(r,1),t.outerValue},n.prototype.tryDelay=function(t,r){var i=zt(this,t,r);if(i&&!i.closed){var s=this.destination;s.add(i),this.delayNotifierSubscriptions.push(i)}},n.prototype.tryComplete=function(){this.completed&&this.delayNotifierSubscriptions.length===0&&this.destination.complete()},n}(an),Zd=function(e){L(n,e);function n(t,r){var i=e.call(this)||this;return i.source=t,i.subscriptionDelay=r,i}return n.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new Xd(t,this.source))},n}(ee),Xd=function(e){L(n,e);function n(t,r){var i=e.call(this)||this;return i.parent=t,i.source=r,i.sourceSubscribed=!1,i}return n.prototype._next=function(t){this.subscribeToSource()},n.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},n.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},n.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},n}(U);function Jd(){return function(n){return n.lift(new Qd)}}var Qd=function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new ep(n))},e}(),ep=function(e){L(n,e);function n(t){return e.call(this,t)||this}return n.prototype._next=function(t){t.observe(this.destination)},n}(U);function tp(e,n){return function(t){return t.lift(new np(e,n))}}var np=function(){function e(n,t){this.keySelector=n,this.flushes=t}return e.prototype.call=function(n,t){return t.subscribe(new rp(n,this.keySelector,this.flushes))},e}(),rp=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.keySelector=r,s.values=new Set,i&&s.add($e(i,new we(s))),s}return n.prototype.notifyNext=function(){this.values.clear()},n.prototype.notifyError=function(t){this._error(t)},n.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},n.prototype._useKeySelector=function(t){var r,i=this.destination;try{r=this.keySelector(t)}catch(s){i.error(s);return}this._finalizeNext(r,t)},n.prototype._finalizeNext=function(t,r){var i=this.values;i.has(t)||(i.add(t),this.destination.next(r))},n}(_e);function Wa(e,n){return function(t){return t.lift(new ip(e,n))}}var ip=function(){function e(n,t){this.compare=n,this.keySelector=t}return e.prototype.call=function(n,t){return t.subscribe(new op(n,this.compare,this.keySelector))},e}(),op=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.keySelector=i,s.hasKey=!1,typeof r=="function"&&(s.compare=r),s}return n.prototype.compare=function(t,r){return t===r},n.prototype._next=function(t){var r;try{var i=this.keySelector;r=i?i(t):t}catch(l){return this.destination.error(l)}var s=!1;if(this.hasKey)try{var a=this.compare;s=a(this.key,r)}catch(l){return this.destination.error(l)}else this.hasKey=!0;s||(this.key=r,this.destination.next(t))},n}(U);function sp(e,n){return Wa(function(t,r){return n?n(t[e],r[e]):t[e]===r[e]})}function Kr(e){return e===void 0&&(e=cp),function(n){return n.lift(new ap(e))}}var ap=function(){function e(n){this.errorFactory=n}return e.prototype.call=function(n,t){return t.subscribe(new lp(n,this.errorFactory))},e}(),lp=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.errorFactory=r,i.hasValue=!1,i}return n.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},n.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(r){t=r}this.destination.error(t)},n}(U);function cp(){return new ir}function mo(e){return function(n){return e===0?Nn():n.lift(new up(e))}}var up=function(){function e(n){if(this.total=n,this.total<0)throw new Cn}return e.prototype.call=function(n,t){return t.subscribe(new dp(n,this.total))},e}(),dp=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.total=r,i.count=0,i}return n.prototype._next=function(t){var r=this.total,i=++this.count;i<=r&&(this.destination.next(t),i===r&&(this.destination.complete(),this.unsubscribe()))},n}(U);function pp(e,n){if(e<0)throw new Cn;var t=arguments.length>=2;return function(r){return r.pipe(Kt(function(i,s){return s===e}),mo(1),t?or(n):Kr(function(){return new Cn}))}}function hp(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(t){return qn(t,Ur.apply(void 0,e))}}function fp(e,n){return function(t){return t.lift(new bp(e,n,t))}}var bp=function(){function e(n,t,r){this.predicate=n,this.thisArg=t,this.source=r}return e.prototype.call=function(n,t){return t.subscribe(new mp(n,this.predicate,this.thisArg,this.source))},e}(),mp=function(e){L(n,e);function n(t,r,i,s){var a=e.call(this,t)||this;return a.predicate=r,a.thisArg=i,a.source=s,a.index=0,a.thisArg=i||a,a}return n.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},n.prototype._next=function(t){var r=!1;try{r=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(i){this.destination.error(i);return}r||this.notifyComplete(!1)},n.prototype._complete=function(){this.notifyComplete(!0)},n}(U);function gp(){return function(e){return e.lift(new xp)}}var xp=function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new vp(n))},e}(),vp=function(e){L(n,e);function n(t){var r=e.call(this,t)||this;return r.hasCompleted=!1,r.hasSubscription=!1,r}return n.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add($e(t,new we(this))))},n.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},n.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},n}(_e);function Ga(e,n){return n?function(t){return t.pipe(Ga(function(r,i){return At(e(r,i)).pipe(pt(function(s,a){return n(r,s,i,a)}))}))}:function(t){return t.lift(new yp(e))}}var yp=function(){function e(n){this.project=n}return e.prototype.call=function(n,t){return t.subscribe(new _p(n,this.project))},e}(),_p=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.project=r,i.hasSubscription=!1,i.hasCompleted=!1,i.index=0,i}return n.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},n.prototype.tryNext=function(t){var r,i=this.index++;try{r=this.project(t,i)}catch(s){this.destination.error(s);return}this.hasSubscription=!0,this._innerSub(r)},n.prototype._innerSub=function(t){var r=new we(this),i=this.destination;i.add(r);var s=$e(t,r);s!==r&&i.add(s)},n.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},n.prototype.notifyNext=function(t){this.destination.next(t)},n.prototype.notifyError=function(t){this.destination.error(t)},n.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},n}(_e);function $p(e,n,t){return n===void 0&&(n=Number.POSITIVE_INFINITY),n=(n||0)<1?Number.POSITIVE_INFINITY:n,function(r){return r.lift(new Sp(e,n,t))}}var Sp=function(){function e(n,t,r){this.project=n,this.concurrent=t,this.scheduler=r}return e.prototype.call=function(n,t){return t.subscribe(new jp(n,this.project,this.concurrent,this.scheduler))},e}(),jp=function(e){L(n,e);function n(t,r,i,s){var a=e.call(this,t)||this;return a.project=r,a.concurrent=i,a.scheduler=s,a.index=0,a.active=0,a.hasCompleted=!1,i<Number.POSITIVE_INFINITY&&(a.buffer=[]),a}return n.dispatch=function(t){var r=t.subscriber,i=t.result,s=t.value,a=t.index;r.subscribeToProjection(i,s,a)},n.prototype._next=function(t){var r=this.destination;if(r.closed){this._complete();return}var i=this.index++;if(this.active<this.concurrent){r.next(t);try{var s=this.project,a=s(t,i);if(!this.scheduler)this.subscribeToProjection(a,t,i);else{var l={subscriber:this,result:a,value:t,index:i},c=this.destination;c.add(this.scheduler.schedule(n.dispatch,0,l))}}catch(h){r.error(h)}}else this.buffer.push(t)},n.prototype.subscribeToProjection=function(t,r,i){this.active++;var s=this.destination;s.add($e(t,new we(this)))},n.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&this.active===0&&this.destination.complete(),this.unsubscribe()},n.prototype.notifyNext=function(t){this._next(t)},n.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&this.active===0&&this.destination.complete()},n}(_e);function Cp(e){return function(n){return n.lift(new Ip(e))}}var Ip=function(){function e(n){this.callback=n}return e.prototype.call=function(n,t){return t.subscribe(new kp(n,this.callback))},e}(),kp=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.add(new ge(r)),i}return n}(U);function Tp(e,n){if(typeof e!="function")throw new TypeError("predicate is not a function");return function(t){return t.lift(new Ua(e,t,!1,n))}}var Ua=function(){function e(n,t,r,i){this.predicate=n,this.source=t,this.yieldIndex=r,this.thisArg=i}return e.prototype.call=function(n,t){return t.subscribe(new Np(n,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),Np=function(e){L(n,e);function n(t,r,i,s,a){var l=e.call(this,t)||this;return l.predicate=r,l.source=i,l.yieldIndex=s,l.thisArg=a,l.index=0,l}return n.prototype.notifyComplete=function(t){var r=this.destination;r.next(t),r.complete(),this.unsubscribe()},n.prototype._next=function(t){var r=this,i=r.predicate,s=r.thisArg,a=this.index++;try{var l=i.call(s||this,t,a,this.source);l&&this.notifyComplete(this.yieldIndex?a:t)}catch(c){this.destination.error(c)}},n.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},n}(U);function Mp(e,n){return function(t){return t.lift(new Ua(e,t,!0,n))}}function Ep(e,n){var t=arguments.length>=2;return function(r){return r.pipe(e?Kt(function(i,s){return e(i,s,r)}):Gt,mo(1),t?or(n):Kr(function(){return new ir}))}}function zp(){return function(n){return n.lift(new Ap)}}var Ap=function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new Op(n))},e}(),Op=function(e){L(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype._next=function(t){},n}(U);function Lp(){return function(e){return e.lift(new Bp)}}var Bp=function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new Rp(n))},e}(),Rp=function(e){L(n,e);function n(t){return e.call(this,t)||this}return n.prototype.notifyComplete=function(t){var r=this.destination;r.next(t),r.complete()},n.prototype._next=function(t){this.notifyComplete(!1)},n.prototype._complete=function(){this.notifyComplete(!0)},n}(U);function Tr(e){return function(t){return e===0?Nn():t.lift(new Pp(e))}}var Pp=function(){function e(n){if(this.total=n,this.total<0)throw new Cn}return e.prototype.call=function(n,t){return t.subscribe(new Fp(n,this.total))},e}(),Fp=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.total=r,i.ring=new Array,i.count=0,i}return n.prototype._next=function(t){var r=this.ring,i=this.total,s=this.count++;if(r.length<i)r.push(t);else{var a=s%i;r[a]=t}},n.prototype._complete=function(){var t=this.destination,r=this.count;if(r>0)for(var i=this.count>=this.total?this.total:this.count,s=this.ring,a=0;a<i;a++){var l=r++%i;t.next(s[l])}t.complete()},n}(U);function Dp(e,n){var t=arguments.length>=2;return function(r){return r.pipe(e?Kt(function(i,s){return e(i,s,r)}):Gt,Tr(1),t?or(n):Kr(function(){return new ir}))}}function Hp(e){return function(n){return n.lift(new Vp(e))}}var Vp=function(){function e(n){this.value=n}return e.prototype.call=function(n,t){return t.subscribe(new Wp(n,this.value))},e}(),Wp=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.value=r,i}return n.prototype._next=function(t){this.destination.next(this.value)},n}(U);function Gp(){return function(n){return n.lift(new Up)}}var Up=function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new Kp(n))},e}(),Kp=function(e){L(n,e);function n(t){return e.call(this,t)||this}return n.prototype._next=function(t){this.destination.next(Nt.createNext(t))},n.prototype._error=function(t){var r=this.destination;r.next(Nt.createError(t)),r.complete()},n.prototype._complete=function(){var t=this.destination;t.next(Nt.createComplete()),t.complete()},n}(U);function Nr(e,n){var t=!1;return arguments.length>=2&&(t=!0),function(i){return i.lift(new Yp(e,n,t))}}var Yp=function(){function e(n,t,r){r===void 0&&(r=!1),this.accumulator=n,this.seed=t,this.hasSeed=r}return e.prototype.call=function(n,t){return t.subscribe(new qp(n,this.accumulator,this.seed,this.hasSeed))},e}(),qp=function(e){L(n,e);function n(t,r,i,s){var a=e.call(this,t)||this;return a.accumulator=r,a._seed=i,a.hasSeed=s,a.index=0,a}return Object.defineProperty(n.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),n.prototype._next=function(t){if(!this.hasSeed)this.seed=t,this.destination.next(t);else return this._tryNext(t)},n.prototype._tryNext=function(t){var r=this.index++,i;try{i=this.accumulator(this.seed,t,r)}catch(s){this.destination.error(s)}this.seed=i,this.destination.next(i)},n}(U);function Yr(e,n){return arguments.length>=2?function(r){return Li(Nr(e,n),Tr(1),or(n))(r)}:function(r){return Li(Nr(function(i,s,a){return e(i,s,a+1)}),Tr(1))(r)}}function Zp(e){var n=typeof e=="function"?function(t,r){return e(t,r)>0?t:r}:function(t,r){return t>r?t:r};return Yr(n)}function Xp(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(t){return t.lift.call(za.apply(void 0,[t].concat(e)))}}function Jp(e,n,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof n=="function"?rn(function(){return e},n,t):(typeof n=="number"&&(t=n),rn(function(){return e},t))}function Qp(e,n,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),function(r){return r.lift(new eh(e,n,t))}}var eh=function(){function e(n,t,r){this.accumulator=n,this.seed=t,this.concurrent=r}return e.prototype.call=function(n,t){return t.subscribe(new th(n,this.accumulator,this.seed,this.concurrent))},e}(),th=function(e){L(n,e);function n(t,r,i,s){var a=e.call(this,t)||this;return a.accumulator=r,a.acc=i,a.concurrent=s,a.hasValue=!1,a.hasCompleted=!1,a.buffer=[],a.active=0,a.index=0,a}return n.prototype._next=function(t){if(this.active<this.concurrent){var r=this.index++,i=this.destination,s=void 0;try{var a=this.accumulator;s=a(this.acc,t,r)}catch(l){return i.error(l)}this.active++,this._innerSub(s)}else this.buffer.push(t)},n.prototype._innerSub=function(t){var r=new we(this),i=this.destination;i.add(r);var s=$e(t,r);s!==r&&i.add(s)},n.prototype._complete=function(){this.hasCompleted=!0,this.active===0&&this.buffer.length===0&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},n.prototype.notifyNext=function(t){var r=this.destination;this.acc=t,this.hasValue=!0,r.next(t)},n.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):this.active===0&&this.hasCompleted&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete())},n}(_e);function nh(e){var n=typeof e=="function"?function(t,r){return e(t,r)<0?t:r}:function(t,r){return t<r?t:r};return Yr(n)}function on(e,n){return function(r){var i;if(typeof e=="function"?i=e:i=function(){return e},typeof n=="function")return r.lift(new rh(i,n));var s=Object.create(r,Bc);return s.source=r,s.subjectFactory=i,s}}var rh=function(){function e(n,t){this.subjectFactory=n,this.selector=t}return e.prototype.call=function(n,t){var r=this.selector,i=this.subjectFactory(),s=r(i).subscribe(n);return s.add(t.subscribe(i)),s},e}();function ih(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===1&&Ke(e[0])&&(e=e[0]),function(t){return t.lift(new oh(e))}}var oh=function(){function e(n){this.nextSources=n}return e.prototype.call=function(n,t){return t.subscribe(new sh(n,this.nextSources))},e}(),sh=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.destination=t,i.nextSources=r,i}return n.prototype.notifyError=function(){this.subscribeToNextSource()},n.prototype.notifyComplete=function(){this.subscribeToNextSource()},n.prototype._error=function(t){this.subscribeToNextSource(),this.unsubscribe()},n.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},n.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();if(t){var r=new we(this),i=this.destination;i.add(r);var s=$e(t,r);s!==r&&i.add(s)}else this.destination.complete()},n}(_e);function ah(){return function(e){return e.lift(new lh)}}var lh=function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new ch(n))},e}(),ch=function(e){L(n,e);function n(t){var r=e.call(this,t)||this;return r.hasPrev=!1,r}return n.prototype._next=function(t){var r;this.hasPrev?r=[this.prev,t]:this.hasPrev=!0,this.prev=t,r&&this.destination.next(r)},n}(U);function uh(e,n){return function(t){return[Kt(e,n)(t),Kt(Oa(e,n))(t)]}}function dh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e.length;if(t===0)throw new Error("list of properties cannot be empty.");return function(r){return pt(ph(e,t))(r)}}function ph(e,n){var t=function(r){for(var i=r,s=0;s<n;s++){var a=i!=null?i[e[s]]:void 0;if(a!==void 0)i=a;else return}return i};return t}function hh(e){return e?on(function(){return new Ee},e):on(new Ee)}function fh(e){return function(n){return on(new fa(e))(n)}}function bh(){return function(e){return on(new Mn)(e)}}function mh(e,n,t,r){t&&typeof t!="function"&&(r=t);var i=typeof t=="function"?t:void 0,s=new uo(e,n,r);return function(a){return on(function(){return s},i)(a)}}function gh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(r){return e.length===1&&Ke(e[0])&&(e=e[0]),r.lift.call(La.apply(void 0,[r].concat(e)))}}function xh(e){return e===void 0&&(e=-1),function(n){return e===0?Nn():e<0?n.lift(new ps(-1,n)):n.lift(new ps(e-1,n))}}var ps=function(){function e(n,t){this.count=n,this.source=t}return e.prototype.call=function(n,t){return t.subscribe(new vh(n,this.count,this.source))},e}(),vh=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.count=r,s.source=i,s}return n.prototype.complete=function(){if(!this.isStopped){var t=this,r=t.source,i=t.count;if(i===0)return e.prototype.complete.call(this);i>-1&&(this.count=i-1),r.subscribe(this._unsubscribeAndRecycle())}},n}(U);function yh(e){return function(n){return n.lift(new wh(e))}}var wh=function(){function e(n){this.notifier=n}return e.prototype.call=function(n,t){return t.subscribe(new _h(n,this.notifier,t))},e}(),_h=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.notifier=r,s.source=i,s.sourceIsBeingSubscribedTo=!0,s}return n.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},n.prototype.notifyComplete=function(){if(this.sourceIsBeingSubscribedTo===!1)return e.prototype.complete.call(this)},n.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},n.prototype._unsubscribe=function(){var t=this,r=t.notifications,i=t.retriesSubscription;r&&(r.unsubscribe(),this.notifications=void 0),i&&(i.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},n.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},n.prototype.subscribeToRetries=function(){this.notifications=new Ee;var t;try{var r=this.notifier;t=r(this.notifications)}catch(i){return e.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=$e(t,new we(this))},n}(_e);function $h(e){return e===void 0&&(e=-1),function(n){return n.lift(new Sh(e,n))}}var Sh=function(){function e(n,t){this.count=n,this.source=t}return e.prototype.call=function(n,t){return t.subscribe(new jh(n,this.count,this.source))},e}(),jh=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.count=r,s.source=i,s}return n.prototype.error=function(t){if(!this.isStopped){var r=this,i=r.source,s=r.count;if(s===0)return e.prototype.error.call(this,t);s>-1&&(this.count=s-1),i.subscribe(this._unsubscribeAndRecycle())}},n}(U);function Ch(e){return function(n){return n.lift(new Ih(e,n))}}var Ih=function(){function e(n,t){this.notifier=n,this.source=t}return e.prototype.call=function(n,t){return t.subscribe(new kh(n,this.notifier,this.source))},e}(),kh=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.notifier=r,s.source=i,s}return n.prototype.error=function(t){if(!this.isStopped){var r=this.errors,i=this.retries,s=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{r=new Ee;try{var a=this.notifier;i=a(r)}catch(l){return e.prototype.error.call(this,l)}s=$e(i,new we(this))}this._unsubscribeAndRecycle(),this.errors=r,this.retries=i,this.retriesSubscription=s,r.next(t)}},n.prototype._unsubscribe=function(){var t=this,r=t.errors,i=t.retriesSubscription;r&&(r.unsubscribe(),this.errors=void 0),i&&(i.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},n.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},n}(_e);function Th(e){return function(n){return n.lift(new Nh(e))}}var Nh=function(){function e(n){this.notifier=n}return e.prototype.call=function(n,t){var r=new Mh(n),i=t.subscribe(r);return i.add($e(this.notifier,new we(r))),i},e}(),Mh=function(e){L(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return n.prototype._next=function(t){this.value=t,this.hasValue=!0},n.prototype.notifyNext=function(){this.emitValue()},n.prototype.notifyComplete=function(){this.emitValue()},n.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},n}(_e);function Eh(e,n){return n===void 0&&(n=Ye),function(t){return t.lift(new zh(e,n))}}var zh=function(){function e(n,t){this.period=n,this.scheduler=t}return e.prototype.call=function(n,t){return t.subscribe(new Ah(n,this.period,this.scheduler))},e}(),Ah=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.period=r,s.scheduler=i,s.hasValue=!1,s.add(i.schedule(Oh,r,{subscriber:s,period:r})),s}return n.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},n.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},n}(U);function Oh(e){var n=e.subscriber,t=e.period;n.notifyNext(),this.schedule(e,t)}function Lh(e,n){return function(t){return t.lift(new Bh(e,n))}}var Bh=function(){function e(n,t){this.compareTo=n,this.comparator=t}return e.prototype.call=function(n,t){return t.subscribe(new Rh(n,this.compareTo,this.comparator))},e}(),Rh=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.compareTo=r,s.comparator=i,s._a=[],s._b=[],s._oneComplete=!1,s.destination.add(r.subscribe(new Ph(t,s))),s}return n.prototype._next=function(t){this._oneComplete&&this._b.length===0?this.emit(!1):(this._a.push(t),this.checkValues())},n.prototype._complete=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0,this.unsubscribe()},n.prototype.checkValues=function(){for(var t=this,r=t._a,i=t._b,s=t.comparator;r.length>0&&i.length>0;){var a=r.shift(),l=i.shift(),c=!1;try{c=s?s(a,l):a===l}catch(h){this.destination.error(h)}c||this.emit(!1)}},n.prototype.emit=function(t){var r=this.destination;r.next(t),r.complete()},n.prototype.nextB=function(t){this._oneComplete&&this._a.length===0?this.emit(!1):(this._b.push(t),this.checkValues())},n.prototype.completeB=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0},n}(U),Ph=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.parent=r,i}return n.prototype._next=function(t){this.parent.nextB(t)},n.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},n.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},n}(U);function Fh(){return new Ee}function Dh(){return function(e){return ao()(on(Fh)(e))}}function Hh(e,n,t){var r;return e&&typeof e=="object"?r=e:r={bufferSize:e,windowTime:n,refCount:!1,scheduler:t},function(i){return i.lift(Vh(r))}}function Vh(e){var n=e.bufferSize,t=n===void 0?Number.POSITIVE_INFINITY:n,r=e.windowTime,i=r===void 0?Number.POSITIVE_INFINITY:r,s=e.refCount,a=e.scheduler,l,c=0,h,u=!1,d=!1;return function(w){c++;var S;!l||u?(u=!1,l=new uo(t,i,a),S=l.subscribe(this),h=w.subscribe({next:function(j){l.next(j)},error:function(j){u=!0,l.error(j)},complete:function(){d=!0,h=void 0,l.complete()}}),d&&(h=void 0)):S=l.subscribe(this),this.add(function(){c--,S.unsubscribe(),S=void 0,h&&!d&&s&&c===0&&(h.unsubscribe(),h=void 0,l=void 0)})}}function Wh(e){return function(n){return n.lift(new Gh(e,n))}}var Gh=function(){function e(n,t){this.predicate=n,this.source=t}return e.prototype.call=function(n,t){return t.subscribe(new Uh(n,this.predicate,this.source))},e}(),Uh=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.predicate=r,s.source=i,s.seenValue=!1,s.index=0,s}return n.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},n.prototype._next=function(t){var r=this.index++;this.predicate?this.tryNext(t,r):this.applySingleValue(t)},n.prototype.tryNext=function(t,r){try{this.predicate(t,r,this.source)&&this.applySingleValue(t)}catch(i){this.destination.error(i)}},n.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new ir)},n}(U);function Kh(e){return function(n){return n.lift(new Yh(e))}}var Yh=function(){function e(n){this.total=n}return e.prototype.call=function(n,t){return t.subscribe(new qh(n,this.total))},e}(),qh=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.total=r,i.count=0,i}return n.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},n}(U);function Zh(e){return function(n){return n.lift(new Xh(e))}}var Xh=function(){function e(n){if(this._skipCount=n,this._skipCount<0)throw new Cn}return e.prototype.call=function(n,t){return this._skipCount===0?t.subscribe(new U(n)):t.subscribe(new Jh(n,this._skipCount))},e}(),Jh=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i._skipCount=r,i._count=0,i._ring=new Array(r),i}return n.prototype._next=function(t){var r=this._skipCount,i=this._count++;if(i<r)this._ring[i]=t;else{var s=i%r,a=this._ring,l=a[s];a[s]=t,this.destination.next(l)}},n}(U);function Qh(e){return function(n){return n.lift(new ef(e))}}var ef=function(){function e(n){this.notifier=n}return e.prototype.call=function(n,t){return t.subscribe(new tf(n,this.notifier))},e}(),tf=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;i.hasValue=!1;var s=new we(i);i.add(s),i.innerSubscription=s;var a=$e(r,s);return a!==s&&(i.add(a),i.innerSubscription=a),i}return n.prototype._next=function(t){this.hasValue&&e.prototype._next.call(this,t)},n.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},n.prototype.notifyComplete=function(){},n}(_e);function nf(e){return function(n){return n.lift(new rf(e))}}var rf=function(){function e(n){this.predicate=n}return e.prototype.call=function(n,t){return t.subscribe(new of(n,this.predicate))},e}(),of=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.predicate=r,i.skipping=!0,i.index=0,i}return n.prototype._next=function(t){var r=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||r.next(t)},n.prototype.tryCallPredicate=function(t){try{var r=this.predicate(t,this.index++);this.skipping=!!r}catch(i){this.destination.error(i)}},n}(U);function sf(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e[e.length-1];return st(t)?(e.pop(),function(r){return qn(e,r,t)}):function(r){return qn(e,r)}}var af=function(e){L(n,e);function n(t,r,i){r===void 0&&(r=0),i===void 0&&(i=vr);var s=e.call(this)||this;return s.source=t,s.delayTime=r,s.scheduler=i,(!In(r)||r<0)&&(s.delayTime=0),(!i||typeof i.schedule!="function")&&(s.scheduler=vr),s}return n.create=function(t,r,i){return r===void 0&&(r=0),i===void 0&&(i=vr),new n(t,r,i)},n.dispatch=function(t){var r=t.source,i=t.subscriber;return this.add(r.subscribe(i))},n.prototype._subscribe=function(t){var r=this.delayTime,i=this.source,s=this.scheduler;return s.schedule(n.dispatch,r,{source:i,subscriber:t})},n}(ee);function lf(e,n){return n===void 0&&(n=0),function(r){return r.lift(new cf(e,n))}}var cf=function(){function e(n,t){this.scheduler=n,this.delay=t}return e.prototype.call=function(n,t){return new af(t,this.delay,this.scheduler).subscribe(n)},e}();function Zn(e,n){return typeof n=="function"?function(t){return t.pipe(Zn(function(r,i){return At(e(r,i)).pipe(pt(function(s,a){return n(r,s,i,a)}))}))}:function(t){return t.lift(new uf(e))}}var uf=function(){function e(n){this.project=n}return e.prototype.call=function(n,t){return t.subscribe(new df(n,this.project))},e}(),df=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.project=r,i.index=0,i}return n.prototype._next=function(t){var r,i=this.index++;try{r=this.project(t,i)}catch(s){this.destination.error(s);return}this._innerSub(r)},n.prototype._innerSub=function(t){var r=this.innerSubscription;r&&r.unsubscribe();var i=new we(this),s=this.destination;s.add(i),this.innerSubscription=$e(t,i),this.innerSubscription!==i&&s.add(this.innerSubscription)},n.prototype._complete=function(){var t=this.innerSubscription;(!t||t.closed)&&e.prototype._complete.call(this),this.unsubscribe()},n.prototype._unsubscribe=function(){this.innerSubscription=void 0},n.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&e.prototype._complete.call(this)},n.prototype.notifyNext=function(t){this.destination.next(t)},n}(_e);function pf(){return Zn(Gt)}function hf(e,n){return n?Zn(function(){return e},n):Zn(function(){return e})}function ff(e){return function(n){return n.lift(new bf(e))}}var bf=function(){function e(n){this.notifier=n}return e.prototype.call=function(n,t){var r=new mf(n),i=$e(this.notifier,new we(r));return i&&!r.seenValue?(r.add(i),t.subscribe(r)):r},e}(),mf=function(e){L(n,e);function n(t){var r=e.call(this,t)||this;return r.seenValue=!1,r}return n.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},n.prototype.notifyComplete=function(){},n}(_e);function gf(e,n){return n===void 0&&(n=!1),function(t){return t.lift(new xf(e,n))}}var xf=function(){function e(n,t){this.predicate=n,this.inclusive=t}return e.prototype.call=function(n,t){return t.subscribe(new vf(n,this.predicate,this.inclusive))},e}(),vf=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.predicate=r,s.inclusive=i,s.index=0,s}return n.prototype._next=function(t){var r=this.destination,i;try{i=this.predicate(t,this.index++)}catch(s){r.error(s);return}this.nextOrComplete(t,i)},n.prototype.nextOrComplete=function(t,r){var i=this.destination;r?i.next(t):(this.inclusive&&i.next(t),i.complete())},n}(U);function yf(e,n,t){return function(i){return i.lift(new wf(e,n,t))}}var wf=function(){function e(n,t,r){this.nextOrObserver=n,this.error=t,this.complete=r}return e.prototype.call=function(n,t){return t.subscribe(new _f(n,this.nextOrObserver,this.error,this.complete))},e}(),_f=function(e){L(n,e);function n(t,r,i,s){var a=e.call(this,t)||this;return a._tapNext=wt,a._tapError=wt,a._tapComplete=wt,a._tapError=i||wt,a._tapComplete=s||wt,Sn(r)?(a._context=a,a._tapNext=r):r&&(a._context=r,a._tapNext=r.next||wt,a._tapError=r.error||wt,a._tapComplete=r.complete||wt),a}return n.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(r){this.destination.error(r);return}this.destination.next(t)},n.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(r){this.destination.error(r);return}this.destination.error(t)},n.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){this.destination.error(t);return}return this.destination.complete()},n}(U),Ka={leading:!0,trailing:!1};function $f(e,n){return n===void 0&&(n=Ka),function(t){return t.lift(new Sf(e,!!n.leading,!!n.trailing))}}var Sf=function(){function e(n,t,r){this.durationSelector=n,this.leading=t,this.trailing=r}return e.prototype.call=function(n,t){return t.subscribe(new jf(n,this.durationSelector,this.leading,this.trailing))},e}(),jf=function(e){L(n,e);function n(t,r,i,s){var a=e.call(this,t)||this;return a.destination=t,a.durationSelector=r,a._leading=i,a._trailing=s,a._hasValue=!1,a}return n.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},n.prototype.send=function(){var t=this,r=t._hasValue,i=t._sendValue;r&&(this.destination.next(i),this.throttle(i)),this._hasValue=!1,this._sendValue=void 0},n.prototype.throttle=function(t){var r=this.tryDurationSelector(t);r&&this.add(this._throttled=$e(r,new we(this)))},n.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(r){return this.destination.error(r),null}},n.prototype.throttlingDone=function(){var t=this,r=t._throttled,i=t._trailing;r&&r.unsubscribe(),this._throttled=void 0,i&&this.send()},n.prototype.notifyNext=function(){this.throttlingDone()},n.prototype.notifyComplete=function(){this.throttlingDone()},n}(_e);function Cf(e,n,t){return n===void 0&&(n=Ye),t===void 0&&(t=Ka),function(r){return r.lift(new If(e,n,t.leading,t.trailing))}}var If=function(){function e(n,t,r,i){this.duration=n,this.scheduler=t,this.leading=r,this.trailing=i}return e.prototype.call=function(n,t){return t.subscribe(new kf(n,this.duration,this.scheduler,this.leading,this.trailing))},e}(),kf=function(e){L(n,e);function n(t,r,i,s,a){var l=e.call(this,t)||this;return l.duration=r,l.scheduler=i,l.leading=s,l.trailing=a,l._hasTrailingValue=!1,l._trailingValue=null,l}return n.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Tf,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},n.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},n.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},n}(U);function Tf(e){var n=e.subscriber;n.clearThrottle()}function Nf(e){return e===void 0&&(e=Ye),function(n){return fo(function(){return n.pipe(Nr(function(t,r){var i=t.current;return{value:r,current:e.now(),last:i}},{current:e.now(),value:void 0,last:void 0}),pt(function(t){var r=t.current,i=t.last,s=t.value;return new Mf(s,r-i)}))})}}var Mf=function(){function e(n,t){this.value=n,this.interval=t}return e}();function Ya(e,n,t){return t===void 0&&(t=Ye),function(r){var i=Va(e),s=i?+e-t.now():Math.abs(e);return r.lift(new Ef(s,i,n,t))}}var Ef=function(){function e(n,t,r,i){this.waitFor=n,this.absoluteTimeout=t,this.withObservable=r,this.scheduler=i}return e.prototype.call=function(n,t){return t.subscribe(new zf(n,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},e}(),zf=function(e){L(n,e);function n(t,r,i,s,a){var l=e.call(this,t)||this;return l.absoluteTimeout=r,l.waitFor=i,l.withObservable=s,l.scheduler=a,l.scheduleTimeout(),l}return n.dispatchTimeout=function(t){var r=t.withObservable;t._unsubscribeAndRecycle(),t.add($e(r,new we(t)))},n.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(n.dispatchTimeout,this.waitFor,this))},n.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},n.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},n}(_e);function Af(e,n){return n===void 0&&(n=Ye),Ya(e,co(new $a),n)}function Of(e){return e===void 0&&(e=Ye),pt(function(n){return new Lf(n,e.now())})}var Lf=function(){function e(n,t){this.value=n,this.timestamp=t}return e}();function Bf(e,n,t){return t===0?[n]:(e.push(n),e)}function Rf(){return Yr(Bf,[])}function Pf(e){return function(t){return t.lift(new Ff(e))}}var Ff=function(){function e(n){this.windowBoundaries=n}return e.prototype.call=function(n,t){var r=new Df(n),i=t.subscribe(r);return i.closed||r.add($e(this.windowBoundaries,new we(r))),i},e}(),Df=function(e){L(n,e);function n(t){var r=e.call(this,t)||this;return r.window=new Ee,t.next(r.window),r}return n.prototype.notifyNext=function(){this.openWindow()},n.prototype.notifyError=function(t){this._error(t)},n.prototype.notifyComplete=function(){this._complete()},n.prototype._next=function(t){this.window.next(t)},n.prototype._error=function(t){this.window.error(t),this.destination.error(t)},n.prototype._complete=function(){this.window.complete(),this.destination.complete()},n.prototype._unsubscribe=function(){this.window=null},n.prototype.openWindow=function(){var t=this.window;t&&t.complete();var r=this.destination,i=this.window=new Ee;r.next(i)},n}(_e);function Hf(e,n){return n===void 0&&(n=0),function(r){return r.lift(new Vf(e,n))}}var Vf=function(){function e(n,t){this.windowSize=n,this.startWindowEvery=t}return e.prototype.call=function(n,t){return t.subscribe(new Wf(n,this.windowSize,this.startWindowEvery))},e}(),Wf=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.destination=t,s.windowSize=r,s.startWindowEvery=i,s.windows=[new Ee],s.count=0,t.next(s.windows[0]),s}return n.prototype._next=function(t){for(var r=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,i=this.destination,s=this.windowSize,a=this.windows,l=a.length,c=0;c<l&&!this.closed;c++)a[c].next(t);var h=this.count-s+1;if(h>=0&&h%r===0&&!this.closed&&a.shift().complete(),++this.count%r===0&&!this.closed){var u=new Ee;a.push(u),i.next(u)}},n.prototype._error=function(t){var r=this.windows;if(r)for(;r.length>0&&!this.closed;)r.shift().error(t);this.destination.error(t)},n.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},n.prototype._unsubscribe=function(){this.count=0,this.windows=null},n}(U);function Gf(e){var n=Ye,t=null,r=Number.POSITIVE_INFINITY;return st(arguments[3])&&(n=arguments[3]),st(arguments[2])?n=arguments[2]:In(arguments[2])&&(r=Number(arguments[2])),st(arguments[1])?n=arguments[1]:In(arguments[1])&&(t=Number(arguments[1])),function(s){return s.lift(new Uf(e,t,r,n))}}var Uf=function(){function e(n,t,r,i){this.windowTimeSpan=n,this.windowCreationInterval=t,this.maxWindowSize=r,this.scheduler=i}return e.prototype.call=function(n,t){return t.subscribe(new Yf(n,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),Kf=function(e){L(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return n.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(n.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),n}(Ee),Yf=function(e){L(n,e);function n(t,r,i,s,a){var l=e.call(this,t)||this;l.destination=t,l.windowTimeSpan=r,l.windowCreationInterval=i,l.maxWindowSize=s,l.scheduler=a,l.windows=[];var c=l.openWindow();if(i!==null&&i>=0){var h={subscriber:l,window:c,context:null},u={windowTimeSpan:r,windowCreationInterval:i,subscriber:l,scheduler:a};l.add(a.schedule(qa,r,h)),l.add(a.schedule(Zf,i,u))}else{var d={subscriber:l,window:c,windowTimeSpan:r};l.add(a.schedule(qf,r,d))}return l}return n.prototype._next=function(t){for(var r=this.windows,i=r.length,s=0;s<i;s++){var a=r[s];a.closed||(a.next(t),a.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(a))}},n.prototype._error=function(t){for(var r=this.windows;r.length>0;)r.shift().error(t);this.destination.error(t)},n.prototype._complete=function(){for(var t=this.windows;t.length>0;){var r=t.shift();r.closed||r.complete()}this.destination.complete()},n.prototype.openWindow=function(){var t=new Kf;this.windows.push(t);var r=this.destination;return r.next(t),t},n.prototype.closeWindow=function(t){t.complete();var r=this.windows;r.splice(r.indexOf(t),1)},n}(U);function qf(e){var n=e.subscriber,t=e.windowTimeSpan,r=e.window;r&&n.closeWindow(r),e.window=n.openWindow(),this.schedule(e,t)}function Zf(e){var n=e.windowTimeSpan,t=e.subscriber,r=e.scheduler,i=e.windowCreationInterval,s=t.openWindow(),a=this,l={action:a,subscription:null},c={subscriber:t,window:s,context:l};l.subscription=r.schedule(qa,n,c),a.add(l.subscription),a.schedule(e,i)}function qa(e){var n=e.subscriber,t=e.window,r=e.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),n.closeWindow(t)}function Xf(e,n){return function(t){return t.lift(new Jf(e,n))}}var Jf=function(){function e(n,t){this.openings=n,this.closingSelector=t}return e.prototype.call=function(n,t){return t.subscribe(new Qf(n,this.openings,this.closingSelector))},e}(),Qf=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.openings=r,s.closingSelector=i,s.contexts=[],s.add(s.openSubscription=zt(s,r,r)),s}return n.prototype._next=function(t){var r=this.contexts;if(r)for(var i=r.length,s=0;s<i;s++)r[s].window.next(t)},n.prototype._error=function(t){var r=this.contexts;if(this.contexts=null,r)for(var i=r.length,s=-1;++s<i;){var a=r[s];a.window.error(t),a.subscription.unsubscribe()}e.prototype._error.call(this,t)},n.prototype._complete=function(){var t=this.contexts;if(this.contexts=null,t)for(var r=t.length,i=-1;++i<r;){var s=t[i];s.window.complete(),s.subscription.unsubscribe()}e.prototype._complete.call(this)},n.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var r=t.length,i=-1;++i<r;){var s=t[i];s.window.unsubscribe(),s.subscription.unsubscribe()}},n.prototype.notifyNext=function(t,r,i,s,a){if(t===this.openings){var l=void 0;try{var c=this.closingSelector;l=c(r)}catch(w){return this.error(w)}var h=new Ee,u=new ge,d={window:h,subscription:u};this.contexts.push(d);var m=zt(this,l,d);m.closed?this.closeWindow(this.contexts.length-1):(m.context=d,u.add(m)),this.destination.next(h)}else this.closeWindow(this.contexts.indexOf(t))},n.prototype.notifyError=function(t){this.error(t)},n.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},n.prototype.closeWindow=function(t){if(t!==-1){var r=this.contexts,i=r[t],s=i.window,a=i.subscription;r.splice(t,1),s.complete(),a.unsubscribe()}},n}(an);function e0(e){return function(t){return t.lift(new t0(e))}}var t0=function(){function e(n){this.closingSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new n0(n,this.closingSelector))},e}(),n0=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.destination=t,i.closingSelector=r,i.openWindow(),i}return n.prototype.notifyNext=function(t,r,i,s,a){this.openWindow(a)},n.prototype.notifyError=function(t){this._error(t)},n.prototype.notifyComplete=function(t){this.openWindow(t)},n.prototype._next=function(t){this.window.next(t)},n.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},n.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},n.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},n.prototype.openWindow=function(t){t===void 0&&(t=null),t&&(this.remove(t),t.unsubscribe());var r=this.window;r&&r.complete();var i=this.window=new Ee;this.destination.next(i);var s;try{var a=this.closingSelector;s=a()}catch(l){this.destination.error(l),this.window.error(l);return}this.add(this.closingNotification=zt(this,s))},n}(an);function r0(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(t){var r;typeof e[e.length-1]=="function"&&(r=e.pop());var i=e;return t.lift(new i0(i,r))}}var i0=function(){function e(n,t){this.observables=n,this.project=t}return e.prototype.call=function(n,t){return t.subscribe(new o0(n,this.observables,this.project))},e}(),o0=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;s.observables=r,s.project=i,s.toRespond=[];var a=r.length;s.values=new Array(a);for(var l=0;l<a;l++)s.toRespond.push(l);for(var l=0;l<a;l++){var c=r[l];s.add(zt(s,c,void 0,l))}return s}return n.prototype.notifyNext=function(t,r,i){this.values[i]=r;var s=this.toRespond;if(s.length>0){var a=s.indexOf(i);a!==-1&&s.splice(a,1)}},n.prototype.notifyComplete=function(){},n.prototype._next=function(t){if(this.toRespond.length===0){var r=[t].concat(this.values);this.project?this._tryProject(r):this.destination.next(r)}},n.prototype._tryProject=function(t){var r;try{r=this.project.apply(this,t)}catch(i){this.destination.error(i);return}this.destination.next(r)},n}(an);function s0(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(r){return r.lift.call(Ra.apply(void 0,[r].concat(e)))}}function a0(e){return function(n){return n.lift(new Pa(e))}}var l0=Object.freeze({__proto__:null,audit:Fa,auditTime:sd,buffer:ad,bufferCount:ud,bufferTime:fd,bufferToggle:vd,bufferWhen:_d,catchError:jd,combineAll:kd,combineLatest:Td,concat:Nd,concatAll:Ta,concatMap:Ha,concatMapTo:Md,count:Ed,debounce:Od,debounceTime:Rd,defaultIfEmpty:or,delay:Wd,delayWhen:Yd,dematerialize:Jd,distinct:tp,distinctUntilChanged:Wa,distinctUntilKeyChanged:sp,elementAt:pp,endWith:hp,every:fp,exhaust:gp,exhaustMap:Ga,expand:$p,filter:Kt,finalize:Cp,find:Tp,findIndex:Mp,first:Ep,flatMap:Mu,groupBy:Pc,ignoreElements:zp,isEmpty:Lp,last:Dp,map:pt,mapTo:Hp,materialize:Gp,max:Zp,merge:Xp,mergeAll:ho,mergeMap:rn,mergeMapTo:Jp,mergeScan:Qp,min:nh,multicast:on,observeOn:qc,onErrorResumeNext:ih,pairwise:ah,partition:uh,pluck:dh,publish:hh,publishBehavior:fh,publishLast:bh,publishReplay:mh,race:gh,reduce:Yr,refCount:ao,repeat:xh,repeatWhen:yh,retry:$h,retryWhen:Ch,sample:Th,sampleTime:Eh,scan:Nr,sequenceEqual:Lh,share:Dh,shareReplay:Hh,single:Wh,skip:Kh,skipLast:Zh,skipUntil:Qh,skipWhile:nf,startWith:sf,subscribeOn:lf,switchAll:pf,switchMap:Zn,switchMapTo:hf,take:mo,takeLast:Tr,takeUntil:ff,takeWhile:gf,tap:yf,throttle:$f,throttleTime:Cf,throwIfEmpty:Kr,timeInterval:Nf,timeout:Af,timeoutWith:Ya,timestamp:Of,toArray:Rf,window:Pf,windowCount:Hf,windowTime:Gf,windowToggle:Xf,windowWhen:e0,withLatestFrom:r0,zip:s0,zipAll:a0}),go=Yi(l0),sr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(n){n.ACTIVATE="activate",n.MOVE="move",n.DEACTIVATE="deactivate"}(e.BarActionType||(e.BarActionType={}))})(sr);var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});function c0(e){return typeof e=="number"&&e===e}Ot.isValidNumber=c0;function u0(){}Ot.noop=u0;function d0(e,n){var t=n.reduce(function(r,i){return r[i]=!0,r},{});return Object.keys(e).reduce(function(r,i){return t[i]||(r[i]=e[i]),r},{})}Ot.omit=d0;var qr={};(function(e){var n=ue&&ue.__assign||function(){return n=Object.assign||function(l){for(var c,h=1,u=arguments.length;h<u;h++){c=arguments[h];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(l[d]=c[d])}return l},n.apply(this,arguments)},t;Object.defineProperty(e,"__esModule",{value:!0});var r=M,i=bo,s=Ot;e.ResizerProvider=(t=r.createContext({createID:function(){return-1},populateInstance:s.noop,triggerBarAction:s.noop,vertical:!1,sizeRelatedInfo$:i.EMPTY}),t.Provider),e.ResizerConsumer=t.Consumer;function a(l){return function(c){return r.createElement(e.ResizerConsumer,null,function(h){var u=n(n({},c),{context:h});return r.createElement(l,n({},u))})}}e.withResizerContext=a})(qr);var xo={},Zr={};(function(e){var n=ue&&ue.__assign||function(){return n=Object.assign||function(d){for(var m,w=1,S=arguments.length;w<S;w++){m=arguments[w];for(var j in m)Object.prototype.hasOwnProperty.call(m,j)&&(d[j]=m[j])}return d},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var t=Ot;e.DEFAULT_COORDINATE_OFFSET={x:0,y:0};function r(d,m){var w=m.maxSize,S=m.minSize,j=S===void 0?0:S;return d<j?{nextSize:j,remainingOffset:d-j}:t.isValidNumber(w)&&d>w?{nextSize:w,remainingOffset:d-w}:{nextSize:d,remainingOffset:0}}function i(d){var m=d.size;return t.isValidNumber(m)}e.isSolid=i;function s(d){var m=d.disableResponsive;return i(d)&&m===void 0?!0:!!m}e.isDisabledResponsive=s;function a(d,m){return m?{x:d.x-m.x,y:d.y-m.y}:e.DEFAULT_COORDINATE_OFFSET}e.calculateCoordinateOffset=a;function l(){var d=[],m=0,w=0;return{collect:function(S){d.push(S),S.disableResponsive||(m+=1,w+=S.currentSize)},getResult:function(){return{sizeInfoArray:d,flexGrowRatio:m/w}}}}e.collectSizeRelatedInfo=l;function c(d,m){if(m.isSolid)return{remainingOffset:d,sizeInfo:m};var w=r(m.currentSize+d,m),S=w.nextSize,j=w.remainingOffset;return{sizeInfo:n(n({},m),{currentSize:S}),remainingOffset:j}}function h(d,m,w,S){for(var j=[],I=m,T=d+w;p(T);T+=w)if(I){var C=c(I,S[T]),g=C.sizeInfo,f=C.remainingOffset;I=f,b(g)}else b(S[T]);function b(x){w===-1?j.unshift(x):j.push(x)}function p(x){return w===-1?x>=0:x<=S.length-1}return{sizeInfoArray:j,remainingOffset:I}}function u(d,m,w){var S=l(),j=S.collect,I=S.getResult,T=h(d,m,-1,w),C=h(d,-m,1,w),g=m-T.remainingOffset,f=-m-C.remainingOffset;function b(N,A){N.forEach(j),j(w[d]),A.forEach(j)}if(g===-f)b(T.sizeInfoArray,C.sizeInfoArray);else if(Math.abs(g)<Math.abs(f)){var p=h(d,-g,1,w);b(T.sizeInfoArray,p.sizeInfoArray)}else{var x=h(d,-f,-1,w);b(x.sizeInfoArray,C.sizeInfoArray)}return I()}e.getNextSizeRelatedInfo=u})(Zr);var Mr=ue&&ue.__assign||function(){return Mr=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Mr.apply(this,arguments)};Object.defineProperty(xo,"__esModule",{value:!0});var p0=Zr;function hs(e){return e*2+1}function pi(e){return e*2}var h0=function(){function e(n){this.resizeResult=n,this.isDiscarded=!1}return e.prototype.resizeSection=function(n,t){if(!this.isDiscarded){var r=pi(n),i=this.getSize(r);if(i>=0&&t.toSize>=0){var s=t.toSize-i;r===this.resizeResult.sizeInfoArray.length-1||t.preferMoveLeftBar?this.moveBar(n-1,{withOffset:-s}):this.moveBar(n,{withOffset:s})}}},e.prototype.moveBar=function(n,t){this.isDiscarded||(this.resizeResult=p0.getNextSizeRelatedInfo(hs(n),t.withOffset,this.resizeResult.sizeInfoArray))},e.prototype.discard=function(){this.isDiscarded=!0},e.prototype.isSectionResized=function(n){var t=pi(n);return"defaultSizeInfoArray"in this.resizeResult?this.getSize(t)!==this.resizeResult.defaultSizeInfoArray[t].currentSize:!1},e.prototype.isBarActivated=function(n){return"barID"in this.resizeResult?this.resizeResult.barID===hs(n):!1},e.prototype.getSectionSize=function(n){return this.getSize(pi(n))},e.prototype.getResult=function(){return Mr(Mr({},this.resizeResult),{discard:this.isDiscarded})},e.prototype.getTotalSize=function(){return this.resizeResult.sizeInfoArray.filter(function(n,t){return n&&t%2===0}).reduce(function(n,t){var r=t.currentSize;return n+r},0)},e.prototype.getSize=function(n){var t=this.resizeResult.sizeInfoArray[n];return t?t.currentSize:-1},e}();xo.Resizer=h0;var vo={},Ht=ue&&ue.__assign||function(){return Ht=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ht.apply(this,arguments)};Object.defineProperty(vo,"__esModule",{value:!0});var f0=go,yr=sr,Za=Zr,hi={barID:-1,offset:0,type:yr.BarActionType.DEACTIVATE,originalCoordinate:Za.DEFAULT_COORDINATE_OFFSET,defaultSizeInfoArray:[],sizeInfoArray:[],discard:!0,flexGrowRatio:0};function b0(e){return f0.scan(function(n,t){var r={barID:t.barID,type:t.type};switch(t.type){case yr.BarActionType.ACTIVATE:var i=e.getSizeRelatedInfo(),s=i.sizeInfoArray,a=i.flexGrowRatio;return Ht(Ht(Ht({},hi),r),{originalCoordinate:t.coordinate,defaultSizeInfoArray:s,sizeInfoArray:s,flexGrowRatio:a});case yr.BarActionType.MOVE:var l=e.calculateOffset(t.coordinate,n.originalCoordinate);return Ht(Ht(Ht({},r),Za.getNextSizeRelatedInfo(t.barID,l,n.defaultSizeInfoArray)),{offset:l,originalCoordinate:n.originalCoordinate,defaultSizeInfoArray:n.defaultSizeInfoArray,discard:!1});case yr.BarActionType.DEACTIVATE:return hi}},hi)}vo.scanBarAction=b0;var yo={},Er=ue&&ue.__assign||function(){return Er=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Er.apply(this,arguments)},m0=ue&&ue.__rest||function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]]);return t};Object.defineProperty(yo,"__esModule",{value:!0});var fs=M;yo.StyledContainer=fs.forwardRef(function(e,n){var t=e.vertical,r=e.style,i=m0(e,["vertical","style"]);return fs.createElement("div",Er({},i,{ref:n,style:Er({display:"flex",flexDirection:t?"column":"row"},r)}))});var g0=ue&&ue.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)i.hasOwnProperty(s)&&(r[s]=i[s])},e(n,t)};return function(n,t){e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Hi=ue&&ue.__assign||function(){return Hi=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Hi.apply(this,arguments)};Object.defineProperty(Gr,"__esModule",{value:!0});var fi=M,pr=bo,un=go,bs=sr,x0=Ot,v0=qr,Vi=xo;Gr.Resizer=Vi.Resizer;var y0=vo,hr=Zr,w0=yo,_0=function(e){g0(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.childrenProps=[],t.childrenInstance=[],t.barActions$=new pr.Subject,t.sizeRelatedInfoAction$=new pr.Subject,t.sizeRelatedInfo$=pr.merge(t.sizeRelatedInfoAction$,t.barActions$.pipe(y0.scanBarAction({calculateOffset:function(r,i){return hr.calculateCoordinateOffset(r,i)[t.axis]},getSizeRelatedInfo:function(){return t.makeSizeInfos()}}),un.tap(function(r){return t.monitorBarStatusChanges(r)}))).pipe(un.filter(function(r){var i=r.discard;return!i}),un.map(function(r){if(typeof t.props.beforeApplyResizer=="function"){var i=new Vi.Resizer(r);return t.props.beforeApplyResizer(i),i.getResult()}else return r}),un.filter(function(r){var i=r.discard;return!i}),un.observeOn(pr.animationFrameScheduler),un.share()),t.triggerBarAction=function(r){t.barActions$.next(r)},t.createID=function(r){return t.childrenProps.push(r),t.childrenProps.length-1},t.populateChildInstance=function(r,i){i.current&&(t.childrenInstance[r]=i.current)},t}return Object.defineProperty(n.prototype,"axis",{get:function(){return this.props.vertical?"y":"x"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dimension",{get:function(){return this.props.vertical?"height":"width"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"contextValue",{get:function(){return{vertical:!!this.props.vertical,sizeRelatedInfo$:this.sizeRelatedInfo$,createID:this.createID,populateInstance:this.populateChildInstance,triggerBarAction:this.triggerBarAction}},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"containerProps",{get:function(){return x0.omit(this.props,["onActivate","beforeApplyResizer","afterResizing"])},enumerable:!0,configurable:!0}),n.prototype.componentDidMount=function(){this.refreshSizeInfos()},n.prototype.render=function(){return fi.createElement(v0.ResizerProvider,{value:this.contextValue},fi.createElement(w0.StyledContainer,Hi({},this.containerProps),this.props.children))},n.prototype.getResizer=function(){return new Vi.Resizer(this.makeSizeInfos())},n.prototype.applyResizer=function(t){this.sizeRelatedInfoAction$.next(t.getResult())},n.prototype.monitorBarStatusChanges=function(t){var r=t.type;switch(r){case bs.BarActionType.ACTIVATE:typeof this.props.onActivate=="function"&&this.props.onActivate();return;case bs.BarActionType.DEACTIVATE:typeof this.props.afterResizing=="function"&&this.props.afterResizing();return;default:return}},n.prototype.refreshSizeInfos=function(){this.sizeRelatedInfoAction$.next(this.makeSizeInfos())},n.prototype.makeSizeInfos=function(){var t=this,r=hr.collectSizeRelatedInfo(),i=r.collect,s=r.getResult;return this.childrenProps.forEach(function(a,l){var c=t.childrenInstance[l];i({maxSize:a.maxSize,minSize:a.minSize,disableResponsive:hr.isDisabledResponsive(a),isSolid:hr.isSolid(a),currentSize:c.getBoundingClientRect()[t.dimension]})}),s()},n}(fi.PureComponent);Gr.Container=_0;var wo={},_o={},zr=ue&&ue.__assign||function(){return zr=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},zr.apply(this,arguments)},$0=ue&&ue.__rest||function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]]);return t};Object.defineProperty(_o,"__esModule",{value:!0});var ms=M;_o.StyledSection=ms.forwardRef(function(e,n){var t,r=e.context,i=e.maxSize,s=e.minSize,a=e.flexGrow,l=e.flexShrink,c=e.flexBasis,h=e.style,u=$0(e,["context","maxSize","minSize","flexGrow","flexShrink","flexBasis","style"]);return ms.createElement("div",zr({},u,{ref:n,style:zr((t={overflow:"hidden"},t[r.vertical?"maxHeight":"maxWidth"]=i,t[r.vertical?"minHeight":"minWidth"]=s,t.flexGrow=a,t.flexShrink=l,t.flexBasis=c,t),h)}))});var S0=ue&&ue.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)i.hasOwnProperty(s)&&(r[s]=i[s])},e(n,t)};return function(n,t){e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Un=ue&&ue.__assign||function(){return Un=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Un.apply(this,arguments)};Object.defineProperty(wo,"__esModule",{value:!0});var bi=M,j0=bo,mi=go,C0=qr,gi=Ot,I0=_o,k0=function(e){S0(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.defaultInnerRef=bi.createRef(),t.id=t.props.context.createID(t.props),t.subscription=new j0.Subscription,t.flexGrowRatio=0,t.resize$=t.props.context.sizeRelatedInfo$.pipe(mi.map(function(r){var i=r.sizeInfoArray,s=r.flexGrowRatio;return{sizeInfo:i[t.id],flexGrowRatio:s}}),mi.filter(function(r){var i=r.sizeInfo;return!!i}),mi.tap(function(r){var i=r.sizeInfo,s=r.flexGrowRatio;if(t.sizeInfo=i,t.flexGrowRatio=s,t.ref.current){var a=t.getStyle(i,s),l=a.flexGrow,c=a.flexShrink,h=a.flexBasis;t.ref.current.style.flexGrow=""+l,t.ref.current.style.flexShrink=""+c,t.ref.current.style.flexBasis=h+"px",t.onSizeChanged(i.currentSize)}})),t}return Object.defineProperty(n.prototype,"ref",{get:function(){return this.props.innerRef||this.defaultInnerRef},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"childProps",{get:function(){return Un(Un({},gi.omit(this.props,["defaultSize","size","disableResponsive","innerRef","onSizeChanged"])),this.getStyle())},enumerable:!0,configurable:!0}),n.prototype.componentDidMount=function(){this.subscription.add(this.resize$.subscribe()),this.props.context.populateInstance(this.id,this.ref)},n.prototype.componentWillUnmount=function(){this.subscription.unsubscribe()},n.prototype.render=function(){return bi.createElement(I0.StyledSection,Un({},this.childProps,{ref:this.ref}))},n.prototype.onSizeChanged=function(t){typeof this.props.onSizeChanged=="function"&&this.props.onSizeChanged(t)},n.prototype.getFlexShrink=function(){return gi.isValidNumber(this.props.size)?0:this.props.disableResponsive?1:0},n.prototype.getStyle=function(t,r){t===void 0&&(t=this.sizeInfo),r===void 0&&(r=this.flexGrowRatio);var i=this.getFlexShrink();if(t){var s=t.disableResponsive,a=t.currentSize;return{flexShrink:i,flexGrow:s?0:r*a,flexBasis:s?a:0}}else{var l=this.props.size||this.props.defaultSize;return gi.isValidNumber(l)?{flexShrink:i,flexGrow:0,flexBasis:l}:{flexShrink:i,flexGrow:1,flexBasis:0}}},n}(bi.PureComponent);wo.Section=C0.withResizerContext(k0);var $o={},Xr={},kn=ue&&ue.__assign||function(){return kn=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},kn.apply(this,arguments)},Xa=ue&&ue.__rest||function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]]);return t};Object.defineProperty(Xr,"__esModule",{value:!0});var Ar=M;Xr.StyledBar=Ar.forwardRef(function(e,n){var t=e.size,r=e.style,i=Xa(e,["size","style"]);return Ar.createElement("div",kn({},i,{ref:n,style:kn({position:"relative",flex:"0 0 "+t+"px"},r)}))});Xr.StyledInteractiveArea=Ar.forwardRef(function(e,n){var t=e.top,r=t===void 0?0:t,i=e.right,s=i===void 0?0:i,a=e.bottom,l=a===void 0?0:a,c=e.left,h=c===void 0?0:c,u=e.vertical,d=e.style,m=Xa(e,["top","right","bottom","left","vertical","style"]);return Ar.createElement("div",kn({},m,{style:kn({position:"absolute",top:-r,left:-h,right:-s,bottom:-l,cursor:u?"row-resize":"col-resize",WebkitTapHighlightColor:"transparent",userSelect:"none"},d),ref:n}))});var Jr={};Object.defineProperty(Jr,"__esModule",{value:!0});var T0=Jr.disablePassive=!0;try{window.addEventListener("test",null,{get passive(){return T0=Jr.disablePassive={passive:!1},!0}})}catch(e){}var N0=ue&&ue.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)i.hasOwnProperty(s)&&(r[s]=i[s])},e(n,t)};return function(n,t){e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Or=ue&&ue.__assign||function(){return Or=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Or.apply(this,arguments)};Object.defineProperty($o,"__esModule",{value:!0});var Bn=M,Xe=sr,M0=Ot,E0=qr,gs=Xr,xs=Jr,z0=function(e){N0(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.defaultInnerRef=Bn.createRef(),t.interactiveAreaRef=Bn.createRef(),t.id=t.props.context.createID(t.props),t.isValidClick=!0,t.isActivated=!1,t.onMouseDown=t.triggerMouseAction(Xe.BarActionType.ACTIVATE),t.onMouseMove=t.triggerMouseAction(Xe.BarActionType.MOVE),t.onMouseUp=t.triggerMouseAction(Xe.BarActionType.DEACTIVATE),t.onTouchStart=t.triggerTouchAction(Xe.BarActionType.ACTIVATE),t.onTouchMove=t.triggerTouchAction(Xe.BarActionType.MOVE),t.onTouchEnd=t.triggerTouchAction(Xe.BarActionType.DEACTIVATE),t.onTouchCancel=t.triggerTouchAction(Xe.BarActionType.DEACTIVATE),t}return Object.defineProperty(n.prototype,"ref",{get:function(){return this.props.innerRef||this.defaultInnerRef},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"childProps",{get:function(){return M0.omit(this.props,["context","innerRef","onClick","expandInteractiveArea","onStatusChanged"])},enumerable:!0,configurable:!0}),n.prototype.componentDidMount=function(){this.props.context.populateInstance(this.id,this.ref),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("touchmove",this.onTouchMove,xs.disablePassive),document.addEventListener("touchend",this.onTouchEnd),document.addEventListener("touchcancel",this.onTouchCancel),this.interactiveAreaRef.current&&(this.interactiveAreaRef.current.addEventListener("mousedown",this.onMouseDown),this.interactiveAreaRef.current.addEventListener("touchstart",this.onTouchStart,xs.disablePassive))},n.prototype.componentWillUnmount=function(){document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd),document.removeEventListener("touchcancel",this.onTouchCancel),this.interactiveAreaRef.current&&(this.interactiveAreaRef.current.removeEventListener("mousedown",this.onMouseDown),this.interactiveAreaRef.current.removeEventListener("touchstart",this.onTouchStart))},n.prototype.render=function(){return Bn.createElement(gs.StyledBar,Or({},this.childProps,{ref:this.ref}),this.props.children,Bn.createElement(gs.StyledInteractiveArea,Or({},this.props.expandInteractiveArea,{ref:this.interactiveAreaRef,vertical:this.props.context.vertical})))},n.prototype.onStatusChanged=function(t){this.isActivated!==t&&(this.isActivated=t,typeof this.props.onStatusChanged=="function"&&this.props.onStatusChanged(t))},n.prototype.updateStatusIfNeed=function(t){t===Xe.BarActionType.ACTIVATE?this.onStatusChanged(!0):t===Xe.BarActionType.DEACTIVATE&&this.onStatusChanged(!1)},n.prototype.triggerAction=function(t,r){(this.isActivated||t===Xe.BarActionType.ACTIVATE)&&this.props.context.triggerBarAction({type:t,coordinate:r,barID:this.id}),this.isActivated&&t===Xe.BarActionType.DEACTIVATE&&this.onClick(),this.updateStatusIfNeed(t),this.updateClickStatus(t)},n.prototype.triggerMouseAction=function(t){var r=this;return function(i){r.disableUserSelectIfResizing(i,t);var s=i.clientX,a=i.clientY;r.triggerAction(t,{x:s,y:a})}},n.prototype.triggerTouchAction=function(t){var r=this;return function(i){r.disableUserSelectIfResizing(i,t);var s=i.touches[0]||{clientX:0,clientY:0},a=s.clientX,l=s.clientY;r.triggerAction(t,{x:a,y:l})}},n.prototype.disableUserSelectIfResizing=function(t,r){(this.isActivated||r===Xe.BarActionType.ACTIVATE)&&t.preventDefault()},n.prototype.updateClickStatus=function(t){this.isActivated&&(t===Xe.BarActionType.ACTIVATE?this.isValidClick=!0:t===Xe.BarActionType.MOVE&&(this.isValidClick=!1))},n.prototype.onClick=function(){this.isValidClick&&typeof this.props.onClick=="function"&&(this.isValidClick=!1,this.props.onClick())},n}(Bn.PureComponent);$o.Bar=E0.withResizerContext(z0);(function(e){function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(Gr),n(wo),n($o),n(sr)})(Zt);function vs({size:e=30,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("path",{className:"svg-icn",strokeWidth:n,d:"M9.16,23.13A10.81,10.81,0,1,0,5.48,15"}),o.jsx("polyline",{className:"svg-icn",strokeWidth:n,points:"2.91 13.71 5.48 16.29 7.95 13.82"}),o.jsx("polyline",{className:"svg-icn",strokeWidth:n,points:"20.09 20.33 15.29 16 15.29 9.53"})]})}function A0({size:e,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("path",{className:"svg-icn",strokeWidth:n,strokeMiterlimit:"10",d:"M18.2,26H14.89a8.15,8.15,0,0,1-8.16-8.08h0A8.15,8.15,0,0,1,14.89,9.8h6.57"}),o.jsx("polyline",{className:"svg-icn",strokeWidth:n,strokeLinejoin:"round",points:"17.32 4.03 23.27 9.93 17.32 15.82"})]})}function O0({size:e,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("path",{className:"svg-icn",strokeWidth:n,strokeMiterlimit:"10",d:"M11.8,26h3.31a8.15,8.15,0,0,0,8.16-8.08h0A8.15,8.15,0,0,0,15.11,9.8H8.54"}),o.jsx("polyline",{className:"svg-icn",strokeWidth:n,strokeLinejoin:"round",points:"12.68 4.03 6.74 9.93 12.68 15.82"})]})}const Bt={menu:{mnw:150,mxw:200},title:{flx:"align-center",mt:0,mb:5,pb:2,bb:"1px solid var(--lightgray)",fs:14,fw:600},secondary:{dy:"block",pt:2,pb:2},list:{w:200,mxh:300,m:0,mb:5,dy:"block",owy:"auto",ff:"Roboto","&> div":{owx:"hidden !important"}},item:{mb:0,fs:12},btn:{b:0,p:"5px 10px",m:1,w:"100%",brs:8,ta:"start",bc:"var(--white-100)",curp:1,"&:hover":{bc:"var(--white-0-93)"},"&:focus-visible":{oe:"none",bs:"0 0 0 2px var(--b-50) inset"},"&.active":{fw:500,bc:"var(--white-0-93)"},"&.unactive":{cr:"var(--white-0-0-64)"}},subtitle:{dy:"block",ws:"nowrap",ow:"hidden",to:"ellipsis"},fldkey:{fs:10,cr:"var(--white-0-50)"}};/** |
| 17 |
* react-virtual |
| 18 |
* |
| 19 |
* Copyright (c) TanStack |
| 20 |
* |
| 21 |
* This source code is licensed under the MIT license found in the |
| 22 |
* LICENSE.md file in the root directory of this source tree. |
| 23 |
* |
| 24 |
* @license MIT |
| 25 |
*/function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Lr.apply(this,arguments)}/** |
| 26 |
* virtual-core |
| 27 |
* |
| 28 |
* Copyright (c) TanStack |
| 29 |
* |
| 30 |
* This source code is licensed under the MIT license found in the |
| 31 |
* LICENSE.md file in the root directory of this source tree. |
| 32 |
* |
| 33 |
* @license MIT |
| 34 |
*/function Br(){return Br=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Br.apply(this,arguments)}/** |
| 35 |
* virtual-core |
| 36 |
* |
| 37 |
* Copyright (c) TanStack |
| 38 |
* |
| 39 |
* This source code is licensed under the MIT license found in the |
| 40 |
* LICENSE.md file in the root directory of this source tree. |
| 41 |
* |
| 42 |
* @license MIT |
| 43 |
*/function dn(e,n,t){var r,i=(r=t.initialDeps)!=null?r:[],s;return function(){var a;t.key&&t.debug!=null&&t.debug()&&(a=Date.now());var l=e(),c=l.length!==i.length||l.some(function(S,j){return i[j]!==S});if(!c)return s;i=l;var h;if(t.key&&t.debug!=null&&t.debug()&&(h=Date.now()),s=n.apply(void 0,l),t.key&&t.debug!=null&&t.debug())var u=Math.round((Date.now()-a)*100)/100,d=Math.round((Date.now()-h)*100)/100,m=d/16,w=function(j,I){for(j=String(j);j.length<I;)j=" "+j;return j};return t==null||t.onChange==null||t.onChange(s),s}}function xi(e,n){if(e===void 0)throw new Error("Unexpected undefined"+(n?": "+n:""));return e}var L0=function(n,t){return Math.abs(n-t)<1};/** |
| 44 |
* virtual-core |
| 45 |
* |
| 46 |
* Copyright (c) TanStack |
| 47 |
* |
| 48 |
* This source code is licensed under the MIT license found in the |
| 49 |
* LICENSE.md file in the root directory of this source tree. |
| 50 |
* |
| 51 |
* @license MIT |
| 52 |
*/var B0=function(n){return n},R0=function(n){for(var t=Math.max(n.startIndex-n.overscan,0),r=Math.min(n.endIndex+n.overscan,n.count-1),i=[],s=t;s<=r;s++)i.push(s);return i},P0=function(n,t){var r=n.scrollElement;if(r){var i=function(l){var c=l.width,h=l.height;t({width:Math.round(c),height:Math.round(h)})};i(r.getBoundingClientRect());var s=new ResizeObserver(function(a){var l=a[0];if(l!=null&&l.borderBoxSize){var c=l.borderBoxSize[0];if(c){i({width:c.inlineSize,height:c.blockSize});return}}i(r.getBoundingClientRect())});return s.observe(r,{box:"border-box"}),function(){s.unobserve(r)}}},F0=function(n,t){var r=n.scrollElement;if(r){var i=function(){t(r[n.options.horizontal?"scrollLeft":"scrollTop"])};return i(),r.addEventListener("scroll",i,{passive:!0}),function(){r.removeEventListener("scroll",i)}}},D0=function(n,t,r){if(t!=null&&t.borderBoxSize){var i=t.borderBoxSize[0];if(i){var s=Math.round(i[r.options.horizontal?"inlineSize":"blockSize"]);return s}}return Math.round(n.getBoundingClientRect()[r.options.horizontal?"width":"height"])},H0=function(n,t,r){var i,s,a=t.adjustments,l=a===void 0?0:a,c=t.behavior,h=n+l;(i=r.scrollElement)==null||i.scrollTo==null||i.scrollTo((s={},s[r.options.horizontal?"left":"top"]=h,s.behavior=c,s))},V0=function(n){var t=this;this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=function(){var r=null,i=function(){return r||(typeof ResizeObserver!="undefined"?r=new ResizeObserver(function(a){a.forEach(function(l){t._measureElement(l.target,l)})}):null)};return{disconnect:function(){var a;return(a=i())==null?void 0:a.disconnect()},observe:function(a){var l;return(l=i())==null?void 0:l.observe(a,{box:"border-box"})},unobserve:function(a){var l;return(l=i())==null?void 0:l.unobserve(a)}}}(),this.range={startIndex:0,endIndex:0},this.setOptions=function(r){Object.entries(r).forEach(function(i){var s=i[0],a=i[1];typeof a=="undefined"&&delete r[s]}),t.options=Br({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:B0,rangeExtractor:R0,onChange:function(){},measureElement:D0,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},r)},this.notify=function(){t.options.onChange==null||t.options.onChange(t)},this.cleanup=function(){t.unsubs.filter(Boolean).forEach(function(r){return r()}),t.unsubs=[],t.scrollElement=null},this._didMount=function(){return t.measureElementCache.forEach(t.observer.observe),function(){t.observer.disconnect(),t.cleanup()}},this._willUpdate=function(){var r=t.options.getScrollElement();t.scrollElement!==r&&(t.cleanup(),t.scrollElement=r,t._scrollToOffset(t.scrollOffset,{adjustments:void 0,behavior:void 0}),t.unsubs.push(t.options.observeElementRect(t,function(i){var s=t.scrollRect;t.scrollRect=i,(t.options.horizontal?i.width!==s.width:i.height!==s.height)&&t.maybeNotify()})),t.unsubs.push(t.options.observeElementOffset(t,function(i){t.scrollAdjustments=0,t.scrollOffset!==i&&(t.isScrollingTimeoutId!==null&&(clearTimeout(t.isScrollingTimeoutId),t.isScrollingTimeoutId=null),t.isScrolling=!0,t.scrollDirection=t.scrollOffset<i?"forward":"backward",t.scrollOffset=i,t.maybeNotify(),t.isScrollingTimeoutId=setTimeout(function(){t.isScrollingTimeoutId=null,t.isScrolling=!1,t.scrollDirection=null,t.maybeNotify()},t.options.scrollingDelay))})))},this.getSize=function(){return t.scrollRect[t.options.horizontal?"width":"height"]},this.memoOptions=dn(function(){return[t.options.count,t.options.paddingStart,t.options.scrollMargin,t.options.getItemKey]},function(r,i,s,a){return t.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:i,scrollMargin:s,getItemKey:a}},{key:!1}),this.getFurthestMeasurement=function(r,i){for(var s=new Map,a=new Map,l=i-1;l>=0;l--){var c=r[l];if(!s.has(c.lane)){var h=a.get(c.lane);if(h==null||c.end>h.end?a.set(c.lane,c):c.end<h.end&&s.set(c.lane,!0),s.size===t.options.lanes)break}}return a.size===t.options.lanes?Array.from(a.values()).sort(function(u,d){return u.end-d.end})[0]:void 0},this.getMeasurements=dn(function(){return[t.memoOptions(),t.itemSizeCache]},function(r,i){var s=r.count,a=r.paddingStart,l=r.scrollMargin,c=r.getItemKey,h=t.pendingMeasuredCacheIndexes.length>0?Math.min.apply(Math,t.pendingMeasuredCacheIndexes):0;t.pendingMeasuredCacheIndexes=[];for(var u=t.measurementsCache.slice(0,h),d=h;d<s;d++){var m=c(d),w=t.options.lanes===1?u[d-1]:t.getFurthestMeasurement(u,d),S=w?w.end:a+l,j=i.get(m),I=typeof j=="number"?j:t.options.estimateSize(d),T=S+I,C=w?w.lane:d%t.options.lanes;u[d]={index:d,start:S,size:I,end:T,key:m,lane:C}}return t.measurementsCache=u,u},{key:!1,debug:function(){return t.options.debug}}),this.calculateRange=dn(function(){return[t.getMeasurements(),t.getSize(),t.scrollOffset]},function(r,i,s){return t.range=W0({measurements:r,outerSize:i,scrollOffset:s})},{key:!1,debug:function(){return t.options.debug}}),this.maybeNotify=dn(function(){var r=t.calculateRange();return[r.startIndex,r.endIndex,t.isScrolling]},function(){t.notify()},{key:!1,debug:function(){return t.options.debug},initialDeps:[this.range.startIndex,this.range.endIndex,this.isScrolling]}),this.getIndexes=dn(function(){return[t.options.rangeExtractor,t.calculateRange(),t.options.overscan,t.options.count]},function(r,i,s,a){return r(Br({},i,{overscan:s,count:a}))},{key:!1,debug:function(){return t.options.debug}}),this.indexFromElement=function(r){var i=t.options.indexAttribute,s=r.getAttribute(i);return s?parseInt(s,10):-1},this._measureElement=function(r,i){var s=t.indexFromElement(r),a=t.options.getItemKey(s),l=t.measureElementCache.get(a);if(!r.isConnected){t.observer.unobserve(r),r===l&&t.measureElementCache.delete(a);return}l!==r&&(l&&t.observer.unobserve(l),t.observer.observe(r),t.measureElementCache.set(a,r));var c=t.options.measureElement(r,i,t);t.resizeItem(s,c)},this.resizeItem=function(r,i){var s,a=t.measurementsCache[r];if(a){var l=(s=t.itemSizeCache.get(a.key))!=null?s:a.size,c=i-l;c!==0&&(a.start<t.scrollOffset&&t._scrollToOffset(t.scrollOffset,{adjustments:t.scrollAdjustments+=c,behavior:void 0}),t.pendingMeasuredCacheIndexes.push(r),t.itemSizeCache=new Map(t.itemSizeCache.set(a.key,i)),t.notify())}},this.measureElement=function(r){r&&t._measureElement(r,void 0)},this.getVirtualItems=dn(function(){return[t.getIndexes(),t.getMeasurements()]},function(r,i){for(var s=[],a=0,l=r.length;a<l;a++){var c=r[a],h=i[c];s.push(h)}return s},{key:!1,debug:function(){return t.options.debug}}),this.getVirtualItemForOffset=function(r){var i=t.getMeasurements();return xi(i[Ja(0,i.length-1,function(s){return xi(i[s]).start},r)])},this.getOffsetForAlignment=function(r,i){var s=t.getSize();i==="auto"&&(r<=t.scrollOffset?i="start":r>=t.scrollOffset+s?i="end":i="start"),i==="start"?r=r:i==="end"?r=r-s:i==="center"&&(r=r-s/2);var a=t.options.horizontal?"scrollWidth":"scrollHeight",l=t.scrollElement?"document"in t.scrollElement?t.scrollElement.document.documentElement[a]:t.scrollElement[a]:0,c=l-t.getSize();return Math.max(Math.min(c,r),0)},this.getOffsetForIndex=function(r,i){i===void 0&&(i="auto"),r=Math.max(0,Math.min(r,t.options.count-1));var s=xi(t.getMeasurements()[r]);if(i==="auto")if(s.end>=t.scrollOffset+t.getSize()-t.options.scrollPaddingEnd)i="end";else if(s.start<=t.scrollOffset+t.options.scrollPaddingStart)i="start";else return[t.scrollOffset,i];var a=i==="end"?s.end+t.options.scrollPaddingEnd:s.start-t.options.scrollPaddingStart;return[t.getOffsetForAlignment(a,i),i]},this.isDynamicMode=function(){return t.measureElementCache.size>0},this.cancelScrollToIndex=function(){t.scrollToIndexTimeoutId!==null&&(clearTimeout(t.scrollToIndexTimeoutId),t.scrollToIndexTimeoutId=null)},this.scrollToOffset=function(r,i){var s=i===void 0?{}:i,a=s.align,l=a===void 0?"start":a,c=s.behavior;t.cancelScrollToIndex(),c==="smooth"&&t.isDynamicMode(),t._scrollToOffset(t.getOffsetForAlignment(r,l),{adjustments:void 0,behavior:c})},this.scrollToIndex=function(r,i){var s=i===void 0?{}:i,a=s.align,l=a===void 0?"auto":a,c=s.behavior;r=Math.max(0,Math.min(r,t.options.count-1)),t.cancelScrollToIndex(),c==="smooth"&&t.isDynamicMode();var h=t.getOffsetForIndex(r,l),u=h[0],d=h[1];t._scrollToOffset(u,{adjustments:void 0,behavior:c}),c!=="smooth"&&t.isDynamicMode()&&(t.scrollToIndexTimeoutId=setTimeout(function(){t.scrollToIndexTimeoutId=null;var m=t.measureElementCache.has(t.options.getItemKey(r));if(m){var w=t.getOffsetForIndex(r,d),S=w[0];L0(S,t.scrollOffset)||t.scrollToIndex(r,{align:d,behavior:c})}else t.scrollToIndex(r,{align:d,behavior:c})}))},this.scrollBy=function(r,i){var s=i===void 0?{}:i,a=s.behavior;t.cancelScrollToIndex(),a==="smooth"&&t.isDynamicMode(),t._scrollToOffset(t.scrollOffset+r,{adjustments:void 0,behavior:a})},this.getTotalSize=function(){var r;return(((r=t.getMeasurements()[t.options.count-1])==null?void 0:r.end)||t.options.paddingStart)-t.options.scrollMargin+t.options.paddingEnd},this._scrollToOffset=function(r,i){var s=i.adjustments,a=i.behavior;t.options.scrollToFn(r,{behavior:a,adjustments:s},t)},this.measure=function(){t.itemSizeCache=new Map,t.notify()},this.setOptions(n),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(function(r){t.itemSizeCache.set(r.key,r.size)}),this.maybeNotify()},Ja=function(n,t,r,i){for(;n<=t;){var s=(n+t)/2|0,a=r(s);if(a<i)n=s+1;else if(a>i)t=s-1;else return s}return n>0?n-1:0};function W0(e){for(var n=e.measurements,t=e.outerSize,r=e.scrollOffset,i=n.length-1,s=function(h){return n[h].start},a=Ja(0,i,s,r),l=a;l<i&&n[l].end<r+t;)l++;return{startIndex:a,endIndex:l}}/** |
| 53 |
* react-virtual |
| 54 |
* |
| 55 |
* Copyright (c) TanStack |
| 56 |
* |
| 57 |
* This source code is licensed under the MIT license found in the |
| 58 |
* LICENSE.md file in the root directory of this source tree. |
| 59 |
* |
| 60 |
* @license MIT |
| 61 |
*/var G0=typeof document!="undefined"?M.useLayoutEffect:M.useEffect;function U0(e){var n=M.useReducer(function(){return{}},{})[1],t=Lr({},e,{onChange:function(a){n(),e.onChange==null||e.onChange(a)}}),r=M.useState(function(){return new V0(t)}),i=r[0];return i.setOptions(t),M.useEffect(function(){return i._didMount()},[]),G0(function(){return i._willUpdate()}),i}function K0(e){return U0(Lr({observeElementRect:P0,observeElementOffset:F0,scrollToFn:H0},e))}function Y0({virtualizerRef:e,itemCount:n,itemSizes:t,overScanCount:r=3,renderItem:i,scrollToIndex:s,scrollToAlignment:a,className:l,style:c}){e||(e=M.useRef(null));const[h,u]=M.useState(null);return e.current=K0({count:n,getScrollElement:()=>h,estimateSize:Array.isArray(t)?d=>t[d]:()=>t,overscan:r,enableSmoothScroll:!0}),o.jsx("div",{ref:u,className:l,style:B(y({},c),{maxHeight:"70vh",overflow:"auto"}),children:o.jsx("div",{style:{height:`${e.current.getTotalSize()}px`,width:"100%",position:"relative",overflow:"hidden",minHeight:e.current.getVirtualItems().length&&"70px"},children:e.current.getVirtualItems().map(({index:d,size:m,start:w})=>o.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:`${m}px`,transform:`translateY(${w}px)`},children:i(d)},d))})})}function Wi(e){e.target.tagName!=="INPUT"&&e.ctrlKey&&(e.preventDefault(),e.key.toLowerCase()==="z"?document.querySelector("#builder-undo-btn").click():e.key.toLowerCase()==="y"&&document.querySelector("#builder-redo-btn").click())}function q0(){const{css:e}=ne(),[n,t]=M.useState(!1),[r,i]=M.useState(null),s=re(Ue),a=re(zs),l=re(qi),c=re(Kn),h=re(Ii),u=re(lt),d=re(he),m=re(Jn),w=re(Re),S=re(As),j=re(Os),I=re(Ls),T=re(Bs),[C,g]=Y(_l),f=re(Fr),b=M.useRef(null),{active:p,histories:x}=C;M.useEffect(()=>(document.addEventListener("keypress",Wi),()=>document.removeEventListener("keypress",Wi)),[p,n]);const N=k=>{if(k<0||n||p===k)return;const{state:P}=x[k];t(!0),sessionStorage.setItem("btcd-lc","-"),P.colorScheme?h(P.colorScheme):O(k,h,"colorScheme"),P.breakpoint?u(P.breakpoint):O(k,u,"breakpoint"),P.fields?s(P.fields):O(k,s,"fields"),P.activeBuilderStep!==void 0?T(P.activeBuilderStep):O(k,T,"activeBuilderStep"),P.formInfo?a(P.formInfo):O(k,a,"formInfo"),P.allLayouts?l(P.allLayouts):O(k,l,"allLayouts"),P.nestedLayouts?c(P.nestedLayouts):O(k,c,"nestedLayouts"),P.styles?d(P.styles):O(k,d,"styles"),P.themeColors?m(P.themeColors):O(k,m,"themeColors"),P.themeVars?w(P.themeVars):O(k,w,"themeVars"),P.allThemeColors&&j(P.allThemeColors),P.allThemeVars&&I(P.allThemeVars),P.allStyles&&S(P.allStyles),A(k),g(H=>B(y({},H),{active:k})),f(H=>B(y({},H),{forceBuilderWidthToBrkPnt:H.forceBuilderWidthToBrkPnt+1,reRenderGridLayoutByRootLay:H.reRenderGridLayoutByRootLay+1,recalculateNestedField:{counter:H.recalculateNestedField.counter+1}})),Wt(),t(!1)},A=k=>{if(p>k){Lo.success(x[k].event,{position:"bottom-right"});return}Lo.success(x[k].event,{position:"bottom-right"})},O=(k,P,H)=>{for(let z=k-1;z>=0;z-=1)if(H in x[z].state){P(x[z].state[H]);break}},F=()=>{var k;(k=b==null?void 0:b.current)==null||k.scrollToIndex(p),i(!0)},$=()=>{i(!1)},E=x.map(k=>k.state.fldKey?40:25);return o.jsx("div",{children:o.jsxs("div",{className:e(pe.option_right),children:[o.jsx(Ie,{msg:"Undo",children:o.jsx("button",{"data-testid":"undo",type:"button",id:"builder-undo-btn",disabled:!p||n,className:e([pe.icn_btn,v.icn_hover]),onClick:()=>N(p-1),children:o.jsx(O0,{size:"25"})})}),o.jsx("div",{className:e(pe.border_right)}),o.jsx(Ie,{msg:"Redo",children:o.jsx("button",{"data-testid":"redo",type:"button",id:"builder-redo-btn",disabled:p===x.length-1||n,className:e([pe.icn_btn,v.icn_hover]),onClick:()=>N(p+1),children:o.jsx(A0,{size:"25"})})}),o.jsx("div",{className:e(pe.border_right)}),o.jsxs(jr,{place:"bottom-end",onShow:F,onHide:$,children:[o.jsx("button",{"data-testid":"history-list",type:"button",className:`${e([pe.icn_btn,v.icn_hover])} ${r?"active":""}`,children:o.jsx(vs,{size:"25"})}),o.jsxs("div",{className:e(Bt.menu),children:[o.jsxs("p",{className:e(Bt.title),children:[o.jsx("span",{className:e(v.mr1),children:o.jsx(vs,{size:"20"})}),"History"]}),x.length<=1&&o.jsx("span",{className:e(Bt.secondary),children:_("History Empty")}),x.length>1&&o.jsx(Y0,{virtualizerRef:b,className:e(Bt.list),itemCount:x.length,itemSizes:E,renderItem:k=>o.jsx("div",{className:e(Bt.item),children:o.jsxs("button",{type:"button",className:`${e(Bt.btn)} ${p===k&&"active"} ${p<k&&"unactive"}`,onClick:()=>N(k),title:x[k].event,children:[o.jsx("span",{className:e(Bt.subtitle),children:x[k].event}),x[k].state.fldKey&&o.jsx("span",{className:e(Bt.fldkey),children:`Field Key: ${x[k].state.fldKey}`})]})})})]})]})]})})}const Z0=r=>{var i=r,{children:e,title:n}=i,t=si(i,["children","title"]);var h,u,d;const[s,a]=M.useState(null),l=(h=s==null?void 0:s.contentDocument)==null?void 0:h.body;s&&((u=s==null?void 0:s.contentWindow)==null||u.addEventListener("keydown",$l),(d=s==null?void 0:s.contentWindow)==null||d.addEventListener("keydown",Wi));const c=m=>(m==null?void 0:m.doctype)!==null;if(s&&!c(s==null?void 0:s.contentDocument)){const m=document.implementation.createDocumentType("html","","");s.contentDocument.insertBefore(m,s.contentDocument.childNodes[0])}return M.useEffect(()=>{var m;(m=s==null?void 0:s.contentDocument)==null||m.querySelectorAll("a").forEach(w=>{w.bfClickPrevented||(w.addEventListener("click",S=>{S.preventDefault(),S.stopPropagation()}),w.bfClickPrevented=!0)})},[e]),o.jsx("iframe",B(y({title:n},t),{ref:a,referrerPolicy:"no-referrer",children:l&&c(s.contentDocument)&&Zi.createPortal(e,l)}))},So={},Rr=[],sn=So.toString,tn=So.hasOwnProperty,Qa=sn.call(So),Pr=sn.call(Rr),X0=sn.call("");function Gi(e,n,t,r,i,s){r=[];for(s in n)if(tn.call(n,s))for(i in e)tn.call(e,i)&&r.push(Ui(e[i],n[s],t));return r}function Ui(e,n,t){return t&&(/^[-\w$]+$/.test(n)&&`:-error-bad-sub-selector-${n}`||/&/.test(n)&&n.replace(/&/g,e))||e+n}function J0(e){return`-${e.toLowerCase()}`}function Qt(e,n,t,r,i,s,a,l,c){if(e!=null){if(/\$/.test(t)){for(c in t=t.split("$"))tn.call(t,c)&&Qt(e,n,t[c],r,i,s);return}switch(sn.call(e=e.valueOf())){case Pr:for(a=0;a<e.length;a+=1)Qt(e[a],n,t,r,i,s);break;case Qa:t=t&&`${t}-`;for(a in e)if(tn.call(e,a))if(l=e[a],/\$/.test(a))for(c in a=a.split("$"))tn.call(a,c)&&Qt(l,n,t+a[c],r,i,s);else Qt(l,n,t+a,r,i,s);break;default:for(a=t.replace(/_/g,"-").replace(/[A-Z]/g,J0),i&&(a==="animation-name"||a==="animation")&&(e=e.split(",").map(h=>h.replace(/()(?::global\(\s*([-\w]+)\s*\)|()([-\w]+))/,s.l)).join(",")),/^animation|^transition/.test(a)&&(r=["webkit"]),a=a.replace(/^@/,"*"),c=0;c<r.length;c+=1)n.push("-",r[c],"-",a,a?":":"",e,";");n.push(a,a?":":"",e,";")}}}const Q0=/()(?::global\(\s*(\.[-\w]+)\s*\)|(\.)([-\w]+))/g;function eb(e,n,t,r,i,s,a,l){let c;if(/^@(?:namespace|import|charset)$/.test(e))if(sn.call(n)===Pr)for(c=0;c<n.length;c+=1)t.push(e," ",n[c],";");else t.push(e," ",n,";");else if(/^@keyframes /.test(e))e=a?e.replace(/( )(?::global\(\s*([-\w]+)\s*\)|()([-\w]+))/,l.l):e,t.push("@-webkit-",e.slice(1)," {"),kt(n,t,"","",["webkit"]),t.push("}"),t.push(e," {"),kt(n,t,"","",s,a,l),t.push("}");else if(/^@extends?$/.test(e)){for(;c=Q0.exec(i);)e=c[4];if(e==null||!a){t.push("@-error-cannot-extend-in-global-context ",JSON.stringify(i),";");return}if(/^@extends?$/.test(e)){t.push("@-error-no-class-to-extend-in ",JSON.stringify(i),";");return}l.e(sn.call(n)===Pr?n.map(h=>h.replace(/()(?::global\(\s*(\.[-\w]+)\s*\)|()\.([-\w]+))/,l.l)).join(" "):n.replace(/()(?::global\(\s*(\.[-\w]+)\s*\)|()\.([-\w]+))/,l.l),e)}else/^@(?:font-face$|viewport$|page )/.test(e)?kt(n,t,e,e,Rr):/^@global$/.test(e)?kt(n,t,r,i,s,0,l):/^@local$/.test(e)?kt(n,t,r,i,s,1,l):/^@(?:media |supports |document )./.test(e)?(t.push(e," {"),kt(n,t,r,i,s,a,l),t.push("}")):t.push("@-error-unsupported-at-rule ",JSON.stringify(e),";")}function kt(e,n,t,r,i,s,a){let l,c,h,u;switch(sn.call(e)){case Pr:for(l=0;l<e.length;l+=1)kt(e[l],n,t,r,i,s,a);break;case Qa:for(l in e)h=e[l],t&&/^[-\w$]+$/.test(l)?(u||(u=1,n.push(t||"*"," {")),Qt(h,n,l,i,s,a)):/^@/.test(l)?(u=u&&n.push("}")&&0,eb(l,h,n,t,r,i,s,a)):(u=u&&n.push("}")&&0,kt(h,n,(c=/,/.test(t)||t&&/,/.test(l))?Gi(t.split(","),(s?l.replace(/()(?::global\(\s*(\.[-\w]+)\s*\)|(\.)([-\w]+))/g,a.l):l).split(","),t).join(","):Ui(t,s?l.replace(/()(?::global\(\s*(\.[-\w]+)\s*\)|(\.)([-\w]+))/g,a.l):l,t),c?Gi(r.split(","),l.split(","),r).join(","):Ui(r,l,r),i,s,a));u&&n.push("}");break;case X0:n.push(t||":-error-no-selector"," {"),Qt(e,n,"",i,s,a),n.push("}")}}function Mt(e){e=e||{};const n=[];function t(r,i){for(i=0;i<n.length;i+=1)r=n[i](r)||r;return r.join("")}return e.use=function(){const r=arguments;for(let i=0;i<r.length;i+=1)n.push(r[i]);return e},e.sheet=function(r,i){arguments.length===1&&(i=r,r={});const s={};let a,l=[];for(a in r)a-0!==a-0&&tn.call(r,a)&&(s[a]=r[a]);kt(i,l,"","",Rr,1,{e:function(h,u){const d=s[u];s[u]=`${d.slice(0,d.lastIndexOf(" ")+1)+h} ${d.slice(d.lastIndexOf(" ")+1)}`},l:function(h,u,d,m,w){return d?u+d:(s[w]||(s[w]=w),u+m+s[w].match(/\S+$/))}}),l=new String(t(l));for(a in s)tn.call(s,a)&&(l[a]=s[a]);return l},e.inline=function(r,i,s){return arguments.length===1&&(i=r,r={}),Qt(i,s=[],"",Rr,1,{l:function(l,c,h,u,d){return h?c+h:r[d]?c+u+r[d]:d}}),t(s)},e.prefix=function(r,i){return Gi(i.map(s=>`-${s}-`).concat([""]),[r])},e}Mt.global=function(e){return`:global(${e})`};Mt.kv=el;function el(e,n,t){return t={},t[e]=n,t}Mt.at=function e(n,t,r){if(arguments.length<3){const i=e.bind.apply(e,[null].concat([].slice.call(arguments,0)));return i.toString=function(){return`@${n} ${t}`},i}return el(`@${n} ${t}`,r)};Mt(Mt);delete Mt.use;var Qr={exports:{}},tl={};function nl(e){var n,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(n=0;n<e.length;n++)e[n]&&(t=nl(e[n]))&&(r&&(r+=" "),r+=t);else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ys(){for(var e,n,t=0,r="";t<arguments.length;)(e=arguments[t++])&&(n=nl(e))&&(r&&(r+=" "),r+=n);return r}var tb=Object.freeze({__proto__:null,clsx:ys,default:ys}),nb=Yi(tb),Se={},$t={};Object.defineProperty($t,"__esModule",{value:!0});$t.dontSetMe=ab;$t.findInArray=rb;$t.int=sb;$t.isFunction=ib;$t.isNum=ob;function rb(e,n){for(let t=0,r=e.length;t<r;t++)if(n.apply(n,[e[t],t,e]))return e[t]}function ib(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function ob(e){return typeof e=="number"&&!isNaN(e)}function sb(e){return parseInt(e,10)}function ab(e,n,t){if(e[n])return new Error("Invalid prop ".concat(n," passed to ").concat(t," - do not set this, set it on the child."))}var ln={};Object.defineProperty(ln,"__esModule",{value:!0});ln.browserPrefixToKey=il;ln.browserPrefixToStyle=lb;ln.default=void 0;ln.getPrefix=rl;const vi=["Moz","Webkit","O","ms"];function rl(){var e;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const t=(e=window.document)===null||e===void 0||(e=e.documentElement)===null||e===void 0?void 0:e.style;if(!t||n in t)return"";for(let r=0;r<vi.length;r++)if(il(n,vi[r])in t)return vi[r];return""}function il(e,n){return n?"".concat(n).concat(cb(e)):e}function lb(e,n){return n?"-".concat(n.toLowerCase(),"-").concat(e):e}function cb(e){let n="",t=!0;for(let r=0;r<e.length;r++)t?(n+=e[r].toUpperCase(),t=!1):e[r]==="-"?t=!0:n+=e[r];return n}ln.default=rl();Object.defineProperty(Se,"__esModule",{value:!0});Se.addClassName=al;Se.addEvent=pb;Se.addUserSelectStyles=$b;Se.createCSSTransform=vb;Se.createSVGTransform=yb;Se.getTouch=wb;Se.getTouchIdentifier=_b;Se.getTranslation=jo;Se.innerHeight=mb;Se.innerWidth=gb;Se.matchesSelector=sl;Se.matchesSelectorAndParentsTo=db;Se.offsetXYFromParent=xb;Se.outerHeight=fb;Se.outerWidth=bb;Se.removeClassName=ll;Se.removeEvent=hb;Se.removeUserSelectStyles=Sb;var at=$t,ws=ub(ln);function ol(e){if(typeof WeakMap!="function")return null;var n=new WeakMap,t=new WeakMap;return(ol=function(r){return r?t:n})(e)}function ub(e,n){if(!n&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=ol(n);if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=e[s]}return r.default=e,t&&t.set(e,r),r}let fr="";function sl(e,n){return fr||(fr=(0,at.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return(0,at.isFunction)(e[t])})),(0,at.isFunction)(e[fr])?e[fr](n):!1}function db(e,n,t){let r=e;do{if(sl(r,n))return!0;if(r===t)return!1;r=r.parentNode}while(r);return!1}function pb(e,n,t,r){if(!e)return;const i=y({capture:!0},r);e.addEventListener?e.addEventListener(n,t,i):e.attachEvent?e.attachEvent("on"+n,t):e["on"+n]=t}function hb(e,n,t,r){if(!e)return;const i=y({capture:!0},r);e.removeEventListener?e.removeEventListener(n,t,i):e.detachEvent?e.detachEvent("on"+n,t):e["on"+n]=null}function fb(e){let n=e.clientHeight;const t=e.ownerDocument.defaultView.getComputedStyle(e);return n+=(0,at.int)(t.borderTopWidth),n+=(0,at.int)(t.borderBottomWidth),n}function bb(e){let n=e.clientWidth;const t=e.ownerDocument.defaultView.getComputedStyle(e);return n+=(0,at.int)(t.borderLeftWidth),n+=(0,at.int)(t.borderRightWidth),n}function mb(e){let n=e.clientHeight;const t=e.ownerDocument.defaultView.getComputedStyle(e);return n-=(0,at.int)(t.paddingTop),n-=(0,at.int)(t.paddingBottom),n}function gb(e){let n=e.clientWidth;const t=e.ownerDocument.defaultView.getComputedStyle(e);return n-=(0,at.int)(t.paddingLeft),n-=(0,at.int)(t.paddingRight),n}function xb(e,n,t){const i=n===n.ownerDocument.body?{left:0,top:0}:n.getBoundingClientRect(),s=(e.clientX+n.scrollLeft-i.left)/t,a=(e.clientY+n.scrollTop-i.top)/t;return{x:s,y:a}}function vb(e,n){const t=jo(e,n,"px");return{[(0,ws.browserPrefixToKey)("transform",ws.default)]:t}}function yb(e,n){return jo(e,n,"")}function jo(e,n,t){let{x:r,y:i}=e,s="translate(".concat(r).concat(t,",").concat(i).concat(t,")");if(n){const a="".concat(typeof n.x=="string"?n.x:n.x+t),l="".concat(typeof n.y=="string"?n.y:n.y+t);s="translate(".concat(a,", ").concat(l,")")+s}return s}function wb(e,n){return e.targetTouches&&(0,at.findInArray)(e.targetTouches,t=>n===t.identifier)||e.changedTouches&&(0,at.findInArray)(e.changedTouches,t=>n===t.identifier)}function _b(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function $b(e){if(!e)return;let n=e.getElementById("react-draggable-style-el");n||(n=e.createElement("style"),n.type="text/css",n.id="react-draggable-style-el",n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} |
| 62 |
`,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} |
| 63 |
`,e.getElementsByTagName("head")[0].appendChild(n)),e.body&&al(e.body,"react-draggable-transparent-selection")}function Sb(e){if(e)try{if(e.body&&ll(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const n=(e.defaultView||window).getSelection();n&&n.type!=="Caret"&&n.removeAllRanges()}}catch(n){}}function al(e,n){e.classList?e.classList.add(n):e.className.match(new RegExp("(?:^|\\s)".concat(n,"(?!\\S)")))||(e.className+=" ".concat(n))}function ll(e,n){e.classList?e.classList.remove(n):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(n,"(?!\\S)"),"g"),"")}var St={};Object.defineProperty(St,"__esModule",{value:!0});St.canDragX=Ib;St.canDragY=kb;St.createCoreData=Nb;St.createDraggableData=Mb;St.getBoundPosition=jb;St.getControlPosition=Tb;St.snapToGrid=Cb;var rt=$t,yn=Se;function jb(e,n,t){if(!e.props.bounds)return[n,t];let{bounds:r}=e.props;r=typeof r=="string"?r:Eb(r);const i=Co(e);if(typeof r=="string"){const{ownerDocument:s}=i,a=s.defaultView;let l;if(r==="parent"?l=i.parentNode:l=s.querySelector(r),!(l instanceof a.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const c=l,h=a.getComputedStyle(i),u=a.getComputedStyle(c);r={left:-i.offsetLeft+(0,rt.int)(u.paddingLeft)+(0,rt.int)(h.marginLeft),top:-i.offsetTop+(0,rt.int)(u.paddingTop)+(0,rt.int)(h.marginTop),right:(0,yn.innerWidth)(c)-(0,yn.outerWidth)(i)-i.offsetLeft+(0,rt.int)(u.paddingRight)-(0,rt.int)(h.marginRight),bottom:(0,yn.innerHeight)(c)-(0,yn.outerHeight)(i)-i.offsetTop+(0,rt.int)(u.paddingBottom)-(0,rt.int)(h.marginBottom)}}return(0,rt.isNum)(r.right)&&(n=Math.min(n,r.right)),(0,rt.isNum)(r.bottom)&&(t=Math.min(t,r.bottom)),(0,rt.isNum)(r.left)&&(n=Math.max(n,r.left)),(0,rt.isNum)(r.top)&&(t=Math.max(t,r.top)),[n,t]}function Cb(e,n,t){const r=Math.round(n/e[0])*e[0],i=Math.round(t/e[1])*e[1];return[r,i]}function Ib(e){return e.props.axis==="both"||e.props.axis==="x"}function kb(e){return e.props.axis==="both"||e.props.axis==="y"}function Tb(e,n,t){const r=typeof n=="number"?(0,yn.getTouch)(e,n):null;if(typeof n=="number"&&!r)return null;const i=Co(t),s=t.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,yn.offsetXYFromParent)(r||e,s,t.props.scale)}function Nb(e,n,t){const r=!(0,rt.isNum)(e.lastX),i=Co(e);return r?{node:i,deltaX:0,deltaY:0,lastX:n,lastY:t,x:n,y:t}:{node:i,deltaX:n-e.lastX,deltaY:t-e.lastY,lastX:e.lastX,lastY:e.lastY,x:n,y:t}}function Mb(e,n){const t=e.props.scale;return{node:n.node,x:e.state.x+n.deltaX/t,y:e.state.y+n.deltaY/t,deltaX:n.deltaX/t,deltaY:n.deltaY/t,lastX:e.state.x,lastY:e.state.y}}function Eb(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function Co(e){const n=e.findDOMNode();if(!n)throw new Error("<DraggableCore>: Unmounted during event!");return n}var ei={},ti={};Object.defineProperty(ti,"__esModule",{value:!0});ti.default=zb;function zb(){}Object.defineProperty(ei,"__esModule",{value:!0});ei.default=void 0;var yi=Ob(M),Je=Io(Rs),Ab=Io(Zi),Oe=Se,Rt=St,wi=$t,Rn=Io(ti);function Io(e){return e&&e.__esModule?e:{default:e}}function cl(e){if(typeof WeakMap!="function")return null;var n=new WeakMap,t=new WeakMap;return(cl=function(r){return r?t:n})(e)}function Ob(e,n){if(!n&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=cl(n);if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=e[s]}return r.default=e,t&&t.set(e,r),r}function We(e,n,t){return n=Lb(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Lb(e){var n=Bb(e,"string");return typeof n=="symbol"?n:String(n)}function Bb(e,n){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,n||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}const mt={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let Pt=mt.mouse,ni=class extends yi.Component{constructor(){super(...arguments),We(this,"dragging",!1),We(this,"lastX",NaN),We(this,"lastY",NaN),We(this,"touchIdentifier",null),We(this,"mounted",!1),We(this,"handleDragStart",n=>{if(this.props.onMouseDown(n),!this.props.allowAnyClick&&typeof n.button=="number"&&n.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(n.target instanceof r.defaultView.Node)||this.props.handle&&!(0,Oe.matchesSelectorAndParentsTo)(n.target,this.props.handle,t)||this.props.cancel&&(0,Oe.matchesSelectorAndParentsTo)(n.target,this.props.cancel,t))return;n.type==="touchstart"&&n.preventDefault();const i=(0,Oe.getTouchIdentifier)(n);this.touchIdentifier=i;const s=(0,Rt.getControlPosition)(n,i,this);if(s==null)return;const{x:a,y:l}=s,c=(0,Rt.createCoreData)(this,a,l);(0,Rn.default)("DraggableCore: handleDragStart: %j",c),(0,Rn.default)("calling",this.props.onStart),!(this.props.onStart(n,c)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Oe.addUserSelectStyles)(r),this.dragging=!0,this.lastX=a,this.lastY=l,(0,Oe.addEvent)(r,Pt.move,this.handleDrag),(0,Oe.addEvent)(r,Pt.stop,this.handleDragStop))}),We(this,"handleDrag",n=>{const t=(0,Rt.getControlPosition)(n,this.touchIdentifier,this);if(t==null)return;let{x:r,y:i}=t;if(Array.isArray(this.props.grid)){let l=r-this.lastX,c=i-this.lastY;if([l,c]=(0,Rt.snapToGrid)(this.props.grid,l,c),!l&&!c)return;r=this.lastX+l,i=this.lastY+c}const s=(0,Rt.createCoreData)(this,r,i);if((0,Rn.default)("DraggableCore: handleDrag: %j",s),this.props.onDrag(n,s)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(l){const c=document.createEvent("MouseEvents");c.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(c)}return}this.lastX=r,this.lastY=i}),We(this,"handleDragStop",n=>{if(!this.dragging)return;const t=(0,Rt.getControlPosition)(n,this.touchIdentifier,this);if(t==null)return;let{x:r,y:i}=t;if(Array.isArray(this.props.grid)){let c=r-this.lastX||0,h=i-this.lastY||0;[c,h]=(0,Rt.snapToGrid)(this.props.grid,c,h),r=this.lastX+c,i=this.lastY+h}const s=(0,Rt.createCoreData)(this,r,i);if(this.props.onStop(n,s)===!1||this.mounted===!1)return!1;const l=this.findDOMNode();l&&this.props.enableUserSelectHack&&(0,Oe.removeUserSelectStyles)(l.ownerDocument),(0,Rn.default)("DraggableCore: handleDragStop: %j",s),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,l&&((0,Rn.default)("DraggableCore: Removing handlers"),(0,Oe.removeEvent)(l.ownerDocument,Pt.move,this.handleDrag),(0,Oe.removeEvent)(l.ownerDocument,Pt.stop,this.handleDragStop))}),We(this,"onMouseDown",n=>(Pt=mt.mouse,this.handleDragStart(n))),We(this,"onMouseUp",n=>(Pt=mt.mouse,this.handleDragStop(n))),We(this,"onTouchStart",n=>(Pt=mt.touch,this.handleDragStart(n))),We(this,"onTouchEnd",n=>(Pt=mt.touch,this.handleDragStop(n)))}componentDidMount(){this.mounted=!0;const n=this.findDOMNode();n&&(0,Oe.addEvent)(n,mt.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const n=this.findDOMNode();if(n){const{ownerDocument:t}=n;(0,Oe.removeEvent)(t,mt.mouse.move,this.handleDrag),(0,Oe.removeEvent)(t,mt.touch.move,this.handleDrag),(0,Oe.removeEvent)(t,mt.mouse.stop,this.handleDragStop),(0,Oe.removeEvent)(t,mt.touch.stop,this.handleDragStop),(0,Oe.removeEvent)(n,mt.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Oe.removeUserSelectStyles)(t)}}findDOMNode(){var n,t;return(n=this.props)!==null&&n!==void 0&&n.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:Ab.default.findDOMNode(this)}render(){return yi.cloneElement(yi.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};ei.default=ni;We(ni,"displayName","DraggableCore");We(ni,"propTypes",{allowAnyClick:Je.default.bool,children:Je.default.node.isRequired,disabled:Je.default.bool,enableUserSelectHack:Je.default.bool,offsetParent:function(e,n){if(e[n]&&e[n].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Je.default.arrayOf(Je.default.number),handle:Je.default.string,cancel:Je.default.string,nodeRef:Je.default.object,onStart:Je.default.func,onDrag:Je.default.func,onStop:Je.default.func,onMouseDown:Je.default.func,scale:Je.default.number,className:wi.dontSetMe,style:wi.dontSetMe,transform:wi.dontSetMe});We(ni,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var n=m(M),t=u(Rs),r=u(Zi),i=u(nb),s=Se,a=St,l=$t,c=u(ei),h=u(ti);function u(C){return C&&C.__esModule?C:{default:C}}function d(C){if(typeof WeakMap!="function")return null;var g=new WeakMap,f=new WeakMap;return(d=function(b){return b?f:g})(C)}function m(C,g){if(!g&&C&&C.__esModule)return C;if(C===null||typeof C!="object"&&typeof C!="function")return{default:C};var f=d(g);if(f&&f.has(C))return f.get(C);var b={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in C)if(x!=="default"&&Object.prototype.hasOwnProperty.call(C,x)){var N=p?Object.getOwnPropertyDescriptor(C,x):null;N&&(N.get||N.set)?Object.defineProperty(b,x,N):b[x]=C[x]}return b.default=C,f&&f.set(C,b),b}function w(){return w=Object.assign?Object.assign.bind():function(C){for(var g=1;g<arguments.length;g++){var f=arguments[g];for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(C[b]=f[b])}return C},w.apply(this,arguments)}function S(C,g,f){return g=j(g),g in C?Object.defineProperty(C,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):C[g]=f,C}function j(C){var g=I(C,"string");return typeof g=="symbol"?g:String(g)}function I(C,g){if(typeof C!="object"||C===null)return C;var f=C[Symbol.toPrimitive];if(f!==void 0){var b=f.call(C,g||"default");if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(C)}class T extends n.Component{static getDerivedStateFromProps(g,f){let{position:b}=g,{prevPropsPosition:p}=f;return b&&(!p||b.x!==p.x||b.y!==p.y)?((0,h.default)("Draggable: getDerivedStateFromProps %j",{position:b,prevPropsPosition:p}),{x:b.x,y:b.y,prevPropsPosition:y({},b)}):null}constructor(g){super(g),S(this,"onDragStart",(f,b)=>{if((0,h.default)("Draggable: onDragStart: %j",b),this.props.onStart(f,(0,a.createDraggableData)(this,b))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),S(this,"onDrag",(f,b)=>{if(!this.state.dragging)return!1;(0,h.default)("Draggable: onDrag: %j",b);const p=(0,a.createDraggableData)(this,b),x={x:p.x,y:p.y,slackX:0,slackY:0};if(this.props.bounds){const{x:A,y:O}=x;x.x+=this.state.slackX,x.y+=this.state.slackY;const[F,$]=(0,a.getBoundPosition)(this,x.x,x.y);x.x=F,x.y=$,x.slackX=this.state.slackX+(A-x.x),x.slackY=this.state.slackY+(O-x.y),p.x=x.x,p.y=x.y,p.deltaX=x.x-this.state.x,p.deltaY=x.y-this.state.y}if(this.props.onDrag(f,p)===!1)return!1;this.setState(x)}),S(this,"onDragStop",(f,b)=>{if(!this.state.dragging||this.props.onStop(f,(0,a.createDraggableData)(this,b))===!1)return!1;(0,h.default)("Draggable: onDragStop: %j",b);const x={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:A,y:O}=this.props.position;x.x=A,x.y=O}this.setState(x)}),this.state={dragging:!1,dragged:!1,x:g.position?g.position.x:g.defaultPosition.x,y:g.position?g.position.y:g.defaultPosition.y,prevPropsPosition:y({},g.position),slackX:0,slackY:0,isElementSVG:!1},g.position&&(g.onDrag||g.onStop)}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var g,f;return(g=(f=this.props)===null||f===void 0||(f=f.nodeRef)===null||f===void 0?void 0:f.current)!==null&&g!==void 0?g:r.default.findDOMNode(this)}render(){const ct=this.props,{axis:g,bounds:f,children:b,defaultPosition:p,defaultClassName:x,defaultClassNameDragging:N,defaultClassNameDragged:A,position:O,positionOffset:F,scale:$}=ct,E=si(ct,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let k={},P=null;const z=!!!O||this.state.dragging,V=O||p,oe={x:(0,a.canDragX)(this)&&z?this.state.x:V.x,y:(0,a.canDragY)(this)&&z?this.state.y:V.y};this.state.isElementSVG?P=(0,s.createSVGTransform)(oe,F):k=(0,s.createCSSTransform)(oe,F);const ze=(0,i.default)(b.props.className||"",x,{[N]:this.state.dragging,[A]:this.state.dragged});return n.createElement(c.default,w({},E,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),n.cloneElement(n.Children.only(b),{className:ze,style:y(y({},b.props.style),k),transform:P}))}}e.default=T,S(T,"displayName","Draggable"),S(T,"propTypes",B(y({},c.default.propTypes),{axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe})),S(T,"defaultProps",B(y({},c.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))})(tl);const{default:ul,DraggableCore:Rb}=tl;Qr.exports=ul;Qr.exports.default=ul;Qr.exports.DraggableCore=Rb;var Pb=Qr.exports,Fb=Sl(Pb);const Ft={container:{bc:"var(--white-100)",pn:"absolute",tp:10,zx:9995,pt:0,pb:10,brs:10,b:"1px solid var(--white-0-83)",bs:"0 6px 6px 0 #00000012, 0 3px 23px 0 #e8e8e8"},titleContainer:{w:"85%",cur:"move",py:3},title:{fw:500,fs:14,px:3,dy:"block"},subTitle:{fs:10,mx:3,cr:"var(--white-0-50)"},button:{p:0,m:0,b:0,mnw:30,mnh:30,dy:"block",bc:"transparent",cr:"var(--white-0-0-32)",curp:1,flx:"center",":hover":{cr:"var(--white-0-0-64)"}},hr:{mx:10,mb:10,mt:5},content:{px:10,mxh:401},titleBar:{h:35,pl:10,pt:5,flx:"center-between"}};function Db({stateObjName:e,propertyPath:n,objectPaths:t,id:r,fldKey:i,canSetVariable:s=!0}){const[a,l]=M.useState({parent:"Solid",child:"Solid",color:"Custom"}),{css:c}=ne(),{element:h,fieldKey:u}=xe(),{object:d,paths:m}=t,[w,S]=M.useState(),[j,I]=M.useState(),[T,C]=M.useState({type:"auto",w:"0px",h:"0px"}),[g,f]=M.useState({type:"initial",x:"0px",y:"0px",value:"center"}),[b,p]=M.useState("initial"),[x,N]=Y(he),A=re(Re),[O,F]=Y(Jn),[$,E]=Y(jl),k=Cl(Bo),[P,H]=Y(Bo),z=Dr(d,{styles:x}),V=[{label:"Custom",icn:"Custom color",show:["icn"],tip:"Custom color"},{label:"Var",icn:"Variables",show:["icn"],tip:"Variable color"}],{"--global-bg-color":oe,"--global-fld-bdr-clr":ze,"--global-fld-bg-color":ct,"--global-font-color":En,"--global-accent-color":cn}=O,Ne=(R,Z)=>{switch(e){case"themeColors":F(ie=>D(ie,be=>{be[`${n}`]=Z})),K(X(h,u,n,Z,{themeColors:W("themeColors")}));break;case"themeVars":A(ie=>D(ie,be=>{be[`${n}`]=Z})),K(X(h,u,n,Z,{themeVars:W("themeVars")}));break;case"styles":N(ie=>D(ie,be=>{var tt;let et=Z;const He=ae(be,R);((tt=He==null?void 0:He.match(/(!important)/gi))==null?void 0:tt[0])&&(et=`${Z} !important`),me(be,R,et)})),K(X(h,u,R,Z,{styles:W("styles")}));break}},Lt=R=>{Ne(m["background-image"],R.style),I(R.style)},Pe=R=>{if(typeof R=="object")S(R),G(R.h,R.s,R.v,R.a);else{const Z=`var(${R})`,ie=O[R];if(ie){const[be,et,He,gt]=ie.match(/[+-]?([0-9]+([.][0-9]*)?|[.][0-9]+)/gi),[tt,Ct,Ve,ft]=kl(be,et,He,gt);S({h:tt,s:Ct,v:Ve,a:ft}),G(tt,Ct,Ve,ft,Z)}else G("","","","",Z)}},Yt=R=>{const Z={h:0,s:0,v:0,a:0};R.target.checked?Pe(Z):Pe("--global-accent-color")},J=()=>(w==null?void 0:w.h)===0&&(w==null?void 0:w.s)===0&&(w==null?void 0:w.v)===0&&(w==null?void 0:w.a)===0,G=(R,Z,ie,be,et="")=>{const[He,gt,tt,Ct,Ve]=Fs(R,Z,ie,be);switch(e){case"themeColors":F(ft=>D(ft,bt=>{bt[n]=Ve})),K(X(h,u,n,Ve,{themeColors:W("themeColors")}));break;case"themeVars":A(ft=>D(ft,bt=>{bt[n]=Ve})),K(X(h,u,n,Ve,{themeVars:W("themeVars")}));break;case"styles":N(ft=>D(ft,bt=>{var Eo;let ri=Ve;const gl=Array.isArray(m)?m[0]:n,ii=ae(bt,gl),oi=(Eo=ii==null?void 0:ii.match(/(!important)/gi))==null?void 0:Eo[0];oi&&(ri=`${ri} !important`);const Mo=et?`${et}${oi?" !important":""}`:ri;Array.isArray(m)?m.forEach(xl=>{me(bt,xl,Mo)}):(oi?me(bt,m["background-image"]," !important"):me(bt,m["background-image"],""),me(bt,m.background,Mo))})),K(X(h,u,n,et||Ve,{styles:W("styles")}));break}},je=R=>{R.stopPropagation(),I(""),Ne(m["background-image"],""),H("")};M.useEffect(()=>{const R=ae(z,m["background-image"]);I(R),S(Wn(ae(z,m.background)))},[]),M.useEffect(()=>(P&&(Ne(m["background-image"],`url(${P})`),I(`url(${P})`)),()=>{k()}),[P]);const ve=R=>{C(Z=>B(y({},Z),{type:R.target.value})),Ne(m["background-size"],`${R.target.value}`)},ht=({target:{value:R}})=>{f(Z=>B(y({},Z),{type:R})),R!=="size"&&R!=="positions"&&Ne(m["background-position"],R)},Ze=R=>{p(R.target.value),Ne(m["background-repeat"],R.target.value)},q=R=>{f(Z=>B(y({},Z),{value:R})),Ne(m["background-position"],R)},fe=R=>{Ne(m["background-image"],`url(${R.target.value})`),I(`url(${R.target.value})`)},Fe=(R,Z,ie)=>{ie===0?(C(be=>B(y({},be),{w:`${R}${Z}`})),Ne(m["background-size"],`${R}${Z} ${T.h}`)):(C(be=>B(y({},be),{h:`${R}${Z}`})),Ne(m["background-size"],`${T.w} ${R}${Z}`))},se=(R,Z,ie)=>{ie===0?(f(be=>B(y({},be),{x:`${R}${Z}`})),Ne(m["background-position"],`${R}${Z} ${g.y}`)):(f(be=>B(y({},be),{y:`${R}${Z}`})),Ne(m["background-position"],`${g.x} ${R}${Z}`))},De=(R,Z)=>{Z==="parent"?l({parent:R,child:"Upload",color:"Custom"}):Z==="child"?l(ie=>B(y({},ie),{child:R})):Z==="color"&&l(ie=>B(y({},ie),{color:R}))},jt=()=>{if(typeof wp!="undefined"&&wp.media){const R=wp.media({title:"Media",button:{text:"Select picture"},library:{type:"image"},multiple:!1});R.on("select",()=>{const Z=R.state().get("selection").first().toJSON();Ne(m["background-image"],`url(${Z.url})`),I(`url(${Z.url})`)}),R.open()}};return o.jsxs("div",{className:c(Q.container),children:[o.jsx(ot,{options:[{label:"Solid"},{label:"Gradient"},{label:"Image"}],onChange:R=>De(R,"parent"),defaultActive:a.parent,wideTab:!0}),o.jsx(Ps,{autoHide:!0,autoHeight:!0,autoHeightMin:200,autoHeightMax:365,children:o.jsxs("div",{className:c(v.mt1),children:[o.jsx(it,{open:a.parent==="Solid",children:s?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:c(Le.mb),children:o.jsx(ot,{square:!0,noShadow:!0,defaultActive:"Custom",options:V,size:60,component:"button",onChange:R=>De(R,"color"),show:["icn"],variant:"lightgray",width:"100%",wideTab:!0})}),o.jsx(it,{open:a.color==="Var",children:o.jsxs("div",{className:c(Le.varClr),children:[o.jsxs("button",{className:`${c(Le.clrItem)} ${c(w==="--global-bg-color"&&Le.active)}`,type:"button",onClick:()=>Pe("--global-bg-color"),"data-testid":`${r}-g-bg-c`,children:[o.jsx(On,{bg:oe,className:c(v.mr2)}),o.jsx("span",{children:"Background Color"})]}),o.jsxs("button",{className:c(Le.clrItem,w==="--global-accent-color"&&Le.active),type:"button",onClick:()=>Pe("--global-accent-color"),"data-testid":`${r}-g-a-c`,children:[o.jsx(On,{bg:cn,className:c(v.mr2)}),o.jsx("span",{children:"Background Accent Color"})]}),o.jsxs("button",{className:c(Le.clrItem,w==="--global-font-color"&&Le.active),type:"button",onClick:()=>Pe("--global-font-color"),"data-testid":`${r}-g-f-c`,children:[o.jsx(On,{bg:En,className:c(v.mr2)}),o.jsx("span",{children:"Font Color"})]}),o.jsxs("button",{className:c(Le.clrItem,w==="--global-fld-bdr-clr"&&Le.active),type:"button",onClick:()=>Pe("--global-fld-bdr-clr"),"data-testid":`${r}-g-f-b`,children:[o.jsx(On,{bg:ze,className:c(v.mr2)}),o.jsx("span",{children:"Field Border Color"})]}),o.jsxs("button",{className:c(Le.clrItem,w==="--global-fld-bg-color"&&Le.active),type:"button",onClick:()=>Pe("--global-fld-bg-color"),"data-testid":`${r}-g-f-bg-c`,children:[o.jsx(On,{bg:ct,className:c(v.mr2)}),o.jsx("span",{children:"Field Background Color"})]})]})}),o.jsx(it,{open:a.color==="Custom",children:o.jsxs("div",{className:c(Le.container,_s.container,_s.preview_wrp),children:[o.jsx("div",{className:c(Le.subContainer),children:o.jsx(Cr,{title:_("Transparant"),action:Yt,isChecked:J(),id:"color-transparant"})}),o.jsx(Ai,{showParams:!0,showPreview:!0,onChange:Pe,value:w})]})})]}):o.jsxs("div",{className:c(Le.container),children:[o.jsx("div",{className:c(Le.subContainer),children:o.jsx(Cr,{title:_("Transparant"),action:Yt,isChecked:J(),id:"color-transparant"})}),o.jsx(Ai,{showParams:!0,showPreview:!0,onChange:Pe,value:w})]})}),o.jsx(it,{open:a.parent==="Gradient",children:o.jsx(ia,{gradient:Il(j),changeHandler:Lt})}),o.jsx(it,{open:a.parent==="Image",children:o.jsxs(o.Fragment,{children:[o.jsx(ot,{options:[{label:"Upload"},{label:"Link"}],onChange:R=>De(R,"child"),defaultActive:a.child,wideTab:!0}),o.jsxs("div",{className:c(v.mt2,{p:"0px 2px"}),children:[a.child==="Upload"&&o.jsx(oa,{title:"Image",imageSrc:j!=null&&j.match(/(^url\(.+\)$)/)?j==null?void 0:j.replace(/(url\(|\))/gi,""):"",value:j==null?void 0:j.slice(j.lastIndexOf("/")+1,-1),clickAction:jt,clearAction:je}),a.child==="Link"&&o.jsx("div",{className:c(v.mt2),children:o.jsxs("div",{className:c(v.flxClm),children:[o.jsxs("div",{className:c({flx:"between"}),children:[o.jsx("span",{className:c(Q.title),children:"URL"}),o.jsx("span",{className:c(Q.title,Q.browse),role:"button",tabIndex:0,onClick:()=>E(!0),onKeyUp:()=>E(!0),children:"Browse"})]}),o.jsx("input",{type:"url",className:c(Q.urlinput,{pr:"30px !important"}),value:j!=null&&j.match(/(^url\(.+\)$)/)?j==null?void 0:j.replace(/(url\(|\))/gi,""):"",onChange:fe,placeholder:"ex: https://www.example.com"})]})}),o.jsxs("div",{className:c(v.mt2),children:[o.jsxs("div",{className:c(v.flxcb),children:[o.jsx("span",{className:c(Q.title),children:"Size"}),o.jsx("div",{className:c(v.flxc),children:o.jsxs("select",{value:T.type,name:"",id:"",onChange:ve,className:c(wn.select),children:[o.jsx("option",{value:"auto",children:"auto"}),o.jsx("option",{value:"size",children:"size"}),o.jsx("option",{value:"cover",children:"cover"}),o.jsx("option",{value:"contain",children:"contain"}),o.jsx("option",{value:"initial",children:"initial"})]})})]}),o.jsx(it,{open:T.type==="size",children:o.jsx(Jo,{className:c(v.ml6,v.mb2),options:[{label:"W",value:T.w},{label:"H",value:T.h}],unitOptions:["px","%"],valuChangeHandler:Fe})})]}),o.jsxs("div",{className:c(v.mt2),children:[o.jsxs("div",{className:c(v.flxcb),children:[o.jsx("span",{className:c(Q.title),children:"Position"}),o.jsx("div",{className:c(v.flxc),children:o.jsxs("select",{value:g.type,name:"",id:"",onChange:ht,className:c(wn.select),children:[o.jsx("option",{value:"positions",children:"Positions"}),o.jsx("option",{value:"size",children:"Size"}),o.jsx("option",{value:"inherit",children:"Inherit"}),o.jsx("option",{value:"initial",children:"Initial"})]})})]}),o.jsx(it,{open:g.type==="size",children:o.jsx(Jo,{className:c(v.ml6,v.mb2),options:[{label:"X",value:g.x},{label:"Y",value:g.y}],unitOptions:["px","%"],valuChangeHandler:se})}),o.jsx(it,{open:g.type==="positions",children:o.jsxs("div",{className:c(v.flxcb,v.ml6,v.mt2,Q.positioncontainer),children:[o.jsx("div",{className:c(Q.positionitem),children:o.jsx(Ie,{msg:"Top Left",children:o.jsx("span",{className:c(Q.positiondot,g.value==="top left"&&Q.positionDotActive),role:"button",onKeyDown:()=>q("top left"),onClick:()=>q("top left"),tabIndex:0,children:" "})})}),o.jsx("div",{className:c(Q.positionitem,v.txCenter),children:o.jsx(Ie,{msg:"Top Center",children:o.jsx("span",{className:c(Q.positiondot,g.value==="top center"&&Q.positionDotActive),role:"button",onKeyDown:()=>q("top center"),onClick:()=>q("top center"),tabIndex:0,children:" "})})}),o.jsx("div",{className:c(Q.positionitem,v.txRight),children:o.jsx(Ie,{msg:"Top Right",children:o.jsx("span",{className:c(Q.positiondot,g.value==="top right"&&Q.positionDotActive),role:"button",onKeyDown:()=>q("top right"),onClick:()=>q("top right"),tabIndex:0,children:" "})})}),o.jsx("div",{className:c(Q.positionitem),children:o.jsx(Ie,{msg:"Center Left",children:o.jsx("span",{className:c(Q.positiondot,g.value==="center left"&&Q.positionDotActive),role:"button",onKeyDown:()=>q("center left"),onClick:()=>q("center left"),tabIndex:0,children:" "})})}),o.jsx("div",{className:c(Q.positionitem,v.txCenter),children:o.jsx(Ie,{msg:"Center",children:o.jsx("span",{className:c(Q.positiondot,g.value==="center"&&Q.positionDotActive),role:"button",onKeyDown:()=>q("center"),onClick:()=>q("center"),tabIndex:0,children:" "})})}),o.jsx("div",{className:c(Q.positionitem,v.txRight),children:o.jsx(Ie,{msg:"Center Right",children:o.jsx("span",{className:c(Q.positiondot,g.value==="center right"&&Q.positionDotActive),role:"button",onKeyDown:()=>q("center right"),onClick:()=>q("center right"),tabIndex:0,children:" "})})}),o.jsx("div",{className:c(Q.positionitem),children:o.jsx(Ie,{msg:"Bottom Left",children:o.jsx("span",{className:c(Q.positiondot,g.value==="bottom left"&&Q.positionDotActive),role:"button",onKeyDown:()=>q("bottom left"),onClick:()=>q("bottom left"),tabIndex:0,children:" "})})}),o.jsx("div",{className:c(Q.positionitem,v.txCenter),children:o.jsx(Ie,{msg:"Bottom Center",children:o.jsx("span",{className:c(Q.positiondot,g.value==="bottom center"&&Q.positionDotActive),role:"button",onKeyDown:()=>q("bottom center"),onClick:()=>q("bottom center"),tabIndex:0,children:" "})})}),o.jsx("div",{className:c(Q.positionitem,v.txRight),children:o.jsx(Ie,{msg:"Bottom Right",children:o.jsx("span",{className:c(Q.positiondot,g.value==="bottom right"&&Q.positionDotActive),role:"button",onKeyDown:()=>q("bottom right"),onClick:()=>q("bottom right"),tabIndex:0,children:" "})})})]})})]}),o.jsx("div",{className:c(v.mt2),children:o.jsxs("div",{className:c(v.flxcb),children:[o.jsx("span",{className:c(Q.title),children:"Repeat"}),o.jsx("div",{className:c(v.flxc),children:o.jsxs("select",{value:b,name:"",id:"",onChange:Ze,className:c(wn.select),children:[o.jsx("option",{value:"repeat",children:"Repeat"}),o.jsx("option",{value:"repeat-x",children:"Repeat-X"}),o.jsx("option",{value:"repeat-y",children:"Repeat-Y"}),o.jsx("option",{value:"no-repeat",children:"No Repeat"}),o.jsx("option",{value:"space",children:"Space"}),o.jsx("option",{value:"round",children:"Round"}),o.jsx("option",{value:"initial",children:"Initial"})]})})]})})]})]})})]})})]})}var Hb=M.memo(Db);const _s={preview_wrp:{'& div[role="group"]':{p:4,b:0},"& input":{brs:8,b:"1px solid lightgray",p:"3px 8px",mnh:"10px !important",fs:12,mb:3,bs:"none",":focus":{focusShadow:1,b:"1px solid var(--b-50)"}},"& .styles-module_container__2LiHz":{w:"100%"},"& .common-module_transBackground__2AOKu":{brs:8,ow:"hidden"}},container:{"& > .ui-color-picker":{w:"100%"}}},Le={preview_wrp:{'& div[role="group"]':{p:4,b:0},"& input":{brs:8,b:"1px solid lightgray",p:"3px 8px",mnh:"10px !important",fs:12,mb:3,bs:"none",":focus":{focusShadow:1,b:"1px solid var(--b-50)"}},"& .common-module_transBackground__2AOKu":{brs:8,ow:"hidden"}},container:{dy:"flex",fd:"column"},subContainer:{m:5,"& span":{fs:12},"& input":{m:0}},color:{w:30,h:30,brs:8,mr:10},bggrid:{bi:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==)"},varClr:{my:5,w:"100%"},active:{bcr:"var(--b-50) !important",bd:"#f3f8ff"},clrItem:{dy:"block",flx:"align-center",bd:"transparent",b:"2px solid var(--white-0-93)",p:3,mb:8,brs:10,fs:12,cur:"pointer",w:"100%",tn:"background .3s",":hover":{bd:"var(--white-0-97)"}},m:{mr:15},mb:{mb:5}};var Vb=""+new URL("bf-839-64.png",import.meta.url).href,Wb=""+new URL("bf-632-65.png",import.meta.url).href,Gb=""+new URL("bf-874-67.png",import.meta.url).href,Ub=""+new URL("bf-632-65.png",import.meta.url).href;const Kb=[{name:"No Style",slug:"noStyle",img:Vb},{name:"Bit Form Default",slug:"bitformDefault",img:Ub},{name:"Bit Form Legacy",slug:"bitformLegacy",img:Wb},{name:"Atlassian Theme",slug:"atlassian",img:Gb}];function ko({fldKey:e}){const{css:n}=ne(),[t,r]=Y(he),i=ce(Qn),a=ce(Ue)[e].typ,l=[{name:"Checkbox Theme",slug:"individual",img:"",allowedFlds:["check","radio"]}],c=[...Kb,...l.filter(m=>m.allowedFlds.includes(a))],h=(m,w,S)=>Xi(m,w,S,{breakpoint:"lg",colorScheme:"light",direction:"ltr"}),u=m=>{const w=e||i,S=D(t,j=>{const I=j.fields[w].fieldType;j.fields[w]=h(m,w,I)});r(S),Wt(e),K(X("",w,"theme",m,{styles:S}))},d=m=>{var S;const w=e||i;return((S=t.fields[w])==null?void 0:S.theme)===m};return o.jsx("div",{className:n(vt.thm_container),children:c.map(m=>o.jsx(ko.Card,{name:m.name,applyThemeAction:()=>u(m==null?void 0:m.slug),img:m.img,isActive:d(m==null?void 0:m.slug)},m.name))})}const Yb=({name:e,img:n,isActive:t,applyThemeAction:r})=>{const{formType:i,formID:s}=xe(),{css:a}=ne();return o.jsxs("div",{className:a(vt.thm_wrp),children:[o.jsxs("div",{className:a(vt.thm_btn,t&&vt.activeStyle),children:[o.jsxs("div",{"data-thm-ctrl-wrp":!0,className:a(vt.thm_control_wrp),children:[o.jsx(Ie,{msg:"Preview",children:o.jsx("button",{type:"button",className:a(vt.thm_ctrl_btn),"aria-label":"Theme Preview",children:o.jsx(dc,{size:"20"})})}),t?o.jsx(Ie,{msg:"Customize theme",children:o.jsx(Tl,{to:`/form/builder/${i}/${s}/theme-customize`,type:"button",className:a(vt.thm_ctrl_btn),"aria-label":"Theme Customize",children:o.jsx(Nl,{size:"20",stroke:"2.2"})})}):o.jsx(Ie,{msg:"Apply Theme",children:o.jsx("button",{type:"button",onClick:r,className:a(vt.thm_ctrl_btn),"aria-label":"Theme Preview",children:o.jsx(pc,{size:"20px"})})})]}),o.jsx("img",{className:a(vt.thmImg),width:"120",height:"147.64",alt:"Theme thumbnail",src:n||`https://raw.githubusercontent.com/Bit-Apps-Pro/bitform-resourses/main/theme-thumbnails/${n}`})]}),o.jsx("span",{className:a(vt.thm_name),children:e})]})};ko.Card=Yb;const vt={thm_container:{flx:1,flxp:"jc"},thmImg:{dy:"block"},thm_wrp:{w:124,h:170,flxi:1,fd:"column",mx:5,mt:10},thm_btn:{pn:"relative",curp:1,b:"2px solid var(--white-0-83)",brs:8,p:0,bd:"var(--white-100)",ow:"hidden",":hover":{bcr:"var(--white-0-50)","& div[data-thm-ctrl-wrp]":{oy:"1 !important",visibility:"visible"}}},thm_name:{fs:13,mt:4},thm_control_wrp:{pn:"absolute",w:"100%",h:"100%",bd:"#1a1b318c",backdropFilter:"blur(2px)",flx:"center",oy:0,visibility:"hidden",tn:"opacity .3s"},thm_ctrl_btn:{p:0,brs:"50%",w:30,h:30,b:"1px solid gray",flx:"center",mx:2,curp:1,cr:"var(--b-54-12)",bd:"var(--white-0-95)",":hover":{cr:"var(--b-50)",bd:"var(--white-100)"}},activeStyle:{bcr:"var(--b-50)",bs:"0 0 0 2px var(--b-50)"}};function qb({stateObjName:e,objectPaths:n,id:t,propertyPath:r}){const{css:i}=ne(),{fieldKey:s,element:a}=xe(),[l,c]=Y(Re),[h,u]=M.useState(),[d,m]=Y(Jn),[w,S]=Y(he),{paths:j}=n;M.useEffect(()=>{var g;switch(e){case"themeColors":const f=ae(d,r);u(Wn(f));break;case"themeVars":const b=ae(l,r);u(Wn(b));break;case"styles":const p=Array.isArray(r)?r[0]:r,x=ae(w,p);let N=x;if(((g=x==null?void 0:x.match(/var/gi))==null?void 0:g[0])==="var"){const O=x==null?void 0:x.replace(/\(|var|,.*|\)/gi,"");N=l[O]?l[O]:d[O]}u(Wn(N));break;case"field-accent-color":const A=ae(d,r);u(Wn(A));break}},[t]);const I=(g,f,b,p,x)=>{const[N,A,O,F,$]=Fs(f,b,p,x);switch(e){case"themeColors":m(E=>D(E,k=>{k[g]=$})),K(X(a,s,g,$,{themeColors:W("themeColors")}));break;case"themeVars":c(E=>D(E,k=>{k[g]=$})),K(X(a,s,g,$,{themeVars:W("themeVars")}));break;case"styles":S(E=>D(E,k=>{var V;let P=$;const H=ae(k,g);((V=H==null?void 0:H.match(/!important/gi))==null?void 0:V[0])&&(P=`${P} !important`),me(k,g,P)})),K(X(a,s,g,$,{styles:W("styles")}));break}},T=(g,f)=>{switch(e){case"themeColors":m(b=>D(b,p=>{p[g]=f})),K(X(a,s,g,f,{themeColors:W("themeColors")}));break;case"themeVars":c(b=>D(b,p=>{p[g]=f})),K(X(a,s,g,f,{themeVars:W("themeVars")}));break;case"styles":S(b=>D(b,p=>{var O;let x=f;const N=ae(p,g);((O=N==null?void 0:N.match(/!important/gi))==null?void 0:O[0])&&(x=`${x} !important`),me(p,g,x)})),K(X(a,s,g,f,{styles:W("styles")}));break}},C=g=>{u(g);const f=Ml(g.str);I(j["icon-color"],g.h,g.s,g.v,g.a),T(j.filter,f.filter)};return o.jsx("div",{className:i(Xb.preview_wrp),children:o.jsx(Ai,{showParams:!0,showPreview:!0,onChange:C,value:h})})}var Zb=M.memo(qb);const Xb={preview_wrp:{'& div[role="group"]':{p:4,b:0},"& input":{brs:8,b:"1px solid lightgray",p:"3px 8px",mnh:"10px !important",fs:12,mb:3,bs:"none",":focus":{focusShadow:1,b:"1px solid var(--b-50)"}},"& .common-module_transBackground__2AOKu":{brs:8,ow:"hidden"}},color:{w:30,h:30,brs:8,mr:10},bggrid:{bi:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==)"},varClr:{my:5},active:{bcr:"var(--b-50) !important",bd:"#f3f8ff"},clrItem:{dy:"block",flx:"align-center",bd:"transparent",b:"2px solid var(--white-0-93)",p:3,mb:8,brs:10,fs:12,cur:"pointer",w:"100%",tn:"background .3s",":hover":{bd:"var(--white-0-97)"}},m:{mr:15},mb:{mb:5}};function $s({title:e="Filters",objectPaths:n,id:t}){var F;const{css:r}=ne(),{fieldKey:i,element:s}=xe(),[a,l]=Y(he),[c,h]=Y(Jn),{object:u,paths:d}=n,m=()=>Dr(u,{styles:a,themeColors:c}),w=$=>{let E={};switch($){case"brightness":case"grayscale":case"contrast":case"invert":case"sepia":E={value:`${$}(100%)`,units:["","%"],minValue:0,maxValue:100};break;case"blur":E={value:`${$}(2px)`,units:["","px","em","rem"],minValue:.1,maxValue:10};break;case"drop-shadow":E={value:`${$}(8px 8px 10px #878787)`,units:["px"],minValue:-200,maxValue:200};break;case"hue-rotate":E={value:`${$}(90deg)`,units:["deg"],minValue:-360,maxValue:360};break;case"saturate":case"opacity":E={value:`${$}(30%)`,units:["","%"],minValue:0,maxValue:100};break;default:E={value:"none",units:[""],minValue:0,maxValue:0}}return E};let S,j=!1;if(u==="themeColors")S=c[d.filter];else{const $=ae(a,d==null?void 0:d.filter);S=ki(c,$)}const I=$=>($!=null&&$.match(/(!important)/gi)&&($=$==null?void 0:$.replace(/(!important)/gi,""),j=!0),$);S=I(S);const T=$=>j?$!=null&&$.match(/(!important)/gi)?$:`${$}!important`:$;S=S==null?void 0:S.replace("none","");const C=S!=null&&S.trim()?(F=S==null?void 0:S.trim())==null?void 0:F.split(/\B\s+(?![^(]*\))/gi):[],g=C==null?void 0:C.map($=>{var V;const E=$==null?void 0:$.slice(0,$==null?void 0:$.indexOf("("));let k=(V=$==null?void 0:$.slice($.indexOf("(")+1,$.indexOf(")")))==null?void 0:V.trim();const P=te(k)||"";k.indexOf(" ")<0&&(k=ye(k));const H=w(E);let z=E.replace("-"," ");return z=z.replace(z.slice(0,1),z.slice(0,1).toUpperCase()),{title:z,name:E,value:k,unit:P,options:H.units,min:H.minValue,max:H.maxValue}}),f=g.map($=>$.name),b=($,{value:E,unit:k},P)=>{let H=ae(m(),d.filter);H=I(S);const z=H.indexOf($),V=H.indexOf(")",z)+1;if(k||(k=""),$==="drop-shadow"){const oe=H.slice(H.indexOf("(",z)+1,V-1).split(/\s(?![^(]*\))/gi);oe[P]=`${E}${k}`,H=H.replace(H.slice(z,V),`${$}(${oe.join(" ")})`)}else H=H.replace(H.slice(z,V),`${$}(${E}${k})`);H=T(H),Xt(u,d.filter,H==null?void 0:H.trim(),{setThemeColors:h,setStyles:l}),K(X(s,i,d.filter,H==null?void 0:H.trim(),{[u]:W(u)}))},p=($,E,k,P,H)=>{let z=ae(m(),d.filter);z=I(S);const V=z.indexOf($),oe=z.indexOf(")",V)+1;if(E||(E=""),$==="drop-shadow"){const ze=z.slice(z.indexOf("(",V)+1,oe-1).split(/\s(?![^(]*\))/gi),ct=nn(E,k,H);ze[P]=`${ct}${E}`,z=z.replace(z.slice(V,oe),`${$}(${ze.join(" ")})`)}else{const ze=nn(E,k,H);z=z.replace(z.slice(V,oe),`${$}(${ze}${E})`)}z=T(z),Xt(u,d.filter,z.trim(),{setThemeColors:h,setStyles:l}),K(X(s,i,d.filter,z==null?void 0:z.trim(),{[u]:W(u)}))},x=$=>{let E=ae(m(),d.filter);E=I(E);const k=E.indexOf($),P=E.indexOf(")",k)+1;E=E.replace(E.slice(k,P),"").trim(),E=T(E),Xt(u,d.filter,E,{setThemeColors:h,setStyles:l}),K(X(s,i,d.filter,E,{[u]:W(u)}))},N=$=>{const E=w($).value;let k=ae(m(),d.filter);k=ki(m(),k),k=I(k);let P;E==="none"?P=`${E}`:P=`${k==null?void 0:k.replace("none","")} ${E}`.trim(),P=T(P),Xt(u,d.filter,P,{setThemeColors:h,setStyles:l}),K(X(s,i,d.filter,P,{[u]:W(u)}))},O=Object.keys({blur:{},brightness:{},contrast:{},"drop-shadow":{},grayscale:{},"hue-rotate":{},invert:{},opacity:{},saturate:{},sepia:{},none:{}}).filter($=>!(f!=null&&f.includes($)));return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:r(v.flxcb,v.mb2),children:[o.jsx("span",{className:r(v.fs12,v.fs12,v.fw500),children:e}),o.jsx(ra,{id:"fltr-prop",properties:O,setProperty:N,classNames:r({mt:"0px !important"})})]}),g.map($=>{if($.name==="drop-shadow"){const E=$.value.split(/\s(?![^(]*\))/gi);return o.jsxs("div",{children:[o.jsx(en,{className:r(pn.accordionHead,pn.containerHover),open:!0,titleCls:r({fw:500}),icnStrok:1,title:"Drop Shadow",actionComponent:o.jsx("button",{title:"Clear Value",onClick:()=>x($.name),className:`${r(v.stylePropDeleteBtn,{rt:-14})} delete-btn`,type:"button","aria-label":"Clear Filter","data-testid":`${t}-clear-filter`,children:o.jsx(_n,{})}),children:o.jsxs("div",{className:r(v.p1),children:[o.jsxs("div",{className:r(v.flxcb,v.mb2,v.mt2),children:[o.jsx("span",{className:r(v.fs12,v.fw500),children:"X"}),o.jsx(Te,{width:"120px",value:Number(ye(E[0])||0),unit:te(E[0])||"px",inputHandler:k=>b("drop-shadow",k,0),sizeHandler:({unitKey:k,unitValue:P})=>p("drop-shadow",k,P,0,te(E[0])),options:["px","mm","em","rem"],min:"-100",max:"100",dataTestId:`${t}-drop-shadow-x`})]}),o.jsxs("div",{className:r(v.flxcb,v.mb2,v.mt2),children:[o.jsx("span",{className:r(v.fs12,v.fw500),children:"Y"}),o.jsx(Te,{width:"120px",value:Number(ye(E[1])||0),unit:te(E[1])||"px",inputHandler:k=>b("drop-shadow",k,1),sizeHandler:({unitKey:k,unitValue:P})=>p("drop-shadow",k,P,1,te(E[1])),options:["px","mm","em","rem"],min:"-100",max:"100",dataTestId:`${t}-drop-shadow-y`})]}),o.jsxs("div",{className:r(v.flxcb,v.mb2,v.mt2),children:[o.jsx("span",{className:r(v.fs12,v.fw500),children:"Blur"}),o.jsx(Te,{width:"120px",value:Number(ye(E[2])||0),unit:te(E[2])||"px",inputHandler:k=>b("drop-shadow",k,2),sizeHandler:({unitKey:k,unitValue:P})=>p("drop-shadow",k,P,2,te(E[2])),options:["px","mm","em","rem"],min:"0",max:"100",dataTestId:`${t}-drop-shadow-blur`})]}),o.jsxs("div",{className:r(v.flxcb,v.mb2),children:[o.jsx("span",{className:r(v.fs12,v.fw500),children:"Color"}),o.jsx("input",{"aria-label":"Filter image",width:"120px",type:"color",className:r(pn.input,pn.colorInput),onChange:k=>b("drop-shadow",{value:k.target.value},3),value:E[3],"data-testid":`${t}-drop-shadow-color`})]})]})},$.name),o.jsx("div",{className:r(pn.divider)})]},$.name)}return o.jsxs("div",{className:r(v.flxcb,v.mb2,v.mt2,pn.containerHover),children:[o.jsx("span",{className:r(v.fs12,v.fw500,{w:85}),children:$.title}),o.jsxs("div",{className:r(v.flxcb),children:[o.jsx(Te,{className:r({mr:15}),width:"120px",value:Number($.value),unit:$.unit,inputHandler:E=>b($.name,E),sizeHandler:({unitKey:E,unitValue:k})=>p($.name,E,k,"",$.unit),options:$.options,min:$.min,max:$.max,dataTestId:`${t}-${$.name}`}),o.jsx("button",{title:"Clear Value",onClick:()=>x($.name),className:`${r(v.stylePropDeleteBtn)} delete-btn`,type:"button","aria-label":"Clear Filter","data-testid":`${t}-clear-filter`,children:o.jsx(_n,{})})]})]})})]})}const pn={accordionHead:{w:220,p:3,fw:500,brs:8,fs:12},divider:{bb:"1px solid var(--white-0-83)",mx:3,my:3},clearBtn:{brs:"50%",w:20,h:20,b:"none",flx:"center",bd:"transparent",cr:"var(--white-0-50)",curp:1,":hover":{cr:"var(--black-0)"}},input:{h:"30px !important",fs:"12px !important",fw:600,bd:"#f0f0f1 !important",brs:"10px !important",b:"none !important",":focus":{bs:"0 0 0 2px var(--b-50) !important"}},colorInput:{w:120,p:0,brs:"8px !important","-webkit-appearance":"none","::-webkit-color-swatch-wrapper":{p:0},"::-webkit-color-swatch":{b:"1px solid #afafaf",brs:"10px !important"},"::-moz-color-swatch":{b:"1px solid #afafaf",brs:"10px !important"},"::-moz-focus-inner":{b:"1px solid #afafaf",brs:"10px !important"}},containerHover:{pn:"relative","&:hover .delete-btn":{tm:"scale(1)"}}};function Jb({size:e,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",children:[o.jsx("path",{d:"M3.63611 3.63605C4.93071 2.34144 6.58936 1.47246 8.3907 1.14507C10.192 0.817678 12.0504 1.04745 13.7177 1.80373C15.3851 2.56 16.7821 3.8068 17.7224 5.37774C18.6627 6.94868 19.1015 8.76903 18.9803 10.5959C18.8591 12.4227 18.1836 14.1691 17.044 15.602C15.9044 17.035 14.3549 18.0863 12.6022 18.6156C10.8496 19.145 8.97716 19.1272 7.23487 18.5647C5.49258 18.0022 3.96328 16.9217 2.85107 15.4674"}),o.jsx("circle",{cx:"3",cy:"5",r:"2.5",fill:"currentColor"})]})}const Qb={resetBtn:{se:20,flx:"center",p:3,brs:20,b:"none",bd:"none",curp:1,cr:"var(--white-0-0-29)",mr:3,":hover":{bd:"var(--white-0-95)",cr:"var(--white-0-29)"}}};function gn({stateObjName:e,propertyPath:n,id:t}){const r=ce(hc),i=ce(Wr),s=ce(fc),[a,l]=Y(Jn),[c,h]=Y(Re),[u,d]=Y(he),{css:m}=ne();let w=!1;switch(e){case"styles":if(Array.isArray(n))n.forEach(I=>{const T=ae(u,I),C=ae(s,I);C!==""&&T!==C&&(w=!0)});else{const I=ae(u,n),T=ae(s,n);T!==""&&I!==T&&(w=!0)}break;case"themeVars":Array.isArray(n)?n.forEach(I=>{i!=null&&i[I]&&(c==null?void 0:c[I])!==(i==null?void 0:i[I])&&(w=!0)}):i!=null&&i[n]&&(c==null?void 0:c[n])!==(i==null?void 0:i[n])&&(w=!0);break;case"themeColors":Array.isArray(n)?n.forEach(I=>{r!=null&&r[I]&&(r==null?void 0:r[I])!==(a==null?void 0:a[I])&&(w=!0)}):r!=null&&r[n]&&(r==null?void 0:r[n])!==(a==null?void 0:a[n])&&(w=!0);break}const S=I=>{switch(e){case"themeVars":if(!i[I])return;h(C=>D(C,g=>{g[I]=i[I]}));break;case"themeColors":if(!r[I])return;l(C=>D(C,g=>{g[I]=r[I]}));break;case"styles":const T=s&&Object.keys(s).length>0&&ae(s,I);T&&d(C=>D(C,g=>{me(g,I,T)}));break}},j=()=>{Array.isArray(n)?n.forEach(I=>S(I)):S(n)};return w?o.jsx(Ie,{msg:"Reset style",children:o.jsx("button",{onClick:j,className:m(Qb.resetBtn),type:"button","data-testid":`${t}-reset-style`,children:o.jsx(Jb,{size:"20"})})}):""}function Et({value:e,unitOption:n,title:t,onChange:r=()=>{},className:i,stateObjName:s,propertyPath:a,width:l,dataTestId:c,radius:h}){const{css:u}=ne();let d=((e==null?void 0:e.replace(/!important/gi,""))||"0px 0px 0px 0px").trim().split(" ");if(d.length===4){const g=d.filter((f,b,p)=>p.indexOf(f)===b);g.length===1&&(d=g)}const[m,w]=M.useState(d.length===1?"All":"Individual"),S=g=>g&&ye(g)||0,j=g=>g&&te(g)||"px",I=[{label:"All",icn:o.jsx(Qo,{stroke:"1.7",size:14}),show:["icn"],tip:"All Side"},{label:"Individual",icn:h?o.jsx(yc,{size:20}):o.jsx(Ln,{stroke:"1.7",size:"15"}),show:["icn"],tip:"Individual Side"}];d.length===1&&m==="All"&&(d=[d[0]]),d.length===1&&m==="Individual"&&(d=Array(4).fill(d[0])),d.length===2&&(d=[d[0],d[1],d[0],d[1]]),d.length===3&&(d=[d[0],d[1],d[2],d[1]]);const T=({value:g,unit:f,id:b})=>{const p=f==="var"?"px":f,x=te(d[b]),N=nn(p,g,x);d[b]=N+p;let A;m==="All"?A=`${d[0]}`:A=`${d[0]} ${d[1]} ${d[2]} ${d[3]}`,r(A)},C=g=>{g==="All"?d=[d[0]]:d=Array(4).fill(d[0]),w(g)};return o.jsxs("div",{className:i,children:[o.jsxs("div",{className:u(qt.titlecontainer),children:[o.jsx("span",{className:u(qt.title),children:t}),o.jsxs("span",{className:u(v.flxc),children:[o.jsx(gn,{stateObjName:s,propertyPath:a}),o.jsx(ot,{square:!0,defaultActive:m,options:I,values:60,component:"button",onChange:g=>C(g),show:["icn"],variant:"lightgray",noShadow:!0})]})]}),o.jsxs("div",{className:u(qt.segmentcontainer),children:[o.jsx(it,{open:m==="All",children:o.jsx("div",{className:u({p:2}),children:o.jsx(Te,{min:"0",inputHandler:T,sizeHandler:({unitKey:g,unitValue:f,id:b})=>T({value:f,unit:g,id:b}),id:"0",label:o.jsx(Qo,{size:14}),value:d[0]&&ye(d[0]),unit:d[0]&&te(d[0]),options:n,width:l||"110px",dataTestId:`${c}-all`})})}),o.jsx(it,{open:m==="Individual",children:o.jsxs("div",{className:u(v.flxc,{flxp:"wrap",jc:"end",p:2}),children:[o.jsx(Te,{min:"0",inputHandler:T,sizeHandler:({unitKey:g,unitValue:f,id:b})=>T({value:f,unit:g,id:b}),id:"0",label:h?o.jsx(ur,{size:12,className:u({tm:"rotate(90deg)"})}):o.jsx(Ln,{size:"14",variant:"top",className:u(qt.blueTxt)}),width:"100px",value:S(d[0]),unit:j(d[0]),options:n,className:u(v.mr1,v.mb1),dataTestId:`${c}-top`}),o.jsx(Te,{min:"0",inputHandler:T,sizeHandler:({unitKey:g,unitValue:f,id:b})=>T({value:f,unit:g,id:b}),id:"1",label:h?o.jsx(ur,{size:12,className:u({tm:"rotate(180deg)"})}):o.jsx(Ln,{size:"14",variant:"right",className:u(qt.blueTxt)}),width:"100px",value:S(d[1]),unit:j(d[1]),options:n,className:u(v.mb1),dataTestId:`${c}-right`}),o.jsx(Te,{min:"0",inputHandler:T,sizeHandler:({unitKey:g,unitValue:f,id:b})=>T({value:f,unit:g,id:b}),id:"3",label:h?o.jsx(ur,{size:12,className:u({tm:"rotate(0deg)"})}):o.jsx(Ln,{size:"14",variant:"left",className:u(qt.blueTxt)}),width:"100px",value:S(d[3]),unit:j(d[3]),options:n,className:u(v.mr1),dataTestId:`${c}-bottom`}),o.jsx(Te,{min:"0",inputHandler:T,sizeHandler:({unitKey:g,unitValue:f,id:b})=>T({value:f,unit:g,id:b}),id:"2",label:h?o.jsx(ur,{size:12,className:u({tm:"rotate(270deg)"})}):o.jsx(Ln,{size:"14",variant:"bottom",className:u(qt.blueTxt)}),width:"100px",value:S(d[2]),unit:j(d[2]),options:n,dataTestId:`${c}-left`})]})})]})]})}const qt={container:{flx:"center-between"},segmentcontainer:{flx:"align-center",jc:"flex-end",flxp:"wrap",my:10,w:220},titlecontainer:{flx:"center-between"},title:{fs:12,fw:500},blueTxt:{cr:"var(--b-50)"}};function e1(){const{element:e,fieldKey:n}=xe(),[t,r]=Y(he),{_frm:i}=t.form,s=c=>{r(h=>D(h,u=>{u.form._frm.margin=`${c}`})),K(X(e,n,"Form Wrapper Margin",c,{styles:W("styles")}))},a=c=>{r(h=>D(h,u=>{u.form._frm.padding=`${c}`})),K(X(e,n,"Form Wrapper Padding",c,{styles:W("styles")}))},l=c=>{r(h=>D(h,u=>{u.form._frm[c]="0px 0px 0px 0px"})),K(X(e,n,"Undo Form Wrapper Spacing","0px 0px 0px 0px",{styles:W("styles")}))};return o.jsxs(o.Fragment,{children:[o.jsx(Et,{isResetable:i==null?void 0:i.margin,value:(i==null?void 0:i.margin)||"0px 0px 0px 0px",undoHandler:()=>l("margin"),title:"Form Wrapper Margin",onChange:c=>s(c),unitOption:["px","em","rem"]}),o.jsx(Et,{isResetable:i==null?void 0:i.padding,value:(i==null?void 0:i.padding)||"0px 0px 0px 0px",undoHandler:()=>l("padding"),title:"Form Wrapper Padding",onChange:c=>a(c),unitOption:["px","em","rem"]})]})}function t1({propertyPath:e,id:n,propertyArray:t=["xOffset","yOffset","blur","spread","color","inset"],defaultValue:r="0px 5px 15px 2px hsla(0, 0%, 0%, 35%) "}){const{css:i}=ne(),{fieldKey:s,element:a}=xe(),l=ce(Re),[c,h]=Y(he);let u="";const d=()=>{var b;let f=ae(c,e);if(((b=f==null?void 0:f.match(/var/gi))==null?void 0:b[0])==="var"){const p=f.replace(/\(|var|,.*|\)/gi,"");f=l[p]}return f!=null&&f.match(/(!important)/gi)&&(u="!important",f=f.replace(/(!important)/gi,"")),f},m=f=>f&&(f==null?void 0:f.split(/,(?![^(]*\))/gi))||[],w=m(d()),S=r1(w,t),j=(f,b,p)=>f==="color"?b||"hsla(0, 0%, 0%, 100)":f==="inset"?b||"":`${b||"0"}${p===void 0?"px":p}`,I=(f,{value:b,unit:p},x)=>{const N=Object.entries(S[x]).map(([O,F])=>O===f?j(f,b,p):j(O,F,"")).join(" ");w[x]=N;let A=w.toString();u&&(A=`${A} !important`),h(O=>D(O,F=>{me(F,e,A)})),K(X(a,s,e,A,{styles:W("styles")}))},T=(f,b,p,x,N)=>{if(p){const A=te(x),O=nn(b,p,A);I(f,{value:O,unit:b},N)}},C=()=>{const f=d(),b=f===void 0||f===""?r:`${f},${r}${u}`;h(p=>D(p,x=>{me(x,e,b)})),K(X(a,s,e,b,{styles:W("styles")}))},g=f=>{const b=d(),p=m(b);p.length!==1&&(p.splice(f,1),h(x=>D(x,N=>{me(N,e,p.toString())})),K(X(a,s,e,p.toString(),{styles:W("styles")})))};return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:i(Pn.overFlowScroll),children:S.map((f,b)=>o.jsxs(M.Fragment,{children:[o.jsx(en,{className:i(Pn.accordionHead),title:_(`Shadow ${b+1}`),open:b===0,actionComponent:S.length>1&&o.jsx("button",{type:"button",title:"Remove",className:i(v.stylePropDeleteBtn),onClick:()=>g(b),"data-testid":`${n}-del-shadow-${b}`,children:o.jsx(_n,{size:"14"})}),children:o.jsxs("div",{className:i(v.p1),children:[t.includes("xOffset")&&o.jsxs("div",{className:i(v.flxcb,v.mb2,v.mt2),children:[o.jsx("span",{className:i(v.fs12,v.fw500),children:"X"}),o.jsx(Te,{width:"128px",value:Number(ye(f.xOffset)||0),unit:te(f.xOffset)||"px",inputHandler:p=>I("xOffset",p,b),sizeHandler:({unitKey:p,unitValue:x})=>T("xOffset",p,x,f.xOffset,b),options:["px","em","rem"],min:"-10",max:"20",dataTestId:`${n}-shad-x-ofset-${b}`})]}),t.includes("yOffset")&&o.jsxs("div",{className:i(v.flxcb,v.mb2,v.mt2),children:[o.jsx("span",{className:i(v.fs12,v.fw500),children:"Y"}),o.jsx(Te,{width:"128px",value:Number(ye(f.yOffset)||0),unit:te(f.yOffset)||"px",inputHandler:p=>I("yOffset",p,b),sizeHandler:({unitKey:p,unitValue:x})=>T("yOffset",p,x,f.yOffset,b),options:["px","em","rem"],min:"-10",max:"20",dataTestId:`${n}-shad-y-ofset-${b}`})]}),t.includes("blur")&&o.jsxs("div",{className:i(v.flxcb,v.mb2,v.mt2),children:[o.jsx("span",{className:i(v.fs12,v.fw500),children:"Blur"}),o.jsx(Te,{width:"128px",value:Number(ye(f.blur)||0),unit:te(f.blur)||"px",inputHandler:p=>I("blur",p,b),sizeHandler:({unitKey:p,unitValue:x})=>T("blur",p,x,f.blur,b),options:["px","em","rem"],min:"-10",max:"20",dataTestId:`${n}-shad-blur-${b}`})]}),t.includes("spread")&&o.jsxs("div",{className:i(v.flxcb,v.mb2,v.mt2),children:[o.jsx("span",{className:i(v.fs12,v.fw500),children:"Spread"}),o.jsx(Te,{width:"128px",value:Number(ye(f.spread)||0),unit:te(f.spread)||"px",inputHandler:p=>I("spread",p,b),sizeHandler:({unitKey:p,unitValue:x})=>T("spread",p,x,f.spread,b),options:["px","em","rem"],min:"-10",max:"20",dataTestId:`${n}-shad-spread-${b}`})]}),t.includes("color")&&o.jsxs("div",{className:i(v.flxcb,v.mb2),children:[o.jsx("span",{className:i(v.fs12,v.fw500),children:"Color"}),o.jsx(sa,{action:{onChange:p=>I("color",{value:p},b)},value:f.color})]}),t.includes("inset")&&o.jsxs("div",{className:i(v.flxcb,v.mb2),children:[o.jsx("span",{className:i(v.fs12,v.fw500),children:"Inset"}),o.jsxs("select",{"data-testid":`${n}-inse-${b}`,className:i(wn.select),value:f.inset||"",onChange:p=>I("inset",{value:p.target.value},b),children:[o.jsx("option",{value:"",children:"outset"}),o.jsx("option",{value:"inset",children:"inset"})]})]})]})},`shadow-accordion-${b+12*23}`),o.jsx("div",{className:i(Pn.divider)})]},`key-${b+1}`))}),o.jsx("div",{className:i(Pn.footer),children:o.jsx("button",{className:i(Pn.addBtn),type:"button",onClick:C,title:"None","data-testid":`${n}-add-shad`,children:o.jsx(Hr,{size:"12",className:i({tm:"rotate(45deg)"})})})})]})}var n1=M.memo(t1);const r1=(e,n)=>e.map(r=>{if(!r)return{xOffset:"2px",yOffset:"2px",blur:"3px",spread:"0px",color:"hsla(0, 44%, 35%, 66%)",inset:""};const i={};return Ds(r).map((s,a)=>{i[n[a]]=s}),i}),Pn={accordionHead:{w:220,p:3,fw:500,brs:8,fs:12},divider:{bb:"1px solid var(--white-0-83)",mx:3,my:3},footer:{flx:"center"},addBtn:{se:25,b:"none",brs:"50%",p:0,flxi:"center",bd:"var(--white-0-95)",curp:1,tn:"transform 0.2s",":hover":{tm:"scale(1.1)",cr:"var(--b-50)"},":active":{tm:"scale(0.95)"}},overFlowScroll:{owx:"scroll",mxh:200,w:235}};function i1({size:e=30,strok:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("rect",{fill:"currentColor",x:"11.56",y:"11.09",width:"16.44",height:"7.83",rx:"1"}),o.jsx("line",{className:"svg-icn",strokeWidth:n,strokeMiterlimit:"10",x1:"2",y1:"15",x2:"8.96",y2:"15"})]})}function o1({size:e=30,strok:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("rect",{fill:"currentColor",x:"2",y:"11.09",width:"16.44",height:"7.83",rx:"1",transform:"translate(20.44 30) rotate(180)"}),o.jsx("line",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:n,x1:"28",y1:"15",x2:"21.04",y2:"15"})]})}function s1({size:e=30,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("rect",{fill:"currentColor",x:"2",y:"14.09",width:"26",height:"7.83",rx:"1"}),o.jsx("line",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:n,x1:"2",y1:"9.09",x2:"17.95",y2:"9.09"})]})}function a1({size:e=30,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("rect",{fill:"currentColor",x:"2",y:"11.09",width:"26",height:"7.83",rx:"1"}),o.jsx("line",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:n,x1:"15",y1:"2",x2:"15",y2:"28"})]})}function l1({size:e=30,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("rect",{fill:"currentColor",x:"2",y:"17.17",width:"26",height:"7.83",rx:"1"}),o.jsx("line",{className:"svg-icn",strokeWidth:n,strokeMiterlimit:"10",x1:"15",y1:"2",x2:"15",y2:"28"})]})}function c1({size:e=30,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("rect",{fill:"currentColor",x:"2",y:"5",width:"26",height:"7.83",rx:"1"}),o.jsx("line",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:n,x1:"15",y1:"2",x2:"15",y2:"28"})]})}function u1(){const{css:e}=ne(),{fieldKey:n,element:t}=xe(),[r,i]=Y(Re),[s,a]=M.useState(!1),{"--fld-lbl-fs":l,"--sub-titl-fs":c,"--hlp-txt-fs":h,"--lbl-wrp-width":u,"--fld-wrp-dis":d,"--fld-wrp-fdir":m,"--lbl-wrp-sa":w,"--lbl-al":S,"--sub-titl-al":j,"--hlp-txt-al":I}=r;ye(l),te(l),ye(c),te(c),ye(h),te(h);const T=ye(u),C=te(u),g=()=>{if(d==="block")return"top";if(d==="flex"&&m==="")return"inline";if(d==="flex"&&m==="row-reverse")return"inline-rev"},f=$=>{switch($){case"top":i(E=>D(E,k=>{k["--fld-wrp-dis"]="block",k["--lbl-wrp-width"]="",k["--inp-wrp-width"]="",k["--lbl-wrp-sa"]="",k["--fld-wrp-width"]="",k["--lbl-wrp-m"]="0 0 5px 0"})),a(!1),Wt();break;case"inline":i(E=>D(E,k=>{k["--fld-wrp-dis"]="flex",k["--fld-wrp-fdir"]="",k["--lbl-wrp-width"]||(k["--lbl-wrp-width"]="40%"),k["--inp-wrp-width"]="100%",k["--fld-wrp-width"]="100%",k["--lbl-wrp-m"]=""})),a(!0),Wt();break;case"inline-rev":i(E=>D(E,k=>{k["--fld-wrp-dis"]="flex",k["--fld-wrp-fdir"]="row-reverse",k["--lbl-wrp-width"]||(k["--lbl-wrp-width"]="40%"),k["--inp-wrp-width"]="60%",k["--fld-wrp-width"]="100%",k["--lbl-wrp-m"]="0px 0px 0px 10px"})),a(!0),Wt();break}K(X(t,n,"Label Position",$,{themeVars:W("themeVars")}))},b=($,E="")=>{i(k=>D(k,P=>{P[$]=E})),K(X(t,n,$,E,{themeVars:W("themeVars")}))},p=$=>b("--lbl-wrp-sa",$==="top"?"":$),x=$=>b("--lbl-al",$==="left"?"":$),N=$=>b("--sub-titl-al",$==="left"?"":$),A=$=>b("--hlp-txt-al",$==="left"?"":$),O=({value:$,unit:E})=>{const k=`${$}${E}`;b("--lbl-wrp-width",k)},F=($,E,k)=>{const P=te(r[k]),z=`${nn($,E,P)}${$}`;b(k,z)};return o.jsxs("div",{style:{marginTop:"3px"},children:[o.jsxs("div",{className:e(v.flxcb,v.mb2),children:[o.jsx("span",{className:e(v.fs12),children:"Label Wrapper Width"}),o.jsxs("span",{className:e(v.flxc),children:[o.jsx(gn,{id:"lbl-wrp-width",propertyPath:"--lbl-wrp-width",stateObjName:"themeVars"}),o.jsx(Te,{width:"100px",value:Number(T),unit:C,inputHandler:O,sizeHandler:({unitKey:$,unitValue:E})=>F($,E,"--lbl-wrp-width"),options:["px","em","rem","%"],dataTestId:"lbl-wrp-wdth"})]})]}),o.jsxs("div",{className:e(v.mb2,xt.main),children:[o.jsx("span",{className:e(xt.label),children:"Label Postion"}),o.jsx(ot,{show:["icn"],tipPlace:"bottom",options:[{icn:o.jsx(s1,{size:"17"}),label:"top",tip:"Top"},{icn:o.jsx(i1,{size:"17"}),label:"inline",tip:"Inline"},{icn:o.jsx(o1,{size:"17"}),label:"inline-rev",tip:"Inline reverse"}],onChange:$=>f($),defaultActive:g,width:"100px"})]}),o.jsx(it,{open:s,overflw:"visible",children:o.jsxs("div",{className:e(v.mb2,xt.main),children:[o.jsx("span",{className:e(xt.label),children:"Label Position Vertical"}),o.jsx(gn,{propertyPath:"--lbl-wrp-sa",stateObjName:"themeVars",id:"lbl-wrp-sa"}),o.jsx(ot,{show:["icn"],tipPlace:"bottom",options:[{icn:o.jsx(c1,{size:"17"}),label:"top",tip:"Top"},{icn:o.jsx(a1,{size:"17"}),label:"center",tip:"Middle"},{icn:o.jsx(l1,{size:"17"}),label:"end",tip:"Bottom"}],onChange:$=>p($),defaultActive:w===""?"top":w,width:"100px"})]})}),o.jsxs("div",{className:e(v.mb2,xt.main),children:[o.jsx("span",{className:e(xt.label),children:"Label Alignment"}),o.jsx(gn,{propertyPath:"--lbl-al",stateObjName:"themeVars",id:"lbl-al"}),o.jsx(ot,{show:["icn"],tipPlace:"bottom",options:[{icn:o.jsx(ci,{size:"17"}),label:"left",tip:"Left"},{icn:o.jsx(ui,{size:"17"}),label:"center",tip:"Center"},{icn:o.jsx(di,{size:"17"}),label:"right",tip:"Right"}],onChange:$=>x($),defaultActive:S===""?"left":S,width:"100px"})]}),o.jsxs("div",{className:e(v.mb2,xt.main),children:[o.jsx("span",{className:e(xt.label),children:"Subtitle Alignment"}),o.jsx(gn,{propertyPath:"--sub-titl-al",stateObjName:"themeVars",id:"sub-titl-al"}),o.jsx(ot,{show:["icn"],tipPlace:"bottom",options:[{icn:o.jsx(ci,{size:"17"}),label:"left",tip:"Left"},{icn:o.jsx(ui,{size:"17"}),label:"center",tip:"Center"},{icn:o.jsx(di,{size:"17"}),label:"right",tip:"Right"}],onChange:$=>N($),defaultActive:j===""?"left":j,width:"100px"})]}),o.jsxs("div",{className:e(v.mb2,xt.main),children:[o.jsx("span",{className:e(xt.label),children:"Helpertext Alignment"}),o.jsx(gn,{propertyPath:"--hlp-txt-al",stateObjName:"themeVars",id:"hlp-txt-al"}),o.jsx(ot,{show:["icn"],tipPlace:"bottom",options:[{icn:o.jsx(ci,{size:"17"}),label:"left",tip:"Left"},{icn:o.jsx(ui,{size:"17"}),label:"center",tip:"Center"},{icn:o.jsx(di,{size:"17"}),label:"right",tip:"Right"}],onChange:$=>A($),defaultActive:I===""?"left":I,width:"100px"})]})]})}const xt={main:{flx:"center-between"},label:{fs:12}};function d1({objectPaths:e}){const{css:n}=ne(),{fieldKey:t,element:r}=xe(),[i,s]=Y(Re),[a,l]=Y(he),c=ce(Wr),[h,u]=M.useState(!0),{object:d,paths:m}=e,w=g=>{var f;if(d==="themeVars")return i[g];if(d==="styles"){let b=ae(a,g);if(((f=b==null?void 0:b.match(/var/gi))==null?void 0:f[0])==="var"){const x=b.replace(/\(|var|,.*|\)/gi,"");b=i[x]}return b}},S=w(m==null?void 0:m.width),j=w(m==null?void 0:m.height),I=(g,f)=>{d==="themeVars"?(s(b=>D(b,p=>{p[f]=`${g}`})),K(X(r,t,f,g,{themeVars:W("themeVars")}))):d==="styles"&&(l(b=>D(b,p=>{var A;const x=ae(p,f);((A=x==null?void 0:x.match(/!important/gi))==null?void 0:A[0])&&(g=`${g} !important`),me(p,f,`${g}`)})),K(X(r,t,f,g,{styles:W("styles")})))},T=(g,f,b)=>{if(h){const p=ye(S)||1,x=te(S),N=ye(j)||1,A=te(j);if(b==="width"){const O=Number(g*N/p).toFixed(2);I(`${g}${f}`,m.width),I(`${O}${A}`,m.height)}else if(b==="height"){const O=Number(g*p/N).toFixed(2);I(`${O}${x}`,m.width),I(`${g}${f}`,m.height)}}else I(`${g}${f}`,m[b])},C=g=>{d==="themeVars"&&(s(f=>D(f,b=>{b[g]=c[g]||"0px"})),K(X(r,t,g,"0px",{themeVars:W("themeVars")})))};return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:n(v.flxcb,v.mb2),children:[o.jsx("span",{className:n(v.fs12,v.fs12,v.fw500),children:"Width"}),o.jsx(Te,{stateObjName:e.object,propertyPath:e.paths.width,undoHandler:()=>C(m.width),value:ye(S||0),title:"width",width:100,unit:te(S||"px"),sizeHandler:g=>T(g.unitValue,g.unitKey,"width"),inputHandler:g=>T(g.value,g.unit,"width")})]}),o.jsxs("div",{className:n(v.flxcb,v.mb2),children:[o.jsx("span",{className:n(v.fs12,v.fs12,v.fw500),children:"Height"}),o.jsx(Te,{stateObjName:e.object,propertyPath:e.paths.height,undoHandler:()=>C(m.height),value:ye(j||0),title:"height",width:100,unit:te(j||"px"),sizeHandler:g=>T(g.unitValue,g.unitKey,"height"),inputHandler:g=>T(g.value,g.unit,"height")})]}),o.jsx(Cr,{title:"Follow Aspect Ratio",action:()=>u(g=>!g),isChecked:h,className:n({fs:12})})]})}function p1({objectPaths:e,id:n}){const[t,r]=Y(Re),{element:i,fieldKey:s}=xe(),[a,l]=Y(he),c=ce(Wr),{object:h,paths:u}=e,d=(S,j)=>{h==="themeVars"&&(r(I=>D(I,T=>{T[j]=`${S}`})),K(X(i,s,j,S,{themeVars:W("themeVars")}))),h==="styles"&&(l(I=>D(I,T=>{var f;const C=ae(T,j);((f=C==null?void 0:C.match(/!important/gi))==null?void 0:f[0])&&(S=`${S} !important`),me(T,j,S)})),K(X(i,s,j,S,{styles:W("styles")})))},m=S=>{h==="themeVars"&&(r(j=>D(j,I=>{I[S]=c[S]||"0px"})),K(X(i,s,S,"0px",{themeVars:W("themeVars")})))},w=S=>{var j;if(h==="themeVars")return t[S];if(h==="styles"){let I=ae(a,S);const T=I==null?void 0:I.replace(/!important/gi,"");return((j=I==null?void 0:I.match(/var/gi))==null?void 0:j[0])==="var"&&(I=ki(t,T)),I}};return o.jsxs(o.Fragment,{children:[(u==null?void 0:u.margin)&&o.jsx(Et,{stateObjName:e.object,propertyPath:e.paths.margin,undoHandler:()=>m(u.margin),value:w(u.margin),title:"Margin",onChange:S=>d(S,u.margin),unitOption:["px","em","rem"],dataTestId:`${n}-mrgn`}),(u==null?void 0:u.padding)&&o.jsx(Et,{stateObjName:e.object,propertyPath:e.paths.padding,undoHandler:()=>m(u.padding),value:w(u.padding),title:"Padding",onChange:S=>d(S,u.padding),unitOption:["px","em","rem"],dataTestId:`${n}-paddng`})]})}function h1(){const{fieldKey:e,element:n}=xe(),[t,r]=Y(Re),i=ce(Wr),{"--fld-m":s,"--fld-p":a}=t,l=u=>{r(d=>D(d,m=>{m["--fld-m"]=`${u}`})),K(X(n,e,"Field Margin",u,{themeVars:W("themeVars")}))},c=u=>{r(d=>D(d,m=>{m["--fld-p"]=`${u}`})),K(X(n,e,"Field Padding",u,{themeVars:W("themeVars")}))},h=u=>{i[u]&&(r(d=>D(d,m=>{m[u]=i[u]})),K(X(n,e,"Undo Field Spacing",i[u],{themeVars:W("themeVars")})))};return o.jsxs(o.Fragment,{children:[o.jsx(Et,{isResetable:i["--fld-m"],undoHandler:()=>h("--fld-m"),value:s,title:"Field Margin",onChange:u=>l(u),unitOption:["px","em","rem"]}),o.jsx(Et,{isResetable:i["--fld-p"],undoHandler:()=>h("--fld-p"),value:a,title:"Field Padding",onChange:u=>c(u),unitOption:["px","em","rem"]})]})}function f1({propertyPath:e,id:n}){const t="Transform",{css:r}=ne(),{fieldKey:i,element:s}=xe(),a=ce(Re),[l,c]=Y(he);let h="";const u=()=>{var x,N;let p=ae(l,e);if(((x=p==null?void 0:p.match(/var/gi))==null?void 0:x[0])==="var"){const A=p==null?void 0:p.replace(/\(|var|,.*|\)/gi,"");p=a[A]}return(N=p==null?void 0:p.match(/(!important)/gi))!=null&&N[0]&&(h="!important",p=p==null?void 0:p.replace(/(!important)/gi,"")),p},d=p=>p&&(p==null?void 0:p.split(/(?!\(.*)\s(?![^(]*?\))/gi))||[],m=d(u()),w=m1(m),S=w.map(p=>p.name),j=Object.keys(It).filter(p=>!S.includes(p)),I=(p,x,N)=>(x=`${p}(${x}${N})`,x),T=(p,{value:x,unit:N},A)=>{const O=I(p,x,N);m[A]=O;let F=m.join(" ");h&&(F=`${F} !important`),c($=>D($,E=>{me(E,e,F)})),K(X(s,i,e,m.join(" "),{styles:W("styles")}))},C=p=>{const x=u(),N=x===void 0||x===""?I(p,0,It[p].unit[0]):`${x} ${I(p,0,It[p].unit[0])}${h}`;c(A=>D(A,O=>{me(O,e,N)})),K(X(s,i,e,N,{styles:W("styles")}))},g=p=>{const x=u(),N=d(x);N.length!==1&&(N.splice(p,1),c(A=>D(A,O=>{me(O,e,N.join(" "))})),K(X(s,i,e,N.join(" "),{styles:W("styles")})))},f=(p,x,N,A)=>{const{unitKey:O,unitValue:F}=p,$=nn(O,F,A);T(x,{value:$,unit:O},N)},b=(p,x)=>{var N;return p!=null&&p.name?(N=It==null?void 0:It[p==null?void 0:p.name][te(p.value)])==null?void 0:N[x]:""};return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:r(v.flxcb,v.mb1),children:[o.jsx("span",{className:r(v.fs12,v.fs12,v.fw500),children:t}),j.length>0&&o.jsx(ra,{id:"transform-prop",properties:j,setProperty:C,classNames:r({mt:"0px !important"})})]}),o.jsx("div",{className:r(js.overFlowScroll),children:w.map((p,x)=>{var N;return o.jsx("div",{className:r(v.p1,js.containerHover,w.length===1&&{mnh:90}),children:o.jsxs("div",{className:r(v.flxcb,v.mt1),children:[o.jsxs("span",{className:r(v.flxcb,v.fs12,v.fw500),children:[w.length>1&&o.jsx("button",{"data-testid":`${n}-del-btn-${x}`,onClick:()=>g(x),className:`${r(v.stylePropDeleteBtn)} delete-btn`,type:"button",children:o.jsx(_n,{})}),o.jsx("span",{className:r({ml:20}),children:Hs(p.name)})]}),o.jsx(Te,{width:"100px",value:Number(ye(p.value)||0),unit:te(p.value)||"",inputHandler:A=>T(p.name,A,x),sizeHandler:A=>f(A,p.name,x,te(p.value)),options:p!=null&&p.name?(N=It==null?void 0:It[p==null?void 0:p.name])==null?void 0:N.unit:"",min:b(p,"min")||"",max:b(p,"max")||"",step:b(p,"step")||"",dataTestId:`${n}-input-${x}`})]})},`transformObj-${x*5}`)})})]})}var b1=M.memo(f1);const m1=e=>e.map(t=>{if(!t)return{name:"perspective",value:"10px"};const[r,i]=t.split(/\(|\)/gi);return{name:r,value:i}}),_i={unit:["px","%"],px:{min:1,max:100,step:1},"%":{min:1,max:200,step:1}},$i={unit:[""],"":{min:"",max:"",step:""}},Ss={unit:["deg","rad","turn"],deg:{min:1,max:360,step:1},turn:{min:.1,max:10,step:.1},rad:{min:"",max:"",step:.1}},It={perspective:{unit:["px","rem","cm"],px:{min:1,max:1e3,step:1},rem:{min:.1,max:500,step:.1},cm:{min:1,max:500,step:1}},rotate:{unit:["deg","turn","rad"],deg:{min:1,max:360,step:1},turn:{min:.1,max:10,step:.1},rad:{min:"",max:"",step:.1}},translateX:y({},_i),translateY:y({},_i),translateZ:y({},_i),scaleX:y({},$i),scaleY:y({},$i),scaleZ:y({},$i),skewX:y({},Ss),skewY:y({},Ss)},js={containerHover:{pn:"relative","&:hover .delete-btn":{tm:"scale(1.1)"}},accordionHead:{w:220,p:3,fw:500,brs:8,fs:12},divider:{bb:"1px solid var(--white-0-83)",mx:3,my:3},footer:{flx:"center",m:5},addBtn:{se:25,b:"none",brs:"50%",p:0,flxi:"center",bd:"var(--white-0-95)",curp:1,tn:"transform 0.2s",":hover":{tm:"scale(1.1)",cr:"var(--b-50)"},":active":{tm:"scale(0.95)"}},input:{fs:14,fw:500,w:"100%",h:35,bd:"var(--b-79-96) !important",oe:"none !important",mx:"auto",dy:"block",lh:"2 !important",px:8,mt:10,mb:3,bs:"none !important",brs:"8px !important",tn:"box-shadow .3s",b:"1px solid #e6e6e6 !important","::placeholder":{cr:"hsl(215deg 16% 57%)",fs:12},":focus":{bs:"0 0 0 1px var(--b-50) !important",bcr:"var(--b-50)!important"}},overFlowScroll:{owx:"scroll",mxh:200}};function g1({stateObjName:e,propertyPath:n,id:t}){const{css:r}=ne(),{fieldKey:i,element:s}=xe(),a=ce(Re),[l,c]=Y(he);let h="";const u=()=>{var b,p;let f=ae(l,n)||"";if(((b=f.match(/var/gi))==null?void 0:b[0])==="var"){const x=f==null?void 0:f.replace(/\(|var|,.*|\)/gi,"");f=a[x]}return(p=f.match(/(!important)/gi))!=null&&p[0]&&(h="!important",f=f.replace(/(!important)/gi,"")),f},d=f=>f&&(f==null?void 0:f.split(/,(?![^(]*\))/gi))||[],m=d(u()),w=v1(m),S=(f,b,p)=>f==="duration"||f==="delay"?`${b||"0.1"}${p===void 0?"s":p}`:`${b}`,j=(f,{value:b,unit:p},x)=>{const N=Object.entries(w[x]).map(([O,F])=>O===f?S(f,b,p):S(O,F,"")).join(" ");m[x]=N;let A=m.toString();h&&(A=`${A} !important`),c(O=>D(O,F=>{me(F,n,A)})),K(X(s,i,n,A,{styles:W("styles")}))},I=()=>{const f=u(),b=f===void 0||f===""?`all 0.1s 0.1s ease${h}`:`${f},all 0.1s 0.1s ease${h}`;c(p=>D(p,x=>{me(x,n,b)})),K(X(s,i,n,b,{styles:W("styles")}))},T=f=>{const b=u(),p=d(b);p.length!==1&&(p.splice(f,1),c(x=>D(x,N=>{me(N,n,p.toString())})),K(X(s,i,n,p.toString(),{styles:W("styles")})))},C=(f,b,p)=>{let x;return p===b?x=f:p==="ms"&&b==="s"?x=f/1e3:p==="s"&&b==="ms"&&(x=f*1e3),x},g=(f,b,p,x)=>{const{unitKey:N,unitValue:A}=f,O=C(A,N,x);j(b,{value:O,unit:N},p)};return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:r(hn.overFlowScroll),children:w.map((f,b)=>o.jsxs(o.Fragment,{children:[o.jsx(en,{className:r(hn.accordionHead),title:_(`Transition ${b+1}`),open:b===0,actionComponent:w.length>1&&o.jsx("button",{type:"button",title:"Remove",className:r(v.stylePropDeleteBtn),onClick:()=>T(b),"data-testid":`${t}-del-transn-${b}`,children:o.jsx(_n,{size:"14"})}),children:o.jsxs("div",{className:r(v.p1),children:[o.jsxs("div",{className:r(v.flxcb,v.mb2),children:[o.jsx("span",{className:r(v.fs12,v.fw500),children:"Property"}),o.jsxs("select",{className:r(wn.select),value:f.property||"",onChange:p=>j("property",{value:p.target.value},b),"data-testid":`${t}-transn-property-${b}`,children:[o.jsx("option",{value:"all",children:"all"}),o.jsx("option",{value:"width",children:"width"}),o.jsx("option",{value:"background",children:"background"}),o.jsx("option",{value:"opacity",children:"opacity"}),o.jsx("option",{value:"box-shadow",children:"box-shadow"}),o.jsx("option",{value:"border-radius",children:"border-radius"}),o.jsx("option",{value:"text-shadow",children:"text-shadow"}),o.jsx("option",{value:"transform",children:"transform"})]})]}),o.jsxs("div",{className:r(v.flxcb,v.mb2,v.mt2),children:[o.jsx("span",{className:r(v.fs12,v.fw500),children:"Duration"}),o.jsx(Te,{width:"128px",value:Number(ye(f.duration)||0),unit:te(f.duration)||"s",inputHandler:p=>j("duration",p,b),sizeHandler:p=>g(p,"duration",b,te(f.duration)),options:["s","ms"],min:te(f.duration)==="s"?.1:100,max:te(f.duration)==="s"?10:1e4,step:te(f.duration)==="s"?.1:100,dataTestId:`${t}-transn-duration-${b}`})]}),o.jsxs("div",{className:r(v.flxcb,v.mb2,v.mt2),children:[o.jsx("span",{className:r(v.fs12,v.fw500),children:"Delay"}),o.jsx(Te,{width:"128px",value:Number(ye(f.delay)||0),unit:te(f.delay)||"s",inputHandler:p=>j("delay",p,b),sizeHandler:p=>g(p,"delay",b,te(f.delay)),options:["s","ms"],min:te(f.delay)==="s"?.1:100,max:te(f.delay)==="s"?10:1e4,step:te(f.delay)==="s"?.1:100,dataTestId:`${t}-transn-delay-${b}`})]}),o.jsxs("div",{className:r(v.flxcb,v.mb2),children:[o.jsx("span",{className:r(v.fs12,v.fw500),children:"Function"}),o.jsx("div",{children:o.jsxs("select",{className:r(wn.select),value:f.func||"",onChange:p=>j("func",{value:p.target.value},b),"data-testid":`${t}-transn-func-${b}`,children:[o.jsx("option",{value:"Custom",children:"Custom"}),Cs.map(p=>o.jsx("option",{value:p,children:p}))]})})]}),!Cs.includes(f.func)&&o.jsx("input",{className:r(hn.input),type:"text","aria-label":"Custom transition",onChange:p=>j("func",{value:p.target.value},b),value:f.func})]})},`transition-${(b*2*4).toString()}`),o.jsx("div",{className:r(hn.divider)})]}))}),o.jsx("div",{className:r(hn.footer),children:o.jsx("button",{className:r(hn.addBtn),type:"button","aria-label":"Add Transition",onClick:I,title:"Add Transition","data-testid":`${t}-add-transn`,children:o.jsx(Hr,{size:"12",className:r({tm:"rotate(45deg)"})})})})]})}var x1=M.memo(g1);const v1=e=>e.map(t=>{if(!t)return{property:"all",duration:"8.4s",delay:"7.6s",func:"ease"};const[r,i,s,a]=Ds(t);return{property:r,duration:i,delay:s,func:a}}),hn={accordionHead:{w:220,p:3,fw:500,brs:8,fs:12},divider:{bb:"1px solid var(--white-0-83)",mx:3,my:3},footer:{flx:"center"},addBtn:{se:25,b:"none",brs:"50%",p:0,flxi:"center",bd:"var(--white-0-95)",curp:1,tn:"transform 0.2s",":hover":{tm:"scale(1.1)",cr:"var(--b-50)"},":active":{tm:"scale(0.95)"}},input:{fs:14,fw:500,w:"100%",h:35,bd:"var(--b-79-96) !important",oe:"none !important",mx:"auto",dy:"block",lh:"2 !important",px:8,mt:10,mb:3,bs:"none !important",brs:"8px !important",tn:"box-shadow .3s",b:"1px solid #e6e6e6 !important","::placeholder":{cr:"hsl(215deg 16% 57%)",fs:12},":focus":{bs:"0 0 0 1px var(--b-50) !important",bcr:"var(--b-50)!important"}},overFlowScroll:{owx:"scroll",mxh:200}},Cs=["ease","ease-in","ease-out","ease-in-out","linear"];function y1({stateObjName:e,objectPaths:n,id:t,fldKey:r}){const[i,s]=M.useState({parent:"Image",child:"Upload"}),[a,l]=Y(Re),{css:c}=ne(),{fieldKey:h,element:u}=xe(),{object:d,bgObjName:m,paths:w}=n,[S,j]=M.useState(""),[I,T]=M.useState("initial"),[C,g]=Y(he),f=Dr(d,{styles:C}),b=(z,V)=>{Xt(d,z,V,{setStyles:g}),K(X(u,h,z,V,{[d]:W(d)}))},p=z=>{b(w["border-image"],z.style)},x=z=>{z.stopPropagation(),j("")};M.useEffect(()=>{j(ae(f,w["border-image"]))},[]),M.useEffect(()=>{b(w["border-image"],S)},[S]),M.useEffect(()=>{b(w["border-image-repeat"],I)},[I]);const N=z=>{T(z.target.value)},A=z=>{b(w["border-image"],`url(${z.target.value})`),j(`url(${z.target.value})`)},O=(z,V)=>{V==="parent"?s({parent:z,child:"Upload"}):V==="child"&&s(oe=>B(y({},oe),{child:z}))},F=()=>{if(typeof wp!="undefined"&&wp.media){const z=wp.media({title:"Media",button:{text:"Select picture"},library:{type:"image"},multiple:!1});z.on("select",()=>{const V=z.state().get("selection").first().toJSON();b(w["border-image"],`url(${V.url})`),j(`url(${V.url})`)}),z.open()}},$=(z,V)=>{Xt(d,z,V,{setThemeVars:l,setStyles:g}),K(X(u,h,z,V,{[d]:W(d)}))},E=z=>{var V;if(d==="themeVars")return a[z];if(d==="styles"){let oe=ae(C,z);if(((V=oe==null?void 0:oe.match(/var/gi))==null?void 0:V[0])==="var"){const ct=oe.replace(/\(|var|,.*|\)/gi,"");oe=a[ct]}return oe}},k=E(w["border-image-width"]),P=E(w["border-image-slice"]),H=E(w["border-image-outset"]);return o.jsxs("div",{className:c(Q.container),children:[o.jsx(ot,{options:[{label:"Image"},{label:"Gradient"}],onChange:z=>O(z,"parent"),defaultActive:i.parent,wideTab:!0}),o.jsxs("div",{className:c(Q.innercontainer,v.mt1),children:[i.parent==="Image"&&o.jsxs(o.Fragment,{children:[o.jsx(ot,{options:[{label:"Upload"},{label:"Link"}],onChange:z=>O(z,"child"),defaultActive:i.child,wideTab:!0}),o.jsxs("div",{className:c(v.mt2),children:[i.child==="Upload"&&o.jsx(oa,{title:"Image",imageSrc:S==null?void 0:S.replace(/(url\(|\))/gi,""),value:S==null?void 0:S.slice(S.lastIndexOf("/")+1,-1),clickAction:F,clearAction:x}),i.child==="Link"&&o.jsx("div",{className:c(v.mt2),children:o.jsxs("div",{className:c(v.flxClm),children:[o.jsx("span",{className:c(Q.title),children:"URL"}),o.jsx("input",{type:"url",className:c(Q.urlinput),value:S.replace(/(url\(|\))/gi,""),onChange:A,placeholder:"ex: https://www.example.com","data-testid":`${t}-url-input`})]})}),o.jsx("div",{className:c(v.mt2),children:o.jsxs("div",{className:c(v.flxcb),children:[o.jsx("span",{className:c(Q.title),children:"Repeat"}),o.jsx("div",{className:c(v.flxc),children:o.jsxs("select",{value:I,name:"",id:"",onChange:N,className:c(Q.select),"data-testid":`${t}-repeat-select`,children:[o.jsx("option",{value:"stretch",children:"Stretch"}),o.jsx("option",{value:"repeat",children:"Repeat"}),o.jsx("option",{value:"round",children:"Round"}),o.jsx("option",{value:"space",children:"space"}),o.jsx("option",{value:"initial",children:"initial"})]})})]})}),o.jsx(Et,{value:H,className:c(v.mb2),onChange:z=>$(w["border-image-outset"],z),title:"Outset",unitOption:["px","%"],min:"0",max:"20",dataTestId:`${t}-outset`}),o.jsx(Et,{value:k,className:c(v.mb2),onChange:z=>$(w["border-image-width"],z),title:"Width",unitOption:["","px","%"],min:"0",max:"100",dataTestId:`${t}-width`}),o.jsx(Et,{value:P,className:c(v.mb2),onChange:z=>$(w["border-image-slice"],z),title:"Slice",unitOption:["","%"],min:"0",max:"100",dataTestId:`${t}-slice`})]})]}),i.parent==="Gradient"&&o.jsx(ia,{changeHandler:p})]})]})}function w1({objectPaths:e,id:n}){const{css:t}=ne(),{fieldKey:r,element:i}=xe(),[s,a]=Y(Re),[l,c]=Y(he),{object:h,paths:u}=e,d=Dr(h,{themeVars:s,styles:l}),m=ae(d,u["text-decoration-line"]),w=ae(d,u["text-decoration-style"]),S=ae(d,u["text-decoration-color"]),j=ae(d,u["text-decoration-thickness"]),I=ye(j)||"0",T=te(j)||"px",C=({value:p,unit:x})=>{const N=nn(x,p,T);c(A=>D(A,O=>{me(O,u["text-decoration-thickness"],`${N}${x}`)}))},g=(p,x)=>{Xt(h,p,x,{setThemeVars:a,setStyles:c}),K(X(i,r,p,x,{[h]:W(h)}))},f=[{label:"Solid",value:"solid"},{label:"Dashed",value:"dashed"},{label:"Dotted",value:"dotted"},{label:"Double",value:"double"}],b=[{label:"Overline",value:"overline"},{label:"Underline",value:"underline"},{label:"Line Through",value:"line-through"}];return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:t(v.flxcb,v.mb2),children:[o.jsx("span",{className:t(v.fs12,v.fw500),children:"Line"}),o.jsx(Xo,{options:b,value:m,onChange:p=>g(u["text-decoration-line"],p),w:130,h:30,id:`${n}-txt-dec-line`})]}),o.jsxs("div",{className:t(v.flxcb,v.mb2),children:[o.jsx("span",{className:t(v.fs12,v.fw500),children:"Style"}),o.jsx(Xo,{options:f,value:w,onChange:p=>g(u["text-decoration-style"],p),w:130,h:30,id:`${n}-txt-dec-style`})]}),o.jsxs("div",{className:t(v.flxcb,v.mb2),children:[o.jsx("span",{className:t(v.fs12,v.fs12,v.fw500),children:"Color"}),o.jsx(sa,{action:{onChange:p=>g(u["text-decoration-color"],p)},value:S})]}),o.jsxs("div",{className:t(v.flxcb,v.mb2),children:[o.jsx("span",{className:t(v.fs12,v.fw500),children:"Thickness"}),o.jsx(Te,{min:.1,max:100,inputHandler:C,sizeHandler:({unitKey:p,unitValue:x})=>C({unit:p,value:x}),value:I||0,unit:T||"px",width:"130px",options:["px","em","rem",""],step:T!=="px"?"0.1":1,dataTestId:`${n}-txt-dec-thickness`})]})]})}const _1=M.lazy(()=>qe(()=>import("./bf-693-226.js"),["./bf-693-226.js","./main-294.js","./main-294.css","./bf-908-241.js","./bf-176-80.js","./bf-293-475.css","./bf-764-245.js","./bf-5-86.js","./bf-487-72.js","./bf-867-113.js","./bf-890-474.css","./bf-250-243.js","./bf-986-242.js","./bf-357-476.css","./bf-22-244.js","./bf-934-246.js","./bf-188-247.js","./bf-85-248.js","./bf-930-249.js","./bf-112-250.js","./bf-399-251.js","./bf-379-106.js","./bf-508-252.js","./bf-128-253.js"],import.meta.url)),$1=M.lazy(()=>qe(()=>import("./bf-280-227.js"),["./bf-280-227.js","./main-294.js","./main-294.css","./bf-188-247.js","./bf-250-243.js","./bf-487-72.js","./bf-176-80.js","./bf-293-475.css","./bf-867-113.js","./bf-890-474.css","./bf-986-242.js","./bf-764-245.js","./bf-357-476.css","./bf-22-244.js","./bf-934-246.js","./bf-908-241.js","./bf-5-86.js"],import.meta.url)),S1=M.lazy(()=>qe(()=>import("./bf-419-228.js"),["./bf-419-228.js","./main-294.js","./main-294.css","./bf-986-242.js","./bf-764-245.js","./bf-176-80.js","./bf-293-475.css","./bf-357-476.css","./bf-250-243.js","./bf-487-72.js","./bf-867-113.js","./bf-890-474.css","./bf-22-244.js","./bf-934-246.js"],import.meta.url)),j1=M.lazy(()=>qe(()=>import("./bf-594-229.js"),["./bf-594-229.js","./main-294.js","./main-294.css","./bf-487-72.js","./bf-176-80.js","./bf-293-475.css","./bf-867-113.js","./bf-890-474.css","./bf-764-245.js","./bf-934-246.js","./bf-908-241.js","./bf-5-86.js","./bf-986-242.js","./bf-357-476.css","./bf-250-243.js","./bf-22-244.js","./bf-188-247.js","./bf-85-248.js","./bf-930-249.js","./bf-112-250.js","./bf-399-251.js","./bf-379-106.js","./bf-508-252.js","./bf-128-253.js"],import.meta.url)),C1=M.lazy(()=>qe(()=>import("./bf-896-230.js"),["./bf-896-230.js","./main-294.js","./main-294.css","./bf-986-242.js","./bf-764-245.js","./bf-176-80.js","./bf-293-475.css","./bf-357-476.css","./bf-250-243.js","./bf-487-72.js","./bf-867-113.js","./bf-890-474.css","./bf-22-244.js","./bf-934-246.js"],import.meta.url)),I1=({component:e,action:n,value:t,defaultValue:r,objectPaths:i,id:s,canSetVariable:a,stateObjName:l,propertyPath:c,propertyArray:h,fldKey:u,hslaPaths:d})=>{switch(e){case"border-style":return o.jsx(_1,{objectPaths:i,hslaPaths:d,id:s});case"outline-style":return o.jsx($1,{objectPaths:i,hslaPaths:d,id:s});case"border-image":return o.jsx(y1,{stateObjName:l,action:n,objectPaths:i,propertyPath:c,id:s,hslaPaths:d,fldKey:u});case"background":return o.jsx(Hb,{stateObjName:l,action:n,objectPaths:i,propertyPath:c,id:s,hslaPaths:d,fldKey:u});case"color-picker":return o.jsx(S1,{canSetVariable:a,stateObjName:l,action:n,propertyPath:c,id:s,hslaPaths:d,fldKey:u});case"filter-color":return o.jsx(Zb,{stateObjName:l,action:n,objectPaths:i,propertyPath:c,id:s,hslaPaths:d,fldKey:u});case"individual-shadow-control":return o.jsx(n1,{stateObjName:l,action:n,propertyPath:c,propertyArray:h,defaultValue:r,id:s,hslaPaths:d,fldKey:u});case"font":return o.jsx(j1,{id:s});case"label-control":return o.jsx(u1,{});case"spacing-control":return o.jsx(h1,{});case"text-decoration":return o.jsx(w1,{objectPaths:i,id:s});case"theme-control":return o.jsx(ko,{fldKey:u});case"form-wrapper-control":return o.jsx(e1,{});case"space-control":return o.jsx(p1,{value:t,objectPaths:i,id:s});case"size-control":return o.jsx(d1,{value:t,objectPaths:i});case"shadow-control":return o.jsx(C1,{objectPaths:i,id:s});case"transition-control":return o.jsx(x1,{stateObjName:l,propertyPath:c,id:s});case"transform-control":return o.jsx(b1,{stateObjName:l,propertyPath:c,id:s});case"filter-control":return o.jsx($s,{value:t,objectPaths:i,id:s});case"backdrop-filter-control":return o.jsx($s,{title:"Backdrop-Filter",value:t,objectPaths:i,id:s});default:return"loading"}},k1=e=>({"border-style":"Border","outline-style":"Outline","border-image":"Border Image","color-picker":"Color picker",background:"Background","individual-shadow-control":"Shadow",font:"Fonts","label-control":"Label Placement","spacing-control":"Label Spacing","text-decoration":"Text Decoration","theme-control":"Theme Gallery","form-wrapper-control":"Form Wrapper","space-control":"Margin & Padding","size-control":"Width & Height","shadow-control":"Shadow","transition-control":"Transition","transform-control":"Transform","filter-control":"Filter","backdrop-filter-control":"Backdrop Filter","filter-color":"Filter Color"})[e]||"...";function T1({setBuilderPointerEventNone:e}){const{css:n}=ne(),[t,r]=Y(El),{show:i,position:s,component:a,width:l,stateObjName:c,propertyPath:h,propertyArray:u,mainTitle:d,subtitle:m,action:w,value:S,defaultValue:j,objectPaths:I,state:T,id:C,fldKey:g,hslaPaths:f,canSetVariable:b}=t,p=Ji(),[x,N]=M.useState(""),A=M.useRef(null);return M.useEffect(()=>{N(y({},s))},[s]),M.useEffect(()=>r({show:!1}),[p]),i?o.jsx(Fb,{ref:A,bounds:"parent",handle:".draggable-modal-handle",position:x!==null?s:x,onMouseDown:()=>N(null),onStart:()=>e(!0),onStop:()=>e(!1),children:o.jsxs("div",{className:n(Ft.container),style:y({width:l},x&&{transition:"transform .2s"}),children:[o.jsxs("div",{className:`${n([v.flxb,Ft.titleBar])} draggable-modal-handle`,children:[o.jsxs("div",{className:n(v.flxClm,Ft.titleContainer),children:[o.jsx("span",{className:n(Ft.title),children:d||k1(a)}),o.jsx("span",{className:n(Ft.subTitle,v.fontBody),children:m})]}),o.jsx("button",{"data-testid":"draggable-modal-close-btn",type:"button",className:n(Ft.button),onClick:()=>r({show:!1}),children:o.jsx(Hr,{size:10})})]}),o.jsx("hr",{className:n(Ft.hr)}),o.jsx("div",{className:n(Ft.content),children:o.jsx(M.Suspense,{fallback:o.jsx(M1,{}),children:o.jsx(I1,{component:a,action:w,value:S,defaultValue:j,objectPaths:I,state:T,id:C,stateObjName:c,propertyPath:h,propertyArray:u,fldKey:g,hslaPaths:f,canSetVariable:b})})})]})}):o.jsx(o.Fragment,{})}var N1=M.memo(T1);const M1=()=>{const{css:e}=ne();return o.jsxs(o.Fragment,{children:[o.jsxs("div",{title:"Loading...",className:e(v.flxcb,v.mb2),children:[o.jsx("div",{title:"Loading...",className:`${e({w:70,h:15,brs:5})} loader`}),o.jsx("div",{title:"Loading...",className:`${e({w:80,h:30,brs:5})} loader`})]}),o.jsxs("div",{title:"Loading...",className:e(v.flxcb),children:[o.jsx("div",{title:"Loading...",className:`${e({w:70,h:15,brs:5})} loader`}),o.jsx("div",{title:"Loading...",className:`${e({w:80,h:30,brs:5})} loader`})]})]})},E1=e=>({[`._frm-bg-${e}`]:{"border-radius":"10px 10px 10px 10px","background-size":"100% 100%","background-color":"rgba(255, 255, 255, 1)"},[`._frm-g-${e}`]:{},[`._frm-${e}`]:{margin:"0px 0px 0px 0px",padding:"15px 15px 15px 15px"},[`.fld-wrp-${e}`]:{padding:"10px 10px 10px 10px"},[`.fld-lbl-${e}`]:{},[`input.fld-${e},textarea.fld-${e}`]:{},[`input.fld-${e}:focus,textarea.fld-${e}:focus`]:{},[`.fld-${e}>.btcd-ck-wrp span:first-child`]:{color:"rgba(0, 0, 0, 1) !important"},[`.fld-${e}.dpd`]:{"--border-radius":"8px"},[`.fld-${e}.dpd .msl`]:{"border-color":"rgba(199, 212, 221, 1)!important"},"@media only screen and (max-width:600px)":{},"@media only screen and (max-width:400px)":{}});function dl(){return o.jsxs("div",{style:le.wrp,children:[o.jsxs("div",{style:le.fldWrp,children:[o.jsx("div",{style:B(y({},le.fld),{width:"60%"}),className:"loader"}),o.jsx("div",{style:B(y({},le.fld),{width:"40%"}),className:"loader"})]}),o.jsxs("div",{style:le.fldWrp,children:[o.jsx("div",{style:B(y({},le.fld),{width:"40%"}),className:"loader"}),o.jsx("div",{style:B(y({},le.fld),{width:"60%"}),className:"loader"})]}),o.jsxs("div",{style:le.fldWrp,children:[o.jsx("div",{style:B(y({},le.fld),{width:"30%"}),className:"loader"}),o.jsx("div",{style:B(y({},le.fld),{width:"40%"}),className:"loader"}),o.jsx("div",{style:B(y({},le.fld),{width:"30%"}),className:"loader"})]}),o.jsxs("div",{style:le.fldWrp,children:[o.jsx("div",{style:B(y({},le.fld),{width:"50%"}),className:"loader"}),o.jsx("div",{style:B(y({},le.fld),{width:"50%"}),className:"loader"})]}),o.jsxs("div",{style:le.fldWrp,children:[o.jsx("div",{style:B(y({},le.fld),{width:"70%"}),className:"loader"}),o.jsx("div",{style:B(y({},le.fld),{width:"30%"}),className:"loader"})]}),o.jsxs("div",{style:le.fldWrp,children:[o.jsx("div",{style:B(y({},le.fld),{width:"20%"}),className:"loader"}),o.jsx("div",{style:B(y({},le.fld),{width:"30%"}),className:"loader"}),o.jsx("div",{style:B(y({},le.fld),{width:"50%"}),className:"loader"})]}),o.jsxs("div",{style:le.fldWrp,children:[o.jsx("div",{style:B(y({},le.fld),{width:"30%"}),className:"loader"}),o.jsx("div",{style:B(y({},le.fld),{width:"30%"}),className:"loader"}),o.jsx("div",{style:B(y({},le.fld),{width:"30%"}),className:"loader"}),o.jsx("div",{style:B(y({},le.fld),{width:"10%"}),className:"loader"})]}),o.jsxs("div",{style:le.fldWrp,children:[o.jsx("div",{style:B(y({},le.fld),{width:"40%"}),className:"loader"}),o.jsx("div",{style:B(y({},le.fld),{width:"60%"}),className:"loader"})]}),o.jsxs("div",{style:le.fldWrp,children:[o.jsx("div",{style:B(y({},le.fld),{width:"20%"}),className:"loader"}),o.jsx("div",{style:B(y({},le.fld),{width:"80%"}),className:"loader"})]})]})}const le={wrp:{paddingBlock:20},fldWrp:{display:"flex",justifyContent:"center",alignItems:"center"},fld:{height:70,borderRadius:5,margin:5}};var pl={};Object.defineProperty(pl,"__esModule",{value:!0});var br=M,z1=function(){var e=br.useRef(null),n=br.useState(!0),t=n[0],r=n[1],i=br.useState(!1),s=i[0],a=i[1];return br.useEffect(function(){e.current&&a(e.current.scrollWidth===e.current.offsetWidth)},[e]),{scrollContainerRef:e,handleScroll:function(){var l,c,h,u;e.current&&(r(((l=e.current)===null||l===void 0?void 0:l.scrollLeft)===0),a(Math.floor(((c=e.current)===null||c===void 0?void 0:c.scrollWidth)-((h=e.current)===null||h===void 0?void 0:h.scrollLeft))<=((u=e.current)===null||u===void 0?void 0:u.offsetWidth)))},scrollTo:function(l){var c,h;(c=e.current)!==null&&c!==void 0&&c.scrollTo({left:((h=e.current)===null||h===void 0?void 0:h.scrollLeft)+l,behavior:"smooth"})},isAtStart:t,isAtEnd:s}},A1=pl.default=z1;function O1({className:e,size:n,stroke:t=2.5,rotate:r=!1,rotateDeg:i=0}){const s=r?180:i||0;return o.jsxs("svg",{className:e,fill:"none",stroke:"currentColor",width:n,height:n,viewBox:"0 0 30 30",style:{transform:`rotate(${s}deg)`,transition:"transform .2s"},children:[o.jsx("line",{className:"svg-icn",strokeWidth:t,x1:"10.27",y1:"15",x2:"10.27",y2:"15"}),o.jsx("line",{className:"svg-icn",strokeWidth:t,x1:"15",y1:"15",x2:"15",y2:"15"}),o.jsx("line",{className:"svg-icn",strokeWidth:t,x1:"19.73",y1:"15",x2:"19.73",y2:"15"})]})}const L1={themeStyle:"style-0",showStepHeader:ke,showLbl:ke,showSubtitle:ke,validateOnStepChange:ke,maintainStepHistory:ke,saveProgress:ke,stepHeaderSwitchable:ke,headerIcon:{show:ke,iconType:"number"},btnSettings:{show:!0,prevBtn:{key:"prev-step-btn",typ:"button",btnTyp:"previous-step",btnSiz:"md",txt:_("Previous")},nextBtn:{key:"next-step-btn",typ:"button",btnTyp:"next-step",btnSiz:"md",txt:_("Next")},position:"column",orientation:"horizontal",alignment:"right"},progressSettings:{show:!0,position:"top",alignment:"left",orientation:"horizontal",type:"bar",barStyle:"style-0",showStepNumber:!0,showStepLabel:!0,showPercentage:!0}},Fn=(e,n)=>{const t=de(Ue);let r;return"prefixIcn"in t[e]&&"suffixIcn"in t[e]?r=`var(--fld-p) ${n}px var(--fld-p) ${n}px !important`:"prefixIcn"in t[e]?r=`var(--fld-p) var(--fld-p) var(--fld-p) ${n}px !important`:"suffixIcn"in t[e]&&(r=`var(--fld-p) ${n}px var(--fld-p) var(--fld-p) !important`),r};function B1({fk:e,type:n,fieldType:t,breakpoint:r,theme:i,colorScheme:s,direction:a=""}){let l=null;switch(n){case"small-2":return l=Fn(e,25)||"4px !important",y(y(y(y(y(y(y(y(y(y(B(y(y({[`.${e}-lbl`]:{"font-size":"12px"},[`.${e}-lbl-pre-i`]:{width:"16px",height:"16px"},[`.${e}-lbl-suf-i`]:{width:"16px",height:"16px"},[`.${e}-sub-titl`]:{"font-size":"8px"},[`.${e}-sub-titl-pre-i`]:{width:"16px",height:"16px"},[`.${e}-sub-titl-suf-i`]:{width:"16px",height:"16px"},[`.${e}-hlp-txt`]:{"font-size":"8px"},[`.${e}-hlp-txt-pre-i`]:{width:"16px",height:"16px"},[`.${e}-hlp-txt-suf-i`]:{width:"16px",height:"16px"}},["check","radio","decision-box","gdpr"].includes(t)&&y({[`.${e}-bx`]:{width:"10px",height:"10px"},[`.${e}-ct`]:{"font-size":"12px"}},(t==="check"||t==="radio")&&{[`.${e}-other-inp`]:{"font-size":"0.625rem",padding:"6px 4px !important",height:"25px","border-radius":"6px"}})),["check","decision-box","gdpr"].includes(t)&&{[`.${e}-ck`]:{"border-radius":"3px"}}),{[`.${e}-fld`]:y(y(y({"font-size":"0.625rem",height:"25px","border-radius":"6px",padding:l},t==="html-select"&&{padding:"2px 1px"}),t==="color"&&{padding:"2px 1px"}),t==="textarea"&&{height:"40px"})}),t!=="file-up"&&{[`.${e}-pre-i`]:{width:"16px",height:"16px"},[`.${e}-suf-i`]:{width:"16px",height:"16px"}}),(t==="select"||t==="country")&&{[`.${e}-dpd-fld-wrp`]:{"border-radius":"6px","font-size":"0.625rem"}}),t==="select"&&{[`.${e}-dpd-fld-container`]:{height:"21px"}}),t==="country"&&{[`.${e}-country-fld-container`]:{height:"21px"},[`.${e}-dpd-wrp`]:{padding:"6px 4px",height:"25px"},[`.${e}-opt-search-input`]:{height:"25px","font-size":"0.625rem"},[`.${e}-opt-search-icn`]:{height:"18px",width:"18px"}}),t==="phone-number"&&{[`.${e}-phone-fld-wrp`]:{"border-radius":"6px","font-size":"0.625rem"},[`.${e}-phone-amount-input`]:{padding:"6px 4px"},[`.${e}-phone-fld-container`]:{height:"25px"},[`.${e}-selected-country-img`]:{height:"13px",width:"25px","border-radius":"3px"}}),t==="currency"&&{[`.${e}-currency-fld-wrp`]:{"border-radius":"6px","font-size":"0.625rem"},[`.${e}-currency-amount-input`]:{padding:"6px 4px"},[`.${e}-currency-fld-container`]:{height:"25px"},[`.${e}-selected-currency-img`]:{height:"13px",width:"25px","border-radius":"3px"}}),t==="select"&&{[`.${e}-dpd-wrp`]:{padding:"3px 4px","min-height":"30px"},[`.${e}-opt-search-input`]:{height:"25px","font-size":"0.625rem"},[`.${e}-opt-search-icn`]:{height:"18px",width:"18px"},[`.${e}-selected-opt-lbl .chip-wrp`]:{padding:"3px 8px"}}),(t==="currency"||t==="phone-number")&&{[`.${e}-dpd-wrp`]:{padding:"6px 4px",height:"24px"},[`.${e}-opt-search-input`]:{height:"25px","font-size":"0.625rem"},[`.${e}-opt-search-icn`]:{height:"18px",width:"18px"}}),t==="button"&&{[`.${e}-btn`]:{padding:"7px 10px","font-size":"0.625rem"},[`.${e}-btn-suf-i`]:{width:"16px",height:"16px"},[`.${e}-btn-pre-i`]:{width:"16px",height:"16px"}}),t==="file-up"&&{[`.${e}-inp-btn`]:{padding:"7px 10px","font-size":"0.625rem"},[`.${e}-pre-i`]:{width:"15px",height:"15px"},[`.${e}-suf-i`]:{width:"15px",height:"15px"}});case"small-1":return l=Fn(e,30)||"6px",y(y(y(y(y(y(y(y(y(y(B(y(y({[`.${e}-lbl`]:{"font-size":"14px"},[`.${e}-sub-titl`]:{"font-size":"10px"},[`.${e}-hlp-txt`]:{"font-size":"10px"}},["check","radio","decision-box","gdpr"].includes(t)&&y({[`.${e}-bx`]:{width:"14px",height:"14px"},[`.${e}-ct`]:{"font-size":"14px"}},(t==="radio"||t==="check")&&{[`.${e}-other-inp`]:{"font-size":"0.8rem",padding:"8px 6px",height:"30px","border-radius":"8px"}})),["check","decision-box","gdpr"].includes(t)&&{[`.${e}-ck`]:{"border-radius":"4px"}}),{[`.${e}-fld`]:y(y(y(B(y({"font-size":"0.8rem"},l!==null&&{padding:l}),{height:"30px","border-radius":"8px"}),t==="html-select"&&{padding:"3px 1px"}),t==="color"&&{padding:"3px 2px"}),t==="textarea"&&{height:"48px"}),[`.${e}-lbl-pre-i`]:{width:"18px",height:"18px"},[`.${e}-lbl-suf-i`]:{width:"18px",height:"18px"},[`.${e}-sub-titl-pre-i`]:{width:"18px",height:"18px"},[`.${e}-sub-titl-suf-i`]:{width:"18px",height:"18px"},[`.${e}-hlp-txt-pre-i`]:{width:"18px",height:"18px"},[`.${e}-hlp-txt-suf-i`]:{width:"18px",height:"18px"}}),t!=="file-up"&&{[`.${e}-pre-i`]:{width:"20px",height:"20px"},[`.${e}-suf-i`]:{width:"20px",height:"20px"}}),t==="select"&&{[`.${e}-dpd-fld-container`]:{height:"30px"},[`.${e}-dpd-fld-wrp`]:{"border-radius":"8px","font-size":"0.8rem"}}),t==="country"&&{[`.${e}-country-fld-container`]:{height:"30px"},[`.${e}-dpd-fld-wrp`]:{"border-radius":"8px","font-size":"0.8rem"}}),t==="phone-number"&&{[`.${e}-phone-fld-wrp`]:{"border-radius":"8px","font-size":"0.8rem"},[`.${e}-phone-amount-input`]:{padding:"8px 6px"},[`.${e}-phone-fld-container`]:{height:"30px"},[`.${e}-selected-country-img`]:{height:"17px",width:"25px","border-radius":"4px"}}),t==="currency"&&{[`.${e}-currency-fld-wrp`]:{"border-radius":"8px","font-size":"0.8rem"},[`.${e}-currency-amount-input`]:{padding:"8px 6px"},[`.${e}-currency-fld-container`]:{height:"30px"},[`.${e}-selected-currency-img`]:{height:"17px",width:"25px","border-radius":"4px"}}),t==="country"&&{[`.${e}-dpd-wrp`]:{padding:"8px 6px",height:"30px"},[`.${e}-opt-search-input`]:{height:"30px","font-size":"0.8rem"},[`.${e}-opt-search-icn`]:{height:"20px",width:"20px"}}),(t==="select"||t==="currency"||t==="phone-number")&&{[`.${e}-dpd-wrp`]:{padding:"8px 6px",height:"24px"},[`.${e}-opt-search-input`]:{height:"30px","font-size":"0.8rem"},[`.${e}-opt-search-icn`]:{height:"20px",width:"20px"}}),t==="select"&&{[`.${e}-selected-opt-lbl .chip-wrp`]:{padding:"4px 8px"}}),t==="button"&&{[`.${e}-btn`]:{padding:"9px 15px","font-size":"0.875rem"},[`.${e}-btn-suf-i`]:{width:"18px",height:"18px"},[`.${e}-btn-pre-i`]:{width:"18px",height:"18px"}}),t==="file-up"&&{[`.${e}-inp-btn`]:{padding:"9px 11px","font-size":"0.875rem"},[`.${e}-pre-i`]:{width:"18px",height:"18px"},[`.${e}-suf-i`]:{width:"18px",height:"18px"}});case"medium":return l=Fn(e,35)||"8px",y(y(y(y(y(y(y(y(y(B(y({[`.${e}-lbl`]:{"font-size":"1rem"},[`.${e}-sub-titl`]:{"font-size":"12px"},[`.${e}-hlp-txt`]:{"font-size":"12px"}},["check","radio","decision-box","gdpr"].includes(t)&&y({[`.${e}-bx`]:{width:"18px",height:"18px"},[`.${e}-ct`]:{"font-size":"14px"}},(t==="radio"||t==="check")&&{[`.${e}-other-inp`]:{"font-size":"14px",padding:"10px 8px !important",height:"40px"}})),{[`.${e}-fld`]:y(y({"font-size":"14px",padding:l,height:"40px","border-radius":"11px"},t==="html-select"&&{padding:"6px!important"}),t==="color"&&{padding:"10px"}),[`.${e}-lbl-pre-i`]:{width:"20px",height:"20px"},[`.${e}-lbl-suf-i`]:{width:"20px",height:"20px"},[`.${e}-sub-titl-pre-i`]:{width:"15px",height:"15px"},[`.${e}-sub-titl-suf-i`]:{width:"15px",height:"15px"},[`.${e}-hlp-txt-pre-i`]:{width:"15px",height:"15px"},[`.${e}-hlp-txt-suf-i`]:{width:"15px",height:"15px"}}),t!=="file-up"&&{[`.${e}-pre-i`]:{width:"15px",height:"15px"},[`.${e}-suf-i`]:{width:"15px",height:"15px"}}),t==="select"&&{[`.${e}-dpd-fld-container`]:{height:"40px"},[`.${e}-dpd-fld-wrp`]:{"border-radius":"11px","font-size":"14px"}}),t==="country"&&{[`.${e}-country-fld-container`]:{height:"40px"},[`.${e}-dpd-fld-wrp`]:{"border-radius":"11px","font-size":"14px"}}),t==="phone-number"&&{[`.${e}-phone-fld-wrp`]:{"border-radius":"11px","font-size":"14px"},[`.${e}-phone-fld-container`]:{height:"40px"},[`.${e}-selected-country-img`]:{height:"17px !important",width:"25px","border-radius":"3px !important"}}),t==="currency"&&{[`.${e}-currency-fld-wrp`]:{"border-radius":"11px","font-size":"14px"},[`.${e}-currency-amount-input`]:y(y({},a!=="rtl"&&{padding:"8px 26px 8px 8px !important"}),a==="rtl"&&{padding:"8px 8px 8px 26px !important"}),[`.${e}-currency-fld-container`]:{height:"40px"},[`.${e}-selected-currency-img`]:{height:"17px !important",width:"25px","border-radius":"3px !important"}}),t==="select"&&{[`.${e}-dpd-wrp`]:{padding:"4px 10px","min-height":"38px"},[`.${e}-opt-search-input`]:{height:"35px","font-size":"14px"},[`.${e}-selected-opt-lbl .chip-wrp`]:{padding:"5px 8px"}}),(t==="country"||t==="currency"||t==="phone-number")&&{[`.${e}-dpd-wrp`]:{padding:"10px",height:t==="country"?"38px":"32px"},[`.${e}-opt-search-input`]:{height:"35px","font-size":"1rem"}}),t==="button"&&{[`.${e}-btn`]:{padding:"11px 20px","font-size":"14px"},[`.${e}-btn-suf-i`]:{width:"20px",height:"20px"},[`.${e}-btn-pre-i`]:{width:"20px",height:"20px"}}),t==="file-up"&&{[`.${e}-inp-btn`]:{padding:"11px 20px","font-size":"14px"},[`.${e}-pre-i`]:{width:"15px",height:"15px"},[`.${e}-suf-i`]:{width:"15px",height:"15px"}});case"large-1":return l=Fn(e,40)||"9px",y(y(y(y(y(y(y(y(B(y(y({[`.${e}-lbl`]:{"font-size":"18px"},[`.${e}-sub-titl`]:{"font-size":"14px"},[`.${e}-hlp-txt`]:{"font-size":"14px"}},["check","radio","decision-box","gdpr"].includes(t)&&y({[`.${e}-bx`]:{width:"22px",height:"22px"},[`.${e}-ct`]:{"font-size":"18px"}},(t==="radio"||t==="check")&&{[`.${e}-other-inp`]:{"font-size":"1.2rem",padding:"11px 9px",height:"44px","border-radius":"12px"}})),["check","decision-box","gdpr"].includes(t)&&{[`.${e}-ck`]:{"border-radius":"6px"}}),{[`.${e}-fld`]:y(y(y({"font-size":"1.2rem",padding:l,"border-radius":"12px"},t==="html-select"&&{padding:"5px 3px"}),t==="color"&&{padding:"5px 3px"}),t!=="textarea"&&{height:"45px"}),[`.${e}-lbl-pre-i`]:{width:"24px",height:"24px"},[`.${e}-lbl-suf-i`]:{width:"24px",height:"24px"},[`.${e}-sub-titl-pre-i`]:{width:"24px",height:"24px"},[`.${e}-sub-titl-suf-i`]:{width:"24px",height:"24px"},[`.${e}-hlp-txt-pre-i`]:{width:"24px",height:"24px"},[`.${e}-hlp-txt-suf-i`]:{width:"24px",height:"24px"}}),t!=="file-up"&&{[`.${e}-pre-i`]:{width:"30px",height:"30px"},[`.${e}-suf-i`]:{width:"30px",height:"30px"}}),t==="select"&&{[`.${e}-dpd-fld-container`]:{height:"44px"},[`.${e}-dpd-fld-wrp`]:{"border-radius":"12px","font-size":"1.2rem"}}),t==="country"&&{[`.${e}-country-fld-container`]:{height:"45px"},[`.${e}-dpd-fld-wrp`]:{"border-radius":"12px","font-size":"1.2rem"},[`.${e}-dpd-wrp`]:{padding:"11px 9px",height:"45px"},[`.${e}-opt-search-input`]:{height:"40px","font-size":"1.2rem"},[`.${e}-opt-search-icn`]:{height:"24px",width:"24px"}}),t==="phone-number"&&{[`.${e}-phone-fld-wrp`]:{"border-radius":"12px","font-size":"1.2rem"},[`.${e}-phone-amount-input`]:{padding:"11px 9px"},[`.${e}-phone-fld-container`]:{height:"44px"},[`.${e}-selected-country-img`]:{height:"25px",width:"33px","border-radius":"6px"}}),t==="currency"&&{[`.${e}-currency-fld-wrp`]:{"border-radius":"12px","font-size":"1.2rem"},[`.${e}-currency-amount-input`]:{padding:"11px 9px"},[`.${e}-currency-fld-container`]:{height:"44px"},[`.${e}-selected-currency-img`]:{height:"25px",width:"33px","border-radius":"6px"}}),(t==="select"||t==="currency"||t==="phone-number")&&{[`.${e}-dpd-wrp`]:{padding:"11px 9px",height:"40px"},[`.${e}-opt-search-input`]:{height:"40px","font-size":"1.2rem"},[`.${e}-opt-search-icn`]:{height:"24px",width:"24px"}}),t==="button"&&{[`.${e}-btn`]:{padding:"12px 22px","font-size":"1.125rem"},[`.${e}-btn-suf-i`]:{width:"24px",height:"24px"},[`.${e}-btn-pre-i`]:{width:"24px",height:"24px"}}),t==="file-up"&&{[`.${e}-inp-btn`]:{padding:"12px 18px","font-size":"1.125rem"},[`.${e}-pre-i`]:{width:"24px",height:"24px"},[`.${e}-suf-i`]:{width:"24px",height:"24px"}});case"large-2":return l=Fn(e,45)||"10px",y(y(y(y(y(y(y(y(B(y(y({[`.${e}-lbl`]:{"font-size":"20px"},[`.${e}-sub-titl`]:{"font-size":"16px"},[`.${e}-hlp-txt`]:{"font-size":"16px"}},["check","radio","decision-box","gdpr"].includes(t)&&y({[`.${e}-bx`]:{width:"26px",height:"26px"},[`.${e}-ct`]:{"font-size":"20px"}},(t==="radio"||t==="check")&&{[`.${e}-other-inp`]:{"font-size":"1.4rem",padding:"12px 10px",height:"48px","border-radius":"13px"}})),["check","decision-box","gdpr"].includes(t)&&{[`.${e}-ck`]:{"border-radius":"7px"}}),{[`.${e}-fld`]:y(y(y({"font-size":"1.4rem",padding:l,"border-radius":"13px"},t==="html-select"&&{padding:"6px 4px"}),t==="color"&&{padding:"6px 4px"}),t!=="textarea"&&{height:"54px"}),[`.${e}-lbl-pre-i`]:{width:"28px",height:"28px"},[`.${e}-lbl-suf-i`]:{width:"28px",height:"28px"},[`.${e}-sub-titl-pre-i`]:{width:"28px",height:"28px"},[`.${e}-sub-titl-suf-i`]:{width:"28px",height:"28px"},[`.${e}-hlp-txt-pre-i`]:{width:"28px",height:"28px"},[`.${e}-hlp-txt-suf-i`]:{width:"28px",height:"28px"}}),t!=="file-up"&&{[`.${e}-pre-i`]:{width:"35px",height:"35px"},[`.${e}-suf-i`]:{width:"35px",height:"35px"}}),t==="select"&&{[`.${e}-dpd-fld-container`]:{height:"48px"},[`.${e}-dpd-fld-wrp`]:{"border-radius":"13px","font-size":"1.4rem"}}),t==="country"&&{[`.${e}-country-fld-container`]:{height:"48px"},[`.${e}-dpd-fld-wrp`]:{"border-radius":"13px","font-size":"1.4rem"}}),t==="phone-number"&&{[`.${e}-phone-fld-wrp`]:{"border-radius":"13px","font-size":"1.4rem"},[`.${e}-phone-amount-input`]:{padding:"12px 10px"},[`.${e}-phone-fld-container`]:{height:"48px"},[`.${e}-selected-country-img`]:{height:"26px",width:"35px","border-radius":"7px"}}),t==="currency"&&{[`.${e}-currency-fld-wrp`]:{"border-radius":"13px","font-size":"1.4rem"},[`.${e}-currency-amount-input`]:{padding:"12px 10px"},[`.${e}-currency-fld-container`]:{height:"48px"},[`.${e}-selected-currency-img`]:{height:"26px",width:"35px","border-radius":"7px"}}),(t==="select"||t==="country"||t==="currency"||t==="phone-number")&&{[`.${e}-dpd-wrp`]:{padding:"12px 10px",height:"48px"},[`.${e}-opt-search-input`]:{height:"45px","font-size":"1.4rem"},[`.${e}-opt-search-icn`]:{height:"26px",width:"26px"}}),t==="button"&&{[`.${e}-btn`]:{padding:"13px 20px","font-size":"1.313rem"},[`.${e}-btn-suf-i`]:{width:"28px",height:"28px"},[`.${e}-btn-pre-i`]:{width:"28px",height:"28px"}}),t==="file-up"&&{[`.${e}-inp-btn`]:{padding:"13px 20px","font-size":"1.313rem"},[`.${e}-pre-i`]:{width:"28px",height:"28px"},[`.${e}-suf-i`]:{width:"28px",height:"28px"}});default:return"default......"}}const hl=(e,n,t,r,i,s)=>{var m,w;const l=B1({fk:n,type:i,fieldType:t,theme:r,direction:""}),c=Object.keys(l),h=Jt(e),u=h.classes;me(h,"fieldSize",i);const d=c.length;for(let S=0;S<d;S+=1){const j=c[S];if(Object.prototype.hasOwnProperty.call(u,j)){const I=u[j],T=l[j],C=Object.keys(T),g=C.length;for(let f=0;f<g;f+=1){const b=C[f];if(Object.prototype.hasOwnProperty.call(I,b)){const p=I[b],x=T[b];if(p!==x)if(((m=p==null?void 0:p.match(/(var)/gi))==null?void 0:m.length)===1&&s){const N=(w=p.replace(/\(|var|!important|,.*|\)/gi,""))==null?void 0:w.trim();s[N]!==x&&(s[N]=x)}else{const N=`classes->${j}->${b}`;me(h,N,x)}}else{const p=`classes->${j}->${b}`;me(h,p,T[b])}}}}return h},R1=["section","repeater"],P1=e=>{var i,s,a;const n=de(Vs);return!e||!["password","email","name"].includes(e.toLowerCase())?[]:{password:[{typ:"password",lbl:"Confirm password",fieldName:"confirm",err:{notMatch:{dflt:((i=n.err.password)==null?void 0:i.notMatch)||`<p style="margin:0">${_("The entered values do not match.")}</p>`,show:!0}}}],email:[{typ:"email",lbl:"Confirm email",fieldName:"confirm",pattern:"^[^$_bf_$s@]+@[^$_bf_$s@]+$_bf_$.[^$_bf_$s@]+$",err:{invalid:{dflt:((s=n.err.email)==null?void 0:s.invalid)||`<p style="margin:0">${_("Please enter a valid email address.")}</p>`,show:!0},notMatch:{dflt:((a=n.err.email)==null?void 0:a.notMatch)||`<p style="margin:0">${_("The entered values do not match.")}</p>`,show:!0}}}],name:[{typ:"text",lbl:"First name",fieldName:"first_name"},{typ:"text",lbl:"Middle name",fieldName:"middle_name",isDeactive:!0},{typ:"text",lbl:"Last name",fieldName:"last_name"}],address:[{typ:"text",lbl:"Street address",fieldName:"street_address"},{typ:"text",lbl:"Address line 2",fieldName:"address_line_2"},{typ:"text",lbl:"City",fieldName:"city"},{typ:"text",lbl:"State/Province/Region",fieldName:"state_province_region"},{typ:"text",lbl:"Zip/Postal code",fieldName:"zip_postal_code"},{typ:"text",lbl:"Country",fieldName:"country"}]}[e.toLowerCase()]},F1=(e,n)=>{const{typ:t}=n;t==="paypal"?(zn({fieldKey:e,errorKey:"paypalClientIdMissing",errorMsg:"PayPal Client ID is missing",errorUrl:`field-settings/${e}`}),zn({fieldKey:e,errorKey:"paypalAmountMissing",errorMsg:_("PayPal Fixed Amount is not valid"),errorUrl:`field-settings/${e}`})):t==="razorpay"&&(zn({fieldKey:e,errorKey:"razorpayClientIdMissing",errorMsg:_("Razorpay Client ID is missing"),errorUrl:`field-settings/${e}`}),zn({fieldKey:e,errorKey:"razorpayAmountMissing",errorMsg:_("Razorpay Fixed Amount is not valid"),errorUrl:`field-settings/${e}`})),t==="email-otp"&&zn({fieldKey:e,errorKey:"emailOtpReciverEmailMissing",errorMsg:_("Email OTP Receiver Email is missing"),errorUrl:`field-settings/${e}`})},To=e=>e.typ==="button"?e.txt:e.typ==="decision-box"?"Decision Box":e.typ==="gdpr"?"GDPR Agreement":e.typ==="title"?"Title Field":e.typ==="html"?"HTML Field":e.typ==="recaptcha"?"Recaptcha Field":e.lbl?e.lbl:e.typ.charAt(0).toUpperCase()+e.typ.slice(1),Is=()=>{de(lt)!=="lg"&&Me(lt,"lg")};function D1(e,n,t,r){const i=de(Ws),s=de(Gs),a=de(Ue),l=de(he),c=de(Re),h=de($n);let u=Us(n);if(!u)return;u=B(y({},u),{fieldName:n.fieldName||`${u.typ}-${i}-${s}`});const d=`b${i}-${s}`;F1(d,u);const m=r==null?void 0:r.previousFieldKey,w=!!(t&&r);let S=null;if(w&&m){const A=U1(e,m,t.w),{w:O,h:F,minH:$,maxH:E,minW:k}=t,P={i:d,x:0,y:0,w:O,h:F,minH:$,maxH:E,minW:k},H=Ro(n.typ);H&&(P.resizeHandles=H),S=Po(e,P,A)}else if(w){let{x:A,y:O}=r;O!==0&&(O-=1);const{w:F,h:$,minH:E,maxH:k,minW:P}=t,H={i:d,x:A,y:O,w:F,h:$,minH:E,maxH:k,minW:P},z=Ro(n.typ);z&&(H.resizeHandles=z),S=Po(e,H)}const j=B(y({},a),{[d]:u});Me(Ue,j),sessionStorage.setItem("btcd-lc","-"),Me(Qi,"out-of-sync");const I=`${To(n)} added`,T="add_fld",C=u.typ;if(R1.includes(C)){const A=de(Kn);Me(Kn,D(A,O=>{O[d]={lg:[],md:[],sm:[]}}))}const g=Jt(c),f=D(l,A=>{const O=A.theme,F=de(na)||{},$=u==null?void 0:u.btnTyp,E=u==null?void 0:u.align,k=u==null?void 0:u.fulW,P=u==null?void 0:u.txtAlign,H=Xi(O,d,u.typ,{breakpoint:"lg",colorScheme:"light",direction:c["--dir"],fldPrefix:!!u.prefixIcn,fldSuffix:!!u.suffixIcn,buttonOptions:{btnTyp:$,align:E,fulW:k,txtAlign:P}},F);if(A.fieldsSize!=="medium"){const z=hl(H,d,u.typ,A.fieldsSize,g);A.fields[d]=z}else A.fields[d]=H});if(Me(he,f),Me(Re,g),_r.includes(C)&&Me($n,D(h,A=>{A.staticStyles[".pos-rel"]={position:"relative"},A.staticStyles[".form-loading::before"]={position:"absolute","border-radius":"5px",display:"block",top:0,left:0,content:"''",height:"100%",width:"100%","z-index":"9999","background-color":"rgba(0,0,0,0.2)"},A.staticStyles[".form-loading::after"]={position:"absolute","border-radius":"5px",color:"#fff",top:"50%",left:"50%",content:"'loading...'",transform:"translate(-50%, -50%)","z-index":"99999","font-size":"20px","background-color":"#222",padding:"5px 15px"},C==="razorpay"&&(A.staticStyles[".razorpay-checkout-frame"]={height:"100% !important"})})),zl(u)){const A=P1(u.typ),O=[];A.forEach(F=>{const{typ:$,lbl:E,fieldName:k,isDeactive:P}=F,H=Ol({typ:$,lbl:E,fieldName:k,isDeactive:P}),z=D1({},H);z.newBlk&&O.push({fldKey:z.newBlk})}),O.length>0&&Me(Ue,D(de(Ue),F=>{const $=F[d];$.childFields=O,O.forEach(({fldKey:E})=>{F[E].parentFieldKey=d,F[E].fieldName=`${$.fieldName}[${F[E].fieldName}]`})}))}const b=de(Ue),p=de(he),N={event:I,type:T,state:{fldKey:d,fields:b,styles:p}};return setTimeout(()=>{var A;(A=$r(`[data-key="${d}"]`))==null||A.focus()},500),setTimeout(()=>{Wt(d)},100),{newBlk:d,newLayouts:S,historyData:N}}const a2=e=>{const n=de(he);if(Object.keys(e).length===0&&typeof e=="object"&&e!==null)return n;const t=de(Re),r=Jt(t);return D(n,s=>{Object.entries(e).forEach(([a,l])=>{const c=H1({draftStyle:s,fieldData:l,fldKey:a,themeVars:t,tempThemeVars:r});s.fields[a]=c})})},H1=({draftStyle:e,fieldData:n,fldKey:t,themeVars:r,tempThemeVars:i})=>{const s=e.theme,a=de(na)||{},l=n==null?void 0:n.btnTyp,c=n==null?void 0:n.align,h=n==null?void 0:n.fulW,u=n==null?void 0:n.txtAlign,d=Xi(s,t,n.typ,{breakpoint:"lg",colorScheme:"light",direction:r["--dir"],fldPrefix:!!n.prefixIcn,fldSuffix:!!n.suffixIcn,buttonOptions:{btnTyp:l,align:c,fulW:h,txtAlign:u}},a);return e.fieldsSize!=="medium"?hl(d,t,n.typ,e.fieldsSize,i):d},V1=(e,n,t)=>{const r=n.slice(1),i=t.slice(1),s=new RegExp(r,"g");return e.replace(s,i)},fl=e=>{const t=de(Ue)[e];if(!t)return{};const r=t.typ;if(["textarea","signature"].includes(r)){const s=$r(`[data-key="${e}"]`),a=$r(`[data-dev-fld="${e}"]`),l=Fo(s,0);return{fldHeight:Fo(a,0),wrpHeight:l}}return{}},l2=(e,n)=>{const t=n.i;Me(Ti,y({fieldKey:t},fl(t)))},c2=(e,n)=>{M.startTransition(()=>{const t=de(Ti),r=D(t,i=>{if(i.fieldKey){const l=e.find(c=>c.i===i.fieldKey);return i.w=l.w,i.x=l.x,i}const s=n.i,a=y({fieldKey:s},fl(s));return a.w=n.w,a.x=n.x,Al(a)});Me(Ti,r)})},W1=e=>{const n=de(he),t=D(n,r=>{Array.isArray(e)?e.forEach(i=>{delete r.fields[i]}):delete r.fields[e]});Me(he,t)},ks=(e,n)=>{const t=de(Ue),r=de(he),i=de(Gs),s=de(Ws),a=de(lt);if(!ke){Me(Ks,y({show:!0},Ll.fieldClone));return}const l=t[e],c=`b${s}-${i}`,h={},u=["sm","md","lg"],d=D(n,C=>{u.forEach(g=>{const f=n[g].findIndex(N=>N.i===e),{y:b,h:p}=n[g][f],x=B(y({},n[g][f]),{i:c,y:b+p});h[g]=x,C[g].splice(f+1,0,x)})}),m=V1(l.fieldName,e,c),w=D(t,C=>{C[c]=B(y({},l),{fieldName:m})});Me(Ue,w);const S=D(r,C=>{const g=C.fields[e],f=g.classes;C.fields[c]=y({},g),C.fields[c].classes={},Object.keys(f).forEach(b=>{const p=b.replaceAll(e,c);C.fields[c].classes[p]=f[b]})});Me(he,S),sessionStorage.setItem("btcd-lc","-"),setTimeout(()=>{var C;(C=$r(`[data-key="${c}"]`))==null||C.focus()},500);const j=`${To(l)} cloned`,I="clone_fld",T={fldKey:c,breakpoint:a,layout:h,fldData:l,allLayouts:W("allLayouts"),fields:w,styles:W("styles")};return K({event:j,type:I,state:T}),Me(Ys,{}),{newBlk:c,newFldName:m,newLayouts:d}},Ts=(e,n)=>{const t=de(Ue),r=de(lt),i=de(Do),s=de($n),a=t[e];if((a==null?void 0:a.typ)==="button"&&(a==null?void 0:a.btnTyp)==="submit"&&!(t?Object.values(t).filter(T=>_r.includes(T.typ)):[]).length)return!1;n.lg.find(I=>I.i===e),n.md.find(I=>I.i===e),n.sm.find(I=>I.i===e);const l=[e];a!=null&&a.childFields&&a.childFields.forEach(({fldKey:I})=>{l.push(I)});const c=Bl(e,n),h=D(t,I=>{l.forEach(T=>{delete I[T]})});Me(Ue,h),Me(Qn,null),W1(l);const u=D(i,I=>{I.includes(e)||I.push(e)});Me(Do,u),sessionStorage.setItem("btcd-lc","-");const d=a==null?void 0:a.typ;if(_r.includes(d)){const I=D(s,T=>{delete T.staticStyles[".pos-rel"],delete T.staticStyles[".form-loading::before"],delete T.staticStyles[".form-loading::after"],d==="razorpay"&&delete T.staticStyles[".razorpay-checkout-frame"]});Me($n,I)}const j={event:`${To(a)} removed`,type:"remove_fld",state:{fldKey:e,breakpoint:r,fldData:a,fields:h}};return Rl(e),{newLayouts:c,historyData:j}},G1=(e,n)=>!e||!Array.isArray(e)||!n?null:e.find(t=>t.i===n)||null,U1=(e,n,t)=>{const r=Object.keys(de(eo)),i={};return r.forEach(s=>{const a=e[s],l=G1(a,n);l?i[s]={x:0,y:l.y+l.h}:i[s]={x:0,y:0}}),i};function K1(){const[e,n]=Y(qi),[t,r]=Y(Bs),[i,s]=Y(zs),a=re(Fr),l=re(Ys),c=ce(Vr),h=ce(lt),u=er(),{formType:d,formID:m}=xe(),w=ce(qs),j=d!=="edit"?w:m,{scrollContainerRef:I,handleScroll:T,scrollTo:C,isAtStart:g,isAtEnd:f}=A1(),b=Array.isArray(e)?e:[e],p=`/form/builder/${d}/${j}`,x=b.length>1,[N,A]=Y(he),O=ce(Ue),F=re(to),[$,E]=Y(Kn),k=re(Zs),P=re(Qn),{styleMode:H}=c,{css:z}=ne(),[V,oe]=Y($n),ze=()=>{var J,G;(G=(J=V.staticStyles)==null?void 0:J["@media (max-width: 576px)"])!=null&&G[`._frm-b${j}-stp-hdr-lbl`]||oe(je=>D(je,ve=>{ve.staticStyles=Vo(ve.staticStyles,Hl(j))}))},ct=()=>{ze(),n(J=>D(J,G=>{const je=Array.isArray(G)?G.length:1,ve={layout:{lg:[],md:[],sm:[]},settings:Ho(je)};if(!Array.isArray(G))return r(1),G=[{layout:G,settings:Ho(0)},ve],G;G.push(ve),r(G.length-1)})),s(J=>D(J,G=>{G.multiStepSettings||(G.multiStepSettings=L1),G.isMultiStepForm=!0})),A(J=>D(J,G=>{G.form[`._frm-b${j}-stp-cntnr`]||(G.form=Vo(G.form,Fl({formID:j,themeSlug:N.theme})))})),a(J=>B(y({},J),{reRenderGridLayoutByRootLay:J.reRenderGridLayoutByRootLay+1})),k(J=>B(y({},J),{unsaved:!0})),M.startTransition(()=>{const J="New Step added",G="step_added",je=W("activeBuilderStep"),ht={fldKey:`step-${je+1}`,activeBuilderStep:je,allLayouts:W("allLayouts"),styles:W("styles"),formInfo:W("formInfo")};K({event:J,type:G,state:ht})})},En=J=>{const G=e.length-1,je=Jt(e[J].layout),ve=je.lg.map(q=>q.i),ht=ve.some(q=>{const fe=O[q];if((fe==null?void 0:fe.typ)==="button"&&(fe==null?void 0:fe.btnTyp)==="submit"&&!(O?Object.values(O).filter(se=>_r.includes(se.typ)):[]).length)return F({show:!0,msg:_("Submit button cannot be removed"),cancelBtn:!1}),!0});if(An(),ht)return;ve.forEach(q=>{if($[q]){const fe=Jt($[q]);fe.lg.map(se=>se.i).forEach(se=>{Ts(se,fe)}),E(se=>D(se,De=>{delete De[q]}))}Ts(q,je)});const Ze=D(e,q=>{q.splice(J,1)});n(Ze),J===t&&J===G?r(J-1):t>J&&r(q=>q-1),Ze.length===1&&(A(q=>D(q,fe=>{const Fe=Dl({formId:j});Object.keys(Fe).forEach(se=>{delete fe.form[se]})})),s(q=>D(q,fe=>{fe.isMultiStepForm=!1}))),a(q=>B(y({},q),{reRenderGridLayoutByRootLay:q.reRenderGridLayoutByRootLay+1})),k(q=>B(y({},q),{unsaved:!0})),M.startTransition(()=>{const q="Step removed",fe="step_removed",Fe=W("activeBuilderStep"),De={fldKey:`step-${Fe}`,breakpoint:h,activeBuilderStep:Fe,allLayouts:W("allLayouts"),fields:W("fields"),styles:W("styles"),nestedLayouts:W("nestedLayouts"),formInfo:W("formInfo")};K({event:q,type:fe,state:De})})},cn=J=>{const G=e[J],ve=G.layout.lg.map(se=>se.i),ht=ve.some(se=>{const De=O[se];return!Us(De)});if(An(),ht)return;const Ze=J+1,q=Jt(G);q.settings.title=`Step ${e.length+1}`;let fe=D(e,se=>{se.splice(Ze,0,q)}),Fe=D($,()=>{});ve.forEach(se=>{const De=fe[Ze].layout,{newBlk:jt,newLayouts:R}=ks(se,De),Z=D(R,ie=>{Object.keys(Wo).forEach(be=>{const et=ie[be].findIndex(He=>He.i===se);ie[be].splice(et,1)})});fe=D(fe,ie=>{ie[Ze].layout=Z}),$[se]&&(Fe=D(Fe,ie=>{ie[jt]=Jt($[se]),$[se].lg.map(He=>He.i).forEach(He=>{const{newLayouts:gt}=ks(He,ie[jt]);ie[jt]=gt,Object.keys(Wo).forEach(tt=>{const Ct=gt[tt].findIndex(Ve=>Ve.i===He);gt[tt].splice(Ct,1)})})}))}),E(Fe),n(fe),r(Ze),a(se=>B(y({},se),{reRenderGridLayoutByRootLay:se.reRenderGridLayoutByRootLay+1})),k(se=>B(y({},se),{unsaved:!0})),M.startTransition(()=>{const se="Step cloned",De="clone_step",R={fldKey:`step-${Ze}`,allLayouts:fe,nestedLayouts:Fe,fields:W("fields"),styles:W("styles")};K({event:se,type:De,state:R})})},Ne=({oldIndex:J,newIndex:G})=>{Array.isArray(e)&&(n(je=>jc(je,J,G)),J===t&&r(G),k(je=>B(y({},je),{unsaved:!0})))},Lt=J=>()=>{r(J),l({}),a(G=>B(y({},G),{reRenderGridLayoutByRootLay:G.reRenderGridLayoutByRootLay+1})),b.length!==1&&!H&&u(`${p}/step-settings`,{replace:!0}),H&&u(`${p}/theme-customize/multi-step/quick-tweaks`,{replace:!0}),M.startTransition(()=>{const G=`Active step shifts to Step-${J+1}`,je="step_changed",ht={fldKey:`step-${J+1}`,activeBuilderStep:J};K({event:G,type:je,state:ht})})},Pe=J=>()=>{r(J),l({}),An(),a(G=>B(y({},G),{reRenderGridLayoutByRootLay:G.reRenderGridLayoutByRootLay+1})),u(`${p}/step-settings`,{replace:!0})},Yt=()=>{l({}),An(),P(null),u(`${p}/multi-step-settings`,{replace:!0})};return o.jsxs("div",{className:z(Be.wrp),children:[o.jsx("div",{ref:I,onScroll:T,children:o.jsx(_c,{useDragHandle:!0,axis:"x",onSortEnd:Ne,children:o.jsx("div",{className:z(Be.tabWrpr),children:b.map((J,G)=>o.jsx($c,{index:G,itemId:`grid-${G*2}`,children:o.jsxs("div",{className:`btcd-s-tab-link ${z(Be.stepTab)} ${t===G&&"active"} ${x?"multi-step":""}`,children:[x&&o.jsx(Sc,{}),o.jsxs("span",{type:"button",className:z(Be.stepTitle),onClick:Lt(G),onKeyDown:Lt(G),role:"button",tabIndex:0,children:[_("Step-"),G+1]}),x&&o.jsxs(jr,{children:[o.jsx("button",{className:`${z(Be.ellipsBtn)} step-options-btn`,"aria-label":"Step Options",type:"button",children:o.jsx(O1,{size:"20",rotateDeg:90})}),o.jsxs("ul",{className:z(Be.optionWrap),children:[o.jsx("li",{className:z(Be.option),children:o.jsxs("button",{type:"button",className:z(Be.optionBtn),onClick:Pe(G),children:[o.jsx(zi,{size:18}),o.jsx("span",{children:_("Settings")})]})}),o.jsx("li",{className:z(Be.option),children:o.jsxs("button",{type:"button",className:z(Be.optionBtn),onClick:()=>cn(G),children:[o.jsx(Pl,{size:18}),o.jsx("span",{children:_("Clone Step")})]})}),o.jsx("li",{className:z(Be.option),children:o.jsxs(jr,{width:250,children:[o.jsxs("button",{type:"button",className:z(Be.optionBtn),children:[o.jsx(_n,{size:18}),o.jsx("span",{children:_("Delete Step")})]}),o.jsxs("div",{className:z(Be.confirmModal),children:[o.jsx("div",{className:"mb-2 mt-1",children:o.jsx("b",{children:"Are you sure to delete the step?"})}),o.jsx("p",{className:z({fs:12,fw:400}),children:"Note: After delete this Step. you will lose all responses of included fields."}),o.jsxs("div",{className:"flx flx-c",children:[o.jsx("button",{onClick:()=>An(),className:"tip-btn mr-2",type:"button",children:"Cancel"}),o.jsx("button",{onClick:()=>En(G),className:"tip-btn red-btn",type:"button",children:"Delete"})]})]})]})})]})]})]})},`grid-${G*2}`))})})}),o.jsxs("div",{className:z(Be.addBtnWrp),children:[o.jsx(Ie,{msg:_("Add New Step"),children:o.jsxs("button",{onClick:ct,className:z([Be.btnStyle,x?{}:{bd:"none"}]),type:"button",children:[o.jsx(Hr,{size:"12",className:z({tm:"rotate(45deg)"})}),!x&&o.jsx("span",{children:_("Add Steps")})]})}),x&&o.jsx(Ie,{msg:_("Multi step settings"),children:o.jsx("button",{onClick:Yt,className:z(Be.btnStyle),type:"button",children:o.jsx(zi,{size:20})})})]})]})}const Be={wrp:{dy:"flex",ai:"center",bb:"1px solid var(--bf-stroke-clr)"},sortableWrp:{w:"100%",mxw:"max-content",owx:"auto"},addBtnWrp:{mnw:25,dy:"flex",flxp:"wrap",gp:5},btnStyle:{b:"none",brs:"var(--bf-bdr-radius-sm)",p:5,flxi:"center",bd:"var(--bf-bg-ghostwhite)",curp:1,tn:"transform 0.2s",gp:5,":hover":{bd:"var(--b-79-96)",cr:"var(--b-50)"},":active":{tm:"scale(0.95)"},ff:"var(--bf-font-family-base) !important",fs:12,fw:"var(--bf-font-semibold)",mnw:30,mnh:30},ellipsBtn:{bd:"transparent",cr:"var(--dp-blue)",pn:"relative",cur:"pointer",fs:20,b:"1px solid transparent",p:"0",w:22,h:22,brs:"var(--bf-bdr-radius-sm)",oe:"none","&:hover":{b:"1px solid var(--bf-secondary-400) !important"},"&:active":{b:"1px solid var(--bf-secondary-400) !important"},"&:focus":{b:"1px solid var(--bf-secondary-400) !important"}},tabWrpr:{dy:"flex",flxp:1},stepTab:{flxi:"center",mr:5,mt:0,cg:4,h:30,ws:"nowrap",fs:12,fw:500,b:"none",us:"none",p:"0 20px",cr:"var(--bf-text-clr-darkgray)","&.multi-step":{p:"0px 10px"},"&.active":{b:"1px solid var(--bf-stroke-clr)",bd:"var(--bf-bg-bluishwhite)",cr:"var(--bf-text-clr-tertiary)",fw:"var(--bf-font-semibold)"},":hover .step-options-btn":{b:"1px solid var(--bf-secondary-200)"}},stepTitle:{cur:"pointer",p:"8px 0px"},optionWrap:{m:0,w:125},option:{dy:"block",m:0},optionBtn:{m:0,brs:6,curp:1,tn:"background .3s",py:5,px:10,fw:500,b:"none",w:"100%",bd:"none",ta:"left",flx:"align-center",gp:5,":hover":{bd:"var(--white-0-95)"}},confirmModal:{m:0,p:0,w:200}};function Y1({size:e=18,stroke:n=2}){return o.jsx("svg",{width:e,height:e,viewBox:"0 0 30 30",fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:n,children:o.jsx("path",{d:"M25.79,18.59A11.18,11.18,0,1,1,10.68,4.33,11.2,11.2,0,0,0,25.79,18.59Z"})})}function q1({size:e}){return o.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",children:o.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[o.jsx("path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6"}),o.jsx("path",{d:"m12 12l4 10l1.7-4.3L22 16Z"})]})})}function Z1({size:e=18,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:n,children:[o.jsx("circle",{cx:"15",cy:"15",r:"4.22"}),o.jsx("line",{x1:"15",y1:"7.11",x2:"15",y2:"3.37"}),o.jsx("line",{x1:"20.58",y1:"9.42",x2:"23.23",y2:"6.77"}),o.jsx("line",{x1:"22.89",y1:"15",x2:"26.63",y2:"15"}),o.jsx("line",{x1:"20.58",y1:"20.58",x2:"23.23",y2:"23.23"}),o.jsx("line",{x1:"15",y1:"22.89",x2:"15",y2:"26.63"}),o.jsx("line",{x1:"9.42",y1:"20.58",x2:"6.77",y2:"23.23"}),o.jsx("line",{x1:"7.11",y1:"15",x2:"3.37",y2:"15"}),o.jsx("line",{x1:"9.42",y1:"9.42",x2:"6.77",y2:"6.77"})]})}function X1({className:e,size:n=20,stroke:t=1.5,syncState:r="disabled"}){const s=(()=>{switch(r){case"in-sync":return"#28a745";case"out-of-sync":return"#ffc107";case"syncing":return"#007bff";case"disabled":default:return"currentColor"}})(),a=r==="syncing";return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[o.jsx("path",{d:"M3.5 16.5L6.94444 20.5L10.3889 16.5",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M6.94531 20.5V4.5",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M10.3887 4.5H18.9998",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M10.3887 8.5H16.4164",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M10.3887 12.5H13.8331",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsxs("g",{clipPath:"url(#clip0_1727_3682)",style:{transformOrigin:"17.5px 17.5px",animation:a?"spin-sync 1s linear infinite":"none"},children:[o.jsx("path",{d:"M21.1869 16.8102C21.0039 15.8326 20.4401 14.9677 19.6195 14.4059C18.7988 13.844 17.7886 13.6311 16.811 13.8141C15.7813 14.0108 14.8674 14.598 14.2606 15.4529L13.5083 16.5517",stroke:s,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M13.125 14.5039L13.5083 16.5517L15.556 16.1684",stroke:s,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M13.8145 18.1899C13.9974 19.1675 14.5612 20.0324 15.3819 20.5943C16.2025 21.1562 17.2127 21.3691 18.1903 21.1861C19.22 20.9894 20.1339 20.4022 20.7407 19.5473L21.4931 18.4485",stroke:s,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M19.4453 18.832L21.4931 18.4488L21.8763 20.4966",stroke:s,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_1727_3682",children:o.jsx("rect",{width:"10",height:"10",fill:"white",transform:"translate(11.666 13.5054) rotate(-10.6005)"})})}),a&&o.jsx("style",{children:` |
| 64 |
@keyframes spin-sync { |
| 65 |
from { transform: rotate(0deg); } |
| 66 |
to { transform: rotate(360deg); } |
| 67 |
} |
| 68 |
`})]})}function J1(){const{css:e}=ne(),[n,t]=Y(Xs),[r,i]=Y(eo),s=ce(lt),[a,l]=Y(Vl),[c,h]=Y(Kn),u=re(Qi),d=re(to),m=re(Zs),w=()=>{const j=!n.respectLGLayoutOrder;t(I=>B(y({},I),{respectLGLayoutOrder:j})),j?M.startTransition(()=>{try{if((!a.lg||a.lg.length===0)&&(a.md&&a.md.length>0||a.sm&&a.sm.length>0)){d({show:!0,msg:"Cannot sync: Desktop layout is empty"});return}const I=Go("lg",a.lg,a,!0,Uo);l(I),u("in-sync");const T=D(c,b=>{Object.keys(b).forEach(p=>{const x=b[p];if(x&&x.lg&&x.lg.length>0)try{const N=Go("lg",x.lg,x,!0,Uo);b[p]=N}catch(N){}})});h(T),K({event:"Enabled layout sync with Desktop order",type:"toggle_respect_order",state:{breakpoint:s,respectLGLayoutOrder:!0,allLayouts:I,nestedLayouts:T}})}catch(I){d({show:!0,msg:"Failed to enable layout sync"})}}):(sessionStorage.removeItem("btcd-hide-sync-warning"),u("disabled"))},S=({target:{name:j,value:I}})=>{const T=D(r,C=>{C[j]=Number(I)});i(T),m(C=>B(y({},C),{unsaved:!0}))};return o.jsxs("div",{className:e(nt.wraper),children:[o.jsxs("h4",{className:e(nt.title),children:["Breakpoint Sizes",!ke&&o.jsx(Ni,{proProperty:"breakPoint"})]}),o.jsx("div",{className:e(nt.divider)}),o.jsxs("div",{className:"pos-rel",children:[!ke&&o.jsx(Ic,{hideText:!0,proProperty:"breakPoint"}),o.jsxs("div",{className:e(v.flxc,nt.inputWrp),children:[o.jsx("span",{className:e(nt.icon_wrp),children:o.jsx(aa,{size:"26"})}),o.jsx("input",{title:"Large device breakpoint size","aria-label":"Large device breakpoint size",name:"lg",onChange:S,value:r.lg,className:e(nt.input),type:"number"}),o.jsx("span",{children:"px"})]}),o.jsxs("div",{className:e(v.flxc,nt.inputWrp),children:[o.jsx("span",{className:e(nt.icon_wrp),children:o.jsx(la,{size:"24"})}),o.jsx("input",{title:"Medium device breakpoint size","aria-label":"Medium device breakpoint size",name:"md",onChange:S,value:r.md,className:e(nt.input),type:"number"}),o.jsx("span",{children:"px"})]}),o.jsxs("div",{className:e(v.flxc,nt.inputWrp),children:[o.jsx("span",{className:e(nt.icon_wrp),children:o.jsx(ca,{size:"25"})}),o.jsx("input",{title:"Mobile device breakpoint size","aria-label":"Mobile device breakpoint size",name:"sm",onChange:S,value:r.sm,className:e(nt.input),type:"number"}),o.jsx("span",{children:"px"})]}),o.jsx("div",{className:e(nt.divider)}),o.jsxs("div",{className:e(v.flxcb,v.mt2,v.mb1),children:[o.jsxs("div",{className:e(v.flxi,v.w8),children:[o.jsx("span",{className:e(v.fw500,v.fs12),children:_("Sync Field Order Across Breakpoints")}),o.jsx(ro,{icnSize:"15",children:o.jsx("span",{className:e([v.tipBody,v.mr2]),children:_("When enabled, all layouts will automatically sync with and follow the active breakpoint’s field order.")})})]}),o.jsx(Cr,{isChecked:n.respectLGLayoutOrder,action:w})]})]})]})}const nt={wraper:{w:180},title:{my:5,fw:600,fs:14},divider:{mt:8,mb:3,bb:"1px solid var(--white-0-78)"},input:{w:70,b:"1px solid transparent !important",brs:"8px !important",fw:500,":hover:not(:focus)":{b:"1px solid gray !important"},":focus":{b:"1px solid var(--b-50) !important"}},inputWrp:{mx:5,my:4},icon_wrp:{w:30,flx:"center"}},Q1=[30,50,70,100,120,140,160,180,200,220];function em(){const{css:e}=ne(),n=(t,r)=>Math.round(Math.random()*(r-t)+t);return o.jsxs("div",{className:e(mr.wrp),children:[o.jsx("div",{className:`${e(mr.src)} loader`}),o.jsx("div",{className:`${e(mr.t_wrp)} flx`,children:Array(40).fill(0).map((t,r)=>o.jsx("div",{className:`${e(mr.img,{w:Q1[n(1,10)]})} loader`},`cdl-${r+2}`))})]})}const mr={wrp:{mx:10,my:10},src:{w:250,mx:"auto",h:32,brs:8},t_wrp:{bd:"var(--white-0-97)",mt:15,flxc:1,flxp:1,p:10,brs:8},img:{h:13,m:5,brs:8}},Ns={default:{tabs:{bd:"#ffffff",b:"1px solid #e1e5e9"},selector:{bd:"#f8f9fa",bs:"0 1px 3px rgba(0, 0, 0, 0.1)",b:"1px solid #dee2e6"},tabLink:{cr:"#6c757d",":hover:not(.active)":{cr:"#495057",bd:"#f8f9fa"}},active:{cr:"#495057 !important",bd:"#ffffff !important"}},primary:{tabs:{bd:"var(--bf-primary)"},selector:{bd:"var(--bf-primary)",bs:"0 2px 3px -1px rgba(var(--bf-primary-rgb), 0.3)"},tabLink:{cr:"hsl(0, 0%, 70%)",":hover:not(.active)":{cr:"hsl(0, 0%, 90%)"}},active:{cr:"hsl(0, 0%, 100%) !important"}},warning:{tabs:{bd:"hsl(42, 100%, 50%)"},selector:{bd:"hsl(42, 100%, 60%)",bs:"0 2px 3px -1px hsla(42, 100%, 50%, 0.3)"},tabLink:{cr:"hsl(42, 100%, 30%)",":hover:not(.active)":{cr:"hsl(42, 100%, 20%)"}},active:{cr:"hsl(0, 0%, 100%) !important"}},secondary:{tabs:{bd:"hsl(208, 7%, 46%)"},selector:{bd:"hsl(208, 7%, 56%)",bs:"0 2px 3px -1px hsla(208, 7%, 46%, 0.3)"},tabLink:{cr:"hsl(208, 7%, 30%)",":hover:not(.active)":{cr:"hsl(208, 7%, 20%)"}},active:{cr:"hsl(0, 0%, 100%) !important"}},tertiary:{tabs:{bd:"var(--bf-bg-tertiary)"},selector:{bd:"var(--bf-bg-tertiary-hover)",bs:"0 2px 3px -1px rgba(0, 0, 0, 0.1)"},tabLink:{cr:"var(--bf-text-clr-gray)",":hover:not(.active)":{cr:"var(--bf-text-clr-offwhite)"}},active:{cr:"var(--bf-text-clr-offwhite) !important"}},clean:{tabs:{bd:"#ffffff",b:"1px solid #e1e5e9",py:0,px:0},selector:{bd:"#f8f9fa",bs:"0 1px 3px rgba(0, 0, 0, 0.1)",b:"1px solid #dee2e6"},tabLink:{cr:"#6c757d",":hover:not(.active)":{cr:"#495057",bd:"#f8f9fa"}},active:{cr:"#495057 !important",bd:"#ffffff !important"}},"clean-tertiary":{tabs:{bd:"#ffffff",b:"1px solid #e1e5e9",py:2,px:2},selector:{bd:"#f8f9fa",bs:"0 1px 3px rgba(0, 0, 0, 0.1)",b:"1px solid #dee2e6"},tabLink:{tdy:"0s",cr:"#6c757d",":hover:not(.active)":{cr:"#495057",bd:"#f8f9fa"}},active:{cr:"var(--bf-text-clr-white) !important",bd:"var(--bf-bg-tertiary) !important"}},"clean-tertiary-bottom-outline":{tabs:{bd:"var(--bf-bg-offwhite)",b:"1px solid #e1e5e9",py:0,px:0},selector:{bd:"var(--bf-bg-white)",bs:"0 1px 3px rgba(0, 0, 0, 0.1)",b:"1px solid #dee2e6"},tabLink:{cr:"#6c757d",b:"1px solid var(--bf-bdr-clr-tertiary)",":hover:not(.active)":{cr:"#495057",bd:"var(--bf-bg-lightgray)"}},active:{cr:"#495057 !important",bd:"var(--bf-bg-white) !important",bb:"2px solid var(--bf-bdr-clr-tertiary) !important",brs:"0px !important",fw:"var(--bf-font-bold)"}},success:{tabs:{bd:"hsla(160, 100%, 49%, 100%)"},selector:{bd:"hsla(160, 100%, 59%, 100%)",bs:"0 2px 3px -1px hsla(160, 100%, 49%, 0.3)"},tabLink:{cr:"hsla(160, 100%, 30%, 100%)",":hover:not(.active)":{cr:"hsla(160, 100%, 20%, 100%)"}},active:{cr:"hsla(215, 63%, 18%, 67%) !important"}},danger:{tabs:{bd:"hsl(0, 100%, 64%)"},selector:{bd:"hsl(0, 100%, 74%)",bs:"0 2px 3px -1px hsla(0, 100%, 64%, 0.3)"},tabLink:{cr:"hsl(0, 100%, 40%)",":hover:not(.active)":{cr:"hsl(0, 100%, 30%)"}},active:{cr:"hsl(0, 0%, 100%) !important"}},"primary-outline":{tabs:{bd:"transparent",b:"1px solid var(--bf-primary)"},selector:{bd:"var(--bf-primary)",bs:"0 2px 3px -1px rgba(var(--bf-primary-rgb), 0.2)"},tabLink:{cr:"var(--bf-primary)",":hover:not(.active)":{cr:"var(--bf-primary-hover)"}},active:{cr:"hsl(0, 0%, 100%) !important"}},"secondary-outline":{tabs:{bd:"transparent",b:"1px solid hsl(208, 7%, 46%)"},selector:{bd:"hsl(208, 7%, 46%)",bs:"0 2px 3px -1px hsla(208, 7%, 46%, 0.2)"},tabLink:{cr:"hsl(208, 7%, 46%)",":hover:not(.active)":{cr:"hsl(208, 7%, 36%)"}},active:{cr:"hsl(0, 0%, 100%) !important"}},"tertiary-outline":{tabs:{bd:"transparent",b:"1px solid var(--bf-bdr-clr-tertiary)"},selector:{bd:"var(--bf-bg-tertiary)",bs:"0 2px 3px -1px rgba(0, 0, 0, 0.1)"},tabLink:{cr:"var(--bf-text-clr-gray)",":hover:not(.active)":{cr:"var(--bf-text-clr-offwhite)"}},active:{cr:"hsl(0, 0%, 100%) !important"}},"success-outline":{tabs:{bd:"transparent",b:"1px solid hsla(160, 100%, 49%, 100%)"},selector:{bd:"hsla(160, 100%, 49%, 100%)",bs:"0 2px 3px -1px hsla(160, 100%, 49%, 0.2)"},tabLink:{cr:"hsla(160, 100%, 49%, 100%)",":hover:not(.active)":{cr:"hsla(160, 100%, 39%, 100%)"}},active:{cr:"hsla(215, 63%, 18%, 67%) !important"}},"danger-outline":{tabs:{bd:"transparent",b:"1px solid hsl(0, 100%, 50%)"},selector:{bd:"hsl(0, 100%, 50%)",bs:"0 2px 3px -1px hsla(0, 100%, 50%, 0.2)"},tabLink:{cr:"hsl(0, 100%, 50%)",":hover:not(.active)":{cr:"hsl(0, 100%, 40%)"}},active:{cr:"hsl(0, 0%, 100%) !important"}}};function bl({defaultActive:e,className:n="",options:t,size:r=100,onChange:i,show:s,width:a,tipPlace:l="top",borderRadius:c="var(--bf-bdr-radius-sm)",activeShow:h,noShadow:u,defaultItmWidth:d,wideTab:m,h:w,variant:S="default"}){var F;const{css:j}=ne(),I=Number(r),T=$=>Math.floor(I/$),C=Ns[S]||Ns.default,g={wrapper:y({ta:"center"},a&&{w:a}),tabs:y({fs:13,flx:"center",py:1.5,px:3,ls:"none",brs:c,pn:"relative","& .active":C.active,"& button":{bd:"none",oe:"none",b:"none"}},C.tabs),selector:y({w:0,h:"80%",dy:"inline-block",pn:"absolute",lt:5,tp:"50%",tm:"translatey(-50%)",zx:1,brs:c-2,tdn:"0.3s",ttf:"cubic-bezier(0.42, 0.44, 0.57, 1.35)",willChange:"transform"},C.selector),tab_link:B(y({curp:1,td:"none",fw:500,pn:"relative",p:0,zx:1,mnh:24,w:m?"100%":24,h:m?30:24,brs:c,flx:"center",tdy:"0.3s",tdn:"0.6s","transition-property":"color"},C.tabLink),{":focus-visible":{oe:"2px solid var(--b-50)"},"& .icn":{mr:s!=null&&s.includes("label")?T(20):0,lh:"75%",flx:"center"}})},f=M.useRef(null),b=M.useRef({}),p=M.useRef(null),[x,N]=M.useState(e||((F=t[0])==null?void 0:F.label)||"");M.useEffect(()=>{x!==e&&e&&N(e)},[e]),M.useLayoutEffect(()=>{var E;const $=(E=p==null?void 0:p.current)==null?void 0:E.querySelector(`[data-label="${x}"]`);if($){const{width:k}=$.getBoundingClientRect()||{width:0};if(!f.current)return;f.current.style.width===""?(b.current.transition=f.current.style.transition,f.current.style.transition="all 0s"):f.current.style.transition=b.current.transition||"",f.current.style.width=`${k}px`,f.current.style.transform=`translate(${$.offsetLeft-5}px, -50%)`}else f.current&&(f.current.style.width="0px",f.current.style.transform="translate(0px, -50%)")});const A=($,E)=>{var H;if($.preventDefault(),$.type==="keydown"){const z=$;if(z.code!=="Space"&&z.code!=="Enter")return}const k=$.currentTarget;if($.type!=="keydown"&&$.type!=="click")return;const P=(H=p.current)==null?void 0:H.querySelector(".tabs button.active");k!==P&&(P==null||P.classList.remove("active"),N(t[E].label)),i&&i(t[E].label)},O=($,E)=>!!($[E]&&(h&&x===$.label&&h.includes(E)||s&&s.includes(E)||!s&&!h));return o.jsx("div",{className:`${j(g.wrapper)} ${n}`,children:o.jsxs("div",{ref:p,className:`${j(g.tabs)} tabs`,style:{height:w},children:[o.jsx("div",{ref:f,className:`selector ${j(g.selector)}`,style:{width:d}}),t==null?void 0:t.map(($,E)=>{const k=o.jsxs("button",{type:"button",className:`${j(g.tab_link)} ${x===$.label?" active":""}`,onClick:P=>A(P,E),onKeyDown:P=>A(P,E),"data-label":$.label,"data-testid":`${Mi($.label)}-tab`,children:[O($,"icn")&&o.jsx("span",{className:`icn ${j(g.icn)} ${x===$.label?j(g.segment_img):""}`,children:$.icn}),O($,"label")&&_($.label)]},`segment-option-${E*10}`);return $.tip?o.jsx(Ie,{className:`${j({w:"100%",dy:"inline-block"})} segment-tip`,msg:$.tip,place:l,whiteSpaceNowrap:!0,theme:"light-border",delay:300,children:k},`segment-option-${E*100}`):k})]})})}const tm=_t(()=>qe(()=>import("./bf-214-231.js"),["./bf-214-231.js","./main-294.js","./main-294.css","./bf-636-181.js","./bf-729-273.js","./bf-487-72.js","./bf-176-80.js","./bf-293-475.css","./bf-867-113.js","./bf-890-474.css","./bf-383-274.js","./bf-112-250.js","./bf-934-246.js","./bf-22-244.js"],import.meta.url),{fallback:o.jsx(em,{})});function nm(){var O;const{css:e}=ne(),{"*":n}=xe(),t=(O=n.split("/"))==null?void 0:O[0],{darkModeConfig:r}=ce(Js),[i,s]=Y(Vr),a=ce(lt),l=ce(Ii),c=re(Ii),[h,u]=M.useState(!1),[d,m]=M.useState(!1),[w,S]=M.useState("Builder Settings"),[j,I]=M.useState("fld-settings"),[T,C]=M.useState("Fields"),f=ce(Xs).respectLGLayoutOrder,b=re(lt),p=ce(Qi);M.useEffect(()=>{t.match(/fields-list|field-settings/)&&((i.styleMode||i.inspectMode)&&s(F=>B(y({},F),{styleMode:!1,inspectMode:!1})),I("fld-settings"),C("Fields")),t.match(/themes|style|field-theme-customize|theme-customize/)&&(i.styleMode||s(F=>B(y({},F),{styleMode:!0})),I("theme-customize"),C("Style"))},[t]);const x=()=>{s(F=>B(y({},F),{inspectMode:!F.inspectMode}))},N=()=>{c(F=>F==="light"?"dark":"light")},A=F=>{b(F),K(X("","","Breakpoint",F,{breakpoint:F}))};return o.jsxs("div",{className:e(pe.optionToolBar),children:[o.jsxs("div",{className:e(pe.form_section),children:[o.jsx("div",{className:e(v.flxc),children:o.jsxs(wc,{children:[o.jsx(q0,{}),o.jsx("div",{className:e(pe.border_right)}),i.styleMode&&o.jsx(Ie,{msg:o.jsxs("div",{className:e(pe.inspectTooltipContainer),children:[o.jsx("div",{className:e(pe.inspectTooltipTitle),children:"Inspect Element"}),o.jsx("div",{className:e(pe.inspectTooltipText),children:"Hover + Click to select common elements"}),o.jsxs("div",{className:e(pe.inspectTooltipText),children:["Hold"," ",o.jsx("kbd",{className:e(pe.inspectTooltipKbd),children:"Ctrl"})," ","(",o.jsx("kbd",{className:e(pe.inspectTooltipKbd),children:"⌘"})," ","on Mac) to select individual element"]})]}),hideOnClick:!0,visible:i.styleMode?void 0:!1,children:o.jsxs("button",{"data-testid":"inspect-element",onClick:x,type:"button",className:`${e([pe.icn_btn,v.icn_hover,pe.inspectBtn])} ${i.inspectMode?"active":""}`,children:[o.jsx(q1,{size:"20"}),"Inspect"]})},"inspect-mode-tip")]})}),o.jsxs("div",{className:e(pe.option_section),children:[o.jsx(bl,{width:130,wideTab:!0,show:["icn"],tipPlace:"bottom",defaultActive:a,onChange:A,className:e(v.mr1),variant:"clean-tertiary",options:[{icn:o.jsx("span",{className:e(pe.respIcnWrp),children:o.jsx(ca,{size:23})}),label:"sm",tip:"Small Screen View"},{icn:o.jsx("span",{className:e(pe.respIcnWrp),children:o.jsx(la,{size:22})}),label:"md",tip:"Medium Screen View"},{icn:o.jsx("span",{className:e(pe.respIcnWrp),children:o.jsx(aa,{size:29,stroke:1.6})}),label:"lg",tip:"Large Screen View"}]}),o.jsxs(jr,{place:"bottom-end",onShow:()=>u(!0),onHide:()=>u(!1),children:[o.jsx("button",{className:`${e([pe.icn_btn,v.icn_hover])} ${h?"active":""}`,type:"button",title:f?p==="in-sync"?_("Layouts are in sync"):_("Layouts will sync on breakpoint switch or form update."):_("Layout sync settings"),children:o.jsx(X1,{size:24,stroke:1.5,syncState:f?p:"disabled"})}),o.jsx(J1,{})]}),o.jsx("div",{className:e(pe.border_right)})]}),o.jsxs("div",{className:e(pe.option_section),children:[!((r==null?void 0:r.darkModeSelector)===""&&!(r!=null&&r.preferSystemColorScheme))&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:e(pe.border_right)}),o.jsx(ot,{width:90,wideTab:!0,show:["icn"],tipPlace:"bottom",defaultActive:l,onChange:N,options:[{icn:o.jsx(Z1,{size:"19"}),label:"light",tip:"Light Mode"},{icn:o.jsx(Y1,{size:"19"}),label:"dark",tip:"Dark Mode"}]})]}),o.jsx("div",{className:e(pe.border_right)}),o.jsx(Ie,{msg:"Builder Settings",children:o.jsx("button",{"data-testid":"custom-css-js",className:`${e([pe.icn_btn,v.icn_hover])}`,onClick:()=>m(!0),type:"button",children:o.jsx(zi,{size:22})})})]})]}),o.jsxs(Wl,{md:!0,autoHeight:!0,show:d,setModal:m,className:"o-v",title:o.jsx("div",{className:e(pe.modalTitleBar),children:o.jsx(ot,{width:300,wideTab:!0,tipPlace:"bottom",defaultActive:w,onChange:S,options:[{label:"Builder Settings"},{label:"Custom Code"}]})}),closeOnOutsideClick:!1,children:[o.jsx(it,{open:w==="Builder Settings",children:o.jsx(xc,{})}),o.jsx(it,{open:w==="Custom Code",children:o.jsx(tm,{})})]})]})}var rm=`.tippy-box[data-animation=shift-away-extreme][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-away-extreme][data-state=hidden][data-placement^=top]{transform:translateY(20px)}.tippy-box[data-animation=shift-away-extreme][data-state=hidden][data-placement^=bottom]{transform:translateY(-20px)}.tippy-box[data-animation=shift-away-extreme][data-state=hidden][data-placement^=left]{transform:translate(20px)}.tippy-box[data-animation=shift-away-extreme][data-state=hidden][data-placement^=right]{transform:translate(-20px)} |
| 69 |
`,im=`.tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:#333;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute} |
| 70 |
`,om=`.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1} |
| 71 |
`,sm=`.tippy-box[data-theme~=light-border]{background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,8,16,.15);color:#333;box-shadow:0 4px 14px -2px #00081014}.tippy-box[data-theme~=light-border]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light-border]>.tippy-arrow:after,.tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{content:"";position:absolute;z-index:-1}.tippy-box[data-theme~=light-border]>.tippy-arrow:after{border-color:transparent;border-style:solid}.tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after{border-top-color:#00081033;border-width:7px 7px 0;top:17px;left:1px}.tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg{top:16px}.tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after{top:17px}.tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff;bottom:16px}.tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after{border-bottom-color:#00081033;border-width:0 7px 7px;bottom:17px;left:1px}.tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after{bottom:17px}.tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after{border-left-color:#00081033;border-width:7px 0 7px 7px;left:17px;top:1px}.tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg{left:11px}.tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after{left:12px}.tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff;right:16px}.tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after{border-width:7px 7px 7px 0;right:17px;top:1px;border-right-color:#00081033}.tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg{right:11px}.tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after{right:12px}.tippy-box[data-theme~=light-border]>.tippy-svg-arrow{fill:#fff}.tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);background-size:16px 6px;width:16px;height:6px} |
| 72 |
`;function am(){const e={div([r]){return r}};M.useEffect(()=>{var s,a;const r=Sr("#bf-font-0-css"),i=Sr("#bf-font-1-css");r&&i&&((a=(s=document.getElementById("bit-grid-layout"))==null?void 0:s.contentWindow)==null||a.document.head.appendChild(document.importNode(r)).appendChild(document.importNode(i)))},[]);const n=e.div` |
| 73 |
:root { |
| 74 |
--b-50: #006aff; |
| 75 |
--g-41: #00faa7; |
| 76 |
--white-base: 0; |
| 77 |
--white-100: hsla(var(--white-base), 0%, 100%, 100%); /* #FFFFFF White*/ |
| 78 |
--white-0-95: hsla(var(--white-base), 0%, 95%, 100%); /* #F2F2F2 White 95% */ |
| 79 |
--white-0-90: hsla(var(--white-base), 0%, 90%, 100%); /* #E6E6E6 White 90% */ |
| 80 |
--white-0-80: hsla(var(--white-base), 0%, 80%, 100%); /* #CCCCCC Light Gray */ |
| 81 |
--white-0-0-12: hsla(var(--white-base), 0%, 0%, 12%); /* #000000 Black 12% */ |
| 82 |
--white-0-0-8: hsla(var(--white-base), 0%, 0%, 8%); /* #000000 Black 8% */ |
| 83 |
--white-0-93: hsla(var(--white-base), 0%, 93%, 100%); /* #EEEEEE Light Gray */ |
| 84 |
--black-0: hsla(var(--white-base), 0%, 0%, 100%); /* #000000 Black */ |
| 85 |
--red-83-54: hsla(var(--white-base), 83%, 54%, 100%); /* #E02424 Red 83% */ |
| 86 |
--red-100-49: hsla(var(--white-base), 100%, 49%, 100%); /* #FF0000 Red 100% */ |
| 87 |
|
| 88 |
--bf-font-family-base: 'DM Sans', sans-serif; |
| 89 |
|
| 90 |
--bf-stroke-clr: #D9E3EB; |
| 91 |
--bf-primary-500: #3B82F6; |
| 92 |
--bf-tertiary-600: #3B486B; |
| 93 |
--bf-tertiary-700: #2C3656; |
| 94 |
--bf-tertiary-800: #1E253F; |
| 95 |
|
| 96 |
--bf-text-clr-darkgray: #56585d; |
| 97 |
|
| 98 |
--bf-clr-ghostwhite: #e6e6e6; |
| 99 |
--bf-clr-lightgray: #f0f0f0; |
| 100 |
--bf-clr-gray: #888888; |
| 101 |
|
| 102 |
--bf-bg-bluishwhite: #f5f8ff; |
| 103 |
|
| 104 |
--bf-bdr-radius-sm: 4px; |
| 105 |
--bf-bdr-radius-md: 6px; |
| 106 |
} |
| 107 |
|
| 108 |
body { |
| 109 |
margin: 0; |
| 110 |
padding: 0; |
| 111 |
box-sizing: border-box; |
| 112 |
font-family: sans-serif; |
| 113 |
} |
| 114 |
body *{ |
| 115 |
box-sizing: border-box !important; |
| 116 |
} |
| 117 |
|
| 118 |
.custom-conf-mdl { |
| 119 |
display: block !important; |
| 120 |
text-align: left; |
| 121 |
} |
| 122 |
|
| 123 |
.tippy-box[data-theme~=light-border] { |
| 124 |
box-shadow: 0 3px 6px -1px #00000026, 0 4px 35px -12px rgb(0 8 16 / 32%) !important; |
| 125 |
} |
| 126 |
|
| 127 |
.tippy-box { |
| 128 |
border-radius: .8em !important; |
| 129 |
} |
| 130 |
|
| 131 |
.tippy-backdrop { |
| 132 |
background: var(--dp-blue-bg) !important; |
| 133 |
} |
| 134 |
.isDragging { |
| 135 |
box-shadow: inset 0 0 4px 1px var(--b-50); |
| 136 |
} |
| 137 |
.isDragging .layout{ |
| 138 |
min-height: calc(100vh - 40px); |
| 139 |
} |
| 140 |
|
| 141 |
.builder_dark_mode { |
| 142 |
background: var(--black-0) !important; |
| 143 |
} |
| 144 |
|
| 145 |
.layout { |
| 146 |
overflow: visible; |
| 147 |
} |
| 148 |
|
| 149 |
.loader{ |
| 150 |
background: rgb(255, 255, 255); |
| 151 |
background-image: linear-gradient(90deg, #e9e9e9 0px, #f7f7f7 30px, #ebebeb 60px); |
| 152 |
background-size: 200%; |
| 153 |
animation: skeleton .6s infinite ease-out; |
| 154 |
} |
| 155 |
|
| 156 |
.empty-layout-msg { |
| 157 |
padding: 10px; |
| 158 |
text-align: center; |
| 159 |
} |
| 160 |
|
| 161 |
.empty-layout-add-btn { |
| 162 |
display:inline-flex !important; |
| 163 |
transform: none !important; |
| 164 |
opacity: 1 !important; |
| 165 |
visibility: visible !important; |
| 166 |
margin-top: 5px; |
| 167 |
} |
| 168 |
|
| 169 |
@keyframes skeleton { |
| 170 |
0% { |
| 171 |
background-position: calc(100%); |
| 172 |
} |
| 173 |
60%, 100% { |
| 174 |
background-position: -100%; |
| 175 |
} |
| 176 |
} |
| 177 |
|
| 178 |
@keyframes slideUp { |
| 179 |
from { |
| 180 |
transform: translateY(100%); |
| 181 |
opacity: 0; |
| 182 |
} |
| 183 |
to { |
| 184 |
transform: translateY(0); |
| 185 |
opacity: 1; |
| 186 |
} |
| 187 |
} |
| 188 |
|
| 189 |
@keyframes slideDown { |
| 190 |
from { |
| 191 |
transform: translateY(0); |
| 192 |
opacity: 1; |
| 193 |
} |
| 194 |
to { |
| 195 |
transform: translateY(100%); |
| 196 |
opacity: 0; |
| 197 |
} |
| 198 |
} |
| 199 |
|
| 200 |
/* Sync warning banner */ |
| 201 |
.sync-warning-banner { |
| 202 |
position: fixed; |
| 203 |
bottom: 0; |
| 204 |
left: 0; |
| 205 |
right: 0; |
| 206 |
background-color: #FFF3CD; |
| 207 |
border: 1px solid #FFE69C; |
| 208 |
border-top: 2px solid #FFE69C; |
| 209 |
padding: 12px 16px; |
| 210 |
display: flex; |
| 211 |
align-items: center; |
| 212 |
justify-content: space-between; |
| 213 |
z-index: 9999; |
| 214 |
font-size: 13px; |
| 215 |
color: #856404; |
| 216 |
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); |
| 217 |
animation: slideUp 0.3s ease-out; |
| 218 |
} |
| 219 |
|
| 220 |
.sync-warning-banner__message { |
| 221 |
display: flex; |
| 222 |
align-items: center; |
| 223 |
gap: 8px; |
| 224 |
} |
| 225 |
|
| 226 |
.sync-warning-banner__icon { |
| 227 |
font-size: 18px; |
| 228 |
} |
| 229 |
|
| 230 |
.sync-warning-banner__close { |
| 231 |
background: none; |
| 232 |
border: none; |
| 233 |
font-size: 24px; |
| 234 |
cursor: pointer; |
| 235 |
padding: 0 8px; |
| 236 |
color: #856404; |
| 237 |
line-height: 1; |
| 238 |
font-weight: bold; |
| 239 |
} |
| 240 |
|
| 241 |
.sync-warning-banner__close:hover { |
| 242 |
opacity: 0.8; |
| 243 |
} |
| 244 |
|
| 245 |
.sync-warning-banner__close:focus-visible { |
| 246 |
outline: 2px solid #856404; |
| 247 |
outline-offset: 2px; |
| 248 |
border-radius: 4px; |
| 249 |
} |
| 250 |
|
| 251 |
.itm-focus { |
| 252 |
// outline: 3px solid var(--b-50); |
| 253 |
// outline: 2px solid var(--bf-tertiary-600); |
| 254 |
outline: 1px dashed var(--bf-stroke-clr); |
| 255 |
background-color: var(--bf-bg-bluishwhite); |
| 256 |
z-index: 9 |
| 257 |
} |
| 258 |
|
| 259 |
.blk { |
| 260 |
border-radius: var(--bf-bdr-radius-sm); |
| 261 |
} |
| 262 |
|
| 263 |
.blk:focus:not(.itm-focus) { |
| 264 |
z-index: 9; |
| 265 |
// outline: 3px solid var(--g-41) |
| 266 |
} |
| 267 |
|
| 268 |
.blk:hover:not(.itm-focus) { |
| 269 |
z-index: 999; |
| 270 |
} |
| 271 |
|
| 272 |
.blk:focus > .blk-icn-wrp,.blk:hover > .blk-icn-wrp { |
| 273 |
visibility: visible; |
| 274 |
} |
| 275 |
|
| 276 |
.blk:focus > .blk-icn-wrp,.itm-focus > .blk-icn-wrp { |
| 277 |
top: -25px; |
| 278 |
right: 0px; |
| 279 |
} |
| 280 |
|
| 281 |
.blk:not(.itm-focus):hover:not(:focus) > .blk-icn-wrp { |
| 282 |
top: -24px; |
| 283 |
right: 0px; |
| 284 |
} |
| 285 |
|
| 286 |
.blk:focus > .blk-icn-wrp button,.blk:focus > .react-resizable-handle,.blk:hover > .blk-icn-wrp button,.blk:hover > .react-resizable-handle,.itm-focus > .blk-icn-wrp button,.itm-focus > .react-resizable-handle { |
| 287 |
transform: scale(1) |
| 288 |
} |
| 289 |
|
| 290 |
.tip-btn { |
| 291 |
display:inline-flex; |
| 292 |
justify-content: center; |
| 293 |
align-items: center; |
| 294 |
// font-family: "Outfit", sans-serif; |
| 295 |
font-family: var(--bf-font-family-base); |
| 296 |
border: 0; |
| 297 |
padding: 6px 15px; |
| 298 |
font-weight: 600; |
| 299 |
border-radius: 12px; |
| 300 |
cursor: pointer; |
| 301 |
background: var(--white-0-93); |
| 302 |
border: 1px solid var(--white-0-86) |
| 303 |
} |
| 304 |
|
| 305 |
.tip-btn:hover { |
| 306 |
background: var(--white-0-0-12) |
| 307 |
} |
| 308 |
|
| 309 |
.red-btn { |
| 310 |
background: var(--red-100-49); |
| 311 |
color: var(--white-100); |
| 312 |
border: 1px solid var(--crimson); |
| 313 |
text-shadow: 0 .5px 1px #101010b5 |
| 314 |
} |
| 315 |
|
| 316 |
.red-btn:hover { |
| 317 |
background: var(--red-83-54) |
| 318 |
} |
| 319 |
|
| 320 |
.resize-txt { |
| 321 |
position: absolute; |
| 322 |
top: -25px; |
| 323 |
font-size: 12px; |
| 324 |
padding: 3px 6px; |
| 325 |
background-color: #a5a5afbd; |
| 326 |
border-radius: 10px; |
| 327 |
z-index: 1; |
| 328 |
} |
| 329 |
|
| 330 |
.blk-icn-wrp { |
| 331 |
background-color: var(--bf-tertiary-600); |
| 332 |
color: white; |
| 333 |
right: 0; |
| 334 |
top: -24px; |
| 335 |
visibility: hidden; |
| 336 |
border-top-left-radius: var(--bf-bdr-radius-sm); |
| 337 |
border-top-right-radius: var(--bf-bdr-radius-sm); |
| 338 |
} |
| 339 |
|
| 340 |
.blk-wrp-btn { |
| 341 |
background: none; |
| 342 |
color: var(--white-100); |
| 343 |
cursor: pointer; |
| 344 |
outline: 0; |
| 345 |
width: 25px; |
| 346 |
height: 25px; |
| 347 |
border-radius: 7px; |
| 348 |
border: 0; |
| 349 |
display: flex; |
| 350 |
align-items: center; |
| 351 |
justify-content: center; |
| 352 |
filter: drop-shadow(0px 1px .7px #00000032); |
| 353 |
transition: background .2s ease-in-out; |
| 354 |
} |
| 355 |
|
| 356 |
.blk-wrp-btn:hover { |
| 357 |
background: hsl(215deg 100% 40%); |
| 358 |
} |
| 359 |
|
| 360 |
.blk-wrp-btn:focus-visible { |
| 361 |
box-shadow: 0 0 0 2px var(--b-50) inset |
| 362 |
} |
| 363 |
|
| 364 |
.blk-wrp-add-btn { |
| 365 |
|
| 366 |
bottom: -10px; |
| 367 |
left: 50%; |
| 368 |
cursor: pointer; |
| 369 |
background: var(--white-100); |
| 370 |
color: var(--bf-text-clr-darkgray); |
| 371 |
padding: 5px 10px; |
| 372 |
font-size: 13px; |
| 373 |
font-weight: 500; |
| 374 |
border-radius: var(--bf-bdr-radius-sm); |
| 375 |
border: 1px solid var(--bf-stroke-clr); |
| 376 |
display: flex; |
| 377 |
flex-direction: row; |
| 378 |
align-items: center; |
| 379 |
transform: translateX(-50%); |
| 380 |
opacity: 0; |
| 381 |
visibility: hidden; |
| 382 |
transition: all .3s ease-in-out; |
| 383 |
filter: drop-shadow(0px 1px .7px #00000032); |
| 384 |
} |
| 385 |
.blk-wrp-add-btn:hover { |
| 386 |
background: var(--bf-tertiary-600); |
| 387 |
font-weight: 500; |
| 388 |
color: var(--white-100); |
| 389 |
border-color: var(--bf-tertiary-600); |
| 390 |
} |
| 391 |
|
| 392 |
.blk-wrp-add-btn:active { |
| 393 |
background: var(--bf-tertiary-800); |
| 394 |
} |
| 395 |
.blk:hover > .blk-wrp-add-btn, .blk.add-field-picker-opened > .blk-wrp-add-btn { |
| 396 |
visibility: visible; |
| 397 |
opacity: 1; |
| 398 |
} |
| 399 |
|
| 400 |
.blk.add-field-picker-opened > .blk-wrp-add-btn { |
| 401 |
background: var(--bf-tertiary-600); |
| 402 |
border-color: var(--bf-tertiary-600); |
| 403 |
color: var(--white-100); |
| 404 |
} |
| 405 |
|
| 406 |
/* FieldPickerModal.css */ |
| 407 |
|
| 408 |
/* Container */ |
| 409 |
.field-picker-modal { |
| 410 |
width: 100%; |
| 411 |
height: 100%; |
| 412 |
display: flex; |
| 413 |
flex-direction: column; |
| 414 |
padding: 0px 10px; |
| 415 |
container-type: inline-size; |
| 416 |
padding: 15px; |
| 417 |
} |
| 418 |
|
| 419 |
|
| 420 |
/* Search Section */ |
| 421 |
.fpm__search-section { |
| 422 |
flex-shrink: 0; |
| 423 |
} |
| 424 |
|
| 425 |
.field-picker-modal__search-container { |
| 426 |
position: relative; |
| 427 |
width: 100%; |
| 428 |
} |
| 429 |
|
| 430 |
.field-picker-modal__search-input { |
| 431 |
width: 100%; |
| 432 |
padding: 12px 40px; |
| 433 |
font-size: 14px; |
| 434 |
border: 1px solid var(--bf-stroke-clr); |
| 435 |
border-radius: var(--bf-bdr-radius-sm); |
| 436 |
outline: none; |
| 437 |
transition: border-color 0.2s ease; |
| 438 |
} |
| 439 |
|
| 440 |
.field-picker-modal__search-input:focus { |
| 441 |
box-shadow: 0 0 0 2px var(--bf-tertiary-600); |
| 442 |
} |
| 443 |
|
| 444 |
.field-picker-modal__search-input::-webkit-input-placeholder { |
| 445 |
color: #9ca3af; |
| 446 |
} |
| 447 |
|
| 448 |
.field-picker-modal__search-input::-moz-placeholder { |
| 449 |
color: #9ca3af; |
| 450 |
} |
| 451 |
|
| 452 |
.field-picker-modal__search-input::placeholder { |
| 453 |
color: #9ca3af; |
| 454 |
} |
| 455 |
|
| 456 |
.field-picker-modal__search-icon { |
| 457 |
position: absolute; |
| 458 |
left: 12px; |
| 459 |
top: 50%; |
| 460 |
transform: translateY(-50%); |
| 461 |
color: #6b7280; |
| 462 |
pointer-events: none; |
| 463 |
} |
| 464 |
|
| 465 |
.field-picker-modal__clear-button { |
| 466 |
position: absolute; |
| 467 |
right: 12px; |
| 468 |
top: 50%; |
| 469 |
transform: translateY(-50%); |
| 470 |
background: transparent; |
| 471 |
border: none; |
| 472 |
color: #6b7280; |
| 473 |
cursor: pointer; |
| 474 |
font-size: 20px; |
| 475 |
line-height: 1; |
| 476 |
} |
| 477 |
|
| 478 |
.field-picker-modal__clear-button:hover { |
| 479 |
color: #374151; |
| 480 |
} |
| 481 |
|
| 482 |
.field-picker-modal__shortcut { |
| 483 |
position: absolute; |
| 484 |
right: 12px; |
| 485 |
top: 50%; |
| 486 |
transform: translateY(-50%); |
| 487 |
font-size: 11px; |
| 488 |
color: #9ca3af; |
| 489 |
background: #f3f4f6; |
| 490 |
padding: 2px 6px; |
| 491 |
border-radius: 4px; |
| 492 |
pointer-events: none; |
| 493 |
} |
| 494 |
|
| 495 |
/* Content */ |
| 496 |
.fpm__content { |
| 497 |
flex-grow: 1; |
| 498 |
padding-top: 15px; |
| 499 |
|
| 500 |
} |
| 501 |
|
| 502 |
|
| 503 |
/* Field Tabs Styles */ |
| 504 |
.field-tabs { |
| 505 |
width: 100%; |
| 506 |
} |
| 507 |
|
| 508 |
.field-tabs__content { |
| 509 |
height: 260px; |
| 510 |
overflow: auto; |
| 511 |
} |
| 512 |
|
| 513 |
.field-tabs__grid { |
| 514 |
padding-top: 5px; |
| 515 |
display: grid; |
| 516 |
grid-template-columns: repeat(2, 1fr); |
| 517 |
gap: 10px; |
| 518 |
} |
| 519 |
|
| 520 |
@container (max-width: 290px) { |
| 521 |
.field-tabs__grid { |
| 522 |
grid-template-columns: 1fr; |
| 523 |
} |
| 524 |
} |
| 525 |
|
| 526 |
.field-tabs__item { |
| 527 |
display: flex; |
| 528 |
height: 42px; |
| 529 |
align-items: center; |
| 530 |
padding: 8px 10px; |
| 531 |
border-radius: 4px; |
| 532 |
background: #ffffff; |
| 533 |
border: 1px solid #e2e8f0; |
| 534 |
cursor: pointer; |
| 535 |
transition: all 0.2s ease; |
| 536 |
max-width: 230px; |
| 537 |
} |
| 538 |
|
| 539 |
.field-tabs__item:hover { |
| 540 |
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); |
| 541 |
transform: translateY(-1px); |
| 542 |
border: 1px solid #cbd5e1; |
| 543 |
color: #060606; |
| 544 |
font-weight: 500; |
| 545 |
} |
| 546 |
|
| 547 |
.field-tabs__item:active { |
| 548 |
transform: translateY(0); |
| 549 |
} |
| 550 |
|
| 551 |
.field-tabs__icon { |
| 552 |
color: var(--bf-text-clr-darkgray); |
| 553 |
margin-right: 12px; |
| 554 |
flex-shrink: 0; |
| 555 |
display: flex; |
| 556 |
align-items: center; |
| 557 |
} |
| 558 |
|
| 559 |
.field-tabs__info { |
| 560 |
display: flex; |
| 561 |
flex-direction: column; |
| 562 |
flex-grow: 1; |
| 563 |
min-width: 0; |
| 564 |
} |
| 565 |
|
| 566 |
.field-tabs__name { |
| 567 |
font-size: 14px; |
| 568 |
color: var(--bf-text-clr-darkgray); |
| 569 |
margin: 0; |
| 570 |
overflow: hidden; |
| 571 |
text-overflow: ellipsis; |
| 572 |
white-space: nowrap; |
| 573 |
} |
| 574 |
|
| 575 |
|
| 576 |
.field-tabs__badges { |
| 577 |
display: flex; |
| 578 |
align-items: center; |
| 579 |
gap: 6px; |
| 580 |
// margin-left: 8px; |
| 581 |
} |
| 582 |
|
| 583 |
.field-tabs__empty-state { |
| 584 |
text-align: center; |
| 585 |
padding: 40px; |
| 586 |
color: #6b7280; |
| 587 |
} |
| 588 |
|
| 589 |
/* Search Results Styles */ |
| 590 |
.search-results { |
| 591 |
width: 100%; |
| 592 |
} |
| 593 |
|
| 594 |
.search-results__header { |
| 595 |
// margin-bottom: 16px; |
| 596 |
// padding-bottom: 12px; |
| 597 |
// border-bottom: 1px solid #e5e7eb; |
| 598 |
} |
| 599 |
|
| 600 |
|
| 601 |
.search-results__subtitle { |
| 602 |
font-size: 14px; |
| 603 |
color: #6b7280; |
| 604 |
margin-top: 4px; |
| 605 |
margin-bottom: 5; |
| 606 |
} |
| 607 |
|
| 608 |
.search-results__grid { |
| 609 |
display: grid; |
| 610 |
grid-template-columns: repeat(2, 1fr); |
| 611 |
gap: 12px; |
| 612 |
max-height: 300px; |
| 613 |
overflow: auto; |
| 614 |
padding-top: 5px; |
| 615 |
} |
| 616 |
|
| 617 |
@container (max-width: 290px) { |
| 618 |
.search-results__grid { |
| 619 |
grid-template-columns: 1fr; |
| 620 |
} |
| 621 |
} |
| 622 |
|
| 623 |
@container (width > 500px) { |
| 624 |
.search-results__grid { |
| 625 |
grid-template-columns: repeat(3, 1fr); |
| 626 |
} |
| 627 |
} |
| 628 |
|
| 629 |
.search-results__item { |
| 630 |
display: flex; |
| 631 |
align-items: center; |
| 632 |
padding: 6px 10px; |
| 633 |
border-radius: 8px; |
| 634 |
background: #ffffff; |
| 635 |
border: 1px solid #e2e8f0; |
| 636 |
cursor: pointer; |
| 637 |
transition: all 0.2s ease; |
| 638 |
} |
| 639 |
|
| 640 |
.search-results__item:hover { |
| 641 |
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); |
| 642 |
transform: translateY(-1px); |
| 643 |
border: 1px solid #cbd5e1; |
| 644 |
} |
| 645 |
|
| 646 |
.search-results__item:active { |
| 647 |
transform: translateY(0); |
| 648 |
} |
| 649 |
|
| 650 |
.search-results__icon { |
| 651 |
margin-right: 12px; |
| 652 |
flex-shrink: 0; |
| 653 |
display: flex; |
| 654 |
align-items: center; |
| 655 |
} |
| 656 |
|
| 657 |
.search-results__info { |
| 658 |
display: flex; |
| 659 |
flex-direction: column; |
| 660 |
flex-grow: 1; |
| 661 |
min-width: 0; |
| 662 |
} |
| 663 |
|
| 664 |
.search-results__name { |
| 665 |
font-size: 14px; |
| 666 |
font-weight: 500; |
| 667 |
color: #1f2937; |
| 668 |
margin: 0; |
| 669 |
overflow: hidden; |
| 670 |
text-overflow: ellipsis; |
| 671 |
white-space: nowrap; |
| 672 |
} |
| 673 |
|
| 674 |
.search-results__meta { |
| 675 |
display: flex; |
| 676 |
align-items: center; |
| 677 |
margin-top: 4px; |
| 678 |
gap: 8px; |
| 679 |
} |
| 680 |
|
| 681 |
.search-results__category { |
| 682 |
font-size: 11px; |
| 683 |
color: #6b7280; |
| 684 |
background: #f3f4f6; |
| 685 |
padding: 2px 6px; |
| 686 |
border-radius: 4px; |
| 687 |
text-transform: capitalize; |
| 688 |
} |
| 689 |
|
| 690 |
.search-results__badges { |
| 691 |
display: flex; |
| 692 |
align-items: center; |
| 693 |
gap: 6px; |
| 694 |
margin-left: 8px; |
| 695 |
} |
| 696 |
|
| 697 |
|
| 698 |
.search-results__empty-state { |
| 699 |
text-align: center; |
| 700 |
padding: 5px 10px; |
| 701 |
} |
| 702 |
|
| 703 |
|
| 704 |
.search-results__empty-description { |
| 705 |
font-size: 14px; |
| 706 |
color: #6b7280; |
| 707 |
line-height: 1.5; |
| 708 |
|
| 709 |
width: 100%; |
| 710 |
text-align: center; |
| 711 |
margin: 0 auto; |
| 712 |
} |
| 713 |
|
| 714 |
/* Search highlighting */ |
| 715 |
.search-results mark { |
| 716 |
background-color: #fef3c7; |
| 717 |
padding: 1px 2px; |
| 718 |
border-radius: 2px; |
| 719 |
} |
| 720 |
|
| 721 |
|
| 722 |
|
| 723 |
/* ===================================== */ |
| 724 |
/* Positioned Modal Styles (New Component) */ |
| 725 |
/* ===================================== */ |
| 726 |
|
| 727 |
.positioned-modal-backdrop.modal-backdrop { |
| 728 |
position: fixed; |
| 729 |
top: 0; |
| 730 |
left: 0; |
| 731 |
width: 100%; |
| 732 |
height: 100%; |
| 733 |
background: transparent; |
| 734 |
z-index: 1000; |
| 735 |
backdrop-filter: blur(1px); |
| 736 |
} |
| 737 |
|
| 738 |
.positioned-modal-content { |
| 739 |
position: absolute; |
| 740 |
background: #ffffff; |
| 741 |
border-radius: 6px; |
| 742 |
box-shadow: |
| 743 |
0 20px 25px -5px rgba(0, 0, 0, 0.1), |
| 744 |
0 10px 10px -5px rgba(0, 0, 0, 0.04), |
| 745 |
0 0 0 1px rgba(0, 0, 0, 0.05); |
| 746 |
overflow: hidden; |
| 747 |
display: flex; |
| 748 |
flex-direction: column; |
| 749 |
border: 1px solid #e5e7eb; |
| 750 |
z-index: 1001; |
| 751 |
transition: all 0.2s ease; |
| 752 |
} |
| 753 |
|
| 754 |
.positioned-modal-close { |
| 755 |
position: absolute; |
| 756 |
top: 12px; |
| 757 |
right: 12px; |
| 758 |
background: rgba(243, 244, 246, 0.8); |
| 759 |
backdrop-filter: blur(4px); |
| 760 |
border: none; |
| 761 |
border-radius: 6px; |
| 762 |
width: 28px; |
| 763 |
height: 28px; |
| 764 |
display: flex; |
| 765 |
align-items: center; |
| 766 |
justify-content: center; |
| 767 |
cursor: pointer; |
| 768 |
transition: all 0.2s ease; |
| 769 |
z-index: 10; |
| 770 |
} |
| 771 |
|
| 772 |
.positioned-modal-close:hover { |
| 773 |
background: rgba(229, 231, 235, 0.9); |
| 774 |
transform: scale(1.05); |
| 775 |
} |
| 776 |
|
| 777 |
.positioned-modal-header { |
| 778 |
padding: 16px 48px 12px 16px; /* Right padding for close button */ |
| 779 |
border-bottom: 1px solid #f3f4f6; |
| 780 |
flex-shrink: 0; |
| 781 |
} |
| 782 |
|
| 783 |
.positioned-modal-title { |
| 784 |
font-size: 18px; |
| 785 |
font-weight: 600; |
| 786 |
color: #1f2937; |
| 787 |
margin: 0; |
| 788 |
} |
| 789 |
|
| 790 |
.positioned-modal-subtitle { |
| 791 |
font-size: 13px; |
| 792 |
color: #6b7280; |
| 793 |
margin: 4px 0 0 0; |
| 794 |
} |
| 795 |
|
| 796 |
.positioned-modal-body { |
| 797 |
flex-grow: 1; |
| 798 |
// overflow: auto; |
| 799 |
// min-height: 0; |
| 800 |
} |
| 801 |
|
| 802 |
/* ===================================== */ |
| 803 |
/* Field Builder Specific Styles */ |
| 804 |
/* ===================================== */ |
| 805 |
|
| 806 |
|
| 807 |
/* Responsive adjustments */ |
| 808 |
@media (max-width: 768px) { |
| 809 |
.positioned-modal-content { |
| 810 |
width: calc(100vw - 32px) !important; |
| 811 |
max-width: none !important; |
| 812 |
left: 16px !important; |
| 813 |
right: 16px !important; |
| 814 |
max-height: calc(100vh - 32px); |
| 815 |
} |
| 816 |
|
| 817 |
.btcd-modal { |
| 818 |
width: calc(100vw - 32px) !important; |
| 819 |
max-width: none !important; |
| 820 |
margin: 16px; |
| 821 |
} |
| 822 |
|
| 823 |
.btcd-modal-content { |
| 824 |
width: 100% !important; |
| 825 |
} |
| 826 |
.field-tabs__item{ |
| 827 |
max-width: none; |
| 828 |
} |
| 829 |
} |
| 830 |
|
| 831 |
|
| 832 |
.positioned-modal-close:focus-visible { |
| 833 |
outline: 2px solid #3b82f6; |
| 834 |
outline-offset: 1px; |
| 835 |
} |
| 836 |
|
| 837 |
/* ===================================== */ |
| 838 |
/* TabsView Styles - Tertiary-Segment Variant */ |
| 839 |
/* ===================================== */ |
| 840 |
|
| 841 |
.tabs-container { |
| 842 |
display: flex; |
| 843 |
flex-direction: column; |
| 844 |
height: 100%; |
| 845 |
} |
| 846 |
|
| 847 |
/* Header Wrapper - Segmented Control Container */ |
| 848 |
.tabs-header-wrapper { |
| 849 |
position: relative; |
| 850 |
display: flex; |
| 851 |
align-items: center; |
| 852 |
padding: 4px; |
| 853 |
border-radius: var(--bf-bdr-radius-md); |
| 854 |
border: 1px solid var(--bf-stroke-clr); |
| 855 |
} |
| 856 |
|
| 857 |
/* Navigation Button */ |
| 858 |
.tabs-nav-button { |
| 859 |
padding: 0; |
| 860 |
position: absolute; |
| 861 |
top: 50%; |
| 862 |
transform: translateY(-50%); |
| 863 |
z-index: 10; |
| 864 |
display: flex; |
| 865 |
align-items: center; |
| 866 |
justify-content: center; |
| 867 |
width: 25px; |
| 868 |
height: 25px; |
| 869 |
border: none; |
| 870 |
cursor: pointer; |
| 871 |
transition: all 0.2s ease; |
| 872 |
outline: none; |
| 873 |
background-color: #ffffff; |
| 874 |
color: var(--bf-clr-gray); |
| 875 |
border-radius: var(--bf-bdr-radius-sm); |
| 876 |
border: 1px solid var(--bf-stroke-clr); |
| 877 |
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); |
| 878 |
} |
| 879 |
|
| 880 |
.tabs-nav-button:hover { |
| 881 |
background-color: var(--bf-clr-lightgray); |
| 882 |
color: var(--bf-text-clr-dark); |
| 883 |
border-color: var(--bf-bdr-clr-light); |
| 884 |
} |
| 885 |
|
| 886 |
.tabs-nav-button:focus-visible { |
| 887 |
outline: 2px solid var(--bf-tertiary-600); |
| 888 |
outline-offset: 2px; |
| 889 |
} |
| 890 |
|
| 891 |
.tabs-nav-button:disabled { |
| 892 |
opacity: 0; |
| 893 |
pointer-events: none; |
| 894 |
visibility: hidden; |
| 895 |
} |
| 896 |
|
| 897 |
/* Prev and Next Buttons */ |
| 898 |
.tabs-prev-button { |
| 899 |
left: 4px; |
| 900 |
} |
| 901 |
|
| 902 |
.tabs-next-button { |
| 903 |
right: 4px; |
| 904 |
} |
| 905 |
|
| 906 |
/* Tab Header Container */ |
| 907 |
.tabs-header-container { |
| 908 |
flex: 1; |
| 909 |
position: relative; |
| 910 |
overflow: hidden; |
| 911 |
} |
| 912 |
|
| 913 |
/* Tab Header */ |
| 914 |
.tabs-header { |
| 915 |
display: flex; |
| 916 |
gap: 4px; |
| 917 |
position: relative; |
| 918 |
overflow-x: auto; |
| 919 |
overflow-y: hidden; |
| 920 |
scroll-behavior: smooth; |
| 921 |
scrollbar-width: none; /* Firefox */ |
| 922 |
-ms-overflow-style: none; /* IE/Edge */ |
| 923 |
background-color: transparent; |
| 924 |
border-bottom: none; |
| 925 |
padding: 0; |
| 926 |
} |
| 927 |
|
| 928 |
.tabs-header::-webkit-scrollbar { |
| 929 |
display: none; /* Chrome/Safari */ |
| 930 |
} |
| 931 |
|
| 932 |
/* Tab Button - Segmented Control Style */ |
| 933 |
.tab-button { |
| 934 |
padding: 7px 20px; |
| 935 |
border: none; |
| 936 |
background-color: transparent; |
| 937 |
cursor: pointer; |
| 938 |
position: relative; |
| 939 |
transition: color 0.2s ease, background-color 0.2s ease; |
| 940 |
z-index: 2; |
| 941 |
outline: none; |
| 942 |
white-space: nowrap; |
| 943 |
flex: 1; |
| 944 |
color: #6b7280; |
| 945 |
font-size: 14px; |
| 946 |
font-weight: 500; |
| 947 |
border-radius: var(--bf-bdr-radius-sm); |
| 948 |
} |
| 949 |
|
| 950 |
.tab-button:hover { |
| 951 |
color: #374151 !important; |
| 952 |
background-color: rgba(255, 255, 255, 0.5); |
| 953 |
} |
| 954 |
|
| 955 |
.tab-button.active { |
| 956 |
color: #ffffff; |
| 957 |
font-weight: 600; |
| 958 |
background-color: transparent; |
| 959 |
} |
| 960 |
|
| 961 |
.tab-button.active:hover { |
| 962 |
color: #f3f4f6 !important; |
| 963 |
background-color: var(--bf-tertiary-800) !important; |
| 964 |
} |
| 965 |
|
| 966 |
.tab-button:focus-visible { |
| 967 |
outline: 2px solid var(--bf-tertiary-600); |
| 968 |
outline-offset: -2px; |
| 969 |
} |
| 970 |
|
| 971 |
/* Selector - Full Height Pill Background */ |
| 972 |
.tab-selector { |
| 973 |
position: absolute; |
| 974 |
height: 100%; |
| 975 |
top: 0; |
| 976 |
left: 0; |
| 977 |
background-color: var(--bf-tertiary-600); |
| 978 |
border-radius: var(--bf-bdr-radius-sm); |
| 979 |
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); |
| 980 |
z-index: 1; |
| 981 |
transition: all 0.3s cubic-bezier(0.42, 0.44, 0.57, 1.35); |
| 982 |
will-change: transform, width; |
| 983 |
} |
| 984 |
|
| 985 |
/* ===================================== */ |
| 986 |
/* Old Clean-Bottom-Line Variant (Commented Out) */ |
| 987 |
/* ===================================== */ |
| 988 |
|
| 989 |
/* |
| 990 |
// .tabs-header-wrapper { |
| 991 |
// position: relative; |
| 992 |
// display: flex; |
| 993 |
// align-items: center; |
| 994 |
// } |
| 995 |
|
| 996 |
// .tabs-header { |
| 997 |
// border-bottom: 1px solid #e1e5e9; |
| 998 |
// background-color: transparent; |
| 999 |
// padding: 0; |
| 1000 |
// gap: 4px; |
| 1001 |
// } |
| 1002 |
|
| 1003 |
// .tab-button { |
| 1004 |
// padding: 12px 20px; |
| 1005 |
// border-radius: var(--bf-bdr-radius-sm) var(--bf-bdr-radius-sm) 0 0; |
| 1006 |
// color: #6c757d; |
| 1007 |
// font-size: 14px; |
| 1008 |
// font-weight: 500; |
| 1009 |
// } |
| 1010 |
|
| 1011 |
// .tab-button:hover { |
| 1012 |
// color: #495057 !important; |
| 1013 |
// background-color: var(--bf-clr-ghostwhite) !important; |
| 1014 |
// } |
| 1015 |
|
| 1016 |
// .tab-button.active { |
| 1017 |
// background-color: var(--bf-clr-lightgray); |
| 1018 |
// color: #56585d; |
| 1019 |
// } |
| 1020 |
|
| 1021 |
// .tab-selector { |
| 1022 |
// position: absolute; |
| 1023 |
// bottom: 0; |
| 1024 |
// left: 0; |
| 1025 |
// height: 2px; |
| 1026 |
// background-color: var(--bf-tertiary-600); |
| 1027 |
// box-shadow: none; |
| 1028 |
// } |
| 1029 |
*/ |
| 1030 |
|
| 1031 |
/* Tab Content */ |
| 1032 |
.tab-content { |
| 1033 |
flex: 1; |
| 1034 |
overflow-y: auto; |
| 1035 |
overflow-x: hidden; |
| 1036 |
padding: 10px 0px; |
| 1037 |
position: relative; |
| 1038 |
} |
| 1039 |
|
| 1040 |
/* Content Wrapper (for animations) */ |
| 1041 |
.tab-content-wrapper { |
| 1042 |
position: relative; |
| 1043 |
width: 100%; |
| 1044 |
animation: none; |
| 1045 |
} |
| 1046 |
|
| 1047 |
.tab-content-wrapper.slide-in-right { |
| 1048 |
animation: slideInFromRight 0.3s ease-out; |
| 1049 |
} |
| 1050 |
|
| 1051 |
.tab-content-wrapper.slide-in-left { |
| 1052 |
animation: slideInFromLeft 0.3s ease-out; |
| 1053 |
} |
| 1054 |
|
| 1055 |
|
| 1056 |
@keyframes slideInFromRight { |
| 1057 |
0% { |
| 1058 |
transform: translateX(100%); |
| 1059 |
opacity: 0; |
| 1060 |
} |
| 1061 |
100% { |
| 1062 |
transform: translateX(0); |
| 1063 |
opacity: 1; |
| 1064 |
} |
| 1065 |
} |
| 1066 |
@keyframes slideInFromLeft{ |
| 1067 |
0% { |
| 1068 |
transform: translateX(-100%); |
| 1069 |
opacity: 0; |
| 1070 |
} |
| 1071 |
100% { |
| 1072 |
transform: translateX(0); |
| 1073 |
opacity: 1; |
| 1074 |
} |
| 1075 |
} |
| 1076 |
|
| 1077 |
/* ===================================== */ |
| 1078 |
.drag:not(.no-drg) { |
| 1079 |
cursor: grab |
| 1080 |
} |
| 1081 |
|
| 1082 |
.blk:focus-within .drag:not(.blk-wrp-btn), .blk.add-field-picker-opened .drag:not(.blk-wrp-btn), .blk:hover .drag:not(.blk-wrp-btn), .drag-hover:not(.blk-wrp-btn) { |
| 1083 |
// outline: 2px dashed var(--b-50); |
| 1084 |
outline: 1px dashed var(--bf-tertiary-600); |
| 1085 |
outline-offset: -1px; |
| 1086 |
// border-radius: var(--bf-bdr-radius-sm) 0px var(--bf-bdr-radius-sm) var(--bf-bdr-radius-sm); |
| 1087 |
} |
| 1088 |
|
| 1089 |
|
| 1090 |
|
| 1091 |
.drag:active { |
| 1092 |
cursor: grabbing |
| 1093 |
} |
| 1094 |
|
| 1095 |
.no-drg { |
| 1096 |
cursor: default |
| 1097 |
} |
| 1098 |
|
| 1099 |
.react-grid-layout { |
| 1100 |
position: relative; |
| 1101 |
} |
| 1102 |
|
| 1103 |
.react-grid-item { |
| 1104 |
transition: all 200ms ease; |
| 1105 |
transition-property: left,top |
| 1106 |
} |
| 1107 |
|
| 1108 |
.react-grid-item.cssTransforms { |
| 1109 |
transition-property: transform |
| 1110 |
} |
| 1111 |
|
| 1112 |
.react-grid-item.resizing { |
| 1113 |
transition: none !important; |
| 1114 |
z-index: 1; |
| 1115 |
will-change: width, height, transform |
| 1116 |
} |
| 1117 |
|
| 1118 |
.react-grid-item.react-draggable-dragging { |
| 1119 |
background: #fff; |
| 1120 |
transition: none; |
| 1121 |
z-index: 3; |
| 1122 |
will-change: transform |
| 1123 |
} |
| 1124 |
|
| 1125 |
.react-grid-item.dropping { |
| 1126 |
visibility: hidden |
| 1127 |
} |
| 1128 |
|
| 1129 |
.react-grid-item.react-grid-placeholder { |
| 1130 |
background: rgba(160,205,255,.2); |
| 1131 |
transition-duration: 100ms; |
| 1132 |
transition-property: width, height; |
| 1133 |
border: 2px dashed #0059ff; |
| 1134 |
-webkit-user-select: none; |
| 1135 |
-moz-user-select: none; |
| 1136 |
-ms-user-select: none; |
| 1137 |
-o-user-select: none; |
| 1138 |
user-select: none |
| 1139 |
} |
| 1140 |
|
| 1141 |
.react-grid-item.react-grid-placeholder.placeholder-resizing { |
| 1142 |
transition-duration: 0ms !important; |
| 1143 |
} |
| 1144 |
|
| 1145 |
.react-grid-item>.react-resizable-handle { |
| 1146 |
position: absolute; |
| 1147 |
transform: scale(0) |
| 1148 |
} |
| 1149 |
|
| 1150 |
.react-grid-item>.react-resizable-handle::after { |
| 1151 |
position: absolute; |
| 1152 |
right: 3px; |
| 1153 |
bottom: 3px; |
| 1154 |
content: ""; |
| 1155 |
width: 5px; |
| 1156 |
height: 5px |
| 1157 |
} |
| 1158 |
|
| 1159 |
.react-resizable-hide>.react-resizable-handle { |
| 1160 |
display: none |
| 1161 |
} |
| 1162 |
|
| 1163 |
.react-resizable { |
| 1164 |
position: relative |
| 1165 |
} |
| 1166 |
|
| 1167 |
.react-resizable-handle { |
| 1168 |
position: absolute; |
| 1169 |
background-repeat: no-repeat; |
| 1170 |
background-origin: content-box; |
| 1171 |
box-sizing: border-box; |
| 1172 |
padding: 0 1px 1px 0; |
| 1173 |
border-radius:20px; |
| 1174 |
background-color: var(--bf-tertiary-600); |
| 1175 |
box-shadow: 0 1px 1.5px 0 #7b7a7a; |
| 1176 |
} |
| 1177 |
|
| 1178 |
.react-resizable-handle-se { |
| 1179 |
right: -8px; |
| 1180 |
bottom: -8px; |
| 1181 |
width: 20px; |
| 1182 |
height: 20px; |
| 1183 |
cursor: se-resize; |
| 1184 |
transform: rotate(90deg); |
| 1185 |
background-position: bottom right; |
| 1186 |
background-position: 60% 58%; |
| 1187 |
z-index: 1; |
| 1188 |
background-image: url('data:image/svg+xml;utf8,<svg width="12" height="8" viewBox="0 0 21 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.909822 0.753938L13.0461 1.84232L6.03541 11.8085L0.909822 0.753938Z" fill="white"/><path d="M20.0902 14.2461L7.95387 13.1577L14.9646 3.19152L20.0902 14.2461Z" fill="white"/></svg>') |
| 1189 |
} |
| 1190 |
|
| 1191 |
.react-resizable-handle-e { |
| 1192 |
top: 40%; |
| 1193 |
width: 13px; |
| 1194 |
right: -6px; |
| 1195 |
height: 30px; |
| 1196 |
margin-top: -10px; |
| 1197 |
cursor: ew-resize; |
| 1198 |
background-position: center; |
| 1199 |
background-repeat: no-repeat; |
| 1200 |
background-image: url('data:image/svg+xml;utf8,<svg width="7" height="18" viewBox="0 0 29 72" fill="none" xmlns="http://www.w3.org/2000/svg"><style>.r{fill:white;width: 12px;height: 12px;rx: 10px;}</style><rect x="10" y="1" class="r" /><rect x="10" y="31" class="r" /><rect x="10" y="61" class="r" /></svg>') |
| 1201 |
} |
| 1202 |
|
| 1203 |
.react-resizable-handle-w { |
| 1204 |
top: 40%; |
| 1205 |
width: 13px; |
| 1206 |
left: -6px; |
| 1207 |
height: 30px; |
| 1208 |
margin-top: -10px; |
| 1209 |
cursor: ew-resize; |
| 1210 |
background-position: center; |
| 1211 |
background-repeat: no-repeat; |
| 1212 |
background-image: url('data:image/svg+xml;utf8,<svg width="7" height="18" viewBox="0 0 29 72" fill="none" xmlns="http://www.w3.org/2000/svg"><style>.r{fill:white;width: 12px;height: 12px;rx: 10px;}</style><rect x="10" y="1" class="r" /><rect x="10" y="31" class="r" /><rect x="10" y="61" class="r" /></svg>') |
| 1213 |
} |
| 1214 |
.context-menu { |
| 1215 |
display: flex; |
| 1216 |
flex-direction: column; |
| 1217 |
border-radius: 10px; |
| 1218 |
position: relative; |
| 1219 |
background-color: var(--white-100); |
| 1220 |
z-index: 9999999; |
| 1221 |
} |
| 1222 |
.context-list { |
| 1223 |
margin: 0px; |
| 1224 |
display: block; |
| 1225 |
width: 100%; |
| 1226 |
list-style: none; |
| 1227 |
padding-left: 0; |
| 1228 |
} |
| 1229 |
.context-item { |
| 1230 |
position: relative; |
| 1231 |
margin-bottom: 0px; |
| 1232 |
width: 100%; |
| 1233 |
} |
| 1234 |
.context-btn { |
| 1235 |
// font-family: "Outfit", sans-serif; |
| 1236 |
font-family: var(--bf-font-family-base); |
| 1237 |
border: 0px; |
| 1238 |
padding: 6px 6px; |
| 1239 |
padding-right: 36px; |
| 1240 |
width: 100%; |
| 1241 |
border-radius: 8px; |
| 1242 |
font-weight: 500; |
| 1243 |
display: flex; |
| 1244 |
align-items: center; |
| 1245 |
position: relative; |
| 1246 |
background-color: var(--white-100); |
| 1247 |
cursor: pointer; |
| 1248 |
} |
| 1249 |
.context-btn span { |
| 1250 |
text-align: left; |
| 1251 |
} |
| 1252 |
.context-btn:hover, .context-btn.active { |
| 1253 |
background-color: var(--white-0-93); |
| 1254 |
} |
| 1255 |
.context-btn:hover svg, .context-btn.active svg { |
| 1256 |
filter: drop-shadow(1px 1px 0.5px #b3b3b3); |
| 1257 |
} |
| 1258 |
.context-btn:focus-visible { |
| 1259 |
outline: none; |
| 1260 |
box-shadow: 0 0 0 2px var(--b-50) inset |
| 1261 |
} |
| 1262 |
.context-btn svg { |
| 1263 |
flex-shrink: 0; |
| 1264 |
width: 20px; |
| 1265 |
height: 20px; |
| 1266 |
margin-right: 10px; |
| 1267 |
stroke: var(--black-0); |
| 1268 |
} |
| 1269 |
.context-btn svg:nth-of-type(2) { |
| 1270 |
margin-right: 0; |
| 1271 |
position: absolute; |
| 1272 |
right: 8; |
| 1273 |
} |
| 1274 |
.context-btn-color { |
| 1275 |
color: var(--b-50) |
| 1276 |
} |
| 1277 |
.context-btn .tag-label{ |
| 1278 |
font-size: 10px; |
| 1279 |
align-self: baseline; |
| 1280 |
background-color: var(--white-0-0-8) !important; |
| 1281 |
border-radius: 5px; |
| 1282 |
margin-left: 3px; |
| 1283 |
padding: 2px 4px; |
| 1284 |
} |
| 1285 |
.pro-badge{ |
| 1286 |
border: 0.5px solid var(--bf-stroke-clr); |
| 1287 |
display: flex; |
| 1288 |
align-items: center; |
| 1289 |
justify-content: center; |
| 1290 |
color: var(--bf-clr-gray); |
| 1291 |
font-size: 10; |
| 1292 |
border-radius: var(--bf-bdr-radius-sm); |
| 1293 |
padding: 2px 4px; |
| 1294 |
margin-left: 5; |
| 1295 |
} |
| 1296 |
.pro-badge:hover { |
| 1297 |
font-weight: 700; |
| 1298 |
cursor: pointer; |
| 1299 |
} |
| 1300 |
.pro-badge svg { |
| 1301 |
width: 12px; |
| 1302 |
height: 12px; |
| 1303 |
margin-right: 3px; |
| 1304 |
stroke: var(--bf-clr-gray); |
| 1305 |
} |
| 1306 |
.delete:hover,.delete.active { |
| 1307 |
color: var(--red-100-49) !important; |
| 1308 |
} |
| 1309 |
.delete:hover svg,.delete.active svg { |
| 1310 |
stroke: var(--red-100-49) !important; |
| 1311 |
} |
| 1312 |
.right-click-context-menu{ |
| 1313 |
border:1px solid #d0d0d0; |
| 1314 |
padding: 5px; |
| 1315 |
box-shadow: 0px 47px 58px rgba(0, 0, 0, 0.07), 0px 19.6355px 25.6741px rgba(0, 0, 0, 0.0503198), 0px 10.4981px 17.9875px rgba(0, 0, 0, 0.0417275), 0px 5.88513px 13.1341px rgba(0, 0, 0, 0.035), 0px 3.12555px 8.79534px rgba(0, 0, 0, 0.0282725), 0px 1.30061px 4.46737px rgba(0, 0, 0, 0.0196802); |
| 1316 |
} |
| 1317 |
.fld-hide::after { |
| 1318 |
position: absolute; |
| 1319 |
top: 0; |
| 1320 |
left: 0; |
| 1321 |
text-align: center; vertical-align: -50%; |
| 1322 |
content: ""; |
| 1323 |
background-repeat: no-repeat; |
| 1324 |
background-position: center; |
| 1325 |
background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' strokeWidth='5'%3E%3Cpath d='m3 3l18 18M10.584 10.587a2 2 0 0 0 2.828 2.83' /%3E%3Cpath d='M9.363 5.365A9.466 9.466 0 0 1 12 5c4 0 7.333 2.333 10 7c-.778 1.361-1.612 2.524-2.503 3.488m-2.14 1.861C15.726 18.449 13.942 19 12 19c-4 0-7.333-2.333-10-7c1.369-2.395 2.913-4.175 4.632-5.341' /%3E%3C/g%3E%3C/svg%3E"); |
| 1326 |
width: 100%; |
| 1327 |
height: 100%; |
| 1328 |
background-color: hsla(0, 0%, 0%, 20%); |
| 1329 |
} |
| 1330 |
|
| 1331 |
|
| 1332 |
.spacer-field-bg { |
| 1333 |
position: relative; |
| 1334 |
background-image: repeating-linear-gradient( |
| 1335 |
45deg, /* angle of the stripes */ |
| 1336 |
hsla(var(--gah),var(--gas),var(--gal),20%), /* stripe color */ |
| 1337 |
hsla(var(--gah),var(--gas),var(--gal),5%) 5px, /* end of stripe */ |
| 1338 |
transparent 5px, /* start of space between stripes */ |
| 1339 |
transparent 20px /* end of space */ |
| 1340 |
); |
| 1341 |
overflow: hidden; |
| 1342 |
} |
| 1343 |
.spacer-field-bg::before { |
| 1344 |
content: attr(data-admin-label); |
| 1345 |
position: absolute; |
| 1346 |
top: 50%; |
| 1347 |
left: 50%; |
| 1348 |
transform: translate(-50%, -50%); |
| 1349 |
color: var(--fld-lbl-c, var(--fld-inp-c));; |
| 1350 |
font-size: 16px; |
| 1351 |
text-align: center; |
| 1352 |
padding: var(--fld-p); |
| 1353 |
border-radius: var(--g-bdr-rad); |
| 1354 |
background-color: var(--global-fld-bg-color, var(--bg-0)); |
| 1355 |
pointer-events: none; /* Prevent interaction with the text */ |
| 1356 |
} |
| 1357 |
`,t=e.div` |
| 1358 |
.pos-rel { position: relative} |
| 1359 |
.g-c { |
| 1360 |
display: -ms-grid; |
| 1361 |
display: grid; |
| 1362 |
place-content: center; |
| 1363 |
} |
| 1364 |
.f-rob {font-family: "Roboto",sans-serif} |
| 1365 |
// .f-mon {font-family:"Outfit", sans-serif !important; } |
| 1366 |
.f-mon {font-family: var(--bf-font-family-base) !important; } |
| 1367 |
.wdt-200 {width: 200px !important;} |
| 1368 |
.curp{cursor:pointer} |
| 1369 |
.us-n { |
| 1370 |
-webkit--ms-user-select: none; |
| 1371 |
-webkit-user-select: none; |
| 1372 |
-khtml--ms-user-select: none; |
| 1373 |
-moz--ms-user-select: none; |
| 1374 |
-o--ms-user-select: none; |
| 1375 |
-ms-user-select: none; |
| 1376 |
user-select: none; |
| 1377 |
} |
| 1378 |
.pos-abs{position:absolute;} |
| 1379 |
|
| 1380 |
.flx {display: flex } |
| 1381 |
.flx-c {justify-content: center} |
| 1382 |
|
| 1383 |
.mt-1 {margin-top: 5px} |
| 1384 |
.mr-1 {margin-right: 5px} |
| 1385 |
.mr-2 {margin-right: 10px} |
| 1386 |
.mb-2 {margin-bottom: 10px} |
| 1387 |
|
| 1388 |
.f-12{font-size:12px;} |
| 1389 |
.svg-icn { |
| 1390 |
fill: none; |
| 1391 |
stroke: currentColor; |
| 1392 |
stroke-linecap: round; |
| 1393 |
stroke-linejoin: round; |
| 1394 |
} |
| 1395 |
.highlight-margin { |
| 1396 |
background-color: rgb(255, 200, 98); |
| 1397 |
opacity: 0.3; |
| 1398 |
position: fixed; /* Changed from absolute - prevents document overflow */ |
| 1399 |
overflow: hidden; |
| 1400 |
z-index: 999999; |
| 1401 |
pointer-events: none; /* Added - prevents interference with mouse events */ |
| 1402 |
} |
| 1403 |
.highlight-padding { |
| 1404 |
overflow: hidden; |
| 1405 |
background-color: rgb(86, 111, 255); |
| 1406 |
outline: 1px dashed #003f53; |
| 1407 |
outline-offset: -1px; |
| 1408 |
} |
| 1409 |
.highlight-element { |
| 1410 |
overflow: hidden; |
| 1411 |
background: rgb(255, 255, 103); |
| 1412 |
outline: 1px dashed #635700; |
| 1413 |
outline-offset: -1px; |
| 1414 |
} |
| 1415 |
.layout-wrapper{ |
| 1416 |
// background-size: 13px 13px; |
| 1417 |
// background-image: radial-gradient(#458ff7 0.5px, #fff 0.5px); |
| 1418 |
// background-size: 10px 10px; |
| 1419 |
font-family: var(--g-font-family) |
| 1420 |
} |
| 1421 |
/* hide default scrollbar in custom scrollbar */ |
| 1422 |
.layout-wrapper > div > div::-webkit-scrollbar { |
| 1423 |
display:none; |
| 1424 |
} |
| 1425 |
|
| 1426 |
|
| 1427 |
`;return o.jsxs("style",{children:[n,Gl,Ul,om,sm,rm,im,t]})}function lm({size:e,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("path",{className:"svg-icn",strokeWidth:n,d:"M6.4,4.16H23.6a2.43,2.43,0,0,1,2.45,2.41V23.43a2.43,2.43,0,0,1-2.45,2.41H6.4A2.43,2.43,0,0,1,4,23.43V6.57A2.43,2.43,0,0,1,6.4,4.16Z"}),o.jsx("line",{className:"svg-icn",strokeWidth:n,x1:"15",y1:"10.18",x2:"15",y2:"19.82"}),o.jsx("line",{className:"svg-icn",strokeWidth:n,x1:"10.09",y1:"15",x2:"19.91",y2:"15"})]})}function ar(){const{css:e}=ne();return o.jsxs("div",{className:e(Dt.wrp),children:[o.jsx("div",{className:`${e(Dt.lnk)} loader`}),o.jsx("div",{className:`${e(Dt.titl)} loader`}),o.jsx("div",{className:`${e(Dt.sub)} loader`}),Array(10).fill(0).map((n,t)=>o.jsxs(M.Fragment,{children:[o.jsxs("div",{className:`${e(Dt.t_wrp)} flx`,children:[o.jsx("div",{className:`${e(Dt.txt)} loader`}),o.jsx("div",{className:`${e(Dt.icn)} loader`})]}),o.jsx("div",{className:`${e(Dt.fld)} loader`})]},`tb-${t+3}`))]})}const Dt={wrp:{mx:10,my:10},lnk:{w:130,h:10,brs:4},titl:{w:120,h:20,brs:5,my:10},sub:{w:40,h:10,brs:3,my:10},t_wrp:{ml:10,my:10,flx:"between",w:"95%"},icn:{w:50,h:25,brs:6},txt:{h:23,w:90,brs:6},fld:{h:40,w:"90%",brs:8,mx:18}};function cm({size:e,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 19 20",fill:"none",children:[o.jsx("path",{d:"M1 3H18",stroke:"currentColor",strokeLinecap:"round"}),o.jsx("path",{d:"M4 1V5",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round"}),o.jsx("path",{d:"M1 10H18",stroke:"currentColor",strokeLinecap:"round"}),o.jsx("path",{d:"M14 8V12",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round"}),o.jsx("path",{d:"M1 17H18",stroke:"currentColor",strokeLinecap:"round"}),o.jsx("path",{d:"M6 15V19",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round"})]})}const um={check:"Check Box",title:"Title",divider:"Divider",image:"Image",date:"Date","datetime-local":"Date-Time",text:"Text",username:"User Name",textarea:"Multiline Text",radio:"Radio Button",number:"Number",password:"Password",email:"Email",time:"Time",month:"Month",week:"Week",select:"Drop Down","file-up":"File Upload","advanced-file-up":"Advanced File Upload",url:"URL",color:"Color Picker",recaptcha:"reCaptcha v2","decision-box":"Decision Box",gdpr:"GDPR Agreement",html:"HTML",shortcode:"Shortcode",button:"Button",paypal:"Paypal",razorpay:"Razorpay",stripe:"Stripe","html-select":"HTML Select",country:"Country",currency:"Currency","phone-number":"Phone Number",section:"Section",repeater:"Repeater"};function dm({size:e=24,stroke:n=2,className:t}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[o.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),o.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),o.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})}const pm=({title:e=_("No fields available"),description:n=_("You haven’t added any fields to this form or step yet."),note:t=_("Please add fields from the Form Fields panel."),iconSize:r=30})=>{const{css:i}=ne();return o.jsxs("div",{className:i(Dn.emptyStateWrapper),children:[o.jsx("div",{className:i(Dn.emptyIcon),children:o.jsx(dm,{size:r})}),o.jsx("h3",{className:i(Dn.emptyStateTitle),children:e}),o.jsxs("div",{className:i(Dn.emptyStateDescription),children:[n,o.jsx("div",{className:i(Dn.emptyNote),children:t})]})]})},Dn={emptyStateWrapper:{ta:"center",p:20,cr:"#666",fs:14},emptyStateDescription:{mt:5,cr:"#999",fs:12},emptyIcon:{mb:10},emptyStateTitle:{fs:18,fw:"var(--bf-font-semibold)",color:"#4b5563",mb:8},emptyNote:{fs:12,mt:5,cr:"#999"}},ml=({highlightSelector:e,classNames:n,iconSize:t=16,iconStroke:r=2.5})=>{const{css:i}=ne(),s=()=>{e&&Kl(e)};return o.jsx("button",{onMouseEnter:()=>Ko(e),onFocus:()=>Ko(e),onMouseLeave:()=>Yo(),onBlur:()=>Yo(),className:`${i(hm.iconBtn)} ${n}`,onClick:s,title:_("Click to Highlight Element in Builder"),type:"button",children:o.jsx(kc,{size:t,stroke:r})})},hm={iconBtn:{flx:"center",w:25,h:25,p:0,brs:"var(--bf-bdr-radius-sm)",bd:"transparent",curp:1,tn:"all 0.2s ease",b:"1px solid transparent",":hover":{bd:"#d3d3d3",b:"1px solid var(--bf-bdr-clr-light)"},":focus-visible":{focusShadow:1,b:"1px solid var(--bf-bdr-clr-light)"}}};function wr({className:e="",route:n,title:t,children:r,childrenAccordion:i=!1,fldData:s,open:a=!1,actionComponent:l,offset:c=0,tag:h,highlightSelector:u,onClick:d,styleOverride:m,level:w=0,badge:S,hasTarget:j=!0}){const[I,T]=M.useState(a),[C,g]=M.useState(a?"auto":0),f=M.useRef(null),b=M.useRef(null),{css:p}=ne(),{"*":x}=xe(),[N,A,O]=(x==null?void 0:x.split("/"))||[],F=`${h?`${h}-`:""}${Mi(t)}-acc`;h&&`${h}`,`${Mi(t)}`,M.useEffect(()=>{T(a)},[a]);let $=!1;N==="theme-customize"&&!h&&(A===n||O&&`${A}/${O}`===n)&&($=!0),N==="field-theme-customize"&&O&&h&&h===O&&(A===n||`${A}/${O}`===n)&&($=!0),M.useEffect(()=>{$&&b.current&&setTimeout(()=>{var V;(V=b.current)==null||V.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},300)},[$]);const E=V=>{if(V.type==="keypress"){const oe=V;if(oe.code==="Space"||oe.code==="Enter"){T(ze=>!ze);return}}if(V.type==="keyup"&&V.code==="Escape"){T(!1);return}V.type==="click"&&T(oe=>!oe)},k=V=>V.stopPropagation(),P=V=>{const oe=window.getComputedStyle(V),ze=parseFloat(oe.marginTop)+parseFloat(oe.marginBottom);return Math.ceil(V.offsetHeight+ze)},H=()=>{f.current&&g(P(f.current))},z=(w||c)*16;return o.jsxs("div",{ref:b,role:"button",tabIndex:0,onKeyUp:E,onKeyDown:E,className:`${p([Qe.accordionLbl,I&&r?Qe.active:{}])} ${e} ${I&&r?"toggle":""} ${r?"has-children":""} ${$?"active":""}`,onClick:d,"data-testid":F,children:[o.jsx("div",{className:`btgl-wrapper ${p([{w:"100%"},$?Qe.navBtnActive:{}])}`,tabIndex:-1,role:"button",onClick:E,onKeyDown:E,children:o.jsxs("div",{className:`title-bar ${p(v.flxc,Qe.titlebar)} ${p($?{bd:"hsl(233deg 36% 95%)"}:{})}`,style:{paddingLeft:z},children:[r&&o.jsx("div",{className:"toggle-icn-wrapper",children:o.jsx(Yl,{className:`toggle-icn ${p(Qe.icn)}`,size:"9",style:{transform:`rotate(${I?180:90}deg)`}})}),o.jsxs("div",{className:p(Qe.flxbwn),children:[o.jsxs("div",{className:p(v.flxc,v.mr2),children:[o.jsx("span",{className:`title ${p([Qe.dflx,i?{}:v.fw500])}`,children:t}),h&&o.jsx("span",{title:`Field key: ${h}`,className:p(Qe.titleTag),children:h}),S&&o.jsx("span",{className:p(Qe.badge),children:S}),m&&o.jsx("span",{className:p(Qe.overrideIndicator),title:"Theme styles override"}),s&&o.jsx(ro,{width:150,icnSize:15,className:`${p(v.mr2)} hovertip`,children:o.jsx("div",{className:p(Qe.tipBody),children:((s==null?void 0:s.lbl)||(s==null?void 0:s.txt)||(s==null?void 0:s.adminLbl))&&(s.lbl||s.txt||s.adminLbl)})}),o.jsx("div",{className:p(Qe.navActionBtn),"data-action-btn-lbl":!0,children:j&&u&&o.jsx(ml,{highlightSelector:u,classNames:p(Qe.highlightBtn),iconSize:15,iconStroke:2.5})})]}),o.jsx("div",{onClick:k,onKeyDown:k,role:"button",tabIndex:-1,children:l&&l})]})]})}),r&&o.jsx("div",{style:{height:C,transition:"height 300ms",overflow:C==="auto"?"auto":"hidden"},children:o.jsx(ql,{nodeRef:f,in:I,timeout:300,onEntering:H,onEntered:()=>g("auto"),onExit:()=>{f.current&&g(f.current.offsetHeight)},onExiting:()=>g(0),unmountOnExit:!0,style:{overflow:I?"auto":"hidden"},children:o.jsx("div",{ref:f,className:`body ${p(Qe.body)}`,onClick:k,onKeyDown:k,style:{paddingLeft:z+8},children:r})})})]})}const Qe={flxbwn:{flx:"between"},titlebar:{ws:"nowrap",fw:500,ow:"hidden",py:8,px:8,":hover":{bd:"#eeeff7"},"& .hovertip":{oy:0}},dflx:{flx:"align-center",fw:400,fs:13,lh:2,curp:1,"& .hover-tip":{oy:0}},icn:{cr:"#c6c6c6",mr:4,ml:4,mt:-1,tn:"transform 250ms"},body:{fs:12,py:4},titleTag:{p:"1px 5px",bd:"#EDF2F7",brs:"var(--bf-bdr-radius-sm)",cr:"gray",fs:11,fw:400,b:"1px solid #d8dde2",ml:"7px",curp:1},badge:{fs:10,fw:500,cr:"var(--b-50)",bg:"var(--b-14-100-93)",px:6,py:2,br:4,tt:"uppercase",ml:6},tipBody:{lh:"1.1",fs:"12.5px",fw:100,ff:'"Roboto", sans-serif'},accordionLbl:{mb:2,":focus-within":{"& div[data-action-btn-lbl]":{dy:"flex"}},":focus-visible":{focusShadow:1,"& div[data-action-btn-lbl]":{dy:"flex"}},":hover":{bd:"#f8f8f8","& div[data-action-btn-lbl]":{dy:"flex"}}},highlightBtn:{h:"20px !important",w:"20px !important"},navActionBtn:{b:"none",pn:"absolute",rt:15,jc:"center",ai:"center",dy:"none",pl:15},overrideIndicator:{w:"5px",h:"5px",brs:"50%",bc:"#ffd64f",ml:5},active:{bd:"var(--bf-bg-offwhite)"},navBtnActive:{bd:"#eeeff7",bs:"0 0 0 1px var(--bf-tertiary-300)","& .title":{fw:"var(--bf-font-medium)"}}};function Xn({route:e,subRoute:n,cssSelector:t,label:r,offset:i=1,icn:s,highlightSelector:a,styleOverride:l,classNames:c=""}){const{formType:h,formID:u,"*":d}=xe(),[m,w,S]=(d==null?void 0:d.split("/"))||[],j=M.useRef(null),I=`${n?`${n}-`:""}${e}-nav`;let T=!1;(m==="theme-customize"&&!S&&!n&&w===e||m==="field-theme-customize"&&n&&n===S&&w===e)&&(T=!0),M.useEffect(()=>{T&&j.current&&setTimeout(()=>{var x;(x=j.current)==null||x.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},100)},[T]);const C=er(),g=()=>{C(n?`/form/builder/${h}/${u}/field-theme-customize/${e}/${n}`:`/form/builder/${h}/${u}/theme-customize/${e}`)},f=x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),g())},{css:b}=ne(),p=typeof i=="number"?i*10:parseFloat(i)*10;return o.jsxs("div",{ref:j,className:`${b([Hn.navBtn,T?Hn.navBtnActive:{}])} ${c} ${T?"active":""}`,style:{paddingLeft:p},onClick:g,onKeyDown:f,role:"button",tabIndex:0,"data-testid":I,children:[o.jsxs("div",{className:b(v.flxc),children:[s&&o.jsx("span",{className:b(v.flxc,{mr:5}),children:s}),r,l&&o.jsx("span",{className:b(Hn.overrideIndicator),title:"Theme styles overridden"})]}),o.jsx("div",{className:b(Hn.navActionBtn,v.mr2),"data-action-btn":!0,children:a&&o.jsx(ml,{highlightSelector:a,classNames:b(Hn.highlightBtn),iconSize:15,iconStroke:2.5})})]})}const Hn={navBtn:{w:"100%",h:26,fs:13,ta:"left",p:0,pl:13,lh:2,cr:"inherit",flx:"center-between",wb:"keep-all",ws:"nowrap",pn:"relative",us:1,curp:1,":focus-within":{"& div[data-action-btn]":{dy:"flex"}},":focus-visible":{focusShadow:1,"& div[data-action-btn]":{dy:"flex"}},"& .hovertip":{oy:0},":hover":{"& .hovertip":{oy:1},bd:"#eeeff7","& div[data-action-btn]":{dy:"flex"}}},navBtnActive:{bd:"#eeeff7"},navActionBtn:{h:"100%",b:"none",pn:"absolute",bd:"linear-gradient(90deg, transparent, #eeeff7 45%)",rt:0,jc:"center",ai:"center",dy:"none",pl:15},highlightBtn:{h:"20px !important",w:"20px !important"},tipBody:{lh:"1.1",fs:"12.5px",fw:100,ff:'"Roboto", sans-serif'},overrideIndicator:{w:"5px",h:"5px",brs:"50%",bc:"#ffd64f",ml:"3px",px:2}},Ge={con:{h:"100%",bs:"0 0 0 1px var(--b-44-87)",ow:"hidden"},title:{fs:18,fw:600,mt:5,px:16},themeQuickTweaks:{w:"auto",fs:"var(--bf-font-semibase)",fw:"var(--bf-font-medium)",brs:"var(--bf-bdr-radius-sm)",m:"15px 10px",p:"var(--bf-space-3) 5px !important",h:"auto !important","&.active":{bs:"0 0 0 1px var(--bf-tertiary-300)"}},divider:{bb:"1px solid var(--white-0-83)"},scrollDiv:{px:8,py:8,ow:"hidden",mb:300},sectionAccordion:{"& .btgl":{curp:1,p:"var(--bf-space-5) 15px !important",fs:"var(--bf-font-base) !important",bb:"1px solid var(--bf-stroke-clr)"},"& .body":{p:"10px",gp:"var(--bf-space-2)",dy:"flex",fd:"column"}},layerAccordion:{brs:"var(--bf-bdr-radius-sm)","& .btgl-wrapper":{brs:"var(--bf-bdr-radius-sm)"},"& .title-bar":{p:"3px 10px",brs:"var(--bf-bdr-radius-sm)"},"& .title":{fs:"var(--bf-font-base)"},"& .toggle-icn-wrapper":{ml:"-15px",cr:"var(--b-189-67)"},"& .body":{pn:"relative",pl:"var(--bf-space-4)","&::before":{content:'""',pn:"absolute",lt:"var(--bf-space-4)",tp:10,h:"calc(100% - 20px)",bl:"1px solid var(--bf-stroke-clr)"}},"&.has-children .body":{pl:"var(--bf-space-6)"}},simpleNavBtn:{brs:"var(--bf-bdr-radius-sm)",fs:"var(--bf-font-md)",p:"7px 10px",h:"auto","&.active":{bs:"0 0 0 1px var(--bf-tertiary-300)",fw:"var(--bf-font-medium)"}},sectionGroup:{mb:24},groupHeader:{fs:12,fw:600,tt:"uppercase",cr:"var(--b-50)",ls:"0.5px",mb:8,px:8,py:4},navItem:(e,n)=>({d:"flex",ai:"center",jc:"space-between",px:8+e*16,py:8,cr:"var(--b-79-96)",bg:n?"var(--b-14-100-61)":"transparent",br:6,cur:"pointer",fs:13,":hover":{bg:"var(--b-14-100-95)"},transition:"all 0.2s ease"}),navItemLeft:{d:"flex",ai:"center",gap:8},navItemLabel:{cr:"var(--b-79-96)"},badge:{fs:10,fw:500,cr:"var(--b-50)",bg:"var(--b-14-100-93)",px:6,py:2,br:4,tt:"uppercase"},fieldElements:{}},yt=({fldKey:e,fieldObj:n,styles:t,route:r,label:i,offset:s="1",classNames:a=""})=>{var h;const l=((h=Ei[r])==null?void 0:h[0])||r,{css:c}=ne();return o.jsx(Xn,{cssSelector:`.${e}-${l}`,subRoute:e,route:r,label:i,offset:s,highlightSelector:`[data-dev-${r}="${e}"]`,styleOverride:xr(t,e,r),classNames:`${a} ${c(Ge.simpleNavBtn)}`})},xn=({fldKey:e,fieldObj:n,styles:t,selectedFieldKey:r,styleHandler:i,route:s,label:a,offset:l="1",preIconKey:c,sufIconKey:h,preIconRoute:u,sufIconRoute:d,accordionOffset:m="1",childOffset:w="1",additionalChild:S})=>{var g,f;const j=c&&n[c],I=h&&n[h],T=j||I,{css:C}=ne();return!T&&!S?o.jsx(yt,{fldKey:e,fieldObj:n,styles:t,selectedFieldKey:r,styleHandler:i,route:s,label:a,offset:l,classNames:C(Ge.simpleNavBtn)}):o.jsxs(wr,{childrenAccordion:!0,route:s,onClick:()=>i(s),offset:m,title:a,fldData:n,tag:e,open:e===r&&T,highlightSelector:`[data-dev-${s}="${e}"]`,styleOverride:xr(t,e,s),className:C(Ge.layerAccordion),children:[j&&u&&o.jsx(Xn,{cssSelector:`.${e}-${((g=Ei[u])==null?void 0:g[0])||u}`,subRoute:e,route:u,label:"Leading Icon",offset:w,highlightSelector:`[data-dev-${u}="${e}"]`,styleOverride:xr(t,e,u),classNames:C(Ge.simpleNavBtn)}),I&&d&&o.jsx(Xn,{cssSelector:`.${e}-${((f=Ei[d])==null?void 0:f[0])||d}`,subRoute:e,route:d,label:"Trailing Icon",offset:w,highlightSelector:`[data-dev-${d}="${e}"]`,styleOverride:xr(t,e,d),classNames:C(Ge.simpleNavBtn)}),S]},e)},Ae=({fldKey:e,fieldObj:n,styles:t,selectedFieldKey:r,styleHandler:i,elements:s,additionalChild:a})=>o.jsx(o.Fragment,{children:s.map((l,c)=>l.condition&&!l.condition(n)?null:o.jsx(xn,B(y({fldKey:e,fieldObj:n,styles:t,selectedFieldKey:r,styleHandler:i},l),{additionalChild:l.additionalChild||a?o.jsxs(o.Fragment,{children:[" ",l.additionalChild," ",a," "]}):void 0}),`${l.route}-${c}`))}),fm=[{condition:e=>!!(e.title||e.titlePreIcn||e.titleSufIcn),route:"title",label:"Title",preIconKey:"titlePreIcn",sufIconKey:"titleSufIcn",preIconRoute:"title-pre-i",sufIconRoute:"title-suf-i"}],Ms=[{condition:e=>!!(e.lbl||e.lblPreIcn||e.lblSufIcn)&&!e.typ.match(/^(decision-box|gdpr|razorpay|paypal)$/gi),route:"lbl",label:"Label",preIconKey:"lblPreIcn",sufIconKey:"lblSufIcn",preIconRoute:"lbl-pre-i",sufIconRoute:"lbl-suf-i"}],bm=[{condition:e=>!!(e.subtitle||e.subTlePreIcn||e.subTleSufIcn||e.subTitlPreIcn||e.subTitlSufIcn),route:"sub-titl",label:"Subtitle",preIconKey:"subTlePreIcn",sufIconKey:"subTleSufIcn",preIconRoute:"sub-titl-pre-i",sufIconRoute:"sub-titl-suf-i"}],mm=[{condition:e=>!!(e.helperTxt||e.hlpPreIcn||e.hlpSufIcn),route:"hlp-txt",label:"Helper Text",preIconKey:"hlpPreIcn",sufIconKey:"hlpSufIcn",preIconRoute:"hlp-txt-pre-i",sufIconRoute:"hlp-txt-suf-i"}],gm=[{condition:e=>!!(e.btnTxt||e.btnPreIcn||e.btnSufIcn),route:"btn",label:"Button",preIconKey:"btnPreIcn",sufIconKey:"btnSufIcn",preIconRoute:"btn-pre-i",sufIconRoute:"btn-suf-i"}],xm=[{condition:e=>!e.typ.match(/^(title|image|html|divider|button|check|radio|decision-box|gdpr|select|currency|phone-number|country|razorpay|paypal|section|repeater|email-otp)$/gi),route:"fld",label:"Input",preIconKey:"prefixIcn",sufIconKey:"suffixIcn",preIconRoute:"pre-i",sufIconRoute:"suf-i"}],Si={addButton:{route:"rpt-add-btn",label:"Add Button",preIconKey:"addBtnPreIcn",sufIconKey:"addBtnSufIcn",preIconRoute:"rpt-add-btn-pre-i",sufIconRoute:"rpt-add-btn-suf-i"},removeButton:{route:"rpt-rmv-btn",label:"Remove Button",preIconKey:"removeBtnPreIcn",sufIconKey:"removeBtnSufIcn",preIconRoute:"rpt-rmv-btn-pre-i",sufIconRoute:"rpt-rmv-btn-suf-i"},addToEndButton:{route:"add-to-end-btn",label:"Add To End Button",preIconKey:"addToEndBtnPreIcn",sufIconKey:"addToEndBtnSufIcn",preIconRoute:"add-to-end-btn-pre-i",sufIconRoute:"add-to-end-btn-suf-i"}},ut={fieldContainer:{condition:e=>e.typ!=="paypal",route:"fld-wrp",label:"Field Container"},titleContainer:{condition:e=>e.typ==="title"&&!!(e.title||e.titlePreIcn||e.titleSufIcn||e.subtitle||e.subTitlPreIcn||e.subTitlSufIcn),route:"titl-wrp",label:"Title Container"},labelContainer:{condition:e=>!!(e.lbl||e.lblPreIcn||e.lblSufIcn||e.subtitle||e.subTlePreIcn||e.subTleSufIcn)&&e.typ!=="title",route:"lbl-wrp",label:"Label Container"},inputContainer:{condition:e=>!e.typ.match(/^(title|image|html|divider|button|razorpay|paypal|section|repeater)$/gi),route:"inp-fld-wrp",label:"Input Container"},fileInputContainer:{condition:e=>e.typ==="file",route:"file-up-wrpr",label:"File Input Container"}},ji={condition:e=>!e.typ.match(/^(button|divider|spacer|title|image|html|razorpay|paypal|recaptcha|section|repeater|turnstile|hcaptcha)$/),route:"err-msg",label:"Error Message"},Ci={condition:e=>!e.typ.match(/^(title|image|html|divider)$/gi),route:"quick-tweaks",label:"Quick Tweaks"},vm=[{condition:e=>!!e.typ.match(/^(check|radio|decision-box|gdpr)/gi),route:"cc",label:"Check Container"},{condition:e=>!!e.typ.match(/^(check|radio|decision-box|gdpr)/gi),route:"ct",label:"Option Label"},{condition:e=>!!e.typ.match(/^(check|radio)$/gi),route:"cw",label:"Check Wrapper"},{condition:e=>!!e.typ.match(/^(check|radio)$/gi),route:"cl",label:"Option Wrapper"},{condition:e=>!!e.typ.match(/(check|decision-box|radio|gdpr)/gi),route:"bx",label:"Box"},{condition:e=>!!e.typ.match(/(check|radio)/gi),route:"other-inp",label:"Other Option Input"}],ym=[{route:"ic",label:"Field Wrapper"},{route:"inp-opt",label:"Image Option"},{route:"img-inp",label:"Input"},{route:"img-wrp",label:"Image Wrapper"},{route:"check-box",label:"Check Box"},{route:"check-img",label:"Check Box Image"},{route:"img-card-wrp",label:"Image Container"},{route:"select-img",label:"Image"},{condition:e=>!e.optLblHide,route:"tc",label:"Image Label Container"},{condition:e=>!e.optLblHide,route:"img-title",label:"Image Label"}],wm=[{route:"fld",label:"Select"},{route:"slct-optn",label:"Options"},{route:"slct-opt-grp",label:"Options Group"}],_m=[{route:"rpt-wrp",label:"Repeatative Container"},{route:"rpt-grid-wrp",label:"Grid Container"},{route:"pair-btn-wrp",label:"Button Container"}],$m=[{route:"inp-fld-wrp",label:"Field Wrapper"},{route:"signature-pad",label:"Signature Pad"},{route:"clr-btn",label:"Clear Button",preIconKey:"clrPreIcn",sufIconKey:"clrSufIcn",preIconRoute:"clr-btn-pre-i",sufIconRoute:"clr-btn-suf-i"},{route:"undo-btn",label:"Undo Button",preIconKey:"undoPreIcn",sufIconKey:"undoSufIcn",preIconRoute:"undo-btn-pre-i",sufIconRoute:"undo-btn-suf-i"},{route:"redo-btn",label:"Redo Button",preIconKey:"redoPreIcn",sufIconKey:"redoSufIcn",preIconRoute:"redo-btn-pre-i",sufIconRoute:"redo-btn-suf-i"}],Sm=[{route:"inp-fld-wrp",label:"Field Wrapper"},{route:"otp-boxes-wrp",label:"OTP Boxes Wrapper"},{route:"otp-box",label:"OTP Box Input"},{route:"otp-actions-wrp",label:"Actions Row"},{route:"send-otp-btn",label:"Send OTP Button"},{route:"resend-wrp",label:"Resend Wrapper"},{route:"wait-txt",label:"Wait Text"},{route:"verify-btn",label:"Verify Button"},{route:"otp-success-msg",label:"OTP Success Message"},{route:"otp-error-msg",label:"OTP Error Message"}],jm=[{route:"inp-fld-wrp",label:"Field Wrapper"},{route:"rating-img",label:"Rating Image"},{route:"rating-msg",label:"Rating Message"}],Cm=[{route:"filepond--drop-label",label:"Drop Label"},{route:"filepond--label-action",label:"Label Action"},{route:"filepond--panel-root",label:"Panel Root"},{route:"filepond--item-panel",label:"Item Panel"},{route:"filepond--file-action-button",label:"File Action Button"},{route:"filepond--file",label:"File"}],Im=[{route:"currency-fld-wrp",label:"Currency Field Wrapper"},{route:"dpd-wrp",label:"Dropdown Wrapper"},{route:"selected-currency-img",label:"Selected Currency Image"},{route:"currency-amount-input",label:"Currency Amount Input"},{route:"input-clear-btn",label:"Input Clear Button"},{route:"option-wrp",label:"Option Wrapper"},{route:"option-search-wrp",label:"Option Search Wrapper"},{route:"opt-search-icn",label:"Option Search Icon"},{route:"opt-search-input",label:"Option Search Input"},{route:"search-clear-btn",label:"Search Clear Button"},{route:"option-list",label:"Option List"},{route:"option",label:"Currency Option"},{route:"opt-lbl-wrp",label:"Currency Option Label Wrapper"},{route:"opt-icn",label:"Currency Option Icon"},{route:"opt-lbl",label:"Currency Option Label"},{route:"opt-suffix",label:"Currency Option Trailing"}],km=[{route:"phone-fld-wrp",label:"Phone Field Wrapper"},{route:"dpd-wrp",label:"Dropdown Wrapper"},{route:"selected-country-img",label:"Selected Country Image"},{route:"phone-number-input",label:"Phone Number Input"},{route:"input-clear-btn",label:"Input Clear Button"},{route:"option-wrp",label:"Option Wrapper"},{route:"option-search-wrp",label:"Option Search Wrapper"},{route:"opt-search-icn",label:"Option Search Icon"},{route:"opt-search-input",label:"Option Search Input"},{route:"search-clear-btn",label:"Search Clear Button"},{route:"option-list",label:"Option List"},{route:"option",label:"Phone Number Option"},{route:"opt-lbl-wrp",label:"Option Label Wrapper"},{route:"opt-icn",label:"Phone Option Icon"},{route:"opt-lbl",label:"Phone Option Label"},{route:"opt-suffix",label:"Phone Option Suffix"}],Tm=[{route:"country-fld-wrp",label:"Country Field Wrapper"},{route:"selected-country-img",label:"Selected Country Image"},{route:"selected-country-lbl",label:"Selected Country Label"},{route:"inp-clr-btn",label:"Input Clear Button"},{route:"option-wrp",label:"Option Wrapper"},{route:"option-search-wrp",label:"Option Search Wrapper"},{route:"opt-search-icn",label:"Option Search Icon"},{route:"opt-search-input",label:"Option Search Input"},{route:"search-clear-btn",label:"Search Clear Button"},{route:"option-list",label:"Option List"},{route:"option",label:"Country Option"},{route:"opt-lbl-wrp",label:"Option Label Wrapper"},{route:"opt-icn",label:"Country Option Icon"},{route:"opt-lbl",label:"Country Option Label"}],Nm=[{route:"dpd-fld-wrp",label:"Dropdown Field Wrapper"},{route:"dpd-wrp",label:"Dropdown Wrapper"},{route:"selected-opt-img",label:"Selected Option Image"},{route:"selected-opt-lbl",label:"Selected Option Label"},{route:"selected-opt-clear-btn",label:"Input Clear Button"},{route:"option-wrp",label:"Option Wrapper"},{route:"option-search-wrp",label:"Option Search Wrapper"},{route:"opt-search-input",label:"Option Search Input"},{route:"opt-search-icn",label:"Option Search Icon"},{route:"search-clear-btn",label:"Search Clear Button"},{route:"option-list",label:"Option List"},{route:"option",label:"Option"},{route:"opt-lbl-wrp",label:"Option Label Wrapper"},{route:"opt-icn",label:"Option Icon"},{route:"opt-lbl",label:"Option Label"},{route:"chip-wrp",label:"Chip Wrapper"},{route:"chip-icn",label:"Chip Icon"},{route:"chip-lbl",label:"Chip Label"},{route:"chip-clear-btn",label:"Chip Clear Button"}];function Mm({fldKey:e}){var d,m,w,S;const n=ce(he),{formType:t,formID:r}=xe(),i=er(),a=ce(Ue)[e],l=ce(Qn)||"",{css:c}=ne(),h=j=>{i(`/form/builder/${t}/${r}/field-theme-customize/${j}/${e}`)};if(!a)return null;const u={fldKey:e,fieldObj:a,styles:n,selectedFieldKey:l,styleHandler:h};return o.jsxs(o.Fragment,{children:[Ci.condition(a)&&o.jsx(yt,B(y({},u),{route:Ci.route,label:Ci.label})),ut.fieldContainer.condition(a)&&o.jsx(yt,B(y({},u),{route:ut.fieldContainer.route,label:ut.fieldContainer.label})),a.logo&&o.jsx(yt,B(y({},u),{route:"logo",label:"Logo"})),ut.titleContainer.condition(a)&&o.jsx(yt,B(y({},u),{route:ut.titleContainer.route,label:ut.titleContainer.label})),o.jsx(Ae,B(y({},u),{elements:fm})),ut.labelContainer.condition(a)&&o.jsx(yt,B(y({},u),{route:ut.labelContainer.route,label:ut.labelContainer.label})),Ms[0].condition(a)&&o.jsx(xn,B(y(y({},u),Ms[0]),{additionalChild:(d=a.valid)!=null&&d.req&&((m=a.valid)!=null&&m.reqShow)?o.jsx(Xn,{cssSelector:`.${e}-req-smbl`,subRoute:e,route:"req-smbl",label:"Asterisk",offset:"1",highlightSelector:`[data-dev-req-smbl="${e}"]`,styleOverride:((w=n==null?void 0:n[e])==null?void 0:w["req-smbl"])!==void 0,classNames:c(Ge.simpleNavBtn)}):void 0})),o.jsx(Ae,B(y({},u),{elements:bm})),ut.fileInputContainer.condition(a)&&o.jsx(yt,B(y({},u),{route:ut.fileInputContainer.route,label:ut.fileInputContainer.label})),o.jsx(Ae,B(y({},u),{elements:xm,additionalChild:o.jsx(yt,B(y({},u),{route:"fld::placeholder",label:"Placeholder"}))})),a.typ.match(/^(button)$/gi)&&o.jsx(Ae,B(y({},u),{elements:gm})),a.typ==="repeater"&&o.jsxs(o.Fragment,{children:[o.jsx(Ae,B(y({},u),{elements:_m})),o.jsx(xn,y(y({},u),Si.addButton)),o.jsx(xn,y(y({},u),Si.removeButton)),((S=a.addToEndBtn)==null?void 0:S.show)&&o.jsxs(o.Fragment,{children:[o.jsx(yt,B(y({},u),{route:"add-to-end-btn-wrp",label:"End Button Container"})),o.jsx(xn,y(y({},u),Si.addToEndButton))]})]}),o.jsx(Ae,B(y({},u),{elements:vm})),a.typ==="image-select"&&o.jsx(Ae,B(y({},u),{elements:ym})),a.typ==="html-select"&&o.jsx(Ae,B(y({},u),{elements:wm})),a.typ==="signature"&&o.jsx(Ae,B(y({},u),{elements:$m})),a.typ==="email-otp"&&o.jsx(Ae,B(y({},u),{elements:Sm})),a.typ==="rating"&&o.jsx(Ae,B(y({},u),{elements:jm})),a.typ==="advanced-file-up"&&o.jsx(xn,B(y({},u),{route:"filepond--drop-label",label:"File Upload Field",additionalChild:o.jsx(Ae,B(y({},u),{elements:Cm}))})),a.typ==="currency"&&o.jsx(Ae,B(y({},u),{elements:Im})),a.typ==="phone-number"&&o.jsx(Ae,B(y({},u),{elements:km})),a.typ==="country"&&o.jsx(Ae,B(y({},u),{elements:Tm})),a.typ==="select"&&o.jsx(Ae,B(y({},u),{elements:Nm})),o.jsx(Ae,B(y({},u),{elements:mm})),ji.condition(a)&&o.jsx(yt,B(y({},u),{route:ji.route,label:ji.label}))]})}const Em=[{route:"_frm-bg",label:"Form Wrapper",highlightSelector:"[data-dev-_frm-bg]",hasTarget:!0},{route:"fld-wrp",label:"Field Containers",highlightSelector:"[data-dev-fld-wrp]",hasTarget:!0},{route:"lbl-wrp",label:"Label Containers",highlightSelector:"[data-dev-lbl-wrp]",hasTarget:!0},{route:"lbl",label:"Labels",highlightSelector:"[data-dev-lbl]",hasTarget:!0,children:[{route:"lbl-pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-lbl-pre-i]",hasTarget:!0},{route:"lbl-suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-lbl-suf-i]",hasTarget:!0},{route:"req-smbl",label:"Asterisk Icon",highlightSelector:"[data-dev-req-smbl]",hasTarget:!0}]},{route:"sub-titl",label:"Subtitles",highlightSelector:"[data-dev-sub-titl]",hasTarget:!0,children:[{route:"sub-titl-pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-sub-titl-pre-i]",hasTarget:!0},{route:"sub-titl-suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-sub-titl-suf-i]",hasTarget:!0}]},{route:"fld",label:"Inputs",highlightSelector:"[data-dev-fld]",hasTarget:!0,children:[{route:"pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-pre-i]",hasTarget:!0},{route:"suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-suf-i]",hasTarget:!0},{route:"fld::placeholder",label:"Placeholder Text",highlightSelector:"[data-dev-fld-placeholder]",hasTarget:!1}]},{route:"hlp-txt",label:"Helper Texts",highlightSelector:"[data-dev-hlp-txt]",hasTarget:!0,children:[{route:"hlp-txt-pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-hlp-txt-pre-i]",hasTarget:!0},{route:"hlp-txt-suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-hlp-txt-suf-i]",hasTarget:!0}]},{route:"err-msg",label:"Error Messages",highlightSelector:"[data-dev-err-msg]",hasTarget:!0,children:[{route:"err-txt-pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-err-txt-pre-i]",hasTarget:!0},{route:"err-txt-suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-err-txt-suf-i]",hasTarget:!0}]},{route:"btn",label:"Buttons",highlightSelector:"[data-dev-btn]",hasTarget:!0,children:[{route:"btn-pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-btn-pre-i]",hasTarget:!0},{route:"btn-suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-btn-suf-i]",hasTarget:!0}]}],zm=[{route:"multi-step/stp-hdr-wrpr",label:"Step Header Wrapper",highlightSelector:"[data-dev-stp-hdr-wrpr]",hasTarget:!0},{route:"multi-step/stp-hdr",label:"Step Header",highlightSelector:"[data-dev-stp-hdr]",hasTarget:!0},{route:"multi-step/stp-icn-cntn",label:"Header Icon",highlightSelector:"[data-dev-stp-icn-cntn]",hasTarget:!0},{route:"multi-step/stp-hdr-lbl",label:"Header Label",highlightSelector:"[data-dev-stp-hdr-lbl]",hasTarget:!0,children:[{route:"multi-step/stp-lbl-pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-stp-lbl-pre-i]",hasTarget:!0},{route:"multi-step/stp-lbl-suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-stp-lbl-suf-i]",hasTarget:!0}]},{route:"multi-step/stp-hdr-sub-titl",label:"Header Subtitle",highlightSelector:"[data-dev-stp-hdr-sub-titl]",hasTarget:!0,children:[{route:"multi-step/stp-sub-titl-pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-stp-sub-titl-pre-i]",hasTarget:!0},{route:"multi-step/stp-sub-titl-suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-stp-sub-titl-suf-i]",hasTarget:!0}]},{route:"multi-step/stp-wrpr",label:"Step Wrapper",highlightSelector:"[data-dev-stp-wrpr]",hasTarget:!0},{route:"multi-step/stp-progress-wrpr",label:"Progress Wrapper",highlightSelector:"[data-dev-stp-progress-wrpr]",hasTarget:!0},{route:"multi-step/stp-progress-bar",label:"Progress Bar",highlightSelector:"[data-dev-stp-progress-bar]",hasTarget:!0},{route:"multi-step/stp-cntnt",label:"Step Content",highlightSelector:"[data-dev-stp-cntnt]",hasTarget:!0},{route:"multi-step/stp-btn-wrpr",label:"Button Wrapper",highlightSelector:"[data-dev-stp-btn-wrpr]",hasTarget:!0},{route:"multi-step/prev-step-btn",label:"Previous Button",highlightSelector:"[data-dev-prev-step-btn]",hasTarget:!0,children:[{route:"multi-step/prev-step-btn-pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-prev-step-btn-pre-i]",hasTarget:!0},{route:"multi-step/prev-step-btn-suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-prev-step-btn-suf-i]",hasTarget:!0}]},{route:"multi-step/next-step-btn",label:"Next Button",highlightSelector:"[data-dev-next-step-btn]",hasTarget:!0,children:[{route:"multi-step/next-step-btn-pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-next-step-btn-pre-i]",hasTarget:!0},{route:"multi-step/next-step-btn-suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-next-step-btn-suf-i]",hasTarget:!0}]}];function Am(){const{css:e}=ne(),n=ce(he),t=ce(qi),i=(Array.isArray(t)?t:[t]).length>1,s=er(),{formID:a,formType:l,"*":c}=xe(),[h,u,d]=(c==null?void 0:c.split("/"))||[],m=Zl(),w=Object.entries(m).filter(([,C])=>!C.hidden),S=C=>Hs(um[C]||C),j=(C,g=null,f=null)=>{f&&(C=f.typ==="html"||f.typ==="divider"?"fld-wrp":C),s(g?`/form/builder/${l}/${a}/field-theme-customize/${C}/${g}`:`/form/builder/${l}/${a}/theme-customize/${C}`)},I=(C,g)=>C.route===g?!0:C.children?C.children.some(f=>I(f,g)):!1,T=(C,g=1)=>{let f="";return h==="theme-customize"&&(d?f=`${u}/${d}`:f=u||""),C.map((b,p)=>{let x=!1;return f&&b.children&&b.children.length>0&&(b.route===f?x=!0:x=I(b,f)),b.children&&b.children.length>0?o.jsx(wr,{title:b.label,level:g,route:b.route,onClick:()=>j(b.route),highlightSelector:b.highlightSelector,hasTarget:b.hasTarget!==!1,open:x,className:e(Ge.layerAccordion),children:T(b.children,g)},`${b.route}-${p}`):o.jsx(wr,{title:b.label,level:g,route:b.route,onClick:()=>j(b.route),highlightSelector:b.highlightSelector,hasTarget:b.hasTarget!==!1,open:!1,className:e(Ge.layerAccordion)},`${b.route}-${p}`)})};return o.jsxs("div",{className:e(Ge.con),children:[o.jsx(Xn,{icn:o.jsx(cm,{size:13}),route:"quick-tweaks",label:_("Theme Quick Tweaks"),classNames:e(Ge.themeQuickTweaks)}),o.jsx("div",{className:e(Ge.divider)}),o.jsxs(Ps,{style:{height:"calc(100% - 120px)"},autoHide:!0,children:[o.jsx(en,{id:"common-elements-fields",title:_("Global Elements"),className:e(Ge.sectionAccordion),open:!["field-theme-customize","themes","multi-step"].includes(h)&&u!=="quick-tweaks",children:T(Em)},"common-elements"),i&&o.jsx(en,{id:"multi-step-elements-fields",title:_("Multi-Step Elements"),className:e(Ge.sectionAccordion),open:u==="multi-step",children:T(zm)},"multi-step-elements"),o.jsxs(en,{id:"individual-elements-fields",title:_("Individual Elements"),className:e(Ge.sectionAccordion),open:h==="field-theme-customize",children:[w==null?void 0:w.map(([C,g],f)=>o.jsx(wr,{title:S(g.typ),level:1,route:`quick-tweaks/${C}`,tag:C,open:C===d,onClick:()=>j("quick-tweaks",C,g),highlightSelector:`[data-dev-fld-wrp="${C}"]`,fldData:g,className:e(Ge.layerAccordion),styleOverride:Xl(n,C),children:o.jsx(Om,{fldKey:C,fldData:g,styles:n,styleHandler:j})},C)),w.length===0&&o.jsx(pm,{})]},"individual-elements")]})]})}function Om({fldKey:e,fldData:n,styles:t,styleHandler:r}){return ne(),o.jsx(Mm,{fldKey:e})}var Lm=M.memo(Am);function Bm({size:e=30,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("polyline",{className:"svg-icn",strokeWidth:n,points:"19.23 4.28 19.23 25.72 24.04 20.61 19.23 25.72 14.48 20.68"}),o.jsx("path",{fill:"currentColor",d:"M9.74,3.51H7.9L5,11.7h1.8L7.3,10h3l.54,1.73h1.83ZM7.68,8.76,8.55,6,8.8,5,9.05,6l.88,2.81Z"}),o.jsx("path",{fill:"currentColor",d:"M5.47,22.26l-.22-.45,3.64-5.93.34-.46H5.66V14.14H11.3l.23.43L8,20.44,7.56,21h3.72v1.3Z"})]})}const Ki=[{category:"basic",title:"Basic Fields"},{category:"option",title:"Option/Choice Fields"},{category:"advanced",title:"Advanced Fields"},{category:"payment",title:"Payment Fields"},{category:"captcha",title:"Spam Protection/Captcha"},{category:"element",title:"Elements"}],Rm=()=>Ki.reduce((e,{category:n})=>(e[n]=[],e),{}),Ce={toolbarWrapper:{w:"100%",h:"100%",p:"10px 15px","container-type":"inline-size","container-name":"bf-toolbar"},searchSection:{mb:5,py:8},categoriesWrapper:{px:5},twoColumnGrid:{dy:"grid","grid-template-columns":"1fr 1fr",gp:10,py:10},singleColumnGrid:{dy:"flex","flex-direction":"column",gap:8,p:8},categorySection:{mb:10,"& .btgl":{py:10,bb:"1px solid var(--bf-stroke-clr)"}},toolWrapper:{pn:"relative",flx:"align-center",ow:"hidden",w:"100%",cg:5,p:8,"&:hover":{"& .drag-icon":{w:"13px"}}},emptyStateWrapper:{ta:"center",p:20,cr:"#666",fs:14},emptyStateDescription:{mt:5,cr:"#999",fs:12},emptyIcon:{fs:40,mb:10},emptyStateTitle:{fs:18,fw:"var(--bf-font-semibold)",color:"#4b5563",mb:8},toolbar_wrp:{bd:"var(--white-100)",h:"100%",ow:"hidden",mxw:182,mnw:55,px:3,pt:8,tn:"width 500ms",bs:"0 0 0 1px var(--b-44-87)"},searchBar:{bs:"#7b7b7b 0px 7px 9px -9px",pn:"relative",zx:99,pb:8,clipPath:"inset(0 0 -15px 0)"},fields_search:{pn:"relative",mr:5,tn:"width .2s"},search_field:{w:"100%",h:35,oe:"none",b:"1px solid var(--bf-stroke-clr) !important",brs:"var(--bf-bdr-radius-sm) !important",pl:"27px !important",pr:"5px !important",":focus":{bs:"0px 0px 0px 1.5px var(--b-50) !important",bcr:"var(--b-92-62) !important",pr:"0px !important","& ~ .shortcut":{dy:"none"},"& ~ span svg":{cr:"var(--b-50)"}},"::placeholder":{fs:12},"::-webkit-search-cancel-button":{appearance:"none"}},search_icn:{pn:"absolute",tp:"50%",mx:6,lt:0,tm:"translateY(-50%)",cr:"var(--white-0-50)",curp:1,"& svg":{dy:"block"}},clear_icn:{pn:"absolute",tp:"50%",mx:6,rt:0,tm:"translateY(-50%)",cr:"var(--white-0-50)",curp:1,w:18,h:18,bd:"var(--white-0-83)",brs:20,backgroundPosition:"50% 50% !important",bdr:"no-repeat !important",bi:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='Black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E")`,"&:focus-visible":{oe:"2px solid var(--bf-primary)"}},sec_acc:{mb:15,cr:"var(--white-0-50)","& .title":{fw:"var(--bf-font-normal)"},"& .btgl":{cur:"pointer !important"}},tool_bar:{dy:"flex",flxp:"wrap",owy:"scroll",px:2,pt:5,mb:300},sort_btn:{w:35,h:35,cr:"var(--white-0-50)",p:0,b:"none",bd:"transparent",brs:"var(--bf-bdr-radius-sm)",flxc:1,curp:1,flx:"center",":hover:not(.active)":{bd:"var(--white-0-81-32)",cr:"var(--b-53-8)"},"&.active":{bd:"var(--b-79-96)",cr:"var(--b-50)"},"&:focus-visible":{oe:"2px solid var(--bf-primary)"}},tool_icn:{dy:"flex",cr:"var(--bf-text-clr-darkgray)",mr:8},tool_label:{fs:"var(--bf-font-base)",ws:"nowrap",ow:"hidden",to:"ellipsis"},shortcut:{pn:"absolute",cr:"var(--white-0-0-64)",brs:4,px:4,py:3,fs:9,fw:600,tp:"50%",tm:"translateY(-50%)",rt:5},dragIcon:{pn:"absolute",rt:10,cr:"var(--bf-text-clr-gray)",w:0}},Pm={flx:"align-center",b:"1px solid var(--bf-stroke-clr)",bd:"var(--white)",cr:"var(--bf-text-clr-darkgray)",fw:"var(--bf-font-medium)",fs:15,ws:"nowrap",wb:"keep-all",mxw:"var(--bf-tool-item-width, 200px)",h:42,brs:"var(--bf-bdr-radius-sm)",cur:"grab",tn:"all 200ms",":hover":{cr:"var(--b-50)",oe:"none",fw:"var(--bf-font-medium)",bs:"0 0 0 1.5px var(--white-0-86) inset, 0 1px 11px -4px var(--white-0-69)"},":focus":{cr:"var(--b-50)",oe:"none",bs:"0 0 0 1.5px var(--white-0-86) inset, 0 1px 11px -4px var(--white-0-69)"},":hover .tool-icn":{cr:"var(--b-50) !important"},":focus .tool-icn":{cr:"var(--b-50) !important"},":active":{bs:"0 0 0 1.5px var(--b-50) inset, 0 0 2px var(--white-2-47), 0 1px 11px -4px var(--white-0-69)"}};function Fm({setNewData:e,value:n,children:t,title:r}){const i=re(Jl);Y(lt),re(Fr);const{css:s}=ne(),a=u=>{u.dataTransfer.setData("text/plain",""),Is(),i(n)},l=()=>{Is(),e(n)},c=u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),e(n))},h=()=>{i(null)};return o.jsx("div",{tabIndex:0,title:r,role:"button","data-testid":`${n.fieldData.typ}-tool`,className:`${s(Pm)} bf-tool-item`,draggable:!0,onClick:l,onKeyDown:c,onDragStart:a,onDragEnd:h,children:t})}var Dm=M.memo(Fm);function Hm({size:e=24}){return o.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",children:o.jsx("path",{fill:"currentColor",d:"M1 14.5a6.496 6.496 0 0 1 3.064-5.519a8.001 8.001 0 0 1 15.872 0a6.5 6.5 0 0 1-2.936 12L7 21c-3.356-.274-6-3.078-6-6.5zm15.848 4.487a4.5 4.5 0 0 0 2.03-8.309l-.807-.503l-.12-.942a6.001 6.001 0 0 0-11.903 0l-.12.942l-.805.503a4.5 4.5 0 0 0 2.029 8.309l.173.013h9.35l.173-.013zM13 13v4h-2v-4H8l4-5l4 5h-3z"})})}function gr({size:e}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("path",{fill:"currentColor",d:"M9 15h14v2H9z"}),o.jsx("path",{fill:"currentColor",d:"M28 22H4a2.002 2.002 0 0 1-2-2v-8a2.002 2.002 0 0 1 2-2h24a2.002 2.002 0 0 1 2 2v8a2.002 2.002 0 0 1-2 2ZM4 12v8h24v-8Z"})]})}function Vm({w:e}){return o.jsxs("svg",{width:e,xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 215 215",children:[o.jsx("rect",{width:"175",height:"175",x:"19.4",y:"20.7",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",rx:"30"}),o.jsx("path",{fill:"currentColor",d:"M92.2 156.7a19.1 19.1 0 01-13.4-5.4l-37-36.2a6.9 6.9 0 01-.2-9.7 6.9 6.9 0 019.7-.1l37.2 36a5.3 5.3 0 008-.6l60.8-82a6.9 6.9 0 019.7-1.4 6.9 6.9 0 011.4 9.6l-60.9 82a19 19 0 01-13.8 7.7h-1.5z"})]})}function Wm({size:e=20}){return o.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{fill:"currentColor",d:"M16.509 16.845c.147-.507.09-.971-.155-1.316c-.225-.316-.605-.499-1.062-.52l-8.66-.113a.156.156 0 0 1-.133-.07a.194.194 0 0 1-.02-.156a.24.24 0 0 1 .203-.156l8.736-.113c1.035-.049 2.16-.886 2.554-1.913l.499-1.302a.27.27 0 0 0 .014-.168a5.689 5.689 0 0 0-10.938-.584a2.584 2.584 0 0 0-1.793-.498a2.561 2.561 0 0 0-2.223 3.18A3.634 3.634 0 0 0 0 16.751c0 .175.014.351.035.527a.174.174 0 0 0 .17.148h15.98a.22.22 0 0 0 .204-.155l.12-.427zm2.757-5.564c-.077 0-.161 0-.239.011c-.056 0-.105.042-.127.098l-.337 1.174c-.148.507-.092.971.154 1.317c.225.316.605.498 1.062.52l1.844.113c.056 0 .105.026.133.07a.203.203 0 0 1 .021.156a.24.24 0 0 1-.204.156l-1.92.112c-1.042.049-2.159.887-2.553 1.914l-.141.358c-.028.072.021.142.099.142h6.597a.174.174 0 0 0 .17-.126a4.87 4.87 0 0 0 .175-1.28a4.74 4.74 0 0 0-4.734-4.727"})})}function Gm({w:e}){return o.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",children:o.jsxs("g",{fill:"currentColor",children:[o.jsx("path",{d:"M20.385 2.879a3 3 0 0 0-4.243 0L14.02 5l-.707-.708a1 1 0 1 0-1.414 1.415l5.657 5.656A1 1 0 0 0 18.97 9.95l-.707-.707l2.122-2.122a3 3 0 0 0 0-4.242Z"}),o.jsx("path",{fillRule:"evenodd",d:"M11.93 7.091L4.152 14.87a3.001 3.001 0 0 0-.587 3.415L2 19.85l1.414 1.415l1.565-1.566a3.001 3.001 0 0 0 3.415-.586l7.778-7.778L11.93 7.09Zm1.414 4.243L11.93 9.92l-6.364 6.364a1 1 0 0 0 1.414 1.414l6.364-6.364Z",clipRule:"evenodd"})]})})}function Um({size:e=24,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",strokeWidth:n,className:"svg-icn",children:[o.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"23"}),o.jsx("path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"})]})}function Es({w:e}){return o.jsxs("svg",{width:e,xmlns:"http://www.w3.org/2000/svg",id:"Layer_1","data-name":"Layer 1",viewBox:"0 0 215 215",children:[o.jsx("rect",{width:"175",height:"175",x:"19.2",y:"23.14",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",rx:"30"}),o.jsx("rect",{fill:"currentColor",width:"16",height:"37.79",x:"47.65",y:"5.88",className:"cls-2",rx:"8"}),o.jsx("rect",{fill:"currentColor",width:"16",height:"37.79",x:"149.75",y:"5.88",className:"cls-2",rx:"8"}),o.jsx("rect",{width:"109.57",height:"109.57",x:"54.09",y:"58.23",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"12",rx:"54.78"}),o.jsx("path",{fill:"currentColor",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"4",d:"M128.64 140.19L104 116.55a3.78 3.78 0 01-1.17-2.73V80.63a3.79 3.79 0 013.79-3.79h0a3.79 3.79 0 013.79 3.79v30a3.79 3.79 0 001.16 2.73l22.28 21.41a3.78 3.78 0 01.11 5.35h0a3.79 3.79 0 01-5.32.07z"})]})}function Km({size:e}){return o.jsxs("svg",{width:e,height:e,xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 215 215",children:[o.jsx("rect",{width:"175",height:"175",x:"20",y:"20",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",rx:"87.5"}),o.jsx("path",{fill:"currentColor",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"7",d:"M96.9 150.2a16.2 16.2 0 01-11.3-4.6L54 115a5.8 5.8 0 01-.1-8.3h0a5.8 5.8 0 018.2 0l31.5 30.5a4.5 4.5 0 006.8-.5L152 67.1a5.9 5.9 0 018.2-1.2h0a5.9 5.9 0 011.2 8.2L110 143.7a16.2 16.2 0 01-11.7 6.5h-1.3z"})]})}function Ym({w:e}){return o.jsxs("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 215 215",children:[o.jsx("line",{strokeWidth:"16px",className:"svg-icn",strokeMiterlimit:"10",x1:"202.89",y1:"107.5",x2:"125.35",y2:"107.5"}),o.jsx("line",{strokeWidth:"16px",className:"svg-icn",strokeMiterlimit:"10",x1:"89.65",y1:"107.5",x2:"12.11",y2:"107.5"}),o.jsx("path",{strokeWidth:"16px",className:"svg-icn",strokeMiterlimit:"10",d:"M125.36,107.5A17.86,17.86,0,1,1,107.5,89.64,17.84,17.84,0,0,1,125.36,107.5Z"})]})}function qm({w:e}){return o.jsxs("svg",{width:e,xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 215 215",children:[o.jsx("rect",{width:"169.7",height:"169.7",x:"22.7",y:"23.1",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",rx:"30"}),o.jsx("path",{fill:"currentColor",d:"M107.6 152.4a16.2 16.2 0 01-12.1-5.5L46.8 93.4a7.6 7.6 0 010-10.1 6.1 6.1 0 019.2 0l48.6 53.4a4.2 4.2 0 002.4 1.3 3.9 3.9 0 003.4-1.3L159 83.3a6.1 6.1 0 019.2 0 7.7 7.7 0 010 10.1L119.6 147a16.2 16.2 0 01-12 5.5z"})]})}function Zm({stroke:e=1.5,size:n=25}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M22.3 16H8.7C7.76112 16 7 16.5223 7 17.1667V21.8333C7 22.4777 7.76112 23 8.7 23H22.3C23.2389 23 24 22.4777 24 21.8333V17.1667C24 16.5223 23.2389 16 22.3 16Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M11.2373 18.104V20.4417",stroke:"currentColor",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M12.2057 18.6885L10.2686 19.8573",stroke:"currentColor",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M10.2686 18.6885L12.2057 19.8573",stroke:"currentColor",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M15.7109 18.104V20.4417",stroke:"currentColor",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M16.6793 18.6885L14.7422 19.8573",stroke:"currentColor",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M14.7422 18.6885L16.6793 19.8573",stroke:"currentColor",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M20.1855 18.104V20.4417",stroke:"currentColor",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M21.1539 18.6885L19.2168 19.8573",stroke:"currentColor",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M19.2168 18.6885L21.1539 19.8573",stroke:"currentColor",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M22 13V5.36346C22 4.7848 21.7893 4.22985 21.4142 3.82068C21.0391 3.41151 20.5304 3.18164 20 3.18164H4C3.46957 3.18164 2.96086 3.41151 2.58579 3.82068C2.21071 4.22985 2 4.7848 2 5.36346V18.4544C2 19.6544 2.9 20.6362 4 20.6362H4.5",stroke:"currentColor",strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M22 6.45459L13.03 12.6728C12.7213 12.8838 12.3643 12.9957 12 12.9957C11.6357 12.9957 11.2787 12.8838 10.97 12.6728L2 6.45459",stroke:"currentColor",strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Xm({size:e}){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:e,width:e,viewBox:"0 0 215 215",children:o.jsx("path",{fill:"none",strokeWidth:"16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M37 134s8.8-8.8 35.3-8.8 44 17.6 70.5 17.6 35.3-8.8 35.3-8.8V28.1s-8.9 8.9-35.3 8.9-44.1-17.7-70.6-17.7S37 28.1 37 28.1zM37 195.7V134"})})}function Jm({size:e}){return o.jsxs("svg",{version:"1.1",id:"fi_1035147",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 502.498 502.498",stroke:"currentColor",width:e,height:e,fill:"currentColor",children:[o.jsx("g",{children:o.jsx("g",{children:o.jsxs("g",{children:[o.jsx("path",{d:`M232.04,37.666c0.977,1.004,1.42,2.413,1.192,3.796l-2.339,14.38c-0.271,1.667,0.433,3.343,1.814,4.316 |
| 1428 |
s3.195,1.073,4.674,0.257l11.732-6.488c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488c1.479,0.816,3.294,0.716,4.674-0.257 |
| 1429 |
s2.085-2.648,1.814-4.316l-2.339-14.38c-0.228-1.383,0.214-2.792,1.192-3.796l10.099-10.355c1.153-1.184,1.548-2.913,1.024-4.48 |
| 1430 |
c-0.524-1.567-1.88-2.71-3.513-2.962l-13.577-2.074c-1.455-0.223-2.703-1.157-3.328-2.489L255.248,2.7 |
| 1431 |
c-0.726-1.553-2.285-2.546-3.999-2.546s-3.273,0.992-3.999,2.546l-5.914,12.606c-0.625,1.333-1.873,2.266-3.328,2.489 |
| 1432 |
l-13.577,2.074c-1.633,0.252-2.989,1.395-3.513,2.962c-0.524,1.567-0.129,3.296,1.024,4.48L232.04,37.666z`,stroke:"currentColor"}),o.jsx("path",{d:`M278.067,461.249l-13.577-2.075c-1.455-0.223-2.703-1.157-3.328-2.489l-5.915-12.606 |
| 1433 |
c-0.726-1.553-2.285-2.546-3.999-2.546s-3.273,0.992-3.999,2.546l-5.914,12.606c-0.625,1.333-1.873,2.266-3.328,2.489 |
| 1434 |
l-13.577,2.075c-1.633,0.252-2.989,1.395-3.513,2.962s-0.129,3.296,1.024,4.48l10.099,10.355c0.977,1.004,1.42,2.413,1.192,3.796 |
| 1435 |
l-2.339,14.38c-0.271,1.667,0.433,3.343,1.814,4.316s3.195,1.073,4.674,0.257l11.732-6.488c1.329-0.735,2.943-0.735,4.273,0 |
| 1436 |
l11.732,6.488c1.479,0.816,3.294,0.716,4.674-0.257s2.085-2.648,1.814-4.316l-2.339-14.38c-0.228-1.383,0.214-2.791,1.192-3.796 |
| 1437 |
l10.099-10.355c1.153-1.184,1.548-2.913,1.024-4.48S279.7,461.501,278.067,461.249z`}),o.jsx("path",{d:`M124.538,67.512c0.981,1.003,1.426,2.412,1.201,3.796l-2.348,14.38c-0.273,1.67,0.432,3.349,1.815,4.323 |
| 1438 |
c1.384,0.974,3.202,1.071,4.682,0.25l11.732-6.488c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488 |
| 1439 |
c1.479,0.816,3.294,0.716,4.674-0.257s2.085-2.648,1.814-4.316l-2.348-14.38c-0.223-1.386,0.226-2.795,1.209-3.796l10.099-10.355 |
| 1440 |
c1.153-1.184,1.548-2.913,1.024-4.48c-0.524-1.567-1.88-2.71-3.513-2.962l-13.577-2.074c-1.458-0.22-2.71-1.154-3.337-2.489 |
| 1441 |
l-5.914-12.606c-0.737-1.523-2.281-2.49-3.972-2.49s-3.235,0.967-3.972,2.49l-5.967,12.606c-0.625,1.333-1.873,2.266-3.328,2.489 |
| 1442 |
l-13.577,2.074c-1.635,0.249-2.993,1.391-3.519,2.959c-0.526,1.568-0.132,3.298,1.021,4.483L124.538,67.512z`}),o.jsx("path",{d:`M391.263,431.959l-13.577-2.074c-1.458-0.22-2.71-1.154-3.337-2.489l-5.914-12.597c-0.728-1.548-2.284-2.536-3.995-2.536 |
| 1443 |
c-1.71,0-3.267,0.988-3.995,2.536l-5.914,12.597c-0.625,1.333-1.873,2.266-3.328,2.489l-13.577,2.074 |
| 1444 |
c-1.635,0.249-2.993,1.391-3.519,2.959s-0.132,3.298,1.021,4.483l10.099,10.355c0.981,1.003,1.426,2.412,1.201,3.796 |
| 1445 |
l-2.348,14.38c-0.273,1.67,0.432,3.349,1.815,4.323c1.384,0.974,3.202,1.071,4.682,0.25l11.732-6.488 |
| 1446 |
c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488c1.479,0.816,3.294,0.716,4.674-0.257s2.085-2.648,1.814-4.316l-2.348-14.38 |
| 1447 |
c-0.226-1.384,0.22-2.793,1.201-3.796l10.099-10.355c1.153-1.184,1.548-2.912,1.024-4.48S392.897,432.211,391.263,431.959z`}),o.jsx("path",{d:`M44.428,143.739c0.977,1.004,1.42,2.413,1.192,3.796l-2.339,14.38c-0.271,1.667,0.433,3.343,1.814,4.316 |
| 1448 |
c1.381,0.973,3.195,1.073,4.674,0.257l11.732-6.488c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488 |
| 1449 |
c1.479,0.816,3.294,0.716,4.674-0.257c1.381-0.973,2.085-2.648,1.814-4.316l-2.339-14.38c-0.228-1.383,0.214-2.792,1.192-3.796 |
| 1450 |
l10.108-10.355c1.153-1.185,1.547-2.915,1.021-4.483c-0.526-1.568-1.885-2.71-3.519-2.959l-13.577-2.074 |
| 1451 |
c-1.455-0.223-2.703-1.157-3.328-2.489l-5.914-12.606c-0.726-1.553-2.285-2.546-3.999-2.546s-3.273,0.992-3.999,2.546 |
| 1452 |
l-5.914,12.606c-0.625,1.333-1.873,2.266-3.328,2.489l-13.577,2.074c-1.633,0.252-2.989,1.395-3.513,2.962 |
| 1453 |
c-0.524,1.567-0.129,3.296,1.024,4.48L44.428,143.739z`}),o.jsx("path",{d:`M472.698,346.632l-13.577-2.074c-1.455-0.223-2.703-1.157-3.328-2.489l-5.923-12.606 |
| 1454 |
c-0.728-1.548-2.284-2.536-3.994-2.536c-1.71,0-3.267,0.988-3.995,2.536l-5.914,12.606c-0.627,1.335-1.878,2.269-3.337,2.489 |
| 1455 |
l-13.577,2.074c-1.633,0.252-2.989,1.395-3.513,2.962s-0.129,3.296,1.024,4.48l10.108,10.355c0.98,1.003,1.426,2.412,1.201,3.796 |
| 1456 |
l-2.348,14.38c-0.271,1.667,0.433,3.343,1.814,4.316c1.381,0.973,3.195,1.073,4.674,0.257l11.732-6.488 |
| 1457 |
c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488c1.479,0.821,3.298,0.724,4.682-0.25c1.384-0.974,2.089-2.653,1.815-4.323 |
| 1458 |
l-2.348-14.38c-0.228-1.383,0.214-2.792,1.192-3.796l10.108-10.355c1.153-1.185,1.547-2.915,1.021-4.483 |
| 1459 |
C475.691,348.023,474.333,346.881,472.698,346.632z`}),o.jsx("path",{d:`M49.102,280.848c1.381-0.973,2.085-2.648,1.814-4.316l-2.339-14.38c-0.228-1.383,0.214-2.792,1.192-3.796l10.099-10.355 |
| 1460 |
c1.153-1.184,1.548-2.913,1.024-4.48c-0.524-1.567-1.88-2.71-3.513-2.962l-13.577-2.074c-1.455-0.223-2.703-1.157-3.328-2.489 |
| 1461 |
l-5.914-12.606c-0.726-1.553-2.285-2.546-3.999-2.546s-3.273,0.992-3.999,2.546l-5.914,12.606 |
| 1462 |
c-0.625,1.333-1.873,2.266-3.328,2.489L3.741,240.56c-1.633,0.252-2.989,1.395-3.513,2.962c-0.524,1.567-0.129,3.296,1.024,4.48 |
| 1463 |
l10.099,10.355c0.977,1.004,1.42,2.413,1.192,3.796l-2.339,14.38c-0.271,1.667,0.433,3.343,1.814,4.316s3.195,1.073,4.674,0.257 |
| 1464 |
l11.732-6.488c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488C45.906,281.92,47.721,281.821,49.102,280.848z`}),o.jsx("path",{d:`M501.246,248.001c1.153-1.184,1.548-2.913,1.024-4.48c-0.524-1.567-1.88-2.71-3.513-2.962l-13.577-2.074 |
| 1465 |
c-1.455-0.223-2.703-1.157-3.328-2.489l-5.914-12.606c-0.726-1.553-2.285-2.546-3.999-2.546s-3.273,0.992-3.999,2.546 |
| 1466 |
l-5.914,12.606c-0.625,1.333-1.873,2.266-3.328,2.489l-13.577,2.074c-1.633,0.252-2.989,1.395-3.513,2.962 |
| 1467 |
c-0.524,1.567-0.129,3.296,1.024,4.48l10.099,10.355c0.977,1.004,1.42,2.413,1.192,3.796l-2.339,14.38 |
| 1468 |
c-0.271,1.667,0.433,3.343,1.814,4.316s3.195,1.073,4.674,0.257l11.732-6.488c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488 |
| 1469 |
c1.479,0.816,3.294,0.716,4.674-0.257s2.085-2.648,1.814-4.316l-2.339-14.38c-0.228-1.383,0.214-2.792,1.192-3.796 |
| 1470 |
L501.246,248.001z`}),o.jsx("path",{d:`M94.348,344.822l-13.577-2.074c-1.458-0.22-2.71-1.154-3.337-2.489l-5.914-12.597c-0.728-1.548-2.284-2.536-3.994-2.536 |
| 1471 |
c-1.71,0-3.267,0.988-3.995,2.536l-5.914,12.57c-0.625,1.333-1.873,2.266-3.328,2.489l-13.577,2.101 |
| 1472 |
c-1.635,0.249-2.993,1.391-3.519,2.959c-0.526,1.568-0.132,3.298,1.021,4.483l10.108,10.355c0.977,1.004,1.42,2.413,1.192,3.796 |
| 1473 |
l-2.348,14.424c-0.273,1.67,0.432,3.349,1.815,4.323c1.384,0.974,3.202,1.071,4.682,0.25l11.732-6.488 |
| 1474 |
c1.322-0.749,2.936-0.766,4.273-0.044l11.732,6.488c1.479,0.816,3.294,0.716,4.674-0.257c1.381-0.973,2.085-2.648,1.814-4.316 |
| 1475 |
l-2.348-14.38c-0.226-1.384,0.22-2.793,1.201-3.796l10.099-10.355c1.153-1.184,1.548-2.913,1.024-4.48 |
| 1476 |
C97.336,346.217,95.981,345.074,94.348,344.822z`}),o.jsx("path",{d:`M430.564,141.929c0.977,1.004,1.42,2.413,1.192,3.796l-2.339,14.424c-0.271,1.667,0.433,3.343,1.814,4.316 |
| 1477 |
s3.195,1.073,4.674,0.257l11.732-6.488c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488c1.482,0.842,3.315,0.755,4.711-0.222 |
| 1478 |
c1.396-0.977,2.105-2.671,1.821-4.351l-2.339-14.38c-0.228-1.383,0.214-2.792,1.192-3.796l10.108-10.355 |
| 1479 |
c1.153-1.185,1.547-2.915,1.021-4.483c-0.526-1.568-1.885-2.71-3.519-2.959l-13.577-2.074c-1.455-0.223-2.703-1.157-3.328-2.489 |
| 1480 |
l-5.914-12.597c-0.726-1.553-2.285-2.546-3.999-2.546c-1.714,0-3.273,0.992-3.999,2.546l-5.914,12.597 |
| 1481 |
c-0.625,1.333-1.873,2.266-3.328,2.489l-13.577,2.074c-1.633,0.252-2.989,1.395-3.513,2.962c-0.524,1.567-0.129,3.296,1.024,4.48 |
| 1482 |
L430.564,141.929z`}),o.jsx("path",{d:`M166.681,421.048l-13.577-2.074c-1.455-0.223-2.703-1.157-3.328-2.489l-5.914-12.606 |
| 1483 |
c-0.726-1.553-2.285-2.546-3.999-2.546s-3.273,0.992-3.999,2.546l-5.914,12.606c-0.625,1.333-1.873,2.266-3.328,2.489 |
| 1484 |
l-13.577,2.074c-1.633,0.252-2.989,1.395-3.513,2.962c-0.524,1.567-0.129,3.296,1.024,4.48l10.099,10.355 |
| 1485 |
c0.977,1.004,1.42,2.413,1.192,3.796l-2.339,14.38c-0.271,1.667,0.433,3.343,1.814,4.316s3.195,1.073,4.674,0.257l11.732-6.488 |
| 1486 |
c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488c1.479,0.816,3.294,0.716,4.674-0.257c1.381-0.973,2.085-2.648,1.814-4.316 |
| 1487 |
l-2.339-14.389c-0.228-1.383,0.214-2.791,1.192-3.796l10.081-10.328c1.163-1.18,1.566-2.913,1.045-4.485 |
| 1488 |
C169.676,422.45,168.318,421.301,166.681,421.048z`}),o.jsx("path",{d:`M342.535,60.397l-2.339,14.38c-0.271,1.667,0.433,3.343,1.814,4.316c1.381,0.973,3.195,1.073,4.674,0.257l11.732-6.488 |
| 1489 |
c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488c1.479,0.816,3.294,0.716,4.674-0.257s2.085-2.648,1.814-4.316l-2.339-14.38 |
| 1490 |
c-0.228-1.383,0.214-2.792,1.192-3.796l10.081-10.328c1.153-1.184,1.548-2.913,1.024-4.48s-1.88-2.71-3.513-2.962l-13.577-2.074 |
| 1491 |
c-1.455-0.223-2.703-1.157-3.328-2.489l-5.914-12.606c-0.726-1.553-2.285-2.546-3.999-2.546s-3.273,0.992-3.999,2.546 |
| 1492 |
l-5.914,12.606c-0.625,1.333-1.873,2.266-3.328,2.489l-13.577,2.074c-1.633,0.252-2.989,1.395-3.513,2.962 |
| 1493 |
c-0.524,1.567-0.129,3.296,1.024,4.48l10.116,10.328C342.321,57.606,342.763,59.015,342.535,60.397z`}),o.jsx("path",{d:`M92.353,285.501c0,9.751,7.904,17.655,17.655,17.655h35.31c9.751,0,17.655-7.904,17.655-17.655v-26.483 |
| 1494 |
c0-4.875-3.952-8.828-8.828-8.828H136.49c-4.875,0-8.828,3.952-8.828,8.828c0,4.875,3.952,8.828,8.828,8.828h8.828v17.655h-35.31 |
| 1495 |
V214.88h35.31c0,4.875,3.952,8.828,8.828,8.828c4.875,0,8.828-3.952,8.828-8.828c0-9.751-7.904-17.655-17.655-17.655h-35.31 |
| 1496 |
c-9.751,0-17.655,7.904-17.655,17.655V285.501z`}),o.jsx("path",{d:`M242.421,267.846v-35.31c0-19.501-15.809-35.31-35.31-35.31h-26.483c-4.875,0-8.828,3.952-8.828,8.828v88.276 |
| 1497 |
c0,4.875,3.952,8.828,8.828,8.828h26.483C226.612,303.156,242.421,287.347,242.421,267.846z M224.766,267.846 |
| 1498 |
c0,9.751-7.904,17.655-17.655,17.655h-17.655V214.88h17.655c9.751,0,17.655,7.904,17.655,17.655V267.846z`}),o.jsx("path",{d:`M304.215,197.225h-35.31c-4.875,0-8.828,3.952-8.828,8.828v88.276c0,4.875,3.952,8.828,8.828,8.828 |
| 1499 |
c4.875,0,8.828-3.952,8.828-8.828v-26.483h26.483c14.626,0,26.483-11.857,26.483-26.483v-17.655 |
| 1500 |
C330.697,209.082,318.841,197.225,304.215,197.225z M313.042,241.363c0,4.875-3.952,8.828-8.828,8.828h-26.483v-35.31h26.483 |
| 1501 |
c4.875,0,8.828,3.952,8.828,8.828V241.363z`}),o.jsx("path",{d:`M383.663,197.225h-35.31c-4.875,0-8.828,3.952-8.828,8.828v88.276c0,4.875,3.952,8.828,8.828,8.828 |
| 1502 |
c4.875,0,8.828-3.952,8.828-8.828v-26.483h26.483c4.875,0,8.828,3.952,8.828,8.828v17.655c0,4.875,3.952,8.828,8.828,8.828 |
| 1503 |
c4.875,0,8.828-3.952,8.828-8.828v-17.655c-0.023-6.536-2.477-12.829-6.885-17.655c4.408-4.826,6.862-11.119,6.885-17.655 |
| 1504 |
v-17.655C410.146,209.082,398.289,197.225,383.663,197.225z M392.49,241.363c0,4.875-3.952,8.828-8.828,8.828H357.18v-35.31 |
| 1505 |
h26.483c4.875,0,8.828,3.952,8.828,8.828V241.363z`})]})})}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{})]})}function Qm({size:e=12}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",children:[o.jsxs("defs",{children:[o.jsxs("linearGradient",{id:"logosHcaptchaIcon0",x1:"49.979%",x2:"49.979%",y1:"-702.201%",y2:"97.969%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcon1",x1:"50%",x2:"50%",y1:"-602.243%",y2:"197.926%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcon2",x1:"49.979%",x2:"49.979%",y1:"-602.243%",y2:"197.926%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcon3",x1:"50.021%",x2:"50.021%",y1:"-502.498%",y2:"298.01%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcon4",x1:"50%",x2:"50%",y1:"-502.498%",y2:"298.01%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcon5",x1:"49.979%",x2:"49.979%",y1:"-502.498%",y2:"298.01%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcon6",x1:"50.021%",x2:"50.021%",y1:"-402.285%",y2:"397.884%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcon7",x1:"50%",x2:"50%",y1:"-402.285%",y2:"397.884%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcon8",x1:"49.979%",x2:"49.979%",y1:"-402.285%",y2:"397.884%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcon9",x1:"50.021%",x2:"50.021%",y1:"-302.328%",y2:"497.842%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcona",x1:"50%",x2:"50%",y1:"-302.328%",y2:"497.842%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIconb",x1:"49.979%",x2:"49.979%",y1:"-302.328%",y2:"497.842%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIconc",x1:"50.021%",x2:"50.021%",y1:"-202.328%",y2:"597.842%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcond",x1:"50%",x2:"50%",y1:"-202.328%",y2:"597.842%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcone",x1:"49.979%",x2:"49.979%",y1:"-202.328%",y2:"597.842%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIconf",x1:"50%",x2:"50%",y1:"-102.37%",y2:"697.799%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcong",x1:"49.979%",x2:"49.979%",y1:"-102.37%",y2:"697.799%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIconh",x1:"49.979%",x2:"49.979%",y1:"-2.37%",y2:"797.799%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]})]}),o.jsx("path",{fill:"url(#logosHcaptchaIcon0)",d:"M160.007 223.993h32.007V256h-32.007z",opacity:".5"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon0)",d:"M128 223.993h32.007V256H128z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon0)",d:"M96.007 223.993h32.007V256H96.007z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon0)",d:"M64 223.993h32.007V256H64z",opacity:".5"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon1)",d:"M192 192h31.993v32.007H192z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon2)",d:"M160.007 192h32.007v32.007h-32.007z",opacity:".8"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon2)",d:"M128 192h32.007v32.007H128z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon2)",d:"M96.007 192h32.007v32.007H96.007z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon2)",d:"M64 192h32.007v32.007H64z",opacity:".8"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon2)",d:"M32.007 192h32.007v32.007H32.007z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon3)",d:"M223.993 160.007H256V192h-32.007z",opacity:".5"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon4)",d:"M192 160.007h31.993V192H192z",opacity:".8"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon5)",d:"M160.007 160.007h32.007V192h-32.007zm-32.007 0h32.007V192H128z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon5)",d:"M96.007 160.007h32.007V192H96.007zm-32.007 0h32.007V192H64z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon5)",d:"M32.007 160.007h32.007V192H32.007z",opacity:".8"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon5)",d:"M0 160.007h32.007V192H0z",opacity:".5"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon6)",d:"M223.993 128H256v32.007h-32.007z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon7)",d:"M192 128h31.993v32.007H192z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon8)",d:"M160.007 128h32.007v32.007h-32.007zM128 128h32.007v32.007H128z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon8)",d:"M96.007 128h32.007v32.007H96.007zM64 128h32.007v32.007H64z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon8)",d:"M32.007 128h32.007v32.007H32.007z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon8)",d:"M0 128h32.007v32.007H0z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon9)",d:"M223.993 96.007H256v32.007h-32.007z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIcona)",d:"M192 96.007h31.993v32.007H192z"}),o.jsx("path",{fill:"url(#logosHcaptchaIconb)",d:"M160.007 96.007h32.007v32.007h-32.007zm-32.007 0h32.007v32.007H128z"}),o.jsx("path",{fill:"url(#logosHcaptchaIconb)",d:"M96.007 96.007h32.007v32.007H96.007zm-32.007 0h32.007v32.007H64z"}),o.jsx("path",{fill:"url(#logosHcaptchaIconb)",d:"M32.007 96.007h32.007v32.007H32.007z"}),o.jsx("path",{fill:"url(#logosHcaptchaIconb)",d:"M0 96.007h32.007v32.007H0z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIconc)",d:"M223.993 64H256v32.007h-32.007z",opacity:".5"}),o.jsx("path",{fill:"url(#logosHcaptchaIcond)",d:"M192 64h31.993v32.007H192z",opacity:".8"}),o.jsx("path",{fill:"url(#logosHcaptchaIcone)",d:"M160.007 64h32.007v32.007h-32.007zM128 64h32.007v32.007H128z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcone)",d:"M96.007 64h32.007v32.007H96.007zM64 64h32.007v32.007H64z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcone)",d:"M32.007 64h32.007v32.007H32.007z",opacity:".8"}),o.jsx("path",{fill:"url(#logosHcaptchaIcone)",d:"M0 64h32.007v32.007H0z",opacity:".5"}),o.jsx("path",{fill:"url(#logosHcaptchaIconf)",d:"M192 32.007h31.993v32.007H192z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIcong)",d:"M160.007 32.007h32.007v32.007h-32.007z",opacity:".8"}),o.jsx("path",{fill:"url(#logosHcaptchaIcong)",d:"M128 32.007h32.007v32.007H128z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcong)",d:"M96.007 32.007h32.007v32.007H96.007z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcong)",d:"M64 32.007h32.007v32.007H64z",opacity:".8"}),o.jsx("path",{fill:"url(#logosHcaptchaIcong)",d:"M32.007 32.007h32.007v32.007H32.007z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIconh)",d:"M160.007 0h32.007v32.007h-32.007z",opacity:".5"}),o.jsx("path",{fill:"url(#logosHcaptchaIconh)",d:"M128 0h32.007v32.007H128z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIconh)",d:"M96.007 0h32.007v32.007H96.007z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIconh)",d:"M64 0h32.007v32.007H64z",opacity:".5"}),o.jsx("path",{fill:"#FFF",d:"m84.25 117.841l8.912-19.951c3.251-5.12 2.818-11.378-.745-14.9a9.13 9.13 0 0 0-1.57-1.26a9.847 9.847 0 0 0-8.223-.934a13.437 13.437 0 0 0-7.409 5.756s-12.19 28.445-16.755 41.285c-4.565 12.841-2.709 36.274 14.778 53.828c18.556 18.557 45.47 22.837 62.605 9.942a10.755 10.755 0 0 0 2.018-1.354l52.825-44.143c2.574-2.154 6.38-6.502 2.953-11.487c-3.427-4.984-9.63-1.557-12.19.095l-30.423 22.12a1.354 1.354 0 0 1-1.964-.231a3.738 3.738 0 0 1 .298-4.47l46.636-39.578c4.063-3.63 4.592-8.9 1.354-12.516c-3.237-3.616-8.249-3.44-12.299.23l-41.989 32.833a1.87 1.87 0 0 1-2.709-.352a2.587 2.587 0 0 1-.217-3.44l47.557-46.148a9.305 9.305 0 0 0 .474-13.125a8.886 8.886 0 0 0-6.461-2.709a9.481 9.481 0 0 0-6.678 2.71l-48.531 45.578c-1.165 1.165-3.44 0-3.712-1.355c-.1-.493.058-1.004.42-1.354L160.4 70.556a9.17 9.17 0 1 0-12.936-12.976l-56.428 62.307c-2.018 2.018-4.998 2.113-6.42.948a2.113 2.113 0 0 1-.366-2.994Z"})]})}function eg({size:e=32,stroke:n=4}){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 48 48",children:o.jsxs("g",{fill:"none",children:[o.jsx("path",{fill:"currentColor",d:"M44 22a2 2 0 1 0-4 0h4ZM24 8a2 2 0 1 0 0-4v4Zm15 32H9v4h30v-4ZM8 39V9H4v30h4Zm32-17v17h4V22h-4ZM9 8h15V4H9v4Zm0 32a1 1 0 0 1-1-1H4a5 5 0 0 0 5 5v-4Zm30 4a5 5 0 0 0 5-5h-4a1 1 0 0 1-1 1v4ZM8 9a1 1 0 0 1 1-1V4a5 5 0 0 0-5 5h4Z"}),o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:n,d:"m6 35l10.693-9.802a2 2 0 0 1 2.653-.044L32 36m-4-5l4.773-4.773a2 2 0 0 1 2.615-.186L42 31"}),o.jsx("path",{fill:"currentColor",d:"M31.414 9.586a2 2 0 1 0-2.828 2.828l2.828-2.828ZM34 15l-1.414 1.414a2 2 0 0 0 2.828 0L34 15Zm9.414-6.586a2 2 0 1 0-2.828-2.828l2.828 2.828Zm-14.828 4l4 4l2.828-2.828l-4-4l-2.828 2.828Zm6.828 4l8-8l-2.828-2.828l-8 8l2.828 2.828Z"})]})})}function tg({w:e,stroke:n=2.2}){return o.jsxs("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 215 215",children:[o.jsx("rect",{className:"svg-icn",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",x:"25.75",y:"30.43",width:"163.51",height:"154.14",rx:"20"}),o.jsx("circle",{stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16px",className:"svg-icn",cx:"130.56",cy:"86.45",r:"16.37"}),o.jsx("path",{strokeWidth:"16px",className:"svg-icn",strokeMiterlimit:"10",d:"M25.78,142.72l34.39-22.6a23.55,23.55,0,0,1,25.38-.32l25.26,15.69a23.54,23.54,0,0,0,23.65.71l54.75-29.62"})]})}function ng({size:e=80,stroke:n=3}){return o.jsx("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 80 80",xmlSpace:"preserve",height:e,width:e,children:o.jsx("path",{strokeWidth:n,className:"svg-icn",d:"M74.79,39.15v21.4c0,0.36-0.07,0.46-0.44,0.46c-3.59-0.02-7.21-0.02-10.8,0c-0.41,0-0.51-0.1-0.51-0.51 c0.02-6.94,0-13.86,0.02-20.79c0-2.89-0.97-5.31-3.25-7.09c-2.62-2.06-5.56-2.5-8.64-1.21c-3.03,1.26-4.76,3.62-5.24,6.89 c-0.05,0.49-0.07,0.99-0.07,1.48c0,6.89,0,13.78,0.02,20.7c0,0.41-0.1,0.53-0.53,0.53c-3.57-0.02-7.16-0.02-10.75,0 c-0.36,0-0.46-0.1-0.46-0.49V39.73c0.02-2.89-0.97-5.34-3.28-7.13c-2.62-2.04-5.56-2.48-8.61-1.19c-3.03,1.26-4.76,3.62-5.22,6.87 c-0.07,0.51-0.07,1.02-0.07,1.53c0,6.89-0.02,13.81,0,20.7c0,0.41-0.1,0.51-0.51,0.51c-3.59-0.02-7.18-0.02-10.77,0 c-0.36,0-0.46-0.1-0.46-0.46c0.02-7.3-0.05-14.61,0.05-21.94c0.05-4.97,1.89-9.37,5.29-13.01c4.54-4.9,10.19-7.09,16.86-6.53 c4.76,0.39,8.83,2.35,12.28,5.63c0.24,0.24,0.36,0.24,0.61,0c4.78-4.46,10.41-6.38,16.91-5.53c8.83,1.14,15.8,7.93,17.28,16.72 C74.69,36.99,74.79,38.06,74.79,39.15z"})})}function rg({w:e}){return o.jsxs("svg",{width:e,xmlns:"http://www.w3.org/2000/svg",id:"Layer_1","data-name":"Layer 1",viewBox:"0 0 215 215",children:[o.jsx("path",{fill:"currentColor",d:"M165.8 12.7v-1.3a8 8 0 00-16 0v1.3H63.5v-1.3a8 8 0 00-16 0v1.3a38 38 0 00-36.4 38v115a38 38 0 0038 38h115a38 38 0 0038-38v-115a38 38 0 00-36.4-38zm-118.2 16v4.5a8 8 0 0016 0v-4.5h86.2v4.5a8 8 0 0016 0v-4.5a22 22 0 0120.4 22V69h-159V50.7a22 22 0 0120.4-22zm116.6 159h-115a22 22 0 01-22-22V85h159v80.7a22 22 0 01-22 22z",className:"cls-1"}),o.jsx("path",{fill:"currentColor",d:"M89.8 108.4H78.3q-4 6.4-15.4 8.8v12q4.2-.5 11.7-3.9v25.4H61.4v11.9h41v-12H89.8zM153 135.2a17.8 17.8 0 003-9.8 15.4 15.4 0 00-5.5-12.3q-5.5-4.7-14.2-4.7a22 22 0 00-13.9 4.6q-5.9 4.6-7.4 14l13.5 2.6q.7-9.2 6.6-9.2a5 5 0 013.8 1.5 5.7 5.7 0 011.5 4.1 8.8 8.8 0 01-1.7 5.1q-1.7 2.4-7.1 7t-7.5 5.8l-9 6.4v12.3h40.6l.6-13.1h-20.8q14.5-9.6 17.5-14.3z",className:"cls-1"})]})}function ig({w:e}){return o.jsxs("svg",{width:e,xmlns:"http://www.w3.org/2000/svg",id:"Layer_1","data-name":"Layer 1",viewBox:"0 0 215 215",children:[o.jsx("path",{fill:"currentColor",d:"M175.6 45.6H83.5V20.9h11.1c7.3 0 13.2-4.5 13.2-10s-6-10-13.2-10H52.3c-7.3 0-13.1 4.5-13.1 10s5.8 10 13.1 10h11.2v24.7h-24a38 38 0 00-38 38v47.7a38 38 0 0038 38h24v24.8H52.3c-7.3 0-13.1 4.5-13.1 10s5.8 10 13.1 10h42.3c7.3 0 13.2-4.5 13.2-10s-6-10-13.2-10H83.5v-24.8h92a38 38 0 0038-38V83.6a38 38 0 00-38-38zm22 85.7a22 22 0 01-22 22H39.4a22 22 0 01-22-22V83.6a22 22 0 0122-22h136.2a22 22 0 0122 22z",className:"cls-1"}),o.jsx("path",{fill:"currentColor",d:"M39.6 85.4h7.8v51.1h11.5V77.9l-19.5 1.7.2 5.8zM106.1 115.1l3.9-3.1q7.5-6 9.8-10a17.1 17.1 0 002.4-8.8 14 14 0 00-5.6-11.6q-5.6-4.4-14.7-4.4a48.7 48.7 0 00-17 3.3V89q8.4-4.3 14.7-4.3a11.3 11.3 0 017.5 2.3 8.3 8.3 0 012.8 6.7 15.1 15.1 0 01-3.3 9.2 61.5 61.5 0 01-8.4 8.9l-4.7 4.2a72.3 72.3 0 00-10.1 11.3v9.2H122v-9.2H96.5a16.1 16.1 0 014-6.8 57.1 57.1 0 015.6-5.4zM168.2 109a22 22 0 00-8.5-3.6q6.4-2 9.6-5.7a12.7 12.7 0 003.2-8.7 12 12 0 00-5-10q-4.9-3.7-14-3.7a57.3 57.3 0 00-10.4 1 43.4 43.4 0 00-5.7 1.6v7.9a32.9 32.9 0 0113.5-3.3c3.4 0 5.8.7 7.4 2.2a7.4 7.4 0 012.4 5.6 9.8 9.8 0 01-6.2 9.1q-3 1.2-9.5 1.2h-3v7h3.5q7 0 10.2 1.4a11 11 0 014.9 4 10.7 10.7 0 011.7 6 8.7 8.7 0 01-3.2 7 12.5 12.5 0 01-8.2 2.7q-5.7 0-14.3-3.3v8.6a51.2 51.2 0 009.4 1.7l6.4.2q11.6 0 16.8-5.2a16 16 0 005.1-11.7 14.6 14.6 0 00-1.5-6.6 15.8 15.8 0 00-4.6-5.4z",className:"cls-1"})]})}function og({size:e}){return o.jsxs("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 215 215",children:[o.jsx("path",{className:"cls-1",fill:"currentColor",d:"M94.61,20.9H52.3c-7.26,0-13.14-4.48-13.14-10h0C39.16,5.38,45,.9,52.3.9H94.61c7.26,0,13.15,4.48,13.15,10h0C107.76,16.42,101.87,20.9,94.61,20.9Z"}),o.jsx("path",{className:"cls-1",fill:"currentColor",d:"M94.61,214.1H52.3c-7.26,0-13.14-4.48-13.14-10h0c0-5.52,5.88-10,13.14-10H94.61c7.26,0,13.15,4.48,13.15,10h0C107.76,209.62,101.87,214.1,94.61,214.1Z"}),o.jsx("rect",{className:"cls-1",fill:"currentColor",x:"63.46",y:"161.34",width:"20",height:"35.76"}),o.jsx("rect",{className:"cls-1",fill:"currentColor",x:"63.46",y:"20.9",width:"20",height:"35.76"}),o.jsx("rect",{className:"cls-2",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",x:"9.44",y:"53.59",width:"196.13",height:"107.75",rx:"30"}),o.jsx("text",{className:"cls-3",fill:"currentColor",fontSize:"110.35",fontFamily:"Calibri-Bold, Calibri",fontWeight:"700",transform:"translate(26.36 162.55)",children:"***"})]})}function sg({w:e}){return o.jsxs("svg",{width:e,xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 163.4 163.6",children:[o.jsx("defs",{}),o.jsx("path",{fill:"currentColor",d:"M124.4 28.1A47.8 47.8 0 0081 0H28.4A8.5 8.5 0 0020 7.1L.1 126.4a8.5 8.5 0 008.4 10h27.6l-2.9 17.3a8.5 8.5 0 008.4 10h34a8.5 8.5 0 008.4-7.2l5-30.2a4.3 4.3 0 014.2-3.6h22.4a47.7 47.7 0 008.8-94.6zm-86 94.6H14.5L32 17.2a4.3 4.3 0 014.2-3.6H81a34 34 0 110 68.2H52.4A8.5 8.5 0 0044 89zm111-42.1a34 34 0 01-33.7 28.5H85.3a8.5 8.5 0 00-8.4 7L71.3 150H47.6l8.5-51a4.3 4.3 0 014.2-3.6H81a48.7 48.7 0 005.6-.3A48 48 0 00128 55.6v-.1a46.5 46.5 0 00.6-5.8.8.8 0 000-.1 47.6 47.6 0 00-.1-5.7v-.3a1.2 1.2 0 010-.2 34.4 34.4 0 0114.2 10.8 33.7 33.7 0 016.6 26.4z"})]})}function ag({size:e=24,stroke:n=2}){return o.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",strokeWidth:n,className:"svg-icn",children:o.jsx("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})})}function lg({size:e}){return o.jsxs("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 215 215",children:[o.jsx("rect",{className:"cls-1",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",x:"19.91",y:"20.9",width:"174",height:"174",rx:"85"}),o.jsx("rect",{className:"cls-2",fill:"currentColor",x:"71.6",y:"72.59",width:"70.62",height:"70.62",rx:"34.5"})]})}function cg({w:e,h:n}){return o.jsxs("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:e,height:n,viewBox:"0 0 176.53 215",children:[o.jsx("polygon",{fill:"currentColor",fillRule:"evenodd",points:"74.38 65.67 60.27 117.95 110.33 85.52 77.51 207.9 116.45 207.9 170.23 7.1 74.38 65.67"}),o.jsx("polygon",{fill:"currentColor",fillRule:"evenodd",points:"17.75 165.25 6.3 207.9 62.93 207.9 86.1 121.13 17.79 165.21 17.75 165.25"})]})}function ug({size:e=14,strokeWidth:n=2}){return o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-repeat",children:[o.jsx("polyline",{points:"17 1 21 5 17 9"}),o.jsx("path",{d:"M3 11V9a4 4 0 0 1 4-4h14"}),o.jsx("polyline",{points:"7 23 3 19 7 15"}),o.jsx("path",{d:"M21 13v2a4 4 0 0 1-4 4H3"})]})}function dg({size:e=14}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("rect",{x:"1",y:"7",width:"32",height:"20",rx:"1",stroke:"currentColor",strokeWidth:"2"}),o.jsx("rect",{x:"4.75",y:"15.75",width:"24.5",height:"1.5",rx:"0.75",stroke:"currentColor",strokeWidth:"1.5"}),o.jsx("rect",{x:"4.75",y:"10.75",width:"24.5",height:"1.5",rx:"0.75",stroke:"currentColor",strokeWidth:"1.5"}),o.jsx("rect",{x:"18.75",y:"20.75",width:"10.5",height:"1.5",rx:"0.75",stroke:"currentColor",strokeWidth:"1.5"}),o.jsx("rect",{x:"4.75",y:"20.75",width:"10.5",height:"1.5",rx:"0.75",stroke:"currentColor",strokeWidth:"1.5"})]})}function pg({size:e=32}){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 16 16",children:o.jsx("path",{fill:"currentColor",d:"M9.021 1.772a2.445 2.445 0 0 1 3.458 3.457l-.272.271l.086.086a2 2 0 0 1 0 2.828l-1.44 1.44a.5.5 0 0 1-.707-.707l1.44-1.44a1 1 0 0 0 0-1.414l-.086-.086l-5.646 5.647a.5.5 0 0 1-.233.131l-4 1a.5.5 0 0 1-.595-.643l1.25-3.75a.5.5 0 0 1 .12-.195l6.625-6.625Zm2.75.707a1.445 1.445 0 0 0-2.042 0L3.187 9.02l-.925 2.774l2.982-.745l6.527-6.527a1.445 1.445 0 0 0 0-2.043ZM4.967 15c-1.235 0-2.208-.566-2.855-1.107l1.284-.32a3.2 3.2 0 0 0 1.57.427c.406 0 .824-.164 1.27-.457c.447-.293.878-.687 1.314-1.095l.113-.107c.385-.361.784-.737 1.166-.996c.408-.278.95-.53 1.517-.311c.376.144.62.41.791.736c.161.306.272.688.38 1.105c.05.19.133.374.23.498a.46.46 0 0 0 .114.112c.025.015.036.015.039.015c.122 0 .331-.082.63-.286c.185-.126.344-.252.502-.379c.098-.078.197-.157.302-.235c.279-.209.52-.349.697-.438a3.05 3.05 0 0 1 .278-.124l.02-.008l.007-.002l.003-.001h.001l.16.473l-.159-.474a.5.5 0 0 1 .321.947l-.004.002a2.141 2.141 0 0 0-.175.08c-.13.064-.321.174-.55.346c-.059.043-.135.104-.223.174c-.181.143-.409.324-.618.466c-.31.212-.741.46-1.192.46c-.436 0-.751-.265-.946-.517a2.435 2.435 0 0 1-.405-.858c-.11-.423-.196-.7-.296-.89c-.09-.168-.17-.232-.266-.27c-.082-.03-.245-.033-.595.206c-.313.212-.655.533-1.058.912l-.1.093c-.431.405-.92.855-1.449 1.202c-.53.348-1.14.621-1.818.621Z"})})}function hg({size:e}){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 15 15",children:o.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.3 7.5a1.8 1.8 0 1 1-3.6 0a1.8 1.8 0 0 1 3.6 0m.905.5a2.751 2.751 0 0 1-5.41 0H.5a.5.5 0 0 1 0-1h5.295a2.751 2.751 0 0 1 5.41 0H14.5a.5.5 0 0 1 0 1z",clipRule:"evenodd"})})}function fg({size:e="14px",strokeWidth:n=0}){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:n,children:o.jsx("path",{d:"M5 5v4h14V5h-2v2H7V5zM5 19v-4h14v4h-2v-2H7v2zM7 11h10v2H7z"})})}function bg({size:e=24}){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:o.jsxs("g",{fill:"none",fillRule:"evenodd",children:[o.jsx("path",{d:"M24 0v24H0V0h24ZM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018Zm.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022Zm-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01l-.184-.092Z"}),o.jsx("path",{fill:"currentColor",d:"M6.936 3.715C8.326 2.567 10.24 2 12.404 2c1.746 0 3.49.275 5.259.981a1 1 0 0 1 .629.929v3.64c0 1.244-1.286 1.916-2.291 1.5c-1.198-.494-2.532-.759-3.597-.759c-.217 0-.386.016-.512.04c-.05.01-.089.02-.12.03c.089.072.25.17.528.29c.309.134.68.263 1.129.416l.061.02c.42.144.892.305 1.367.495c.99.396 2.094.954 2.95 1.882c.885.957 1.445 2.241 1.45 3.954v.003c0 2.065-.835 3.755-2.305 4.904C15.511 21.454 13.542 22 11.34 22a14.62 14.62 0 0 1-5.777-1.21a1 1 0 0 1-.604-.918V16.18c0-1.241 1.297-1.937 2.322-1.47c1.39.636 2.901 1.038 4.059 1.038c.497 0 .761-.073.87-.134a.255.255 0 0 0 .017-.01a.352.352 0 0 0 .005-.062v-.005a.34.34 0 0 0-.04-.05c-.084-.086-.25-.205-.56-.353a13.21 13.21 0 0 0-1.112-.444a146.78 146.78 0 0 0-.22-.08c-.373-.135-.782-.283-1.189-.448c-.973-.395-2.066-.935-2.916-1.81c-.882-.908-1.453-2.127-1.453-3.753c0-2.026.782-3.717 2.194-4.883ZM8.21 5.257c-.918.758-1.467 1.866-1.467 3.34c0 1.104.366 1.824.888 2.361c.555.571 1.334.985 2.233 1.349c.369.15.736.283 1.107.417l.234.085c.437.16.888.329 1.288.519c.713.34 1.74.97 1.74 2.213c0 .375-.083.744-.277 1.077a2.015 2.015 0 0 1-.766.74c-.561.314-1.243.39-1.85.39c-1.373 0-2.957-.408-4.38-.998v2.447c1.503.562 3.001.803 4.38.803c1.898 0 3.388-.473 4.381-1.249c.964-.754 1.537-1.852 1.538-3.327c-.005-1.234-.39-2.03-.92-2.602c-.556-.603-1.334-1.026-2.223-1.382c-.426-.17-.855-.316-1.285-.463l-.047-.017a17.654 17.654 0 0 1-1.278-.473c-.387-.168-.809-.387-1.142-.703c-.362-.344-.634-.819-.634-1.424c0-.72.328-1.323.936-1.683c.52-.308 1.157-.385 1.739-.385c1.203 0 2.597.259 3.888.728V4.608C15.002 4.177 13.717 4 12.404 4c-1.836 0-3.255.481-4.195 1.257Z"})]})})}function mg({size:e}){return o.jsxs("svg",{width:e,height:e,id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 215 215",children:[o.jsx("rect",{className:"cls-1",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",x:"9.44",y:"53.59",width:"196.13",height:"107.75",rx:"30"}),o.jsx("path",{className:"cls-2",fill:"currentColor",d:"M94.36,20.86H52c-7.25,0-13.14-4.48-13.14-10h0c0-5.52,5.89-10,13.14-10H94.36c7.26,0,13.14,4.48,13.14,10h0C107.5,16.38,101.62,20.86,94.36,20.86Z"}),o.jsx("path",{className:"cls-2",fill:"currentColor",d:"M94.36,214.07H52c-7.25,0-13.14-4.48-13.14-10h0c0-5.53,5.89-10,13.14-10H94.36c7.26,0,13.14,4.47,13.14,10h0C107.5,209.59,101.62,214.07,94.36,214.07Z"}),o.jsx("rect",{className:"cls-2",fill:"currentColor",x:"63.2",y:"11.27",width:"20",height:"185.79"})]})}function gg({size:e}){return o.jsxs("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 215 215",children:[o.jsx("path",{className:"cls-1",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",d:"M38.87,53.59H175a30,30,0,0,1,30,30v77.75a0,0,0,0,1,0,0H38.87a30,30,0,0,1-30-30V83.59A30,30,0,0,1,38.87,53.59Z"}),o.jsx("path",{className:"cls-2",fill:"currentColor",d:"M94.36,20.86H52c-7.25,0-13.14-4.48-13.14-10h0c0-5.52,5.89-10,13.14-10H94.36c7.26,0,13.14,4.48,13.14,10h0C107.5,16.38,101.62,20.86,94.36,20.86Z"}),o.jsx("path",{className:"cls-2",fill:"currentColor",d:"M94.36,214.07H52c-7.25,0-13.14-4.48-13.14-10h0c0-5.53,5.89-10,13.14-10H94.36c7.26,0,13.14,4.47,13.14,10h0C107.5,209.59,101.62,214.07,94.36,214.07Z"}),o.jsx("rect",{className:"cls-2",fill:"currentColor",x:"63.2",y:"11.27",width:"20",height:"185.79"}),o.jsx("polyline",{className:"cls-2",fill:"currentColor",points:"196.96 114.03 154.44 156.55 202.68 156.55 202.68 114.03 199 114.03"})]})}function xg({size:e}){return o.jsxs("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 215 215",children:[o.jsx("rect",{className:"cls-1",fill:"none",strokeWidth:"16",stroke:"currentColor",strokeMiterlimit:"10",x:"19.91",y:"20.9",width:"174",height:"174",rx:"85"}),o.jsx("path",{fill:"currentColor",className:"cls-2",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"4",d:"M138.3,151.06,99.23,113.52a6,6,0,0,1-1.85-4.34V56.47a6,6,0,0,1,6-6h0a6,6,0,0,1,6,6v47.59a6,6,0,0,0,1.85,4.33l35.37,34a6,6,0,0,1,.17,8.51h0A6,6,0,0,1,138.3,151.06Z"})]})}function vg({w:e}){return o.jsxs("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 215 215",children:[o.jsx("rect",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:"16px",x:"21.93",y:"25.06",width:"171.15",height:"164.89",rx:"20"}),o.jsx("path",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:"16px",d:"M44.91,92.42V75.63A1.14,1.14,0,0,1,46,74.49H110.7a1.14,1.14,0,0,1,1.13,1.14V92.42"}),o.jsx("line",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:"16px",x1:"78.37",y1:"140.51",x2:"78.37",y2:"74.49"}),o.jsx("line",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:"16px",x1:"64.54",y1:"140.51",x2:"92.15",y2:"140.51"}),o.jsx("line",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:"16px",x1:"131.34",y1:"76.65",x2:"173.89",y2:"76.65"}),o.jsx("line",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:"16px",x1:"131.34",y1:"107.5",x2:"173.89",y2:"107.5"}),o.jsx("line",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:"16px",x1:"131.34",y1:"138.35",x2:"173.89",y2:"138.35"})]})}function yg({w:e}){return o.jsxs("svg",{width:e,xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 215 215",children:[o.jsx("defs",{}),o.jsx("path",{fill:"currentColor",d:"M175.6 45.6H83.5V20.9h11.1c7.3 0 13.2-4.5 13.2-10s-6-10-13.2-10H52.3c-7.3 0-13.1 4.5-13.1 10s5.8 10 13.1 10h11.2v24.7h-24a38 38 0 00-38 38v47.7a38 38 0 0038 38h24v24.8H52.3c-7.3 0-13.1 4.5-13.1 10s5.8 10 13.1 10h42.3c7.3 0 13.2-4.5 13.2-10s-6-10-13.2-10H83.5v-24.8h92a38 38 0 0038-38V83.6a38 38 0 00-38-38zm22 85.7a22 22 0 01-22 22H39.4a22 22 0 01-22-22V83.6a22 22 0 0122-22h136.2a22 22 0 0122 22z",className:"cls-1"}),o.jsx("path",{fill:"currentColor",d:"M77 92.4a2.5 2.5 0 00-1-.2h-3.2a4.3 4.3 0 00-1 .2 1.1 1.1 0 00-.5.4 1.8 1.8 0 00-.3.6l-8.3 29v.4-.4l-8.5-29.1a2 2 0 00-.3-.6 1 1 0 00-.5-.3 3.7 3.7 0 00-1-.2h-3.1a3.9 3.9 0 00-1 .2 1 1 0 00-.5.4 1.6 1.6 0 00-.3.6l-7.7 29-.1.3v-.3l-8.5-29a2.8 2.8 0 00-.3-.6 1 1 0 00-.5-.4 4 4 0 00-1-.2H26a3.8 3.8 0 00-1 .1 1.1 1.1 0 00-.5.3 1 1 0 00-.2.6 3 3 0 000 .7 8 8 0 00.4 1L35 128.3a1.8 1.8 0 00.4.6 1.5 1.5 0 00.7.5 6.4 6.4 0 001.3.2 17.8 17.8 0 002 0h2a6.4 6.4 0 001.3-.2 1.8 1.8 0 00.7-.4 1.6 1.6 0 00.4-.7l6.8-25.5.1-.4.1.4 7.4 25.5a1.7 1.7 0 00.3.6 1.6 1.6 0 00.8.5 6.8 6.8 0 001.3.2 19.6 19.6 0 002 0h2a5.3 5.3 0 001.2-.2 1.8 1.8 0 00.7-.4 1.7 1.7 0 00.4-.7l10.3-33.4.2-1a3.5 3.5 0 00.1-.7 1 1 0 00-.1-.5 1.1 1.1 0 00-.5-.3zm57.4 0a2.5 2.5 0 00-.9-.2h-3.2a4.3 4.3 0 00-1 .2 1.1 1.1 0 00-.5.4 1.8 1.8 0 00-.3.6l-8.3 29v.4-.4l-8.5-29.1a2 2 0 00-.3-.6 1 1 0 00-.5-.3 3.7 3.7 0 00-1-.2h-3.1a3.9 3.9 0 00-1 .2 1 1 0 00-.5.4 1.6 1.6 0 00-.3.6l-7.8 29v.3l-.1-.3-8.5-29a2.8 2.8 0 00-.3-.6 1 1 0 00-.5-.4 4 4 0 00-1-.2h-3.3a3.8 3.8 0 00-1 .1 1.1 1.1 0 00-.5.3 1 1 0 00-.1.6 3 3 0 000 .7 8 8 0 00.3 1l10.3 33.4a1.8 1.8 0 00.3.6 1.5 1.5 0 00.8.5 6.4 6.4 0 001.2.2 17.8 17.8 0 002 0h2a6.4 6.4 0 001.3-.2 1.8 1.8 0 00.8-.4 1.6 1.6 0 00.3-.7l6.9-25.5v-.4l.2.4 7.3 25.5a1.7 1.7 0 00.4.6 1.6 1.6 0 00.7.5 6.8 6.8 0 001.3.2 19.6 19.6 0 002 0h2a5.3 5.3 0 001.2-.2 1.8 1.8 0 00.7-.4 1.7 1.7 0 00.4-.7l10.4-33.4.2-1a3.5 3.5 0 00.1-.7 1 1 0 00-.1-.5 1.1 1.1 0 00-.5-.3zm55.1-.3h-1.7a4.3 4.3 0 00-1 .3 1.1 1.1 0 00-.5.4 1.8 1.8 0 00-.3.6l-8.3 29v.3-.3l-8.5-29.1a2 2 0 00-.3-.6 1 1 0 00-.5-.3 3.7 3.7 0 00-1-.2h-3.1a3.9 3.9 0 00-1 .2 1 1 0 00-.5.4 1.6 1.6 0 00-.3.6l-7.7 29-.1.3v-.3l-8.6-29a2.8 2.8 0 00-.2-.6 1 1 0 00-.5-.4 4 4 0 00-1-.2H141a3.8 3.8 0 00-1 .1 1.1 1.1 0 00-.5.3 1 1 0 00-.2.6 3 3 0 000 .7 8 8 0 00.4 1l10.2 33.4a1.8 1.8 0 00.4.6 1.5 1.5 0 00.7.5 6.4 6.4 0 001.3.2 17.8 17.8 0 002 0h2a6.4 6.4 0 001.3-.2 1.8 1.8 0 00.7-.4 1.6 1.6 0 00.4-.7l6.8-25.5.1-.4.1.4 7.4 25.5a1.7 1.7 0 00.3.6 1.6 1.6 0 00.8.5 6.8 6.8 0 001.3.2 19.6 19.6 0 002 0h2a5.3 5.3 0 001.2-.2 1.8 1.8 0 00.7-.4 1.7 1.7 0 00.4-.7l10.3-33.4.3-1a3.5 3.5 0 000-.7 1 1 0 000-.5 1.1 1.1 0 00-.5-.4 2.5 2.5 0 00-1-.2h-1.5z",className:"cls-1"})]})}function wg({size:e}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 215 215",children:[o.jsx("path",{className:"cls-1",fill:"currentColor",d:"M165.75,12.72V11.43a8,8,0,0,0-16,0v1.25H63.65V11.43a8,8,0,0,0-8-8h0a8,8,0,0,0-8,8v1.29a38,38,0,0,0-36.45,38v115a38,38,0,0,0,38,38h115a38,38,0,0,0,38-38v-115A38,38,0,0,0,165.75,12.72Zm-118.1,16v4.48a8,8,0,0,0,8,8h0a8,8,0,0,0,8-8V28.68h86.1v4.54a8,8,0,0,0,16,0V28.74A22,22,0,0,1,186.2,50.68V69H27.2V50.68A22,22,0,0,1,47.65,28.74ZM164.2,187.68H49.2a22,22,0,0,1-22-22V85h159v80.72A22,22,0,0,1,164.2,187.68Z"}),o.jsx("path",{className:"cls-1",fill:"currentColor",d:"M86.92,122.59h24.73A63.65,63.65,0,0,0,99.32,142q-4.59,11.13-4.59,20.55h17.62c-.1-1.56-.16-2.68-.16-3.36a63.16,63.16,0,0,1,4.18-21.76q4.18-11.37,10-18.2v-10H88.05Z"})]})}var _g=[{i:"AF",lbl:"Afghanistan",img:"af.png"},{i:"AL",lbl:"Albania",img:"al.png"},{i:"DZ",lbl:"Algeria",img:"dz.png"},{i:"AS",lbl:"American Samoa",img:"as.png"},{i:"AD",lbl:"Andorra",img:"ad.png"},{i:"AO",lbl:"Angola",img:"ao.png"},{i:"AI",lbl:"Anguilla",img:"ai.png"},{i:"AQ",lbl:"Antarctica",img:"aq.png"},{i:"AG",lbl:"Antigua and Barbuda",img:"ag.png"},{i:"AR",lbl:"Argentina",img:"ar.png"},{i:"AM",lbl:"Armenia",img:"am.png"},{i:"AW",lbl:"Aruba",img:"aw.png"},{i:"AU",lbl:"Australia",img:"au.png"},{i:"AT",lbl:"Austria",img:"at.png"},{i:"AZ",lbl:"Azerbaijan",img:"az.png"},{i:"BS",lbl:"Bahamas (the)",img:"bs.png"},{i:"BH",lbl:"Bahrain",img:"bh.png"},{i:"BD",lbl:"Bangladesh",img:"bd.png"},{i:"BB",lbl:"Barbados",img:"bb.png"},{i:"BY",lbl:"Belarus",img:"by.png"},{i:"BE",lbl:"Belgium",img:"be.png"},{i:"BZ",lbl:"Belize",img:"bz.png"},{i:"BJ",lbl:"Benin",img:"bj.png"},{i:"BM",lbl:"Bermuda",img:"bm.png"},{i:"BT",lbl:"Bhutan",img:"bt.png"},{i:"BO",lbl:"Bolivia (Plurinational State of)",img:"bo.png"},{i:"BQ",lbl:"Bonaire, Sint Eustatius and Saba",img:"bq.png"},{i:"BA",lbl:"Bosnia and Herzegovina",img:"ba.png"},{i:"BW",lbl:"Botswana",img:"bw.png"},{i:"BV",lbl:"Bouvet Island",img:"bv.png"},{i:"BR",lbl:"Brazil",img:"br.png"},{i:"IO",lbl:"British Indian Ocean Territory (the)",img:"io.png"},{i:"BN",lbl:"Brunei Darussalam",img:"bn.png"},{i:"BG",lbl:"Bulgaria",img:"bg.png"},{i:"BF",lbl:"Burkina Faso",img:"bf.png"},{i:"BI",lbl:"Burundi",img:"bi.png"},{i:"CV",lbl:"Cabo Verde",img:"cv.png"},{i:"KH",lbl:"Cambodia",img:"kh.png"},{i:"CM",lbl:"Cameroon",img:"cm.png"},{i:"CA",lbl:"Canada",img:"ca.png"},{i:"KY",lbl:"Cayman Islands (the)",img:"ky.png"},{i:"CF",lbl:"Central African Republic (the)",img:"cf.png"},{i:"TD",lbl:"Chad",img:"td.png"},{i:"CL",lbl:"Chile",img:"cl.png"},{i:"CN",lbl:"China",img:"cn.png"},{i:"CX",lbl:"Christmas Island",img:"cx.png"},{i:"CC",lbl:"Cocos (Keeling) Islands (the)",img:"cc.png"},{i:"CO",lbl:"Colombia",img:"co.png"},{i:"KM",lbl:"Comoros (the)",img:"km.png"},{i:"CD",lbl:"Congo (the Democratic Republic of the)",img:"cd.png"},{i:"CG",lbl:"Congo (the)",img:"cg.png"},{i:"CK",lbl:"Cook Islands (the)",img:"ck.png"},{i:"CR",lbl:"Costa Rica",img:"cr.png"},{i:"HR",lbl:"Croatia",img:"hr.png"},{i:"CU",lbl:"Cuba",img:"cu.png"},{i:"CW",lbl:"Curaçao",img:"cw.png"},{i:"CY",lbl:"Cyprus",img:"cy.png"},{i:"CZ",lbl:"Czechia",img:"cz.png"},{i:"CI",lbl:"Côte d'Ivoire",img:"ci.png"},{i:"DK",lbl:"Denmark",img:"dk.png"},{i:"DJ",lbl:"Djibouti",img:"dj.png"},{i:"DM",lbl:"Dominica",img:"dm.png"},{i:"DO",lbl:"Dominican Republic (the)",img:"do.png"},{i:"EU",lbl:"Drapeau européen",img:"eu.png"},{i:"EC",lbl:"Ecuador",img:"ec.png"},{i:"EG",lbl:"Egypt",img:"eg.png"},{i:"GB-ENG",lbl:"England",img:"gb-eng.png"},{i:"SV",lbl:"El Salvador",img:"sv.png"},{i:"GQ",lbl:"Equatorial Guinea",img:"gq.png"},{i:"ER",lbl:"Eritrea",img:"er.png"},{i:"EE",lbl:"Estonia",img:"ee.png"},{i:"SZ",lbl:"Eswatini",img:"sz.png"},{i:"ET",lbl:"Ethiopia",img:"et.png"},{i:"FK",lbl:"Falkland Islands (the) [Malvinas]",img:"fk.png"},{i:"FO",lbl:"Faroe Islands (the)",img:"fo.png"},{i:"FJ",lbl:"Fiji",img:"fj.png"},{i:"FI",lbl:"Finland",img:"fi.png"},{i:"FR",lbl:"France",img:"fr.png"},{i:"GF",lbl:"French Guiana",img:"gf.png"},{i:"PF",lbl:"French Polynesia",img:"pf.png"},{i:"TF",lbl:"French Southern Territories (the)",img:"tf.png"},{i:"GA",lbl:"Gabon",img:"ga.png"},{i:"GM",lbl:"Gambia (the)",img:"gm.png"},{i:"GE",lbl:"Georgia",img:"ge.png"},{i:"DE",lbl:"Germany",img:"de.png"},{i:"GH",lbl:"Ghana",img:"gh.png"},{i:"GI",lbl:"Gibraltar",img:"gi.png"},{i:"GR",lbl:"Greece",img:"gr.png"},{i:"GL",lbl:"Greenland",img:"gl.png"},{i:"GD",lbl:"Grenada",img:"gd.png"},{i:"GP",lbl:"Guadeloupe",img:"gp.png"},{i:"GU",lbl:"Guam",img:"gu.png"},{i:"GT",lbl:"Guatemala",img:"gt.png"},{i:"GG",lbl:"Guernsey",img:"gg.png"},{i:"GN",lbl:"Guinea",img:"gn.png"},{i:"GW",lbl:"Guinea-Bissau",img:"gw.png"},{i:"GY",lbl:"Guyana",img:"gy.png"},{i:"HT",lbl:"Haiti",img:"ht.png"},{i:"HM",lbl:"Heard Island and McDonald Islands",img:"hm.png"},{i:"VA",lbl:"Holy See (the)",img:"va.png"},{i:"HN",lbl:"Honduras",img:"hn.png"},{i:"HK",lbl:"Hong Kong",img:"hk.png"},{i:"HU",lbl:"Hungary",img:"hu.png"},{i:"IS",lbl:"Iceland",img:"is.png"},{i:"IN",lbl:"India",img:"in.png"},{i:"ID",lbl:"Indonesia",img:"id.png"},{i:"IR",lbl:"Iran (Islamic Republic of)",img:"ir.png"},{i:"IQ",lbl:"Iraq",img:"iq.png"},{i:"IE",lbl:"Ireland",img:"ie.png"},{i:"IM",lbl:"Isle of Man",img:"im.png"},{i:"IL",lbl:"Israel",img:"il.png"},{i:"IT",lbl:"Italy",img:"it.png"},{i:"JM",lbl:"Jamaica",img:"jm.png"},{i:"JP",lbl:"Japan",img:"jp.png"},{i:"JE",lbl:"Jersey",img:"je.png"},{i:"JO",lbl:"Jordan",img:"jo.png"},{i:"KZ",lbl:"Kazakhstan",img:"kz.png"},{i:"KE",lbl:"Kenya",img:"ke.png"},{i:"KI",lbl:"Kiribati",img:"ki.png"},{i:"KP",lbl:"Korea (the Democratic People's Republic of)",img:"kp.png"},{i:"KR",lbl:"Korea (the Republic of)",img:"kr.png"},{i:"KW",lbl:"Kuwait",img:"kw.png"},{i:"KG",lbl:"Kyrgyzstan",img:"kg.png"},{i:"LA",lbl:"Lao People's Democratic Republic (the)",img:"la.png"},{i:"LV",lbl:"Latvia",img:"lv.png"},{i:"LB",lbl:"Lebanon",img:"lb.png"},{i:"LS",lbl:"Lesotho",img:"ls.png"},{i:"LR",lbl:"Liberia",img:"lr.png"},{i:"LY",lbl:"Libya",img:"ly.png"},{i:"LI",lbl:"Liechtenstein",img:"li.png"},{i:"LT",lbl:"Lithuania",img:"lt.png"},{i:"LU",lbl:"Luxembourg",img:"lu.png"},{i:"MO",lbl:"Macao",img:"mo.png"},{i:"MG",lbl:"Madagascar",img:"mg.png"},{i:"MW",lbl:"Malawi",img:"mw.png"},{i:"MY",lbl:"Malaysia",img:"my.png"},{i:"MV",lbl:"Maldives",img:"mv.png"},{i:"ML",lbl:"Mali",img:"ml.png"},{i:"MT",lbl:"Malta",img:"mt.png"},{i:"MH",lbl:"Marshall Islands (the)",img:"mh.png"},{i:"MQ",lbl:"Martinique",img:"mq.png"},{i:"MR",lbl:"Mauritania",img:"mr.png"},{i:"MU",lbl:"Mauritius",img:"mu.png"},{i:"YT",lbl:"Mayotte",img:"yt.png"},{i:"MX",lbl:"Mexico",img:"mx.png"},{i:"FM",lbl:"Micronesia (Federated States of)",img:"fm.png"},{i:"MD",lbl:"Moldova (the Republic of)",img:"md.png"},{i:"MC",lbl:"Monaco",img:"mc.png"},{i:"MN",lbl:"Mongolia",img:"mn.png"},{i:"ME",lbl:"Montenegro",img:"me.png"},{i:"MS",lbl:"Montserrat",img:"ms.png"},{i:"MA",lbl:"Morocco",img:"ma.png"},{i:"MZ",lbl:"Mozambique",img:"mz.png"},{i:"MM",lbl:"Myanmar",img:"mm.png"},{i:"NA",lbl:"Namibia",img:"na.png"},{i:"NR",lbl:"Nauru",img:"nr.png"},{i:"NP",lbl:"Nepal",img:"np.png"},{i:"NL",lbl:"Netherlands (the)",img:"nl.png"},{i:"NC",lbl:"New Caledonia",img:"nc.png"},{i:"NZ",lbl:"New Zealand",img:"nz.png"},{i:"NI",lbl:"Nicaragua",img:"ni.png"},{i:"NE",lbl:"Niger (the)",img:"ne.png"},{i:"NG",lbl:"Nigeria",img:"ng.png"},{i:"NU",lbl:"Niue",img:"nu.png"},{i:"NF",lbl:"Norfolk Island",img:"nf.png"},{i:"GB-NIR",lbl:"Northern Ireland",img:"gb-nir.png"},{i:"MP",lbl:"Northern Mariana Islands (the)",img:"mp.png"},{i:"NO",lbl:"Norway",img:"no.png"},{i:"OM",lbl:"Oman",img:"om.png"},{i:"PK",lbl:"Pakistan",img:"pk.png"},{i:"PW",lbl:"Palau",img:"pw.png"},{i:"PS",lbl:"Palestine, State of",img:"ps.png"},{i:"PA",lbl:"Panama",img:"pa.png"},{i:"PG",lbl:"Papua New Guinea",img:"pg.png"},{i:"PY",lbl:"Paraguay",img:"py.png"},{i:"PE",lbl:"Peru",img:"pe.png"},{i:"PH",lbl:"Philippines (the)",img:"ph.png"},{i:"PN",lbl:"Pitcairn",img:"pn.png"},{i:"PL",lbl:"Poland",img:"pl.png"},{i:"PT",lbl:"Portugal",img:"pt.png"},{i:"PR",lbl:"Puerto Rico",img:"pr.png"},{i:"QA",lbl:"Qatar",img:"qa.png"},{i:"MK",lbl:"Republic of North Macedonia",img:"mk.png"},{i:"RO",lbl:"Romania",img:"ro.png"},{i:"RU",lbl:"Russian Federation (the)",img:"ru.png"},{i:"RW",lbl:"Rwanda",img:"rw.png"},{i:"RE",lbl:"Réunion",img:"re.png"},{i:"BL",lbl:"Saint Barthélemy",img:"bl.png"},{i:"SH",lbl:"Saint Helena, Ascension and Tristan da Cunha",img:"sh.png"},{i:"KN",lbl:"Saint Kitts and Nevis",img:"kn.png"},{i:"LC",lbl:"Saint Lucia",img:"lc.png"},{i:"MF",lbl:"Saint Martin (French part)",img:"mf.png"},{i:"PM",lbl:"Saint Pierre and Miquelon",img:"pm.png"},{i:"VC",lbl:"Saint Vincent and the Grenadines",img:"vc.png"},{i:"WS",lbl:"Samoa",img:"ws.png"},{i:"SM",lbl:"San Marino",img:"sm.png"},{i:"ST",lbl:"Sao Tome and Principe",img:"st.png"},{i:"SA",lbl:"Saudi Arabia",img:"sa.png"},{i:"GB-SCT",lbl:"Scotland",img:"gb-sct.png"},{i:"SN",lbl:"Senegal",img:"sn.png"},{i:"RS",lbl:"Serbia",img:"rs.png"},{i:"SC",lbl:"Seychelles",img:"sc.png"},{i:"SL",lbl:"Sierra Leone",img:"sl.png"},{i:"SG",lbl:"Singapore",img:"sg.png"},{i:"SX",lbl:"Sint Maarten (Dutch part)",img:"sx.png"},{i:"SK",lbl:"Slovakia",img:"sk.png"},{i:"SI",lbl:"Slovenia",img:"si.png"},{i:"SB",lbl:"Solomon Islands",img:"sb.png"},{i:"SO",lbl:"Somalia",img:"so.png"},{i:"ZA",lbl:"South Africa",img:"za.png"},{i:"GS",lbl:"South Georgia and the South Sandwich Islands",img:"gs.png"},{i:"SS",lbl:"South Sudan",img:"ss.png"},{i:"ES",lbl:"Spain",img:"es.png"},{i:"LK",lbl:"Sri Lanka",img:"lk.png"},{i:"SD",lbl:"Sudan (the)",img:"sd.png"},{i:"SR",lbl:"Suriname",img:"sr.png"},{i:"SJ",lbl:"Svalbard and Jan Mayen",img:"sj.png"},{i:"SE",lbl:"Sweden",img:"se.png"},{i:"CH",lbl:"Switzerland",img:"ch.png"},{i:"SY",lbl:"Syrian Arab Republic",img:"sy.png"},{i:"TW",lbl:"Taiwan (Province of China)",img:"tw.png"},{i:"TJ",lbl:"Tajikistan",img:"tj.png"},{i:"TZ",lbl:"Tanzania, United Republic of",img:"tz.png"},{i:"TH",lbl:"Thailand",img:"th.png"},{i:"TL",lbl:"Timor-Leste",img:"tl.png"},{i:"TG",lbl:"Togo",img:"tg.png"},{i:"TK",lbl:"Tokelau",img:"tk.png"},{i:"TO",lbl:"Tonga",img:"to.png"},{i:"TT",lbl:"Trinidad and Tobago",img:"tt.png"},{i:"TN",lbl:"Tunisia",img:"tn.png"},{i:"TR",lbl:"Turkey",img:"tr.png"},{i:"TM",lbl:"Turkmenistan",img:"tm.png"},{i:"TC",lbl:"Turks and Caicos Islands (the)",img:"tc.png"},{i:"TV",lbl:"Tuvalu",img:"tv.png"},{i:"UG",lbl:"Uganda",img:"ug.png"},{i:"UA",lbl:"Ukraine",img:"ua.png"},{i:"AE",lbl:"United Arab Emirates (the)",img:"ae.png"},{i:"GB",lbl:"United Kingdom",img:"gb.png"},{i:"UM",lbl:"United States Minor Outlying Islands (the)",img:"um.png"},{i:"US",lbl:"United States of America (the)",img:"us.png"},{i:"UY",lbl:"Uruguay",img:"uy.png"},{i:"UZ",lbl:"Uzbekistan",img:"uz.png"},{i:"VU",lbl:"Vanuatu",img:"vu.png"},{i:"VE",lbl:"Venezuela (Bolivarian Republic of)",img:"ve.png"},{i:"VN",lbl:"Viet Nam",img:"vn.png"},{i:"VG",lbl:"Virgin Islands (British)",img:"vg.png"},{i:"VI",lbl:"Virgin Islands (U.S.)",img:"vi.png"},{i:"WF",lbl:"Wallis and Futuna",img:"wf.png"},{i:"GB-WLS",lbl:"Wales",img:"gb-wls.png"},{i:"EH",lbl:"Western Sahara",img:"eh.png"},{i:"YE",lbl:"Yemen",img:"ye.png"},{i:"ZM",lbl:"Zambia",img:"zm.png"},{i:"ZW",lbl:"Zimbabwe",img:"zw.png"},{i:"AX",lbl:"Åland Islands",img:"ax.png"}],$g=[{i:"AED",lbl:"Emirati Dirham",img:"aed.png"},{i:"AFN",lbl:"Afghan Afghani",img:"afn.png"},{i:"ALL",lbl:"Albanian Lek",img:"all.png"},{i:"AMD",lbl:"Armenian Dram",img:"amd.png"},{i:"ANG",lbl:"Dutch Guilder",img:"ang.png"},{i:"AOA",lbl:"Angolan Kwanza",img:"aoa.png"},{i:"ARS",lbl:"Argentine Peso",img:"ars.png"},{i:"AUD",lbl:"Australian Dollar",img:"aud.png"},{i:"AWG",lbl:"Aruban or Dutch Guilder",img:"awg.png"},{i:"AZN",lbl:"Azerbaijan Manat",img:"azn.png"},{i:"BAM",lbl:"Bosnian Convertible Mark",img:"bam.png"},{i:"BBD",lbl:"Barbadian or Bajan Dollar",img:"bbd.png"},{i:"BDT",lbl:"Bangladeshi Taka",img:"bdt.png"},{i:"BGN",lbl:"Bulgarian Lev",img:"bgn.png"},{i:"BHD",lbl:"Bahraini Dinar",img:"bhd.png"},{i:"BIF",lbl:"Burundian Franc",img:"bif.png"},{i:"BMD",lbl:"Bermudian Dollar",img:"bmd.png"},{i:"BND",lbl:"Bruneian Dollar",img:"bnd.png"},{i:"BOB",lbl:"Bolivian Bolíviano",img:"bob.png"},{i:"BRL",lbl:"Brazilian Real",img:"brl.png"},{i:"BSD",lbl:"Bahamian Dollar",img:"bsd.png"},{i:"BTN",lbl:"Bhutanese Ngultrum",img:"btn.png"},{i:"BWP",lbl:"Botswana Pula",img:"bwp.png"},{i:"BYN",lbl:"Belarusian Ruble",img:"byn.png"},{i:"BYR",lbl:"Belarusian Ruble",img:"byr.png"},{i:"BZD",lbl:"Belizean Dollar",img:"bzd.png"},{i:"CAD",lbl:"Canadian Dollar",img:"cad.png"},{i:"CDF",lbl:"Congolese Franc",img:"cdf.png"},{i:"CHF",lbl:"Swiss Franc",img:"chf.png"},{i:"CLP",lbl:"Chilean Peso",img:"clp.png"},{i:"CNY",lbl:"Chinese Yuan Renminbi",img:"cny.png"},{i:"COP",lbl:"Colombian Peso",img:"cop.png"},{i:"CRC",lbl:"Costa Rican Colon",img:"crc.png"},{i:"CUC",lbl:"Cuban Convertible Peso",img:"cuc.png"},{i:"CUP",lbl:"Cuban Peso",img:"cup.png"},{i:"CVE",lbl:"Cape Verdean Escudo",img:"cve.png"},{i:"CZK",lbl:"Czech Koruna",img:"czk.png"},{i:"DJF",lbl:"Djiboutian Franc",img:"djf.png"},{i:"DKK",lbl:"Danish Krone",img:"dkk.png"},{i:"DOP",lbl:"Dominican Peso",img:"dop.png"},{i:"DZD",lbl:"Algerian Dinar",img:"dzd.png"},{i:"EEK",lbl:"Estonian Kroon",img:"eek.png"},{i:"EGP",lbl:"Egyptian Pound",img:"egp.png"},{i:"ERN",lbl:"Eritrean Nakfa",img:"ern.png"},{i:"ETB",lbl:"Ethiopian Birr",img:"etb.png"},{i:"EUR",lbl:"Euro",img:"eur.png"},{i:"FJD",lbl:"Fijian Dollar",img:"fjd.png"},{i:"FKP",lbl:"Falkland Island Pound",img:"fkp.png"},{i:"GBP",lbl:"British Pound",img:"gbp.png"},{i:"GEL",lbl:"Georgian Lari",img:"gel.png"},{i:"GGP",lbl:"Guernsey Pound",img:"ggp.png"},{i:"GHS",lbl:"Ghanaian Cedi",img:"ghs.png"},{i:"GIP",lbl:"Gibraltar Pound",img:"gip.png"},{i:"GMD",lbl:"Gambian Dalasi",img:"gmd.png"},{i:"GNF",lbl:"Guinean Franc",img:"gnf.png"},{i:"GTQ",lbl:"Guatemalan Quetzal",img:"gtq.png"},{i:"GYD",lbl:"Guyanese Dollar",img:"gyd.png"},{i:"HKD",lbl:"Hong Kong Dollar",img:"hkd.png"},{i:"HNL",lbl:"Honduran Lempira",img:"hnl.png"},{i:"HRK",lbl:"Croatian Kuna",img:"hrk.png"},{i:"HTG",lbl:"Haitian Gourde",img:"htg.png"},{i:"HUF",lbl:"Hungarian Forint",img:"huf.png"},{i:"IDR",lbl:"Indonesian Rupiah",img:"idr.png"},{i:"ILS",lbl:"Israeli Shekel",img:"ils.png"},{i:"IMP",lbl:"Isle of Man Pound",img:"imp.png"},{i:"INR",lbl:"Indian Rupee",img:"inr.png"},{i:"IQD",lbl:"Iraqi Dinar",img:"iqd.png"},{i:"IRR",lbl:"Iranian Rial",img:"irr.png"},{i:"ISK",lbl:"Icelandic Krona",img:"isk.png"},{i:"JEP",lbl:"Jersey Pound",img:"jep.png"},{i:"JMD",lbl:"Jamaican Dollar",img:"jmd.png"},{i:"JOD",lbl:"Jordanian Dinar",img:"jod.png"},{i:"JPY",lbl:"Japanese Yen",img:"jpy.png"},{i:"KES",lbl:"Kenyan Shilling",img:"kes.png"},{i:"KGS",lbl:"Kyrgyzstani Som",img:"kgs.png"},{i:"KHR",lbl:"Cambodian Riel",img:"khr.png"},{i:"KMF",lbl:"Comorian Franc",img:"kmf.png"},{i:"KPW",lbl:"North Korean Won",img:"kpw.png"},{i:"KRW",lbl:"South Korean Won",img:"krw.png"},{i:"KWD",lbl:"Kuwaiti Dinar",img:"kwd.png"},{i:"KYD",lbl:"Caymanian Dollar",img:"kyd.png"},{i:"KZT",lbl:"Kazakhstani Tenge",img:"kzt.png"},{i:"LAK",lbl:"Lao Kip",img:"lak.png"},{i:"LBP",lbl:"Lebanese Pound",img:"lbp.png"},{i:"LKR",lbl:"Sri Lankan Rupee",img:"lkr.png"},{i:"LRD",lbl:"Liberian Dollar",img:"lrd.png"},{i:"LSL",lbl:"Basotho Loti",img:"lsl.png"},{i:"LTL",lbl:"Lithuanian Litas",img:"ltl.png"},{i:"LVL",lbl:"Latvian Lat",img:"lvl.png"},{i:"LYD",lbl:"Libyan Dinar",img:"lyd.png"},{i:"MAD",lbl:"Moroccan Dirham",img:"mad.png"},{i:"MDL",lbl:"Moldovan Leu",img:"mdl.png"},{i:"MGA",lbl:"Malagasy Ariary",img:"mga.png"},{i:"MKD",lbl:"Macedonian Denar",img:"mkd.png"},{i:"MMK",lbl:"Burmese Kyat",img:"mmk.png"},{i:"MNT",lbl:"Mongolian Tughrik",img:"mnt.png"},{i:"MOP",lbl:"Macau Pataca",img:"mop.png"},{i:"MRU",lbl:"Mauritanian Ouguiya",img:"mru.png"},{i:"MUR",lbl:"Mauritian Rupee",img:"mur.png"},{i:"MVR",lbl:"Maldivian Rufiyaa",img:"mvr.png"},{i:"MWK",lbl:"Malawian Kwacha",img:"mwk.png"},{i:"MXN",lbl:"Mexican Peso",img:"mxn.png"},{i:"MYR",lbl:"Malaysian Ringgit",img:"myr.png"},{i:"MZN",lbl:"Mozambican Metical",img:"mzn.png"},{i:"NAD",lbl:"Namibian Dollar",img:"nad.png"},{i:"NGN",lbl:"Nigerian Naira",img:"ngn.png"},{i:"NIO",lbl:"Nicaraguan Cordoba",img:"nio.png"},{i:"NOK",lbl:"Norwegian Krone",img:"nok.png"},{i:"NPR",lbl:"Nepalese Rupee",img:"npr.png"},{i:"NZD",lbl:"New Zealand Dollar",img:"nzd.png"},{i:"OMR",lbl:"Omani Rial",img:"omr.png"},{i:"PAB",lbl:"Panamanian Balboa",img:"pab.png"},{i:"PEN",lbl:"Peruvian Sol",img:"pen.png"},{i:"PGK",lbl:"Papua New Guinean Kina",img:"pgk.png"},{i:"PHP",lbl:"Philippine Peso",img:"php.png"},{i:"PKR",lbl:"Pakistani Rupee",img:"pkr.png"},{i:"PLN",lbl:"Polish Zloty",img:"pln.png"},{i:"PYG",lbl:"Paraguayan Guarani",img:"pyg.png"},{i:"QAR",lbl:"Qatari Riyal",img:"qar.png"},{i:"RON",lbl:"Romanian Leu",img:"ron.png"},{i:"RSD",lbl:"Serbian Dinar",img:"rsd.png"},{i:"RUB",lbl:"Russian Ruble",img:"rub.png"},{i:"RWF",lbl:"Rwandan Franc",img:"rwf.png"},{i:"SAR",lbl:"Saudi Arabian Riyal",img:"sar.png"},{i:"SBD",lbl:"Solomon Islander Dollar",img:"sbd.png"},{i:"SCR",lbl:"Seychellois Rupee",img:"scr.png"},{i:"SDG",lbl:"Sudanese Pound",img:"sdg.png"},{i:"SEK",lbl:"Swedish Krona",img:"sek.png"},{i:"SGD",lbl:"Singapore Dollar",img:"sgd.png"},{i:"SHP",lbl:"Saint Helenian Pound",img:"shp.png"},{i:"SLL",lbl:"Sierra Leonean Leone",img:"sll.png"},{i:"SOS",lbl:"Somali Shilling",img:"sos.png"},{i:"SPL",lbl:"Seborgan Luigino",img:"spl.png"},{i:"SRD",lbl:"Surinamese Dollar",img:"srd.png"},{i:"STN",lbl:"Sao Tomean Dobra",img:"stn.png"},{i:"SVC",lbl:"Salvadoran Colon",img:"svc.png"},{i:"SYP",lbl:"Syrian Pound",img:"syp.png"},{i:"SZL",lbl:"Swazi Lilangeni",img:"szl.png"},{i:"THB",lbl:"Thai Baht",img:"thb.png"},{i:"TJS",lbl:"Tajikistani Somoni",img:"tjs.png"},{i:"TMT",lbl:"Turkmenistani Manat",img:"tmt.png"},{i:"TND",lbl:"Tunisian Dinar",img:"tnd.png"},{i:"TOP",lbl:"Tongan Pa'anga",img:"top.png"},{i:"TRY",lbl:"Turkish Lira",img:"try.png"},{i:"TTD",lbl:"Trinidadian Dollar",img:"ttd.png"},{i:"TVD",lbl:"Tuvaluan Dollar",img:"tvd.png"},{i:"TWD",lbl:"Taiwan New Dollar",img:"twd.png"},{i:"TZS",lbl:"Tanzanian Shilling",img:"tzs.png"},{i:"UAH",lbl:"Ukrainian Hryvnia",img:"uah.png"},{i:"UGX",lbl:"Ugandan Shilling",img:"ugx.png"},{i:"USD",lbl:"US Dollar",img:"usd.png"},{i:"UYU",lbl:"Uruguayan Peso",img:"uyu.png"},{i:"UZS",lbl:"Uzbekistani Som",img:"uzs.png"},{i:"VEF",lbl:"Venezuelan Bolívar",img:"vef.png"},{i:"VES",lbl:"Venezuelan Bolívar",img:"ves.png"},{i:"VND",lbl:"Vietnamese Dong",img:"vnd.png"},{i:"VUV",lbl:"Ni-Vanuatu Vatu",img:"vuv.png"},{i:"WST",lbl:"Samoan Tala",img:"wst.png"},{i:"XAF",lbl:"Central African CFA Franc BEAC",img:"xaf.png"},{i:"XAG",lbl:"Silver Ounce",img:"xag.png"},{i:"XAU",lbl:"Gold Ounce",img:"xau.png"},{i:"XBT",lbl:"Bitcoin",img:"xbt.png"},{i:"XCD",lbl:"East Caribbean Dollar",img:"xcd.png"},{i:"XOF",lbl:"CFA Franc",img:"xof.png"},{i:"XPD",lbl:"Palladium Ounce",img:"xpd.png"},{i:"XPF",lbl:"CFP Franc",img:"xpf.png"},{i:"XPT",lbl:"Platinum Ounce",img:"xpt.png"},{i:"YER",lbl:"Yemeni Rial",img:"yer.png"},{i:"ZAR",lbl:"South African Rand",img:"zar.png"},{i:"ZMK",lbl:"Zambian Kwacha",img:"zmk.png"},{i:"ZMW",lbl:"Zambian Kwacha",img:"zmw.png"},{i:"ZWD",lbl:"Zimbabwean Dollar",img:"zwd.png"}],Sg=[{i:"US",lbl:"United States of America (the)",img:"us.png",code:"+1",ex:"2015550123",ptrn:"5056(?:[0-35-9]$_bf_$d|4[46])$_bf_$d{4}|(?:4722|505[2-57-9])$_bf_$d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[0-2]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]$_bf_$d{6}"},{i:"CA",lbl:"Canada",img:"ca.png",code:"+1",ex:"5062345678",ptrn:"(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]$_bf_$d{6}"},{i:"AG",lbl:"Antigua and Barbuda",img:"ag.png",code:"+1",ex:"2684641234",ptrn:"268(?:464|7(?:1[3-9]|[28]$_bf_$d|3[0246]|64|7[0-689]))$_bf_$d{4}"},{i:"AI",lbl:"Anguilla",img:"ai.png",code:"+1",ex:"2642351234",ptrn:"264(?:235|4(?:69|76)|5(?:3[6-9]|8[1-4])|7(?:29|72))$_bf_$d{4}"},{i:"AS",lbl:"American Samoa",img:"as.png",code:"+1",ex:"6847331234",ptrn:"684(?:2(?:48|5[2468]|72)|7(?:3[13]|70|82))$_bf_$d{4}"},{i:"BB",lbl:"Barbados",img:"bb.png",code:"+1",ex:"2462501234",ptrn:"246(?:2(?:[3568]$_bf_$d|4[0-57-9])|45$_bf_$d|69[5-7]|8(?:[2-5]$_bf_$d|83))$_bf_$d{4}"},{i:"BM",lbl:"Bermuda",img:"bm.png",code:"+1",ex:"4413701234",ptrn:"441(?:[2378]$_bf_$d|5[0-39])$_bf_$d{5}"},{i:"BS",lbl:"Bahamas (the)",img:"bs.png",code:"+1",ex:"2423591234",ptrn:"242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7$_bf_$d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2$_bf_$d|[89]9))$_bf_$d{4}"},{i:"DM",lbl:"Dominica",img:"dm.png",code:"+1",ex:"7672251234",ptrn:"767(?:2(?:[2-4689]5|7[5-7])|31[5-7]|61[1-8]|70[1-6])$_bf_$d{4}"},{i:"DO",lbl:"Dominican Republic (the)",img:"do.png",code:"+1",ex:"8092345678",ptrn:"8[024]9[2-9]$_bf_$d{6}"},{i:"GD",lbl:"Grenada",img:"gd.png",code:"+1",ex:"4734031234",ptrn:"473(?:4(?:0[2-79]|1[04-9]|2[0-5]|58)|5(?:2[01]|3[3-8])|901)$_bf_$d{4}"},{i:"GU",lbl:"Guam",img:"gu.png",code:"+1",ex:"6713001234",ptrn:"671(?:3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-46-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[48])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))$_bf_$d{4}"},{i:"JM",lbl:"Jamaica",img:"jm.png",code:"+1",ex:"8762101234",ptrn:"(?:658295|876(?:2(?:0[6-9]|[14-9]$_bf_$d|2[013-9]|3[7-9])|[348]$_bf_$d$_bf_$d|5(?:0[1-9]|[1-9]$_bf_$d)|6(?:4[89]|6[67])|7(?:0[07]|7$_bf_$d|8[1-47-9]|9[0-36-9])|9(?:[01]9|9[0579])))$_bf_$d{4}"},{i:"KN",lbl:"Saint Kitts and Nevis",img:"kn.png",code:"+1",ex:"8697652917",ptrn:"869(?:48[89]|55[6-8]|66$_bf_$d|76[02-7])$_bf_$d{4}"},{i:"KY",lbl:"Cayman Islands (the)",img:"ky.png",code:"+1",ex:"3453231234",ptrn:"345(?:32[1-9]|42[0-4]|5(?:1[67]|2[5-79]|4[6-9]|50|76)|649|9(?:1[679]|2[2-9]|3[06-9]|90))$_bf_$d{4}"},{i:"LC",lbl:"Saint Lucia",img:"lc.png",code:"+1",ex:"7582845678",ptrn:"758(?:28[4-7]|384|4(?:6[01]|8[4-9])|5(?:1[89]|20|84)|7(?:1[2-9]|2$_bf_$d|3[0-3])|812)$_bf_$d{4}"},{i:"MP",lbl:"Northern Mariana Islands (the)",img:"mp.png",code:"+1",ex:"6702345678",ptrn:"670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)$_bf_$d{4}"},{i:"MS",lbl:"Montserrat",img:"ms.png",code:"+1",ex:"6644923456",ptrn:"664(?:3(?:49|9[1-6])|49[2-6])$_bf_$d{4}"},{i:"PR",lbl:"Puerto Rico",img:"pr.png",code:"+1",ex:"7872345678",ptrn:"(?:787|939)[2-9]$_bf_$d{6}"},{i:"SX",lbl:"Sint Maarten (Dutch part)",img:"sx.png",code:"+1",ex:"7215205678",ptrn:"7215(?:1[02]|2$_bf_$d|5[034679]|8[014-8])$_bf_$d{4}"},{i:"TC",lbl:"Turks and Caicos Islands (the)",img:"tc.png",code:"+1",ex:"6492311234",ptrn:"649(?:2(?:3[129]|4[1-79])|3$_bf_$d$_bf_$d|4[34][1-3])$_bf_$d{4}"},{i:"TT",lbl:"Trinidad and Tobago",img:"tt.png",code:"+1",ex:"8682911234",ptrn:"868(?:(?:2[5-9]|3$_bf_$d)$_bf_$d|4(?:3[0-6]|[6-9]$_bf_$d)|6(?:20|78|8$_bf_$d)|7(?:0[1-9]|1[02-9]|[2-9]$_bf_$d))$_bf_$d{4}"},{i:"VC",lbl:"Saint Vincent and the Grenadines",img:"vc.png",code:"+1",ex:"7844301234",ptrn:"784(?:4(?:3[0-5]|5[45]|89|9[0-8])|5(?:2[6-9]|3[0-4])|720)$_bf_$d{4}"},{i:"VG",lbl:"Virgin Islands (British)",img:"vg.png",code:"+1",ex:"2843001234",ptrn:"284496[6-9]$_bf_$d{3}|284(?:245|3(?:0[0-3]|4[0-7]|68|9[34])|4(?:4[0-6]|68|99)|5(?:4[0-7]|68|9[69]))$_bf_$d{4}"},{i:"VI",lbl:"Virgin Islands (U.S.)",img:"vi.png",code:"+1",ex:"3406421234",ptrn:"340(?:2(?:0[0-368]|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7$_bf_$d)|884|998)$_bf_$d{4}"},{i:"AD",lbl:"Andorra",img:"ad.png",code:"+376",ex:"312345",frmt:"+c ## ### ### ##",ptrn:"690$_bf_$d{6}|[356]$_bf_$d{5}"},{i:"AE",lbl:"United Arab Emirates (the)",img:"ae.png",code:"+971",ex:"501234567",ptrn:"5[024-68]$_bf_$d{7}"},{i:"AF",lbl:"Afghanistan",img:"af.png",code:"+93",ex:"701234567",ptrn:"7$_bf_$d{8}"},{i:"AL",lbl:"Albania",img:"al.png",code:"+355",ex:"672123456",ptrn:"6(?:[78][2-9]|9$_bf_$d)$_bf_$d{6}"},{i:"AM",lbl:"Armenia",img:"am.png",code:"+374",ex:"77123456",ptrn:"(?:33|4[1349]|55|77|88|9[13-9])$_bf_$d{6}"},{i:"AO",lbl:"Angola",img:"ao.png",code:"+244",ex:"923123456",ptrn:"9[1-49]$_bf_$d{7}"},{i:"AR",lbl:"Argentina",img:"ar.png",code:"+54",ex:"91123456789",ptrn:"93888[013-9]$_bf_$d{5}|9(?:29(?:54|66)|3(?:777|865))[2-8]$_bf_$d{5}|93(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]$_bf_$d{5}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]$_bf_$d{5}|9(?:2(?:284|302|657|920)|3(?:4(?:8[27]|92)|541|755|878))[2-7]$_bf_$d{5}|9(?:2(?:(?:26|62)2|32[03]|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]$_bf_$d{5}|(?:675$_bf_$d|9(?:11[1-8]$_bf_$d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-7]|[235][4-6]|84)|5(?:1[2-8]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:[03][45]|[17][2-6]|[58][3-6]))))$_bf_$d{6}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4$_bf_$d{5}|9(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]$_bf_$d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]$_bf_$d{5}"},{i:"AT",lbl:"Austria",img:"at.png",code:"+43",ex:"664123456",ptrn:"6(?:5[0-3579]|6[013-9]|[7-9]$_bf_$d)$_bf_$d{4,10}"},{i:"AU",lbl:"Australia",img:"au.png",code:"+61",ex:"412345678",ptrn:"4(?:83[0-38]|93[0-6])$_bf_$d{5}|4(?:[0-3]$_bf_$d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])$_bf_$d{6}"},{i:"CC",lbl:"Cocos (Keeling) Islands (the)",img:"cc.png",code:"+61",ex:"412345678",ptrn:"4(?:83[0-38]|93[0-6])$_bf_$d{5}|4(?:[0-3]$_bf_$d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])$_bf_$d{6}"},{i:"CX",lbl:"Christmas Island",img:"cx.png",code:"+61",ex:"412345678",ptrn:"4(?:83[0-38]|93[0-6])$_bf_$d{5}|4(?:[0-3]$_bf_$d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])$_bf_$d{6}"},{i:"AW",lbl:"Aruba",img:"aw.png",code:"+297",ex:"5601234",ptrn:"(?:290|5[69]$_bf_$d|6(?:[03]0|22|4[0-2]|[69]$_bf_$d)|7(?:[34]$_bf_$d|7[07])|9(?:6[45]|9[4-8]))$_bf_$d{4}"},{i:"AX",lbl:"Åland Islands",img:"ax.png",code:"+358",ex:"412345678",ptrn:"4946$_bf_$d{2,6}|(?:4[0-8]|50)$_bf_$d{4,8}"},{i:"FI",lbl:"Finland",img:"fi.png",code:"+358",ex:"412345678",ptrn:"4946$_bf_$d{2,6}|(?:4[0-8]|50)$_bf_$d{4,8}"},{i:"AZ",lbl:"Azerbaijan",img:"az.png",code:"+994",ex:"401234567",ptrn:"36554$_bf_$d{4}|(?:[16]0|4[04]|5[015]|7[07]|99)$_bf_$d{7}"},{i:"BA",lbl:"Bosnia and Herzegovina",img:"ba.png",code:"+387",ex:"61123456",ptrn:"6040$_bf_$d{5}|6(?:03|[1-356]|44|7$_bf_$d)$_bf_$d{6}"},{i:"BD",lbl:"Bangladesh",img:"bd.png",code:"+880",ex:"1812345678",ptrn:"(?:1[13-9]$_bf_$d|644)$_bf_$d{7}|(?:3[78]|44|66)[02-9]$_bf_$d{7}"},{i:"BE",lbl:"Belgium",img:"be.png",code:"+32",ex:"470123456",ptrn:"4[5-9]$_bf_$d{7}"},{i:"BF",lbl:"Burkina Faso",img:"bf.png",code:"+226",ex:"70123456",ptrn:"(?:0[1267]|5[1-8]|[67]$_bf_$d)$_bf_$d{6}"},{i:"BG",lbl:"Bulgaria",img:"bg.png",code:"+359",ex:"48123456",ptrn:"43[07-9]$_bf_$d{5}|(?:48|8[7-9]$_bf_$d|9(?:8$_bf_$d|9[69]))$_bf_$d{6}"},{i:"BH",lbl:"Bahrain",img:"bh.png",code:"+973",ex:"36001234",ptrn:"(?:3(?:[1-79]$_bf_$d|8[0-47-9])$_bf_$d|6(?:3(?:00|33|6[16])|6(?:3[03-9]|[69]$_bf_$d|7[0-6])))$_bf_$d{4}"},{i:"BI",lbl:"Burundi",img:"bi.png",code:"+257",ex:"79561234",ptrn:"(?:29|31|6[1289]|7[125-9])$_bf_$d{6}"},{i:"BJ",lbl:"Benin",img:"bj.png",code:"+229",ex:"90011234",ptrn:"(?:5[1-35-8]|6$_bf_$d|9[013-9])$_bf_$d{6}"},{i:"BL",lbl:"Saint Barthélemy",img:"bl.png",code:"+590",ex:"690001234",ptrn:"69(?:0$_bf_$d$_bf_$d|1(?:2[2-9]|3[0-5]))$_bf_$d{4}"},{i:"GP",lbl:"Guadeloupe",img:"gp.png",code:"+590",ex:"690001234",ptrn:"69(?:0$_bf_$d$_bf_$d|1(?:2[2-9]|3[0-5]))$_bf_$d{4}"},{i:"MF",lbl:"Saint Martin (French part)",img:"mf.png",code:"+590",ex:"690001234",ptrn:"69(?:0$_bf_$d$_bf_$d|1(?:2[2-9]|3[0-5]))$_bf_$d{4}"},{i:"BN",lbl:"Brunei Darussalam",img:"bn.png",code:"+673",ex:"7123456",ptrn:"(?:22[89]|[78]$_bf_$d$_bf_$d)$_bf_$d{4}"},{i:"BO",lbl:"Bolivia (Plurinational State of)",img:"bo.png",code:"+591",ex:"71234567",ptrn:"[67]$_bf_$d{7}"},{i:"BQ",lbl:"Bonaire, Sint Eustatius and Saba",img:"bq.png",code:"+599",ex:"3181234",ptrn:"(?:31(?:8[14-8]|9[14578])|416[14-9]|7(?:0[01]|7[07]|8$_bf_$d|9[056])$_bf_$d)$_bf_$d{3}"},{i:"CW",lbl:"Curaçao",img:"cw.png",code:"+599",ex:"95181234",ptrn:"953[01]$_bf_$d{4}|9(?:5[12467]|6[5-9])$_bf_$d{5}"},{i:"BR",lbl:"Brazil",img:"br.png",code:"+55",ex:"11961234567",ptrn:"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])(?:7|9$_bf_$d)$_bf_$d{7}"},{i:"BT",lbl:"Bhutan",img:"bt.png",code:"+975",ex:"17123456",ptrn:"(?:1[67]|77)$_bf_$d{6}"},{i:"BW",lbl:"Botswana",img:"bw.png",code:"+267",ex:"71123456",ptrn:"(?:321|7(?:[1-7]$_bf_$d|8[01]))$_bf_$d{5}"},{i:"BY",lbl:"Belarus",img:"by.png",code:"+375",ex:"294911911",ptrn:"(?:2(?:5[5-79]|9[1-9])|(?:33|44)$_bf_$d)$_bf_$d{6}"},{i:"BZ",lbl:"Belize",img:"bz.png",code:"+501",ex:"6221234",ptrn:"6[0-35-7]$_bf_$d{5}"},{i:"CD",lbl:"Congo (the Democratic Republic of the)",img:"cd.png",code:"+243",ex:"991234567",ptrn:"88$_bf_$d{5}|(?:8[0-59]|9[017-9])$_bf_$d{7}"},{i:"CF",lbl:"Central African Republic (the)",img:"cf.png",code:"+236",ex:"70012345",ptrn:"7[0257]$_bf_$d{6}"},{i:"CG",lbl:"Congo (the)",img:"cg.png",code:"+242",ex:"061234567",ptrn:"026(?:1[0-5]|6[6-9])$_bf_$d{4}|0(?:[14-6]$_bf_$d$_bf_$d|2(?:40|5[5-8]|6[07-9]))$_bf_$d{5}"},{i:"CH",lbl:"Switzerland",img:"ch.png",code:"+41",ex:"781234567",ptrn:"7[35-9]$_bf_$d{7}"},{i:"CI",lbl:"Côte d'Ivoire",img:"ci.png",code:"+225",ex:"0123456789",ptrn:"0704[0-7]$_bf_$d{5}|0(?:[15]$_bf_$d$_bf_$d|7(?:0[0-37-9]|[4-9][7-9]))$_bf_$d{6}"},{i:"CK",lbl:"Cook Islands (the)",img:"ck.png",code:"+682",ex:"71234",ptrn:"[578]$_bf_$d{4}"},{i:"CL",lbl:"Chile",img:"cl.png",code:"+56",ex:"221234567",ptrn:"2(?:1982[0-6]|3314[05-9])$_bf_$d{3}|(?:2(?:1(?:160|962)|3(?:2$_bf_$d$_bf_$d|3(?:[03467]$_bf_$d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-3])|600)|646[59])|80[1-9]$_bf_$d$_bf_$d|9(?:3(?:[0-57-9]$_bf_$d$_bf_$d|6(?:0[02-9]|[1-9]$_bf_$d))|6(?:[0-8]$_bf_$d$_bf_$d|9(?:[02-79]$_bf_$d|1[05-9]))|7[1-9]$_bf_$d$_bf_$d|9(?:[03-9]$_bf_$d$_bf_$d|1(?:[0235-9]$_bf_$d|4[0-24-9])|2(?:[0-79]$_bf_$d|8[0-46-9]))))$_bf_$d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])$_bf_$d{7}"},{i:"CM",lbl:"Cameroon",img:"cm.png",code:"+237",ex:"671234567",ptrn:"(?:24[23]|6[5-9]$_bf_$d)$_bf_$d{6}"},{i:"CN",lbl:"China",img:"cn.png",code:"+86",ex:"13123456789",ptrn:"1740[0-5]$_bf_$d{6}|1(?:[38]$_bf_$d|4[57]|5[0-35-9]|6[25-7]|7[0-35-8]|9[0135-9])$_bf_$d{8}"},{i:"CO",lbl:"Colombia",img:"co.png",code:"+57",ex:"3211234567",ptrn:"3333(?:0(?:0$_bf_$d|1[0-5])|[4-9]$_bf_$d$_bf_$d)$_bf_$d{3}|(?:3(?:24[2-6]|3(?:00|3[0-24-9]))|9101)$_bf_$d{6}|3(?:0[0-5]|1$_bf_$d|2[0-3]|5[01]|70)$_bf_$d{7}"},{i:"CR",lbl:"Costa Rica",img:"cr.png",code:"+506",ex:"83123456",ptrn:"(?:3005$_bf_$d|6500[01])$_bf_$d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])$_bf_$d{6}"},{i:"CU",lbl:"Cuba",img:"cu.png",code:"+53",ex:"51234567",ptrn:"5$_bf_$d{7}"},{i:"CV",lbl:"Cabo Verde",img:"cv.png",code:"+238",ex:"9911234",ptrn:"(?:[34][36]|5[0-389])$_bf_$d{5}"},{i:"CY",lbl:"Cyprus",img:"cy.png",code:"+357",ex:"96123456",ptrn:"9[4-79]$_bf_$d{6}"},{i:"CZ",lbl:"Czechia",img:"cz.png",code:"+420",ex:"601123456",ptrn:"(?:60[1-8]|7(?:0[2-5]|[2379]$_bf_$d))$_bf_$d{6}"},{i:"DE",lbl:"Germany",img:"de.png",code:"+49",ex:"15123456789",ptrn:"15[0-25-9]$_bf_$d{8}|1(?:6[023]|7$_bf_$d)$_bf_$d{7,8}"},{i:"DJ",lbl:"Djibouti",img:"dj.png",code:"+253",ex:"77831001",ptrn:"77$_bf_$d{6}"},{i:"DK",lbl:"Denmark",img:"dk.png",code:"+45",ex:"32123456",ptrn:"(?:[2-7]$_bf_$d|8[126-9]|9[1-46-9])$_bf_$d{6}"},{i:"DZ",lbl:"Algeria",img:"dz.png",code:"+213",ex:"551234567",ptrn:"(?:5(?:4[0-29]|5$_bf_$d|6[0-2])|6(?:[569]$_bf_$d|7[0-6])|7[7-9]$_bf_$d)$_bf_$d{6}"},{i:"EC",lbl:"Ecuador",img:"ec.png",code:"+593",ex:"991234567",ptrn:"964[0-2]$_bf_$d{5}|9(?:39|[57][89]|6[0-36-9]|[89]$_bf_$d)$_bf_$d{6}"},{i:"EE",lbl:"Estonia",img:"ee.png",code:"+372",ex:"51234567",ptrn:"5(?:[0-35-9]$_bf_$d{6}|4(?:[0-57-9]$_bf_$d{5}|6(?:[0-24-9]$_bf_$d{4}|3(?:[0-35-9]$_bf_$d{3}|4000))))|8(?:1(?:0(?:000|[3-9]$_bf_$d$_bf_$d)|(?:1(?:0[236]|1$_bf_$d)|(?:23|[3-79]$_bf_$d)$_bf_$d)$_bf_$d)|2(?:0(?:000|(?:19|[24-7]$_bf_$d)$_bf_$d)|(?:(?:[124-6]$_bf_$d|3[5-9])$_bf_$d|7(?:[679]$_bf_$d|8[13-9])|8(?:[2-6]$_bf_$d|7[01]))$_bf_$d)|[349]$_bf_$d{4})$_bf_$d$_bf_$d|5(?:(?:[02]$_bf_$d|5[0-478])$_bf_$d|1(?:[0-8]$_bf_$d|95)|6(?:4[0-4]|5[1-589]))$_bf_$d{3}"},{i:"EG",lbl:"Egypt",img:"eg.png",code:"+20",ex:"1001234567",ptrn:"1[0-25]$_bf_$d{8}"},{i:"EH",lbl:"Western Sahara",img:"eh.png",code:"+212",ex:"650123456",ptrn:"(?:6(?:[0-79]$_bf_$d|8[0-247-9])|7(?:0$_bf_$d|1[0-5]|6[1267]|7[0-57]))$_bf_$d{6}"},{i:"MA",lbl:"Morocco",img:"ma.png",code:"+212",ex:"650123456",ptrn:"(?:6(?:[0-79]$_bf_$d|8[0-247-9])|7(?:0$_bf_$d|1[0-5]|6[1267]|7[0-57]))$_bf_$d{6}"},{i:"ER",lbl:"Eritrea",img:"er.png",code:"+291",ex:"7123456",ptrn:"(?:17[1-3]|7$_bf_$d$_bf_$d)$_bf_$d{4}"},{i:"ES",lbl:"Spain",img:"es.png",code:"+34",ex:"612345678",ptrn:"(?:590[16]00$_bf_$d|9(?:6906(?:09|10)|7390$_bf_$d$_bf_$d))$_bf_$d$_bf_$d|(?:6$_bf_$d|7[1-48])$_bf_$d{7}"},{i:"ET",lbl:"Ethiopia",img:"et.png",code:"+251",ex:"911234567",ptrn:"9$_bf_$d{8}"},{i:"FJ",lbl:"Fiji",img:"fj.png",code:"+679",ex:"7012345",ptrn:"(?:[279]$_bf_$d|45|5[01568]|8[034679])$_bf_$d{5}"},{i:"FK",lbl:"Falkland Islands (the) [Malvinas]",img:"fk.png",code:"+500",ex:"51234",ptrn:"[56]$_bf_$d{4}"},{i:"FM",lbl:"Micronesia (Federated States of)",img:"fm.png",code:"+691",ex:"3501234",ptrn:"31(?:00[67]|208|309)$_bf_$d$_bf_$d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-7]$_bf_$d)$_bf_$d)$_bf_$d{3}"},{i:"FO",lbl:"Faroe Islands (the)",img:"fo.png",code:"+298",ex:"211234",ptrn:"(?:[27][1-9]|5$_bf_$d|91)$_bf_$d{4}"},{i:"FR",lbl:"France",img:"fr.png",code:"+33",ex:"612345678",ptrn:"(?:6(?:[0-24-8]$_bf_$d|3[0-8]|9[589])|7(?:00|[3-9]$_bf_$d))$_bf_$d{6}"},{i:"GA",lbl:"Gabon",img:"ga.png",code:"+241",ex:"06031234",ptrn:"(?:0[2-7]|6[256]|7[47])$_bf_$d{6}|[2-7]$_bf_$d{6}"},{i:"GB",lbl:"United Kingdom of Great Britain and Northern Ireland (the)",img:"gb.png",code:"+44",ex:"7400123456",ptrn:"7(?:457[0-57-9]|700[01]|911[028])$_bf_$d{5}|7(?:[1-3]$_bf_$d$_bf_$d|4(?:[0-46-9]$_bf_$d|5[0-689])|5(?:0[0-8]|[13-9]$_bf_$d|2[0-35-9])|7(?:0[1-9]|[1-7]$_bf_$d|8[02-9]|9[0-689])|8(?:[014-9]$_bf_$d|[23][0-8])|9(?:[024-9]$_bf_$d|1[02-9]|3[0-689]))$_bf_$d{6}"},{i:"GG",lbl:"Guernsey",img:"gg.png",code:"+44",ex:"7781123456",ptrn:"7(?:(?:781|839)$_bf_$d|911[17])$_bf_$d{5}"},{i:"IM",lbl:"Isle of Man",img:"im.png",code:"+44",ex:"7924123456",ptrn:"76245[06]$_bf_$d{4}|7(?:4576|[59]24$_bf_$d|624[0-4689])$_bf_$d{5}"},{i:"JE",lbl:"Jersey",img:"je.png",code:"+44",ex:"7797712345",ptrn:"7(?:(?:(?:50|82)9|937)$_bf_$d|7(?:00[378]|97[7-9]))$_bf_$d{5}"},{i:"GE",lbl:"Georgia",img:"ge.png",code:"+995",ex:"555123456",ptrn:"5(?:(?:0555|1177)[5-9]|757(?:7[7-9]|8[01]))$_bf_$d{3}|5(?:0070|(?:11|33)33|[25]222)[0-4]$_bf_$d{3}|5(?:00(?:0$_bf_$d|50)|11(?:00|1$_bf_$d|2[0-4])|5200|75(?:00|[57]5)|8(?:0(?:[01]$_bf_$d|2[0-4])|58[89]|8(?:55|88)))$_bf_$d{4}|(?:5(?:[14]4|5[0157-9]|68|7[0147-9]|9[1-35-9])|790)$_bf_$d{6}"},{i:"GF",lbl:"French Guiana",img:"gf.png",code:"+594",ex:"694201234",ptrn:"694(?:[0-249]$_bf_$d|3[0-48])$_bf_$d{4}"},{i:"GH",lbl:"Ghana",img:"gh.png",code:"+233",ex:"231234567",ptrn:"(?:2(?:[0346-8]$_bf_$d|5[67])|5(?:[0457]$_bf_$d|6[01]|9[1-9]))$_bf_$d{6}"},{i:"GI",lbl:"Gibraltar",img:"gi.png",code:"+350",ex:"57123456",ptrn:"(?:5[146-8]$_bf_$d|606)$_bf_$d{5}"},{i:"GL",lbl:"Greenland",img:"gl.png",code:"+299",ex:"221234",ptrn:"[245]$_bf_$d{5}"},{i:"GM",lbl:"Gambia (the)",img:"gm.png",code:"+220",ex:"3012345",ptrn:"(?:[23679]$_bf_$d|5[0-389])$_bf_$d{5}"},{i:"GN",lbl:"Guinea",img:"gn.png",code:"+224",ex:"601123456",ptrn:"6[0-356]$_bf_$d{7}"},{i:"GQ",lbl:"Equatorial Guinea",img:"gq.png",code:"+240",ex:"222123456",ptrn:"(?:222|55$_bf_$d)$_bf_$d{6}"},{i:"GR",lbl:"Greece",img:"gr.png",code:"+30",ex:"6912345678",ptrn:"68[57-9]$_bf_$d{7}|(?:69|94)$_bf_$d{8}"},{i:"GT",lbl:"Guatemala",img:"gt.png",code:"+502",ex:"51234567",ptrn:"[3-5]$_bf_$d{7}"},{i:"GW",lbl:"Guinea-Bissau",img:"gw.png",code:"+245",ex:"955012345",ptrn:"9(?:5$_bf_$d|6[569]|77)$_bf_$d{6}"},{i:"GY",lbl:"Guyana",img:"gy.png",code:"+592",ex:"6091234",ptrn:"6$_bf_$d{6}"},{i:"HK",lbl:"Hong Kong",img:"hk.png",code:"+852",ex:"51234567",ptrn:"(?:46(?:[07][0-7]|1[0-6]|4[0-57-9]|5[0-8]|6[0-4])|5730|6(?:26[013-7]|66[0-3])|70(?:7[1-5]|8[0-4])|848[015-9]|929[03-9])$_bf_$d{4}|(?:46[238]|5(?:[1-59][0-46-9]|6[0-4689]|7[0-2469])|6(?:0[1-9]|[13-59]$_bf_$d|[268][0-57-9]|7[0-79])|84[09]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]$_bf_$d))$_bf_$d{5}"},{i:"HN",lbl:"Honduras",img:"hn.png",code:"+504",ex:"91234567",ptrn:"[37-9]$_bf_$d{7}"},{i:"HR",lbl:"Croatia",img:"hr.png",code:"+385",ex:"921234567",ptrn:"9(?:751$_bf_$d{5}|8$_bf_$d{6,7})|9(?:0[1-9]|[1259]$_bf_$d|7[0679])$_bf_$d{6}"},{i:"HT",lbl:"Haiti",img:"ht.png",code:"+509",ex:"34101234",ptrn:"[34]$_bf_$d{7}"},{i:"HU",lbl:"Hungary",img:"hu.png",code:"+36",ex:"201234567",ptrn:"(?:[257]0|3[01])$_bf_$d{7}"},{i:"ID",lbl:"Indonesia",img:"id.png",code:"+62",ex:"812345678",ptrn:"8[1-35-9]$_bf_$d{7,10}"},{i:"IE",lbl:"Ireland",img:"ie.png",code:"+353",ex:"850123456",ptrn:"8(?:22|[35-9]$_bf_$d)$_bf_$d{6}"},{i:"IL",lbl:"Israel",img:"il.png",code:"+972",ex:"502345678",ptrn:"5(?:(?:[02368]$_bf_$d|[19][2-9]|4[1-9])$_bf_$d|5(?:01|1[79]|2[2-9]|3[0-3]|4[34]|5[015689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))$_bf_$d{5}"},{i:"IN",lbl:"India",img:"in.png",code:"+91",ex:"8123456789",ptrn:"(?:61279|7(?:887[02-9]|9(?:313|79[07-9]))|8(?:079[04-9]|(?:84|91)7[02-8]))$_bf_$d{5}|(?:6(?:12|[2-47]1|5[17]|6[13]|80)[0189]|7(?:1(?:2[0189]|9[0-5])|2(?:[14][017-9]|8[0-59])|3(?:2[5-8]|[34][017-9]|9[016-9])|4(?:1[015-9]|[29][89]|39|8[389])|5(?:[15][017-9]|2[04-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589])|70[0289]|88[089]|97[02-8])|8(?:0(?:6[67]|7[02-8])|70[017-9]|84[01489]|91[0-289]))$_bf_$d{6}|(?:7(?:31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[0189]$_bf_$d|7[02-8])$_bf_$d{5}|(?:6(?:[09]$_bf_$d|1[04679]|2[03689]|3[05-9]|4[0489]|50|6[069]|7[07]|8[7-9])|7(?:0$_bf_$d|2[0235-79]|3[05-8]|40|5[0346-8]|6[6-9]|7[1-9]|8[0-79]|9[089])|8(?:0[01589]|1[0-57-9]|2[235-9]|3[03-57-9]|[45]$_bf_$d|6[02457-9]|7[1-69]|8[0-25-9]|9[02-9])|9$_bf_$d$_bf_$d)$_bf_$d{7}|(?:6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|8[124-6])$_bf_$d|7(?:[235689]$_bf_$d|4[0189]))|7(?:1(?:[013-8]$_bf_$d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-5])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]$_bf_$d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4$_bf_$d|5[0-367])|70[13-7]|881))[0189]$_bf_$d{5}"},{i:"IO",lbl:"British Indian Ocean Territory (the)",img:"io.png",code:"+246",ex:"3801234",ptrn:"38$_bf_$d{5}"},{i:"IQ",lbl:"Iraq",img:"iq.png",code:"+964",ex:"7912345678",ptrn:"7[3-9]$_bf_$d{8}"},{i:"IR",lbl:"Iran (Islamic Republic of)",img:"ir.png",code:"+98",ex:"9123456789",ptrn:"9(?:(?:0(?:[0-35]$_bf_$d|4[4-6])|(?:[13]$_bf_$d|2[0-3])$_bf_$d)$_bf_$d|9(?:(?:[0-3]$_bf_$d|4[0145])$_bf_$d|5[15]0|8(?:1$_bf_$d|88)|9(?:0[013]|[19]$_bf_$d|21|77|8[7-9])))$_bf_$d{5}"},{i:"IS",lbl:"Iceland",img:"is.png",code:"+354",ex:"6111234",ptrn:"(?:38[589]$_bf_$d$_bf_$d|6(?:1[1-8]|2[0-6]|3[027-9]|4[014679]|5[0159]|6[0-69]|70|8[06-8]|9$_bf_$d)|7(?:5[057]|[6-9]$_bf_$d)|8(?:2[0-59]|[3-69]$_bf_$d|8[28]))$_bf_$d{4}"},{i:"IT",lbl:"Italy",img:"it.png",code:"+39",ex:"3123456789",ptrn:"3[1-9]$_bf_$d{8}|3[2-9]$_bf_$d{7}"},{i:"VA",lbl:"Holy See (the)",img:"va.png",code:"+39",ex:"3123456789",ptrn:"3[1-9]$_bf_$d{8}|3[2-9]$_bf_$d{7}"},{i:"JO",lbl:"Jordan",img:"jo.png",code:"+962",ex:"790123456",ptrn:"7(?:[78][0-25-9]|9$_bf_$d)$_bf_$d{6}"},{i:"JP",lbl:"Japan",img:"jp.png",code:"+81",ex:"9012345678",ptrn:"[7-9]0[1-9]$_bf_$d{7}"},{i:"KE",lbl:"Kenya",img:"ke.png",code:"+254",ex:"712123456",ptrn:"(?:1(?:0[0-6]|1[0-5]|2[014])|7$_bf_$d$_bf_$d)$_bf_$d{6}"},{i:"KG",lbl:"Kyrgyzstan",img:"kg.png",code:"+996",ex:"700123456",ptrn:"312(?:58$_bf_$d|973)$_bf_$d{3}|(?:2(?:0[0-35]|2$_bf_$d)|5[0-24-7]$_bf_$d|7(?:[07]$_bf_$d|55)|880|99[05-9])$_bf_$d{6}"},{i:"KH",lbl:"Cambodia",img:"kh.png",code:"+855",ex:"91234567",ptrn:"(?:(?:1[28]|3[18]|9[67])$_bf_$d|6[016-9]|7(?:[07-9]|[16]$_bf_$d)|8(?:[013-79]|8$_bf_$d))$_bf_$d{6}|(?:1$_bf_$d|9[0-57-9])$_bf_$d{6}|(?:2[3-6]|3[2-6]|4[2-4]|[5-7][2-5])48$_bf_$d{5}"},{i:"KI",lbl:"Kiribati",img:"ki.png",code:"+686",ex:"72001234",ptrn:"(?:63$_bf_$d{3}|73(?:0[0-5]$_bf_$d|140))$_bf_$d{3}|[67]200[01]$_bf_$d{3}"},{i:"KM",lbl:"Comoros (the)",img:"km.png",code:"+269",ex:"3212345",ptrn:"[34]$_bf_$d{6}"},{i:"KP",lbl:"Korea (the Democratic People's Republic of)",img:"kp.png",code:"+850",ex:"1921234567",ptrn:"19[1-3]$_bf_$d{7}"},{i:"KR",lbl:"Korea (the Republic of)",img:"kr.png",code:"+82",ex:"1020000000",ptrn:"1(?:05(?:[0-8]$_bf_$d|9[0-6])|22[13]$_bf_$d)$_bf_$d{4,5}|1(?:0[1-46-9]|[16-9]$_bf_$d|2[013-9])$_bf_$d{6,7}"},{i:"KW",lbl:"Kuwait",img:"kw.png",code:"+965",ex:"50012345",ptrn:"(?:5(?:2(?:22|5[25])|7(?:55|77)|88[58])|6(?:222|333|444|70[013-9]|888|93[039])|9(?:11[01]|3(?:00|33)|500))$_bf_$d{4}|(?:5(?:[05]$_bf_$d|1[0-7]|6[56])|6(?:0[034679]|5[015-9]|6$_bf_$d|7[67]|9[069])|9(?:0[09]|22|[4679]$_bf_$d|55|8[057-9]))$_bf_$d{5}"},{i:"KZ",lbl:"Kazakhstan",img:"kz.png",code:"+7",ex:"7710009998",ptrn:"7(?:0[0-25-8]|47|6[0-4]|7[15-8]|85)$_bf_$d{7}"},{i:"RU",lbl:"Russian Federation (the)",img:"ru.png",code:"+7",ex:"9123456789",ptrn:"9$_bf_$d{9}"},{i:"LA",lbl:"Lao People's Democratic Republic (the)",img:"la.png",code:"+856",ex:"2023123456",ptrn:"(?:20(?:[239]$_bf_$d|5[24-9]|7[6-8])|302$_bf_$d)$_bf_$d{6}"},{i:"LB",lbl:"Lebanon",img:"lb.png",code:"+961",ex:"71123456",ptrn:"793(?:[01]$_bf_$d|2[0-4])$_bf_$d{3}|(?:(?:3|81)$_bf_$d|7(?:[01]$_bf_$d|6[013-9]|8[89]|9[12]))$_bf_$d{5}"},{i:"LI",lbl:"Liechtenstein",img:"li.png",code:"+423",ex:"660234567",ptrn:"(?:6(?:4(?:69|[7-9]$_bf_$d)|5[0-4]$_bf_$d|6(?:[024]$_bf_$d|[17]0|3[7-9]))$_bf_$d|7(?:[37-9]$_bf_$d|42|56))$_bf_$d{4}"},{i:"LK",lbl:"Sri Lanka",img:"lk.png",code:"+94",ex:"712345678",ptrn:"7(?:[0-25-8]$_bf_$d|4[01])$_bf_$d{6}"},{i:"LR",lbl:"Liberia",img:"lr.png",code:"+231",ex:"770123456",ptrn:"(?:(?:330|555|(?:77|88)$_bf_$d)$_bf_$d|4[67])$_bf_$d{5}|[56]$_bf_$d{6}"},{i:"LS",lbl:"Lesotho",img:"ls.png",code:"+266",ex:"50123456",ptrn:"[56]$_bf_$d{7}"},{i:"LT",lbl:"Lithuania",img:"lt.png",code:"+370",ex:"61234567",ptrn:"6$_bf_$d{7}"},{i:"LU",lbl:"Luxembourg",img:"lu.png",code:"+352",ex:"628123456",ptrn:"6(?:[269][18]|5[1568]|7[189]|81)$_bf_$d{6}"},{i:"LV",lbl:"Latvia",img:"lv.png",code:"+371",ex:"21234567",ptrn:"2$_bf_$d{7}"},{i:"LY",lbl:"Libya",img:"ly.png",code:"+218",ex:"912345678",ptrn:"9[1-6]$_bf_$d{7}"},{i:"MC",lbl:"Monaco",img:"mc.png",code:"+377",ex:"612345678",ptrn:"4(?:[46]$_bf_$d|5[1-9])$_bf_$d{5}|(?:3|6$_bf_$d)$_bf_$d{7}"},{i:"MD",lbl:"Moldova (the Republic of)",img:"md.png",code:"+373",ex:"62112345",ptrn:"562$_bf_$d{5}|(?:6$_bf_$d|7[16-9])$_bf_$d{6}"},{i:"ME",lbl:"Montenegro",img:"me.png",code:"+382",ex:"67622901",ptrn:"6(?:[07-9]$_bf_$d|3[024]|6[0-25])$_bf_$d{5}"},{i:"MG",lbl:"Madagascar",img:"mg.png",code:"+261",ex:"321234567",ptrn:"3[2-489]$_bf_$d{7}"},{i:"MH",lbl:"Marshall Islands (the)",img:"mh.png",code:"+692",ex:"2351234",ptrn:"(?:(?:23|54)5|329|45[56])$_bf_$d{4}"},{i:"MK",lbl:"Republic of North Macedonia",img:"mk.png",code:"+389",ex:"72345678",ptrn:"7(?:3555|4(?:60$_bf_$d|747)|94(?:[01]$_bf_$d|2[0-4]))$_bf_$d{3}|7(?:[0-25-8]$_bf_$d|3[2-4]|42|9[23])$_bf_$d{5}"},{i:"ML",lbl:"Mali",img:"ml.png",code:"+223",ex:"65012345",ptrn:"2(?:0(?:01|79)|17$_bf_$d)$_bf_$d{4}|(?:5[01]|[679]$_bf_$d|8[239])$_bf_$d{6}"},{i:"MM",lbl:"Myanmar",img:"mm.png",code:"+95",ex:"92123456",ptrn:"(?:17[01]|9(?:2(?:[0-4]|[56]$_bf_$d$_bf_$d)|(?:3(?:[0-36]|4$_bf_$d)|(?:6$_bf_$d|8[89]|9[4-8])$_bf_$d|7(?:3|40|[5-9]$_bf_$d))$_bf_$d|4(?:(?:[0245]$_bf_$d|[1379])$_bf_$d|88)|5[0-6])$_bf_$d)$_bf_$d{4}|9[69]1$_bf_$d{6}|9(?:[68]$_bf_$d|9[089])$_bf_$d{5}"},{i:"MN",lbl:"Mongolia",img:"mn.png",code:"+976",ex:"88123456",ptrn:"(?:83[01]|920)$_bf_$d{5}|(?:5[05]|8[05689]|9[013-9])$_bf_$d{6}"},{i:"MO",lbl:"Macao",img:"mo.png",code:"+853",ex:"66123456",ptrn:"6800[0-79]$_bf_$d{3}|6(?:[235]$_bf_$d$_bf_$d|6(?:0[0-5]|[1-9]$_bf_$d)|8(?:0[1-9]|[14-8]$_bf_$d|2[5-9]|[39][0-4]))$_bf_$d{4}"},{i:"MQ",lbl:"Martinique",img:"mq.png",code:"+596",ex:"696201234",ptrn:"69(?:6(?:[0-46-9]$_bf_$d|5[0-6])|727)$_bf_$d{4}"},{i:"MR",lbl:"Mauritania",img:"mr.png",code:"+222",ex:"22123456",ptrn:"[2-4][0-46-9]$_bf_$d{6}"},{i:"MT",lbl:"Malta",img:"mt.png",code:"+356",ex:"96961234",ptrn:"(?:7(?:210|[79]$_bf_$d$_bf_$d)|9(?:[29]$_bf_$d$_bf_$d|69[67]|8(?:1[1-3]|89|97)))$_bf_$d{4}"},{i:"MU",lbl:"Mauritius",img:"mu.png",code:"+230",ex:"52512345",ptrn:"5(?:4(?:2[1-389]|7[1-9])|87[15-8])$_bf_$d{4}|5(?:2[5-9]|4[3-589]|[57]$_bf_$d|8[0-689]|9[0-8])$_bf_$d{5}"},{i:"MV",lbl:"Maldives",img:"mv.png",code:"+960",ex:"7712345",ptrn:"46[46]$_bf_$d{4}|(?:7$_bf_$d|9[13-9])$_bf_$d{5}"},{i:"MW",lbl:"Malawi",img:"mw.png",code:"+265",ex:"991234567",ptrn:"111$_bf_$d{6}|(?:31|77|88|9[89])$_bf_$d{7}"},{i:"MX",lbl:"Mexico",img:"mx.png",code:"+52",ex:"12221234567",ptrn:"6571$_bf_$d{6}|(?:1(?:2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3$_bf_$d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[24-7][1-9]|3[1-8]|8[1-35-9]|9[2-689])|5(?:[56]$_bf_$d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1$_bf_$d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69][1-9]|7[12]|8[1-8]))|2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3$_bf_$d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4$_bf_$d|8[1-35-9]|9[2-689])|5(?:[56]$_bf_$d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1$_bf_$d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9$_bf_$d))$_bf_$d{7}"},{i:"MY",lbl:"Malaysia",img:"my.png",code:"+60",ex:"123456789",ptrn:"1(?:1888[69]|4400|8(?:47|8[27])[0-4])$_bf_$d{4}|1(?:0(?:[23568]$_bf_$d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]$_bf_$d$_bf_$d|6(?:0[5-9]|[1-9]$_bf_$d)|7(?:[0134]$_bf_$d|2[1-9]|5[0-6]))|(?:(?:[269]|59)$_bf_$d|[37][1-9]|4[235-9])$_bf_$d|8(?:1[23]|[236]$_bf_$d|4[06]|5[7-9]|7[016-9]|8[01]|9[0-8]))$_bf_$d{5}"},{i:"MZ",lbl:"Mozambique",img:"mz.png",code:"+258",ex:"821234567",ptrn:"8[2-79]$_bf_$d{7}"},{i:"NA",lbl:"Namibia",img:"na.png",code:"+264",ex:"811234567",ptrn:"(?:60|8[1245])$_bf_$d{7}"},{i:"NC",lbl:"New Caledonia",img:"nc.png",code:"+687",ex:"751234",ptrn:"(?:5[0-4]|[79]$_bf_$d|8[0-79])$_bf_$d{4}"},{i:"NE",lbl:"Niger (the)",img:"ne.png",code:"+227",ex:"93123456",ptrn:"(?:23|7[04]|[89]$_bf_$d)$_bf_$d{6}"},{i:"NF",lbl:"Norfolk Island",img:"nf.png",code:"+672",ex:"381234",ptrn:"(?:14|3[58])$_bf_$d{4}"},{i:"NG",lbl:"Nigeria",img:"ng.png",code:"+234",ex:"8021234567",ptrn:"(?:702[0-24-9]|8(?:01|19)[01])$_bf_$d{6}|(?:70[13-689]|8(?:0[2-9]|1[0-8])|9(?:0[1-9]|1[2356]))$_bf_$d{7}"},{i:"NI",lbl:"Nicaragua",img:"ni.png",code:"+505",ex:"81234567",ptrn:"(?:5(?:5[0-7]|[78]$_bf_$d)|6(?:20|3[035]|4[045]|5[05]|77|8[1-9]|9[059])|(?:7[5-8]|8$_bf_$d)$_bf_$d)$_bf_$d{5}"},{i:"NL",lbl:"Netherlands (the)",img:"nl.png",code:"+31",ex:"612345678",ptrn:"6[1-58]$_bf_$d{7}"},{i:"NO",lbl:"Norway",img:"no.png",code:"+47",ex:"40612345",ptrn:"(?:4[015-8]|59|9$_bf_$d)$_bf_$d{6}"},{i:"SJ",lbl:"Svalbard and Jan Mayen",img:"sj.png",code:"+47",ex:"41234567",ptrn:"(?:4[015-8]|59|9$_bf_$d)$_bf_$d{6}"},{i:"NP",lbl:"Nepal",img:"np.png",code:"+977",ex:"9841234567",ptrn:"9(?:6[0-3]|7[245]|8[0-24-68])$_bf_$d{7}"},{i:"NR",lbl:"Nauru",img:"nr.png",code:"+674",ex:"5551234",ptrn:"(?:55[3-9]|666|8$_bf_$d$_bf_$d)$_bf_$d{4}"},{i:"NU",lbl:"Niue",img:"nu.png",code:"+683",ex:"8884012",ptrn:"888[4-9]$_bf_$d{3}"},{i:"NZ",lbl:"New Zealand",img:"nz.png",code:"+64",ex:"211234567",ptrn:"2[0-27-9]$_bf_$d{7,8}|21$_bf_$d{6}"},{i:"OM",lbl:"Oman",img:"om.png",code:"+968",ex:"92123456",ptrn:"1505$_bf_$d{4}|(?:7(?:[1289]$_bf_$d|70)|9(?:0[1-9]|[1-9]$_bf_$d))$_bf_$d{5}"},{i:"PA",lbl:"Panama",img:"pa.png",code:"+507",ex:"61234567",ptrn:"(?:1[16]1|21[89]|6(?:[02-9]$_bf_$d|1[0-8])$_bf_$d|8(?:1[01]|7[23]))$_bf_$d{4}"},{i:"PE",lbl:"Peru",img:"pe.png",code:"+51",ex:"912345678",ptrn:"9$_bf_$d{8}"},{i:"PF",lbl:"French Polynesia",img:"pf.png",code:"+689",ex:"87123456",ptrn:"8[7-9]$_bf_$d{6}"},{i:"PG",lbl:"Papua New Guinea",img:"pg.png",code:"+675",ex:"70123456",ptrn:"(?:7$_bf_$d|8[18])$_bf_$d{6}"},{i:"PH",lbl:"Philippines (the)",img:"ph.png",code:"+63",ex:"9051234567",ptrn:"(?:8(?:1[37]|9[5-8])|9(?:0[5-9]|1[0-24-9]|[2357]$_bf_$d|4[2-9]|6[0-35-9]|8[135-9]|9[1-9]))$_bf_$d{7}"},{i:"PK",lbl:"Pakistan",img:"pk.png",code:"+92",ex:"3012345678",ptrn:"3(?:[014]$_bf_$d|2[0-5]|3[0-7]|55|64)$_bf_$d{7}"},{i:"PL",lbl:"Poland",img:"pl.png",code:"+48",ex:"512345678",ptrn:"211(?:1$_bf_$d|3[1-5])$_bf_$d{4}|(?:45|5[0137]|6[069]|7[2389]|88)$_bf_$d{7}"},{i:"PM",lbl:"Saint Pierre and Miquelon",img:"pm.png",code:"+508",ex:"551234",ptrn:"(?:4[02-4]|5[05])$_bf_$d{4}"},{i:"PS",lbl:"Palestine, State of",img:"ps.png",code:"+970",ex:"599123456",ptrn:"5[69]$_bf_$d{7}"},{i:"PT",lbl:"Portugal",img:"pt.png",code:"+351",ex:"912345678",ptrn:"6[0356]92(?:30|9$_bf_$d)$_bf_$d{3}|(?:(?:16|6[0356])93|9(?:[1-36]$_bf_$d$_bf_$d|480))$_bf_$d{5}"},{i:"PW",lbl:"Palau",img:"pw.png",code:"+680",ex:"6201234",ptrn:"(?:46[0-5]|6[2-4689]0)$_bf_$d{4}|(?:45|77|88)$_bf_$d{5}"},{i:"PY",lbl:"Paraguay",img:"py.png",code:"+595",ex:"961456789",ptrn:"9(?:51|6[129]|[78][1-6]|9[1-5])$_bf_$d{6}"},{i:"QA",lbl:"Qatar",img:"qa.png",code:"+974",ex:"33123456",ptrn:"(?:28|[35-7]$_bf_$d)$_bf_$d{6}"},{i:"RE",lbl:"Réunion",img:"re.png",code:"+262",ex:"692123456",ptrn:"(?:69(?:2$_bf_$d$_bf_$d|3(?:[06][0-46]|1[013]|2[0-2]|3[0-39]|4$_bf_$d|5[0-5]|7[0-27]|8[0-8]|9[0-479]))|9769$_bf_$d)$_bf_$d{4}"},{i:"YT",lbl:"Mayotte",img:"yt.png",code:"+262",ex:"639012345",ptrn:"639(?:0[0-79]|1[019]|[267]$_bf_$d|3[09]|40|5[05-9]|9[04-79])$_bf_$d{4}"},{i:"RO",lbl:"Romania",img:"ro.png",code:"+40",ex:"712034567",ptrn:"7020$_bf_$d{5}|7(?:0[013-9]|1[0-2]|[2-7]$_bf_$d|8[03-8]|9[019])$_bf_$d{6}"},{i:"RS",lbl:"Serbia",img:"rs.png",code:"+381",ex:"601234567",ptrn:"6(?:[0-689]|7$_bf_$d)$_bf_$d{6,7}"},{i:"RW",lbl:"Rwanda",img:"rw.png",code:"+250",ex:"720123456",ptrn:"7[2389]$_bf_$d{7}"},{i:"SA",lbl:"Saudi Arabia",img:"sa.png",code:"+966",ex:"512345678",ptrn:"579[01]$_bf_$d{5}|5(?:[013-689]$_bf_$d|7[0-36-8])$_bf_$d{6}"},{i:"SB",lbl:"Solomon Islands",img:"sb.png",code:"+677",ex:"7421234",ptrn:"48$_bf_$d{3}|(?:(?:7[1-9]|8[4-9])$_bf_$d|9(?:1[2-9]|2[013-9]|3[0-2]|[46]$_bf_$d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8]))$_bf_$d{4}"},{i:"SC",lbl:"Seychelles",img:"sc.png",code:"+248",ex:"2510123",ptrn:"2[5-8]$_bf_$d{5}"},{i:"SD",lbl:"Sudan (the)",img:"sd.png",code:"+249",ex:"911231234",ptrn:"(?:1[0-2]|9[0-3569])$_bf_$d{7}"},{i:"SE",lbl:"Sweden",img:"se.png",code:"+46",ex:"701234567",ptrn:"7[02369]$_bf_$d{7}"},{i:"SG",lbl:"Singapore",img:"sg.png",code:"+65",ex:"81234567",ptrn:"(?:8(?:0(?:[13]$_bf_$d|2[013-9]|4[0-35-7])|[1-8]$_bf_$d$_bf_$d|9(?:[0-4]$_bf_$d|5[0-2]))|9[0-8]$_bf_$d$_bf_$d)$_bf_$d{4}"},{i:"SH",lbl:"Saint Helena, Ascension and Tristan da Cunha",img:"sh.png",code:"+290",ex:"51234",ptrn:"[56]$_bf_$d{4}"},{i:"SI",lbl:"Slovenia",img:"si.png",code:"+386",ex:"31234567",ptrn:"65(?:1$_bf_$d|55|[67]0)$_bf_$d{4}|(?:[37][01]|4[0139]|51|6[489])$_bf_$d{6}"},{i:"SK",lbl:"Slovakia",img:"sk.png",code:"+421",ex:"912123456",ptrn:"909[1-9]$_bf_$d{5}|9(?:0[1-8]|1[0-24-9]|4[03-57-9]|5$_bf_$d)$_bf_$d{6}"},{i:"SL",lbl:"Sierra Leone",img:"sl.png",code:"+232",ex:"25123456",ptrn:"(?:25|3[0-5]|66|7[3-9]|8[08]|9[09])$_bf_$d{6}"},{i:"SM",lbl:"San Marino",img:"sm.png",code:"+378",ex:"66661212",ptrn:"6[16]$_bf_$d{6}"},{i:"SN",lbl:"Senegal",img:"sn.png",code:"+221",ex:"701234567",ptrn:"75(?:01|[38]3)$_bf_$d{5}|7(?:[06-8]$_bf_$d|21|5[4-7]|90)$_bf_$d{6}"},{i:"SO",lbl:"Somalia",img:"so.png",code:"+252",ex:"71123456",ptrn:"(?:(?:15|(?:3[59]|4[89]|79|8[08])$_bf_$d|6(?:0[5-7]|[1-9]$_bf_$d)|9(?:0$_bf_$d|[2-9]))$_bf_$d|2(?:4$_bf_$d|8))$_bf_$d{5}|(?:6$_bf_$d|7[1-9])$_bf_$d{6}"},{i:"SR",lbl:"Suriname",img:"sr.png",code:"+597",ex:"7412345",ptrn:"(?:7[124-7]|8[124-9])$_bf_$d{5}"},{i:"SS",lbl:"South Sudan",img:"ss.png",code:"+211",ex:"977123456",ptrn:"(?:12|9[1257-9])$_bf_$d{7}"},{i:"ST",lbl:"Sao Tome and Principe",img:"st.png",code:"+239",ex:"9812345",ptrn:"900[5-9]$_bf_$d{3}|9(?:0[1-9]|[89]$_bf_$d)$_bf_$d{4}"},{i:"SV",lbl:"El Salvador",img:"sv.png",code:"+503",ex:"70123456",ptrn:"66(?:[02-9]$_bf_$d$_bf_$d|1(?:[02-9]$_bf_$d|16))$_bf_$d{3}|(?:6[0-57-9]|7$_bf_$d)$_bf_$d{6}"},{i:"SY",lbl:"Syrian Arab Republic",img:"sy.png",code:"+963",ex:"944567890",ptrn:"9(?:22|[3-689]$_bf_$d)$_bf_$d{6}"},{i:"SZ",lbl:"Eswatini",img:"sz.png",code:"+268",ex:"76123456",ptrn:"7[6-9]$_bf_$d{6}"},{i:"TD",lbl:"Chad",img:"td.png",code:"+235",ex:"63012345",ptrn:"(?:6[023568]|77|9$_bf_$d)$_bf_$d{6}"},{i:"TG",lbl:"Togo",img:"tg.png",code:"+228",ex:"90112345",ptrn:"(?:7[09]|9[0-36-9])$_bf_$d{6}"},{i:"TH",lbl:"Thailand",img:"th.png",code:"+66",ex:"812345678",ptrn:"671[0-3]$_bf_$d{5}|(?:14|6[1-6]|[89]$_bf_$d)$_bf_$d{7}"},{i:"TJ",lbl:"Tajikistan",img:"tj.png",code:"+992",ex:"917123456",ptrn:"41[18]$_bf_$d{6}|(?:[034]0|11|2[02]|5[05]|7[07]|8[08]|9$_bf_$d)$_bf_$d{7}"},{i:"TK",lbl:"Tokelau",img:"tk.png",code:"+690",ex:"7290",ptrn:"7[2-4]$_bf_$d{2,5}"},{i:"TL",lbl:"Timor-Leste",img:"tl.png",code:"+670",ex:"77212345",ptrn:"7[2-8]$_bf_$d{6}"},{i:"TM",lbl:"Turkmenistan",img:"tm.png",code:"+993",ex:"66123456",ptrn:"6$_bf_$d{7}"},{i:"TN",lbl:"Tunisia",img:"tn.png",code:"+216",ex:"20123456",ptrn:"3(?:001|[12]40)$_bf_$d{4}|(?:(?:[259]$_bf_$d|4[0-7])$_bf_$d|3(?:1[1-35]|6[0-4]|91))$_bf_$d{5}"},{i:"TO",lbl:"Tonga",img:"to.png",code:"+676",ex:"7715123",ptrn:"(?:55[4-6]|6(?:[09]$_bf_$d|3[02]|8[15-9])|(?:7$_bf_$d|8[46-9])$_bf_$d|999)$_bf_$d{4}"},{i:"TR",lbl:"Turkey",img:"tr.png",code:"+90",ex:"5012345678",ptrn:"56161$_bf_$d{5}|5(?:0[15-7]|1[06]|24|[34]$_bf_$d|5[1-59]|9[46])$_bf_$d{7}"},{i:"TV",lbl:"Tuvalu",img:"tv.png",code:"+688",ex:"901234",ptrn:"(?:7[01]$_bf_$d|90)$_bf_$d{4}"},{i:"TW",lbl:"Taiwan (Province of China)",img:"tw.png",code:"+886",ex:"912345678",ptrn:"(?:40001[0-2]|9[0-8]$_bf_$d{4})$_bf_$d{3}"},{i:"TZ",lbl:"Tanzania, United Republic of",img:"tz.png",code:"+255",ex:"621234567",ptrn:"77[2-9]$_bf_$d{6}|(?:6[1-9]|7[1-689])$_bf_$d{7}"},{i:"UA",lbl:"Ukraine",img:"ua.png",code:"+380",ex:"501234567",ptrn:"(?:50|6[36-8]|7[1-3]|9[1-9])$_bf_$d{7}"},{i:"UG",lbl:"Uganda",img:"ug.png",code:"+256",ex:"712345678",ptrn:"726[01]$_bf_$d{5}|7(?:[0157-9]$_bf_$d|20|36|[46][0-4])$_bf_$d{6}"},{i:"UY",lbl:"Uruguay",img:"uy.png",code:"+598",ex:"94231234",ptrn:"9[1-9]$_bf_$d{6}"},{i:"UZ",lbl:"Uzbekistan",img:"uz.png",code:"+998",ex:"912345678",ptrn:"(?:(?:33|88|9[0-57-9])$_bf_$d{3}|55(?:50[013]|90$_bf_$d)|6(?:1(?:2(?:2[01]|98)|35[0-4]|50$_bf_$d|61[23]|7(?:[01][017]|4$_bf_$d|55|9[5-9]))|2(?:(?:11|7$_bf_$d)$_bf_$d|2(?:[12]1|9[01379])|5(?:[126]$_bf_$d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7$_bf_$d)$_bf_$d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])$_bf_$d|4(?:56|83)|7(?:[07]$_bf_$d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0$_bf_$d|[39][07])|9(?:0$_bf_$d|7[079]))|9(?:2(?:1[1267]|3[01]|5$_bf_$d|7[0-4])|(?:5[67]|7$_bf_$d)$_bf_$d|6(?:2[0-26]|8$_bf_$d)))|7(?:[07]$_bf_$d{3}|1(?:13[01]|6(?:0[47]|1[67]|66)|71[3-69]|98$_bf_$d)|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57$_bf_$d|7(?:0$_bf_$d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])$_bf_$d|5(?:0[0-4]|5[579]|9$_bf_$d)|7(?:[0-3579]$_bf_$d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8$_bf_$d|9[5-9])|7(?:0$_bf_$d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]$_bf_$d))|5(?:112|2(?:0$_bf_$d|2[29]|[49]4)|3[1568]$_bf_$d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]$_bf_$d|8[78]|9[079]))|6(?:2(?:2[1245]|4[2-4])|39$_bf_$d|41[179]|5(?:[349]$_bf_$d|5[0-2])|7(?:0[017]|[13]$_bf_$d|22|44|55|67|88))|9(?:22[128]|3(?:2[0-4]|7$_bf_$d)|57[02569]|7(?:2[05-9]|3[37]|4$_bf_$d|60|7[2579]|87|9[07]))))$_bf_$d{4}"},{i:"VE",lbl:"Venezuela (Bolivarian Republic of)",img:"ve.png",code:"+58",ex:"4121234567",ptrn:"4(?:1[24-8]|2[46])$_bf_$d{7}"},{i:"VN",lbl:"Viet Nam",img:"vn.png",code:"+84",ex:"912345678",ptrn:"(?:5(?:2[238]|59)|89[689]|99[013-9])$_bf_$d{6}|(?:3$_bf_$d|5[689]|7[06-9]|8[1-8]|9[0-8])$_bf_$d{7}"},{i:"VU",lbl:"Vanuatu",img:"vu.png",code:"+678",ex:"5912345",ptrn:"(?:[58]$_bf_$d|7[013-7])$_bf_$d{5}"},{i:"WF",lbl:"Wallis and Futuna",img:"wf.png",code:"+681",ex:"821234",ptrn:"(?:72|8[23])$_bf_$d{4}"},{i:"WS",lbl:"Samoa",img:"ws.png",code:"+685",ex:"7212345",ptrn:"(?:7[1-35-7]|8(?:[3-7]|9$_bf_$d{3}))$_bf_$d{5}"},{i:"YE",lbl:"Yemen",img:"ye.png",code:"+967",ex:"712345678",ptrn:"7[0137]$_bf_$d{7}"},{i:"ZA",lbl:"South Africa",img:"za.png",code:"+27",ex:"711234567",ptrn:"(?:1(?:3492[0-25]|4495[0235]|549(?:20|5[01]))|4[34]492[01])$_bf_$d{3}|8[1-4]$_bf_$d{3,7}|(?:2[27]|47|54)4950$_bf_$d{3}|(?:1(?:049[2-4]|9[12]$_bf_$d$_bf_$d)|(?:6$_bf_$d|7[0-46-9])$_bf_$d{3}|8(?:5$_bf_$d{3}|7(?:08[67]|158|28[5-9]|310)))$_bf_$d{4}|(?:1[6-8]|28|3[2-69]|4[025689]|5[36-8])4920$_bf_$d{3}|(?:12|[2-5]1)492$_bf_$d{4}"},{i:"ZM",lbl:"Zambia",img:"zm.png",code:"+260",ex:"955123456",ptrn:"(?:7[679]|9[5-8])$_bf_$d{7}"},{i:"ZW",lbl:"Zimbabwe",img:"zw.png",code:"+263",ex:"712345678",ptrn:"7(?:[178]$_bf_$d|3[1-9])$_bf_$d{6}"}];const jg=e=>{var t,r,i,s,a,l;const n=(e==null?void 0:e.err)||{};return[{name:_("Text"),keywords:"Text, name, input, field",icn:o.jsx(mg,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"text",lbl:_("Text"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:_("Multiline Text"),keywords:"Multiline Text, Textarea, Text Area, Messages, message, comment, feedback",icn:o.jsx(gg,{size:"20"}),pos:{h:145,w:60,minW:9,i:"shadow_block"},category:"basic",elm:{typ:"textarea",lbl:_("Multi-Line Text"),valid:{},err:{},customClasses:{},customAttributes:{fld:[{key:"rows",value:"4"}]}}},{name:_("Name"),keywords:"name, full name, text, first name, last name, middle name, prefix, suffix, given name, family name",icn:o.jsx(es,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"name",lbl:_("Name Field"),ph:_("Placeholder..."),phHide:!0,valid:{},err:{},customClasses:{},customAttributes:{}}},{name:_("Email"),keywords:"Email, Email Address",icn:o.jsx(Ql,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"email",lbl:_("Email"),ph:_("example@mail.com"),phHide:!0,pattern:"^[^$_bf_$s@]+@[^$_bf_$s@]+$_bf_$.[^$_bf_$s@]+$",valid:{},err:{invalid:{dflt:((t=n.email)==null?void 0:t.invalid)||'<p style="margin:0">Please, Enter a valid email address.</p>',show:!0},req:{dflt:n.req||`<p style="margin:0">${_("This field is required")}</p>`,show:!0,custom:!0}},customClasses:{},customAttributes:{}}},{name:_("Number"),keywords:"Number, Numeric, Numeric Field, Calculator",icn:o.jsx(ig,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"number",lbl:_("Number"),ph:_("e.g. 123"),phHide:!0,valid:{},err:{invalid:{dflt:((r=n.number)==null?void 0:r.invalid)||"<p style='margin:0'>Number is invalid</p>",show:!0}},customClasses:{},customAttributes:{}}},{name:_("Username"),keywords:"User Name, text",icn:o.jsx(es,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"username",lbl:_("Username"),ph:_("e.g. John Doe"),phHide:!0,valid:{},err:{entryUnique:{dflt:n.entryUnique||"That User Name is taken. Try another.",show:!0}},customAttributes:{}}},{name:_("Password"),keywords:"Password, encrypted, secure",icn:o.jsx(og,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"password",lbl:_("Password"),ph:_("Placeholder..."),phHide:!0,valid:{},err:{},config:{},customClasses:{},customAttributes:{}}},{name:_("Slider"),keywords:"Slider, range, number-range, range-slider",icn:o.jsx(hg,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"range",lbl:_("Slider"),phHide:!0,hlpTxtHide:!0,showValue:!0,showMinMaxTip:!0,valTxt:"Value: ",valPos:"bottom-left",valAlign:"end",mn:"0",mx:"100",step:"1",valid:{},err:{mn:{dflt:n.mn||'<p style="margin:0">Minimum value is 0</p>',show:!0},mx:{dflt:n.mx||'<p style="margin:0">Maximum value is 100</p>',show:!0}},customClasses:{},customAttributes:{}}},{name:_("URL"),keywords:"URL, Link, Website, Web Address, Web URL, Web Link, Web Site",icn:o.jsx(yg,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"url",attr:{title:"https://www.example.com or www.example.com",pattern:"^(?:(?:https?|ftp):$_bf_$/$_bf_$/)?(?:(?!(?:10|127)(?:$_bf_$.$_bf_$d{1,3}){3})(?!(?:169$_bf_$.254|192$_bf_$.168)(?:$_bf_$.$_bf_$d{1,3}){2})(?!172$_bf_$.(?:1[6-9]|2$_bf_$d|3[0-1])(?:$_bf_$.$_bf_$d{1,3}){2})(?:[1-9]$_bf_$d?|1$_bf_$d$_bf_$d|2[01]$_bf_$d|22[0-3])(?:$_bf_$.(?:1?$_bf_$d{1,2}|2[0-4]$_bf_$d|25[0-5])){2}(?:$_bf_$.(?:[1-9]$_bf_$d?|1$_bf_$d$_bf_$d|2[0-4]$_bf_$d|25[0-4]))|(?:(?:[a-z$_bf_$u00a1-$_bf_$uffff0-9]-*)*[a-z$_bf_$u00a1-$_bf_$uffff0-9]+)(?:$_bf_$.(?:[a-z$_bf_$u00a1-$_bf_$uffff0-9]-*)*[a-z$_bf_$u00a1-$_bf_$uffff0-9]+)*(?:$_bf_$.(?:[a-z$_bf_$u00a1-$_bf_$uffff]{2,})))(?::$_bf_$d{2,5})?(?:$_bf_$/$_bf_$S*)?$"},lbl:_("URL"),ph:_("https://www.example.com"),phHide:!0,valid:{},err:{invalid:{dflt:((i=n.url)==null?void 0:i.invalid)||'<p style="margin:0">URL is invalid</p>',show:!0}},customClasses:{},customAttributes:{}}},{name:_("Color Picker"),keywords:"Color Picker, Color Select, Color Picker Field, Color Select Field",icn:o.jsx(Gm,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"color",lbl:_("Color Picker"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:_("reCAPTCHA v2"),keywords:"ReCaptcha v2, Google ReCaptcha v2, spam protection, bot protection, security",icn:o.jsx(Nc,{size:"20"}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"captcha",elm:{typ:"recaptcha",valid:{},config:{theme:"light",size:"normal"}}},{name:_("Turnstile"),keywords:"ReCaptcha, hCaptcha, Captcha, Turnstile, cloudflare, spam protection, bot protection",icn:o.jsx(Wm,{size:20}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"captcha",elm:{typ:"turnstile",valid:{},layout:{autoHeight:1},config:{theme:"auto",size:"normal",language:"auto",appearance:"always"}}},{name:_("hCaptcha"),keywords:"ReCaptcha, hCaptcha, Captcha, spam protection, bot protection",icn:o.jsx(Qm,{size:20}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"captcha",elm:{typ:"hcaptcha",valid:{},layout:{autoHeight:1},config:{mode:"visible",theme:"light",size:"normal"}}},{name:_("Email OTP"),keywords:"Email OTP, OTP, One Time Password, Verification, Email Verification, Security",icn:o.jsx(Zm,{size:20,stroke:2}),pos:{h:120,w:60,i:"shadow_block",minW:20},category:"captcha",pro:"This field is available only in pro version",elm:{typ:"email-otp",lbl:_("Email OTP"),subtitle:_("A verification code will be sent to the specified email address."),subtitleHide:!0,valid:{},err:{notVerified:{show:!0,custom:!1,msg:"",dflt:_("Please verify your email OTP before submitting.")}},config:{receiverEmailType:"dynamic",receiverEmail:"",receiverEmailFld:"",otpLength:6,resendDelay:60,expiryDelay:15,emailTemplate:`<p>Hello,</p> |
| 1506 |
<p>We received a request to verify your action.</p> |
| 1507 |
<p>Your One-Time Password (OTP) is: <strong>\${bf_otp_code}</strong></p> |
| 1508 |
<p>This code is valid for <strong>\${bf_expiry_minutes}</strong> minutes and can only be used once.</p> |
| 1509 |
<p>If you did not initiate this request, please ignore this email.</p> |
| 1510 |
<p>Thank you</p>`,sendBtnTxt:_("Send OTP"),resendBtnTxt:_("Resend OTP"),verifyBtnTxt:_("Verify OTP"),waitTxt:_("Resend available in ${bf_resend_countdown}s."),maxAttempts:5,sendOnValidate:!0,autoVerifyOnInput:!0}}},{name:_("Repeater"),keywords:"Repeater, Field Group, Group, Repeater Field",icn:o.jsx(ug,{size:20}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"repeater",lbl:_("Repeater"),layout:{autoHeight:1},valid:{},err:{},customClasses:{},customAttributes:{},addBtn:{show:!0,btnTyp:"button",btnSiz:"md",txt:_(""),icn:{pos:"",url:""}},addBtnPreIcn:`${bits.assetsURL}/../static/repeater/plusicon.svg`,removeBtn:{show:!0,btnTyp:"button",btnSiz:"md",txt:_(""),icn:{pos:"",url:""}},removeBtnPreIcn:`${bits.assetsURL}/../static/repeater/minusicon.svg`,addToEndBtn:{btnAlignment:"start",show:!1,btnTyp:"button",btnSiz:"md",txt:_("Add New"),icn:{pos:"",url:""}},addToEndBtnPreIcn:`${bits.assetsURL}/../static/repeater/plusicon.svg`,btnPosition:"row",btnAlignment:"center",btnView:"row",repeatDirecton:"column"}},{name:_("Signature"),keywords:"Signature Editor, Signature Field, Signature, Signature Block, Canvas, Digital Signature",icn:o.jsx(pg,{size:20}),pos:{h:140,w:60,i:"shadow_block"},pro:"This field is available only in pro version",category:"advanced",elm:{typ:"signature",adminLbl:_("Signature"),lbl:_("Signature"),adminLblHide:!0,valid:{},err:{},customClasses:{},customAttributes:{},btnAlign:"start",config:{maxWidth:2.5,penColor:"#000000",backgroundColor:"#ffffff",imgTyp:"image/png"},clrBtnHide:!1,clrBtn:_("Clear"),clrPreIcn:"",clrSufIcn:"",btnDir:!1,undoBtnHide:!1,undoBtn:_("Undo"),undoPreIcn:"",undoSufIcn:"",redoBtnHide:!1,redoBtn:_("Redo"),redoPreIcn:"",redoSufIcn:""}},{name:_("Rating"),keywords:"Check Box, Mark, Rating, Star, Review, Tick, Option, Select, Choice, Multiple, Multiple Choice, Multiple Select, Multiple Option",icn:o.jsx(ec,{size:20}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"rating",lbl:_("Rating"),opt:[{lbl:_("Terrible"),val:"1",img:`${bits.assetsURL}/../static/rating/star.svg`},{lbl:_("Bad"),val:"2",img:`${bits.assetsURL}/../static/rating/star.svg`},{lbl:_("Satisfied"),val:"3",img:`${bits.assetsURL}/../static/rating/star.svg`},{lbl:_("Good"),val:"4",img:`${bits.assetsURL}/../static/rating/star.svg`},{lbl:_("Excellent"),val:"5",img:`${bits.assetsURL}/../static/rating/star.svg`}],ratingPos:"start",valid:{},err:{},customClasses:{},customAttributes:{},showReviewLblOnHover:!1,showReviewLblOnSelect:!1,selectedRating:!1}},{name:_("Image Select"),keywords:"Image, Image select, Radio button, Choice, Single Choice, Radio Group, Check Box, Mark, Option, Select, Choice, Multiple, Multiple Choice, Multiple Select, Multiple Option",icn:o.jsx(eg,{size:20}),pos:{h:140,w:60,i:"shadow_block"},category:"option",elm:{typ:"image-select",lbl:_("Image Select"),opt:[{lbl:_("Option 1"),val:"1",img:`${bits.assetsURL}/../static/placeholder-image.svg`},{lbl:_("Option 2"),val:"2",img:`${bits.assetsURL}/../static/placeholder-image.svg`},{lbl:_("Option 3"),val:"3",img:`${bits.assetsURL}/../static/placeholder-image.svg`},{lbl:_("Option 4"),val:"4",img:`${bits.assetsURL}/../static/placeholder-image.svg`}],valid:{},err:{},tickImgSrc:`${bits.assetsURL}/../static/image-select/tick.svg`,itemSize:200,layout:{autoHeight:1},tickPosition:"top-left",optLblHide:!1,inpType:"radio",customClasses:{},customAttributes:{}}},{name:_("Select"),keywords:"Select, Dropdown, Drop Down, option",icn:o.jsx(io,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"option",elm:{typ:"html-select",lbl:_("Select"),opt:[{lbl:"Option 1"},{lbl:"Option 2"},{lbl:"Option 3"}],ph:"Select an option...",phHide:!1,valid:{},err:{},customClasses:{},customAttributes:{}}},{name:_("Button"),keywords:"Button, Submit, Submit Button, Submit Form, click, click button",icn:o.jsx(gr,{size:"20"}),pos:{h:60,w:60,i:"shadow_block"},category:"basic",elm:{typ:"button",btnTyp:"button",btnSiz:"md",txt:_("Button"),align:"start",icn:{pos:"",url:""},valid:{},customClasses:{},customAttributes:{}}},{name:_("Section"),keywords:"Section, Field Group, Group, Section Field, Fieldset, Fieldset Group",icn:o.jsx(dg,{size:20}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"section",lbl:_("Section"),layout:{autoHeight:1},valid:{},err:{},customClasses:{},customAttributes:{}}},{name:_("Title"),keywords:"title, heading, heading 1, heading 2, heading 3, heading 4, heading 5, heading 6",icn:o.jsx(vg,{w:"20"}),pos:{h:48,w:60,i:"shadow_block"},category:"element",elm:{typ:"title",adminLbl:_("Title"),adminLblHide:!0,titleImg:"",logoHide:!0,title:"Your Title Here",titleHide:!1,subtitleHide:!0,titleTag:"h1",subTitleTag:"h5",valid:{},err:{},customClasses:{},customAttributes:{}}},{name:_("Image"),keywords:"image, picture, photo, logo, icon, avatar, profile picture, profile photo",icn:o.jsx(tg,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"element",elm:{typ:"image",adminLbl:_("Image"),adminLblHide:!0,alt:"",valid:{},height:"",width:"",img:{},err:{},customClasses:{},customAttributes:{}}},{name:_("Divider"),keywords:"divider, line, horizontal line, horizontal divider",icn:o.jsx(Ym,{w:"20"}),pos:{h:40,w:60,i:"shadow_block"},category:"element",elm:{typ:"divider",adminLbl:_("Divider"),adminLblHide:!0,valid:{},divider:{},err:{},customClasses:{},customAttributes:{}}},{name:_("HTML"),keywords:"HTML, HTML Code, HTML Block, HTML Element, HTML Field, HTML Editor",icn:o.jsx(tc,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"element",elm:{typ:"html",adminLbl:_("HTML"),layout:{autoHeight:1},adminLblHide:!0,content:'<b>Html Field</b><p style="margin:0"><span style="font-size: 12pt">Add html content on editor</span></p>',valid:{},customClasses:{},customAttributes:{}}},{name:_("Radio Button"),keywords:"Radio button, Choice, Single Choice, Radio Group",icn:o.jsx(lg,{size:"20"}),pos:{h:140,w:60,i:"shadow_block"},category:"option",elm:{typ:"radio",lbl:_("Radio"),round:!0,opt:[{lbl:_("Option 1")},{lbl:_("Option 2")},{lbl:_("Option 3")}],valid:{},err:{},optionCol:1,customClasses:{},customAttributes:{}}},{name:_("Checkbox"),keywords:"Check Box, Mark, Tick, Option, Select, Choice, Multiple, Multiple Choice, Multiple Select, Multiple Option",icn:o.jsx(Vm,{w:"20"}),pos:{h:140,w:60,i:"shadow_block"},category:"option",elm:{typ:"check",lbl:_("Check Boxs"),opt:[{lbl:_("Option 1")},{lbl:_("Option 2")},{lbl:_("Option 3")}],valid:{},err:{},optionCol:1,customClasses:{},customAttributes:{}}},{name:_("Dropdown"),keywords:"Dropdown, Select, Drop Down, Multiple Select, Multiple Choice, Multiple Option",icn:o.jsx(qm,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"select",lbl:_("Dropdown"),phHide:!0,ph:"Select an Option",optionsList:[{"List-1":[{lbl:"Option 1 1"},{lbl:"Option 1 2"},{lbl:"Option 1 3"}]}],config:{selectedOptImage:!1,selectedOptClearable:!0,searchClearable:!0,optionIcon:!1,placeholder:"Select an option",showSearchPh:!0,searchPlaceholder:"Search options..",maxHeight:400,multipleSelect:!0,showChip:!0,selectedOptImgSrc:"test.png",closeOnSelect:!1,activeList:0,allowCustomOption:!1},valid:{},err:{mn:{dflt:((s=n.select)==null?void 0:s.mn)||'<p style="margin:0">You must select the minimum required options.</p>',show:!0},mx:{dflt:((a=n.select)==null?void 0:a.mx)||'<p style="margin:0">You can select up to the maximum allowed options.</p>',show:!0}},customClasses:{},customAttributes:{}}},{name:_("File Upload"),keywords:"File Upload, Attachment, photo, image, video, audio, file, document, doc, pdf, excel, ppt",icn:o.jsx(nc,{w:"20"}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"basic",elm:{typ:"file-up",lbl:_("File Upload"),btnTxt:"Attach File",valid:{},prefixIcn:`${bits.assetsURL}/../static/file-upload/paperclip.svg`,err:{maxSize:{dflt:n.maxSize||'<p style="margin:0">File Size is Exceeded</p>',show:!0},minFile:{dflt:n.minFile||'<p style="margin:0">Minimum 0 file required</p>',show:!0},maxFile:{dflt:n.maxFile||'<p style="margin:0">Maximum 0 file can uploaded</p>',show:!0}},customClasses:{},customAttributes:{},config:{multiple:!0,allowMaxSize:!0,showMaxSize:ke,maxSize:2,sizeUnit:"MB",isItTotalMax:!1,showSelectStatus:!0,fileSelectStatus:"No File Selected",allowedFileType:"",showFileList:!0,fileExistMsg:"A file allready exist",showFilePreview:!0,showFileSize:!0,duplicateAllow:!1,accept:"",minFile:0,maxFile:0}}},{name:_("Date"),keywords:"Date, Date Field, month",icn:o.jsx(Tc,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"date",lbl:_("Pick A Date"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:_("Time"),keywords:"Time, Time Picker, Time Select, minutes, hours",icn:o.jsx(xg,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"time",lbl:_("Select Time"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:_("Date-Time"),keywords:"Date-Time, Date, Time, day, month, year",icn:o.jsx(Es,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"datetime-local",lbl:_("Select Date-Time"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:_("Week"),keywords:"Week, Date, day",icn:o.jsx(wg,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"week",lbl:_("Select Week"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:_("Month"),keywords:"Month, Date",icn:o.jsx(rg,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"month",lbl:_("Month Input"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:_("Date Time (Advanced)"),keywords:"advanced date time, date-time, date time field",icn:o.jsx(Es,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},new:!0,category:"advanced",pro:"This field is available only in pro version",elm:{typ:"advanced-datetime",lbl:_("Advanced Date Time"),ph:_("Please Select a Date"),phHide:!0,valid:{},err:{},customClasses:{},customAttributes:{},config:{mode:"single",dateFormat:"Y-m-d",disableMobile:!0}}},{name:_("Spacer"),keywords:"Gap, Spacer, Space, Empty Space, Blank Space, Vertical Space, Horizontal Space",icn:o.jsx(fg,{size:"22"}),pos:{h:80,w:60,i:"shadow_block"},new:!0,category:"element",elm:{typ:"spacer",adminLbl:_("Spacer"),adminLblHide:!0,valid:{},err:{},customClasses:{},customAttributes:{}}},{name:_("Advance File Upload"),keywords:"Advanced File Upload, Attachment, photo, image, video, audio, file, document, doc, pdf, excel, ppt",icn:o.jsx(Hm,{size:20}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"advanced",pro:"This field is available only in pro version",elm:{typ:"advanced-file-up",lbl:_("Advanced File Upload"),layout:{autoHeight:1},upBtnTxt:"Attach File",valid:{},config:{credits:!1,allowDrop:!0,allowPaste:!0,allowMultiple:!1,allowReplace:!0,allowReorder:!1,allowBrowse:!0,allowRevert:!0,allowRemove:!0,forceRevert:!0,instantUpload:!1,dropOnElement:!1,allowFileSizeValidation:!1,allowFileTypeValidation:!1,allowPreview:!1,allowImageCrop:!1,allowImagePreview:!1,allowImageResize:!1,allowImageTransform:!1,allowImageValidateSize:!1,styleButtonRemoveItemPosition:"left",styleButtonProcessItemPosition:"right",styleLoadIndicatorPosition:"right",styleProgressIndicatorPosition:"right",maxParallelUploads:2},err:{},customClasses:{},customAttributes:{}}},{name:_("Country"),keywords:"Country, Country List, Country Dropdown, Country Select, flag",icn:o.jsx(Xm,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"country",lbl:_("Country"),mul:!1,phHide:!0,ph:"Select a Country",config:{selectedFlagImage:ke,selectedCountryClearable:!0,searchClearable:!0,optionFlagImage:ke,detectCountryByIp:!1,detectCountryByGeo:!1,defaultValue:"",showSearchPh:!0,searchPlaceholder:"Search for countries",noCountryFoundText:"No Country Found"},options:_g,valid:{},err:{},customClasses:{},customAttributes:{}}},{name:_("Currency"),keywords:"Currency, Currency Field, Amount, Price",icn:o.jsx(Um,{size:20}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"currency",lbl:_("Currency"),ph:_("Enter Amount.."),phHide:!0,inputFormatOptions:{formatter:"browser",showCurrencySymbol:!0,decimalSeparator:"."},valueFormatOptions:{formatter:"browser",showCurrencySymbol:!0,decimalSeparator:"."},config:{selectedFlagImage:ke,selectedCurrencyClearable:!0,searchClearable:!0,optionFlagImage:ke,defaultCurrencyKey:"",showSearchPh:!0,searchPlaceholder:"Search for countries",noCurrencyFoundText:"No Currency Found"},options:$g,valid:{},err:{minValue:{dflt:n.minValue||'<p style="margin:0">Minimum required amount not met.</p>',show:!0},maxValue:{dflt:n.maxValue||'<p style="margin:0">The entered amount exceeds the maximum limit.</p>',show:!0}},customClasses:{},customAttributes:{}}},{name:_("Phone Number"),keywords:"Phone number, Number",icn:o.jsx(ag,{size:20}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"phone-number",lbl:_("Phone Number"),ph:_("Enter Phone Number"),phHide:!0,config:{selectedFlagImage:ke,selectedCountryClearable:!0,searchClearable:!0,optionFlagImage:ke,defaultCountryKey:"",showSearchPh:!0,searchPlaceholder:"Search for countries",noCountryFoundText:"No Country Found",inputFormat:"+c #### ### ###",valueFormat:"+c #### ### ###"},options:Sg,valid:{},err:{invalid:{dflt:((l=n["phone-number"])==null?void 0:l.invalid)||'<p style="margin:0">Please enter a valid phone number</p>',show:!0}},customClasses:{},customAttributes:{}}},{name:_("Hidden Field"),keywords:"hidden,Text, number, hide, hidden field, hidden text, hidden number",icn:o.jsx(rc,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"hidden",lbl:_("Hidden Field"),ph:_("Set Default Value"),phHide:!0,valid:{hide:!0},err:{},customClasses:{},customAttributes:{}}},{name:_("GDPR Agreement"),keywords:"Consent, GDPR, Yes/No, Agree/Disagree,GDPR agreement, decision, accept",icn:o.jsx(Jm,{size:"20"}),pos:{h:40,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"gdpr",adminLbl:_("GDPR Agreement"),adminLblHide:!0,lbl:`<p style="margin:0"><span style="font-size: 12pt">${_("I consent to having this website store my submitted information so they can respond to my inquiry. Learn more in ")}<a title="Privacy Policy" href="https://yoursite-example.com/privacy" target="_blank" rel="noopener">${_("Our Privacy Policy.")}</a></span></p>`,msg:{checked:"Consented",unchecked:"dissented"},valid:{req:!0},err:{req:{dflt:'<p style="margin:0">Please provide consent.</p>',show:!0}},customClasses:{},customAttributes:{}}},{name:_("Decision Box"),keywords:"Decision box, GDPR, Yes/No, Agree/Disagree, concent",icn:o.jsx(Km,{size:"20"}),pos:{h:40,w:60,i:"shadow_block"},category:"basic",elm:{typ:"decision-box",adminLbl:_("Decision Box"),adminLblHide:!0,lbl:`<p style="margin:0"><span style="font-size: 12pt">${_("Decision Box")}</span></p>`,msg:{checked:"Accepted",unchecked:"Rejected"},valid:{req:!0},err:{req:{dflt:n.req||`<p style="margin:0">${_("This field is required")}</p>`,show:!0}},customClasses:{},customAttributes:{}}},{name:_("Paypal"),keywords:"Paypal, payment, credit card, credit card payment",icn:o.jsx(sg,{w:"20"}),pos:{h:200,w:60,i:"shadow_block",minW:20},category:"payment",pro:"This field is available only in pro version",elm:{typ:"paypal",adminLbl:_("Paypal"),currency:"USD",style:{layout:"vertical",color:"gold",shape:"rect",label:"paypal",height:"55"},valid:{}}},{name:_("Razorpay"),keywords:"Razorpay, payment, credit card, credit card payment",icn:o.jsx(cg,{w:"20",h:"23"}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"payment",pro:"This field is available only in pro version",elm:{typ:"razorpay",lbl:_("Razorpay"),btnSiz:"md",fulW:!1,subTitl:!0,align:"center",btnTxt:"Pay Now",btnTheme:"dark",options:{name:"Razorpay",description:"",currency:"INR",amount:0,amountType:"fixed",theme:{},prefill:{},modal:{confirm_close:!1}},valid:{},customClasses:{},customAttributes:{}}},{name:_("Stripe"),keywords:"Stripe, payment, credit card, credit card payment",icn:o.jsx(bg,{size:20}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"payment",pro:"This field is available only in pro version",elm:{typ:"stripe",adminLbl:_("Stripe"),err:{},txt:_("Pay with Stripe"),layout:{autoHeight:1},config:{payBtnTxt:_("Pay now"),layout:{type:"tabs",defaultCollapsed:!1},amount:50,options:{mode:"payment",currency:"usd",locale:"en",payment_method_types:["card"]},theme:{name:"stripe",style:{theme:"stripe"}}}}},{name:_("Mollie"),keywords:"Mollie, payment, credit card, credit card payment",icn:o.jsx(ng,{size:20,stroke:5}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"payment",pro:"This field is available only in pro version",elm:{typ:"mollie",adminLbl:_("Mollie"),err:{},txt:_("Pay with Mollie"),btnFulW:!0,btnAlign:"center",txtAlign:"center",config:{currency:"EUR",amount:"10.00",description:"Order #12345",payment_method:["creditcard"],redirect_url:""}}},{name:_("Shortcode"),keywords:"Shortcode, Shortcode Block, Shortcode Element, Shortcode Field, Shortcode Editor, embed, Embed Code",icn:o.jsx(bc,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},pro:"This field is available only in pro version",category:"advanced",elm:{typ:"shortcode",adminLbl:_("Shortcode"),adminLblHide:!0,content:"[type_your_shortcode_here]",layout:{autoHeight:1},valid:{},customClasses:{},customAttributes:{}}},{name:_("Draft Button"),keywords:"Button, Submit, Save, Save Draft, Submit Button, Submit Form, Click, Click button",icn:o.jsx(gr,{size:"20"}),pos:{h:60,w:60,i:"shadow_block"},category:"advanced",pro:"This field is available only in pro version",elm:{typ:"button",btnTyp:"save-draft",btnSiz:"md",txt:_("Save Draft"),align:"start",icn:{pos:"",url:""},valid:{},customClasses:{},customAttributes:{}}},{name:_("Next Step"),keywords:"Button, Next, Next Step, Next Button",icn:o.jsx(gr,{size:"23"}),pos:{h:60,w:30,x:30,i:"shadow_block"},category:"advanced",elm:{typ:"button",btnTyp:"next-step",btnSiz:"md",txt:_("Next"),align:"end",icn:{pos:"",url:""},valid:{},customClasses:{},customAttributes:{}}},{name:_("Previous Step"),keywords:"Button, Previous, Previous Step, Previous Button",icn:o.jsx(gr,{size:"23"}),pos:{h:60,w:30,i:"shadow_block"},category:"advanced",elm:{typ:"button",btnTyp:"previous-step",btnSiz:"md",txt:_("Previous"),align:"start",icn:{pos:"",url:""},valid:{},customClasses:{},customAttributes:{}}}]};function Cg({setNewData:e}){const{css:n}=ne(),t=ce(Vs),[r,i]=M.useState(""),[s,a]=M.useState(!1),[l,c]=M.useState(!1),[h,u]=M.useState(!1),d=M.useRef(null),m=M.useMemo(()=>jg(t),[t]),w=Rm(),S=M.useMemo(()=>{let p=m;return r&&(p=m.filter(x=>x.keywords.toLowerCase().includes(r.toLowerCase())||x.name.toLowerCase().includes(r.toLowerCase()))),l&&(p=[...p].sort((x,N)=>x.name.localeCompare(N.name))),p.reduce((x,N)=>(x[N.category].push(N),x),w)},[m,r,l]),j=M.useCallback(p=>{const x=p.target.value.trim();i(x)},[]),I=M.useCallback(()=>{d.current&&(d.current.value=""),i(""),a(!1)},[]),T=M.useCallback(()=>{c(p=>!p)},[]);M.useCallback(p=>{const{scrollTop:x}=p.target;u(x>50)},[]);const C=M.useCallback(()=>a(!0),[]),g=M.useCallback(()=>{setTimeout(()=>a(!1),200)},[]);M.useEffect(()=>{const p=x=>{var N;(x.ctrlKey||x.metaKey)&&x.key==="/"&&(x.preventDefault(),(N=d.current)==null||N.focus())};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[]);const f=M.useCallback(p=>o.jsx(Dm,{setNewData:e,value:{fieldData:p.elm,fieldSize:p.pos},title:p.name,children:o.jsxs("div",{className:n(Ce.toolWrapper),title:p.name,children:[o.jsx("span",{className:`${n(Ce.tool_icn,v.mr1)} tool-icn`,children:p.icn}),o.jsx("span",{className:`${n(Ce.tool_label)} tool-label`,children:p.name}),p.tip&&o.jsx(ro,{className:"hover-tip",icnSize:15,children:o.jsx("div",{className:"txt-body",children:p.tip})}),!ke&&p.pro&&o.jsx(Ni,{width:"18",children:o.jsx("div",{className:"txt-body",children:o.jsx(ic,{html:p.pro})})}),(ke||!p.pro)&&p.new&&o.jsx(Ni,{width:"18",text:"New",isNewBadge:!0}),o.jsx(Cc,{size:13,classNames:`${n(Ce.dragIcon)} drag-icon`})]})},p.name),[e,n]),b=M.useCallback((p,x,N)=>{if(!N.length)return null;const A=N.length,O=r?`${x} (${A} ${_("found")})`:`${x} (${A})`;return o.jsx(en,{id:`${p}-fields`,title:O,className:n(Ce.categorySection),open:!0,children:o.jsx("div",{className:`${n(Ce.twoColumnGrid)} bf-tool-grid`,children:N.map(f)})},p)},[n,f,r]);return o.jsxs("div",{className:n(Ce.toolbarWrapper),"data-testid":"toolbar-wrapper",children:[o.jsxs("div",{className:n(v.flxc,Ce.searchSection,h?Ce.searchBar:{}),children:[o.jsxs("div",{className:n(Ce.fields_search),style:{width:s?"100%":"calc(100% - 35px)"},children:[o.jsx("input",{ref:d,title:"Search Field","aria-label":"Search Field",autoComplete:"off","data-testid":"tlbr-srch-inp",placeholder:_("Search fields.."),type:"search",name:"searchField",onChange:j,onFocus:C,onBlur:g,className:n(Ce.search_field)}),r&&o.jsx("span",{title:"clear","aria-label":"Clear",className:n(Ce.clear_icn),role:"button",tabIndex:0,onClick:I,onKeyDown:p=>p.key==="Enter"&&I()}),o.jsx("span",{title:"search",className:n(Ce.search_icn),children:o.jsx(oc,{size:"20"})}),!r&&o.jsx("div",{className:`${n(Ce.shortcut)} shortcut`,title:'Press "Ctrl+/" to focus search',children:"Ctrl+/"})]}),!s&&o.jsx("button",{title:"Sort by ascending order","data-testid":"tlbr-sort-btn",className:`${n(Ce.sort_btn)} ${l?"active":""}`,type:"button",onClick:T,"aria-label":"Sort Fields",children:o.jsx(Bm,{size:20})})]}),o.jsxs("div",{className:n(Ce.categoriesWrapper),children:[r&&o.jsxs("div",{className:n({mb:10,fs:14,fw:500,cr:"#666",px:5}),children:[_("Search results for:")," ",r]}),Ki.map(p=>b(p.category,_(p.title),S[p.category])),r&&Ki.every(p=>S[p.category].length===0)&&o.jsxs("div",{className:n(Ce.emptyStateWrapper),children:[o.jsx("div",{className:n(Ce.emptyIcon),children:"🔍"}),o.jsx("h3",{className:n(Ce.emptyStateTitle),children:_("No fields found")}),o.jsxs("div",{className:n(Ce.emptyStateDescription),children:[_("We couldn't find any fields matching")," ",o.jsx("strong",{children:` "${r}"`}),o.jsx("div",{className:n({fs:12,mt:5,cr:"#999"}),children:_("Try searching with different keywords")})]})]})]})]})}var Ig=M.memo(Cg);const fn={elmSettings:{bd:"var(--white-100)",h:"100%",w:"var(--bf-left-panel-width, 450px)",mnw:"var(--bf-left-panel-width, 450px)",fs:18,br:"1px solid var(--bf-stroke-clr)",pn:"relative",tn:"width 0.3s ease, min-width 0.3s ease","&.style-mode":{w:"var(--bf-style-mode-left-panel-width, 450px)",mnw:"var(--bf-style-mode-left-panel-width, 450px)"}},elmSettingsCollapsed:{w:0,mnw:0,"&.style-mode":{w:0,mnw:0}},toggleButton:{pn:"absolute",rt:"-20px",tp:"50%",tm:"translateY(-50%)",zx:100,w:20,h:45,p:2,bd:"var(--white-100)",b:"1px solid var(--bf-stroke-clr)",bl:"none",brs:"0 30px 30px 0",cr:"var(--bf-text-clr-gray)",dy:"flex","align-items":"center","justify-content":"center",cur:"pointer",tn:"all 0.2s ease",":hover":{cr:"var(--bf-text-clr-dark)",bd:"var(--bf-bg-hover)",bs:"2px 0 6px rgba(0, 0, 0, 0.15)","& svg":{ml:-10}},":active":{tm:"translateY(-50%) scale(0.95)"}},toggleIcon:{tn:"transform 0.3s ease",tm:"rotate(90deg) !important",ml:-6},toggleIconRotated:{tm:"rotate(270deg) !important"},segmentMenuWrapper:{h:"var(--bf-option-toolbar-height)",brs:0,bb:"1px solid var(--bf-stroke-clr)",br:"1px solid var(--bf-stroke-clr)","& .tabs":{b:"none",h:"100%"},"& .selector":{h:"100%"},"& .segment-tip":{h:"100%"},"& button":{h:"100%"}}},kg=_t(()=>qe(()=>import("./bf-28-232.js").then(e=>e.F),["./bf-28-232.js","./main-294.js","./main-294.css","./bf-446-382.js","./bf-821-385.js","./bf-487-72.js","./bf-176-80.js","./bf-293-475.css","./bf-867-113.js","./bf-890-474.css","./bf-384-383.js","./bf-663-270.js","./bf-957-268.js","./bf-889-272.js","./bf-766-384.js","./bf-934-246.js","./bf-22-244.js","./bf-908-241.js","./bf-764-245.js","./bf-5-86.js","./bf-383-274.js","./bf-85-248.js","./bf-108-386.js","./bf-297-387.js","./bf-225-478.css"],import.meta.url),{fallback:o.jsx(ar,{})}),Tg=_t(()=>qe(()=>import("./bf-470-233.js"),["./bf-470-233.js","./main-294.js","./main-294.css","./bf-384-383.js","./bf-663-270.js","./bf-957-268.js","./bf-176-80.js","./bf-293-475.css","./bf-446-382.js","./bf-821-385.js","./bf-986-242.js","./bf-764-245.js","./bf-357-476.css","./bf-735-388.js","./bf-487-72.js","./bf-867-113.js","./bf-890-474.css","./bf-766-384.js","./bf-934-246.js","./bf-22-244.js","./bf-908-241.js","./bf-5-86.js","./bf-250-243.js","./bf-188-247.js","./bf-85-248.js","./bf-930-249.js","./bf-112-250.js","./bf-399-251.js","./bf-379-106.js","./bf-508-252.js","./bf-128-253.js"],import.meta.url),{fallback:o.jsx(ar,{})}),Ng=_t(()=>qe(()=>import("./bf-283-234.js"),["./bf-283-234.js","./main-294.js","./main-294.css","./bf-384-383.js","./bf-663-270.js","./bf-957-268.js","./bf-176-80.js","./bf-293-475.css","./bf-446-382.js","./bf-821-385.js","./bf-487-72.js","./bf-867-113.js","./bf-890-474.css","./bf-764-245.js","./bf-766-384.js","./bf-934-246.js","./bf-22-244.js","./bf-908-241.js","./bf-5-86.js","./bf-986-242.js","./bf-357-476.css","./bf-250-243.js","./bf-188-247.js","./bf-85-248.js","./bf-930-249.js","./bf-112-250.js","./bf-399-251.js","./bf-379-106.js","./bf-508-252.js","./bf-128-253.js"],import.meta.url),{fallback:o.jsx(ar,{})}),Mg=_t(()=>qe(()=>import("./bf-155-235.js"),["./bf-155-235.js","./main-294.js","./main-294.css","./bf-176-80.js","./bf-293-475.css","./bf-399-251.js","./bf-379-106.js","./bf-487-72.js","./bf-867-113.js","./bf-890-474.css","./bf-508-252.js","./bf-908-241.js","./bf-764-245.js","./bf-5-86.js","./bf-986-242.js","./bf-357-476.css","./bf-250-243.js","./bf-22-244.js","./bf-934-246.js","./bf-188-247.js","./bf-85-248.js","./bf-930-249.js","./bf-112-250.js","./bf-128-253.js"],import.meta.url),{fallback:o.jsx(ar,{})});function Eg({style:e,styleDispatch:n,addNewData:t,onToggle:r,isCollapsed:i}){const{pathname:s}=Ji(),{formID:a,formType:l,"*":c}=xe(),h=(c==null?void 0:c.split("/")[0])||"",{css:u}=ne(),[d,m]=Y(Vr),w=ce(Qn),S=re(Qs);Y(lt);const[j,I]=M.useState("Add Fields"),T=er(),C=`/form/builder/${l}/${a}`,{styleMode:g}=d;M.useEffect(()=>{var A,O;const N=(O=(A=Sr(".settings"))==null?void 0:A.firstChild)==null?void 0:O.firstChild;N&&N.scrollTop>0&&(N.scrollTop=0),h.match(/add-fields/)?I("Add Fields"):h.match(/fields-list|field-settings|step-settings|multi-step-settings/)?((d.styleMode||d.inspectMode)&&m(F=>B(y({},F),{styleMode:!1,inspectMode:!1})),I("Field Options")):h.match(/themes|style|field-theme-customize|theme-customize/)&&(d.styleMode||m(F=>B(y({},F),{styleMode:!0})),I("Style"))},[h]);const f=({target:{scrollTop:N}})=>{N>20?S(!0):S(!1)},b=()=>{m(N=>B(y({},N),{styleMode:!1,inspectMode:!1})),w?T(`${C}/field-settings/${w}`,{replace:!0}):T(`${C}/fields-list`,{replace:!0}),qo(),Wt()},p=()=>{m(N=>B(y({},N),{styleMode:!1,inspectMode:!1})),T(`${C}/add-fields`,{replace:!0}),qo(),Wt()},x=N=>{N==="Add Fields"?p():N==="Field Options"&&b(),I(N)};return o.jsxs("div",{className:`${u(fn.elmSettings,i?fn.elmSettingsCollapsed:{})} ${g?"style-mode":""} left-bar-panel`,children:[o.jsx("button",{className:u(fn.toggleButton),onClick:r,"aria-label":i?"Show left panel":"Hide left panel",title:i?"Show left panel":"Hide left panel",children:o.jsx(io,{size:18,className:u(fn.toggleIcon,i&&fn.toggleIconRotated)})}),!i&&o.jsxs(o.Fragment,{children:[o.jsx(bl,{className:u(fn.segmentMenuWrapper),show:["icn","label"],tipPlace:"bottom",defaultActive:j,options:[{icn:o.jsx(lm,{size:22}),label:"Add Fields",tip:"Form Fields"},...d.styleMode?[]:[{icn:o.jsx(sc,{size:22,classNames:u({tm:"rotate(90deg)"})}),label:"Field Options",tip:"Individual Field Settings"}]],onChange:x,wideTab:!0,variant:"clean-tertiary-bottom-outline"}),g?o.jsx(Lm,{}):o.jsx("div",{className:"settings",children:o.jsx(ea.Scrollbars,{onScroll:f,autoHide:!0,children:o.jsx(no,{resetKey:s,children:o.jsxs(ta,{children:[o.jsx(Tt,{path:"add-fields",element:o.jsx(Ig,{setNewData:t})}),o.jsx(Tt,{path:"fields-list",element:o.jsx(Mg,{})}),o.jsx(Tt,{path:"field-settings/:fieldKey",element:o.jsx(kg,{})}),o.jsx(Tt,{path:"multi-step-settings",element:o.jsx(Tg,{})}),o.jsx(Tt,{path:"step-settings",element:o.jsx(Ng,{})})]})})})})]})]})}function No(){const{css:e}=ne();return o.jsxs("div",{className:e(bn.wrp),children:[o.jsx("div",{className:`${e(bn.lnk)} loader`}),o.jsx("div",{className:`${e(bn.titl)} loader`}),Array(12).fill(0).map((n,t)=>o.jsxs("div",{className:`${e(bn.t_wrp)} flx`,children:[o.jsx("div",{className:`${e(bn.txt)} loader`}),o.jsx("div",{className:`${e(bn.icn)} loader`})]},`tb-${t+3}`))]})}const bn={wrp:{mx:10,my:10},lnk:{w:140,h:10,brs:4},titl:{w:220,h:22,brs:5,my:10},t_wrp:{ml:10,my:10,flx:"between",w:"98%"},icn:{w:132,h:30,brs:10},txt:{h:15,w:90,brs:6}},Vn={elmSettings:{bd:"var(--white-100)",h:"100%",w:"var(--bf-right-panel-width, 400px)",mnw:"var(--bf-right-panel-width, 400px)",mr:0,fs:18,bl:"1px solid var(--bf-stroke-clr)",pn:"relative",tn:"width 0.3s ease, min-width 0.3s ease"},elmSettingsCollapsed:{w:0,mnw:0},toggleButton:{pn:"absolute",lt:"-20px",tp:"50%",tm:"translateY(-50%)",zx:100,w:20,h:45,p:2,bd:"var(--white-100)",b:"1px solid var(--bf-stroke-clr)",br:"none",brs:"30px 0 0 30px",cr:"var(--bf-text-clr-gray)",dy:"flex","align-items":"center","justify-content":"center",cur:"pointer",tn:"all 0.2s ease",":hover":{cr:"var(--bf-text-clr-dark)",bd:"var(--bf-bg-hover)",bs:"-2px 0 6px rgba(0, 0, 0, 0.15)","& svg":{mr:-10}},":active":{tm:"translateY(-50%) scale(0.95)"}},toggleIcon:{tn:"transform 0.3s ease",tm:"rotate(270deg) !important",mr:-6},toggleIconRotated:{tm:"rotate(90deg) !important"}},zg=_t(()=>qe(()=>import("./bf-153-236.js"),["./bf-153-236.js","./main-294.js","./main-294.css","./bf-821-385.js","./bf-446-382.js","./bf-5-86.js","./bf-635-389.js","./bf-176-80.js","./bf-293-475.css","./bf-487-72.js","./bf-867-113.js","./bf-890-474.css","./bf-908-241.js","./bf-764-245.js","./bf-186-103.js","./bf-68-390.js","./bf-986-242.js","./bf-357-476.css","./bf-919-393.js","./bf-889-272.js","./bf-317-391.js","./bf-934-246.js","./bf-803-394.js","./bf-728-392.js","./bf-735-388.js","./bf-250-243.js","./bf-22-244.js","./bf-188-247.js","./bf-85-248.js","./bf-930-249.js","./bf-112-250.js","./bf-399-251.js","./bf-379-106.js","./bf-508-252.js","./bf-128-253.js"],import.meta.url),{fallback:o.jsx(No,{})}),Ag=_t(()=>qe(()=>import("./bf-567-237.js"),["./bf-567-237.js","./main-294.js","./main-294.css","./bf-487-72.js","./bf-176-80.js","./bf-293-475.css","./bf-867-113.js","./bf-890-474.css","./bf-573-395.js","./bf-635-389.js","./bf-908-241.js","./bf-764-245.js","./bf-5-86.js","./bf-186-103.js","./bf-68-390.js","./bf-986-242.js","./bf-357-476.css","./bf-919-393.js","./bf-934-246.js","./bf-317-391.js","./bf-803-394.js","./bf-889-272.js","./bf-258-396.js","./bf-735-388.js","./bf-250-243.js","./bf-22-244.js","./bf-188-247.js","./bf-85-248.js","./bf-930-249.js","./bf-112-250.js","./bf-399-251.js","./bf-379-106.js","./bf-508-252.js","./bf-128-253.js"],import.meta.url),{fallback:o.jsx(No,{})}),Og=_t(()=>qe(()=>import("./bf-967-238.js"),["./bf-967-238.js","./main-294.js","./main-294.css","./bf-635-389.js","./bf-176-80.js","./bf-293-475.css","./bf-487-72.js","./bf-867-113.js","./bf-890-474.css","./bf-908-241.js","./bf-764-245.js","./bf-5-86.js","./bf-186-103.js","./bf-68-390.js","./bf-986-242.js","./bf-357-476.css","./bf-919-393.js","./bf-889-272.js","./bf-258-396.js","./bf-250-243.js","./bf-22-244.js","./bf-934-246.js","./bf-188-247.js","./bf-85-248.js","./bf-930-249.js","./bf-112-250.js","./bf-399-251.js","./bf-379-106.js","./bf-508-252.js","./bf-128-253.js"],import.meta.url),{fallback:o.jsx(No,{})}),Lg=_t(()=>qe(()=>import("./bf-192-239.js"),["./bf-192-239.js","./main-294.js","./main-294.css","./bf-487-72.js","./bf-176-80.js","./bf-293-475.css","./bf-867-113.js","./bf-890-474.css","./bf-573-395.js","./bf-744-397.js","./bf-635-389.js","./bf-908-241.js","./bf-764-245.js","./bf-5-86.js","./bf-186-103.js","./bf-889-272.js","./bf-986-242.js","./bf-357-476.css","./bf-250-243.js","./bf-22-244.js","./bf-934-246.js","./bf-188-247.js","./bf-85-248.js","./bf-930-249.js","./bf-112-250.js","./bf-399-251.js","./bf-379-106.js","./bf-508-252.js","./bf-128-253.js"],import.meta.url),{fallback:o.jsx(ar,{})});function Bg({style:e,styleDispatch:n,isCollapsed:t,onToggle:r}){const{pathname:i}=Ji(),{formID:s,"*":a}=xe(),l=(a==null?void 0:a.split("/")[0])||"themes",{css:c}=ne(),h=re(Qs);Y(lt),M.useEffect(()=>{var m,w;const d=(w=(m=Sr(".right-bar-panel"))==null?void 0:m.firstChild)==null?void 0:w.firstChild;d&&d.scrollTop>0&&(d.scrollTop=0)},[l]);const u=({target:{scrollTop:d}})=>d>20?h(!0):h(!1);return o.jsxs("div",{id:"theme-style-menu",className:c(Vn.elmSettings,t?Vn.elmSettingsCollapsed:{}),children:[o.jsx("button",{className:c(Vn.toggleButton),onClick:r,"aria-label":t?"Show right panel":"Hide right panel",title:t?"Show right panel":"Hide right panel",children:o.jsx(io,{size:18,className:c(Vn.toggleIcon,t?Vn.toggleIconRotated:{})})}),o.jsx("div",{className:"right-bar-panel",children:o.jsxs(ea.Scrollbars,{onScroll:u,autoHide:!0,children:[o.jsx(no,{resetKey:i,children:o.jsxs(ta,{children:[o.jsx(Tt,{path:"themes",element:o.jsx(Lg,{})}),o.jsx(Tt,{path:"theme-customize/:element",element:o.jsx(Ag,{})}),o.jsx(Tt,{path:"theme-customize/multi-step/:element",element:o.jsx(Og,{})}),o.jsx(Tt,{path:"field-theme-customize/:element/:fieldKey",element:o.jsx(zg,{})})]})}),o.jsx("div",{className:"mb-50"})]})})]})}const mn={formBuilderContainer:{h:"calc(100vh - var(--bf-nav-height))",bd:"var(--bf-bg-offwhite)",dy:"flex",fd:"row"},containerWrapper:{mx:"var(--bf-space-7)"},leftPanelSection:{ow:"visible !important"},centerColumn:{tn:"width 0.3s ease, min-width 0.3s ease"},rightPanelSection:{ow:"visible !important"},builderGridWrapper:{h:"calc(100vh - var(--bf-nav-height) - var(--bf-option-toolbar-height))",py:"var(--bf-space-7)"},gridContainer:{brs:"var(--bf-bdr-radius-md)",bd:"var(--bf-bg-white)",h:"100%",p:"var(--bf-space-7)",b:"1px solid var(--bf-stroke-clr)"},gridRenderPortal:{w:"100%",h:"100%",m:"3px auto auto",ow:"hidden"}},Rg=_t(()=>qe(()=>import("./bf-975-240.js").then(e=>e.G),["./bf-975-240.js","./main-294.js","./main-294.css","./bf-176-80.js","./bf-293-475.css","./bf-663-270.js","./bf-487-72.js","./bf-867-113.js","./bf-890-474.css","./bf-541-271.js","./bf-889-272.js","./bf-23-477.css"],import.meta.url),{fallback:o.jsx(dl,{})}),Pg=(e,n)=>{if(n.brkPoint==="lg")return ai(e,n.apply),sessionStorage.setItem("btcd-fs",li(Mt.sheet(e))),y({},e);if(n.brkPoint==="md"){const t=e["@media only screen and (max-width:600px)"]||e["@media only screen and (max-width: 600px)"];return ai(t,n.apply),sessionStorage.setItem("btcd-fs",li(Mt.sheet(e))),y({},e)}if(n.brkPoint==="sm"){const t=e["@media only screen and (max-width:400px)"]||e["@media only screen and (max-width: 400px)"];return ai(t,n.apply),sessionStorage.setItem("btcd-fs",li(Mt.sheet(e))),y({},e)}return n.type==="init"?n.v1Style:e},Fg=({isLoading:e})=>{Y(Ks);const n=ce(qs),{element:t,fieldKey:r,formType:i,formID:s}=xe(),{styleMode:a}=ce(Vr),l=i!=="edit",c=l?n:s,[h,u]=M.useState(null),[d,m]=Y(lt),[w,S]=Y(cc);ce(Fr);const[j,I]=M.useReducer(Pg,E1(c)),[T,C]=M.useState(!l),[g,f]=M.useState(!1),[b,p]=Y(eo),[x,N]=Y(to),A=re($n),O=re(Os),F=re(Ls),$=re(As),E=re(gc),k=re(Js),P=ce(he),H=M.useRef(null),z=M.useRef(!1),[V,oe]=M.useState(window.innerWidth),{GRID_PADDING:ze,toggleLeftPanel:ct,toggleRightPanel:En,getCenterWidth:cn,getCalculatedGridWidth:Ne,isLeftCollapsed:Lt,isRightCollapsed:Pe}=mc(),[Yt,J]=M.useState(()=>Ne(V,a)),[G,je]=M.useState(()=>cn(V,a)),{css:ve}=ne();vc(["bitforms_form_helpers_state",c],{formID:c},{fetchCondition:!l,onSuccess:R=>{C(!1),uc(P)&&ht(R)}}),M.useEffect(()=>{z.current=!0,J(Ne(V,a)),je(cn(V,a)),setTimeout(()=>{z.current=!1},100)},[Lt,Pe,a,V]),M.useEffect(()=>{let R;const Z=()=>{clearTimeout(R),R=setTimeout(()=>{oe(window.innerWidth)},150)};return window.addEventListener("resize",Z),()=>{clearTimeout(R),window.removeEventListener("resize",Z)}},[]);const ht=R=>{var ft;const ie=((ft=R==null?void 0:R[0])==null?void 0:ft.builder_helper_state)||{},{themeVars:be,themeColors:et,style:He,staticStyles:gt}=ie,tt=cr.parse(be),Ct=cr.parse(et),Ve=cr.parse(He);if(gt){const bt=cr.parse(gt);A(bt)}F(tt),O(Ct),$(Ve),E({allThemeVars:tt,allThemeColors:Ct,allStyles:Ve}),p(ie.breakpointSize),k(ie.builderSettings),K({state:{allThemeVars:tt,allThemeColors:Ct,allStyles:Ve}},!1,0),S(!0)};M.useEffect(()=>{const R=H.current.getResizer(),Z=b[d]||1024;if(d==="lg")R.resizeSection(0,{toSize:0}),R.resizeSection(2,{toSize:0});else if(d==="md"||d==="sm"){const ie=Math.max((G-Z)/2,0);R.resizeSection(0,{toSize:ie}),R.resizeSection(2,{toSize:ie})}H.current.applyResizer(R)},[d,t,r,m,Lt,Pe]);const Ze=M.useCallback(()=>{if(!w){if(d==="md"){const R=j["@media only screen and (max-width:600px)"]||j["@media only screen and (max-width: 600px)"];return Zo(j,R)}if(d==="sm"){const R=j["@media only screen and (max-width:400px)"]||j["@media only screen and (max-width: 400px)"];return Zo(j,R)}}return j},[d,w,j]),q=M.useCallback(R=>u(R),[]),fe=M.useCallback(R=>{},[]),Fe=()=>{f(!0)},se=()=>{f(!1),z.current=!1},De=R=>{z.current||J(R-ze*2)},jt=()=>{const R=y({},x);R.show=!1,N(R)};return o.jsxs(o.Fragment,{children:[o.jsx(N1,{setBuilderPointerEventNone:f}),o.jsxs("div",{className:ve(mn.formBuilderContainer),children:[o.jsx(M.StrictMode,{children:o.jsx(Eg,{style:Ze(),styleDispatch:I,formID:c,addNewData:q,onToggle:ct,isCollapsed:Lt})}),o.jsxs("div",{className:ve(mn.centerColumn),style:{width:G},children:[o.jsx(nm,{}),o.jsx("div",{className:ve(mn.containerWrapper),children:o.jsxs(Zt.Container,{ref:H,beforeApplyResizer:fe,afterResizing:se,onActivate:Fe,children:[o.jsx(Zt.Section,{defaultSize:0}),o.jsx(Zt.Bar,{className:"bar bar-l"}),o.jsx(Zt.Section,{onSizeChanged:De,minSize:320,defaultSize:Ne(V,a),children:o.jsx(M.StrictMode,{children:o.jsx("div",{className:ve(mn.builderGridWrapper),children:o.jsxs("div",{className:ve(mn.gridContainer),children:[o.jsx(K1,{}),!e&&!T?o.jsxs(Z0,{id:"bit-grid-layout",className:ve(mn.gridRenderPortal),style:{width:Yt,pointerEvents:g?"none":"all",height:"calc(100% - 40px)"},children:[o.jsx(Mc,{}),o.jsx(am,{}),o.jsx(no,{children:o.jsx(Rg,{style:Ze(),gridWidth:Yt,newData:h,setNewData:u,formType:i,formID:c,setAlertMdl:N})})]}):o.jsx(dl,{})]})})})}),o.jsx(Zt.Bar,{className:"bar bar-r"}),o.jsx(Zt.Section,{defaultSize:0})]})})]}),a&&o.jsx(M.StrictMode,{children:o.jsx(Bg,{style:Ze(),styleDispatch:I,formID:c,isCollapsed:Pe,onToggle:En})})]}),o.jsx(ac,{className:"custom-conf-mdl",mainMdlCls:"o-v",btnClass:"red",btnTxt:"Close",show:x.show,cancelBtn:x.cancelBtn,close:jt,action:jt,children:o.jsx("div",{className:"txt-center",children:x.msg})}),o.jsx(lc,{})]})};var u2=Object.freeze({__proto__:null,default:Fg});export{Qm as $,Bm as A,gr as B,Vm as C,Ym as D,pm as E,ar as F,Jm as G,ml as H,ng as I,cg as J,Um as K,ag as L,rg as M,ig as N,Xm as O,og as P,dg as Q,lg as R,Et as S,vg as T,yg as U,Y0 as V,wg as W,ug as X,pg as Y,eg as Z,Wm as _,jg as a,hg as a0,Zm as a1,hl as a2,lm as a3,gn as a4,Kb as a5,l2 as a6,ks as a7,Ts as a8,_g as a9,u2 as aa,Rm as b,Pb as c,D1 as d,V1 as e,Ki as f,To as g,c2 as h,fl as i,bl as j,P1 as k,a2 as l,um as m,Qb as n,Jb as o,fg as p,mg as q,gg as r,Is as s,qm as t,xg as u,Es as v,Gm as w,Km as x,sg as y,bg as z}; |
| 1511 |
|