@ws-ui/settings-editor 1.11.12-rc1 → 1.11.12-rc10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Editor.d.ts +2 -0
- package/dist/Standalone/index.d.ts +4 -1
- package/dist/Standalone/style.css +1 -0
- package/dist/adapter/reducer/adapter.d.ts +2 -1
- package/dist/common.cjs.js +2 -0
- package/dist/common.cjs.js.map +1 -0
- package/dist/common.d.ts +1 -0
- package/dist/common.es.js +5 -0
- package/dist/common.es.js.map +1 -0
- package/dist/index.cjs.js +52 -28
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +13059 -7298
- package/dist/index.es.js.map +1 -1
- package/dist/settings-editor.css +1 -1
- package/package.json +7 -5
- package/dist/JSONSettings.d.ts +0 -7
package/dist/index.cjs.js
CHANGED
|
@@ -1,53 +1,77 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react/jsx-runtime"),x=require("react"),ut=require("@ws-ui/store"),Rt=require("@ws-ui/shared"),Ns=require("react-dom"),vt=require("@ws-ui/icons"),xx=require("./common.cjs.js");function yx(r){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(i,n,a.get?a:{enumerable:!0,get:()=>r[n]})}}return i.default=r,Object.freeze(i)}const gt=yx(x);function _x(r){const i=ut.useAppDispatch(),n=ut.useAppSelector(ut.selectPreferences),a=ut.useAppSelector(ut.selectQodly),s=ut.useAppSelector(ut.selectExplorer),l=ut.useAppSelector(ut.selectWebForms);return{getTabPath:()=>r??null,getPreferences:()=>n,getQodly:()=>a,getFeatureFlag:u=>{var d;return u==="states"?!0:!!((d=n==null?void 0:n.session)!=null&&d[`features.experimental.${u}`])},getExplorer:()=>s,getWebForms:()=>l,findNodeByPath:u=>ut.findNodeByPath(s,u),actions:{setSetting:u=>i(ut.setSetting(u)),setSettingsAsText:u=>i(ut.setSettingsAsText(u)),fetchFolderContentWithoutExpanding:u=>i(ut.fetchFolderContentWithoutExpanding(u)).unwrap(),createNewFileAndOpen:u=>i(ut.createNewFileAndOpen({fileName:u.fileName,path:u.path,type:u.type,parentNode:u.parentNode,qodly:u.qodly??!1})).unwrap(),openModal:async u=>await i(ut.openModal(u)).unwrap()}}}const Xd=x.createContext(null),Zd=({children:r,adapter:i})=>E.jsx(Xd.Provider,{value:i,children:r});function ho(){const r=x.useContext(Xd);if(!r)throw new Error("useSettingsEditorStateAdapter must be used within an EditorStateAdapterProvider");return r}var si=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ao={exports:{}};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Lodash <https://lodash.com/>
|
|
4
4
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
5
5
|
* Released under MIT license <https://lodash.com/license>
|
|
6
6
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
7
7
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
8
|
-
*/var Ev=gr.exports,ol;function Sv(){return ol||(ol=1,(function(i,r){(function(){var u,s="4.17.21",o=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",d="Expected a function",b="Invalid `variable` option passed into `_.template`",g="__lodash_hash_undefined__",h=500,m="__lodash_placeholder__",A=1,B=2,E=4,F=1,G=2,S=1,T=2,X=4,N=8,W=16,w=32,D=64,M=128,J=256,ue=512,ve=30,Re="...",he=800,Oe=16,Pe=1,me=2,Ie=3,Fe=1/0,Ce=9007199254740991,an=17976931348623157e292,De=NaN,Ze=4294967295,Ae=Ze-1,He=Ze>>>1,Ke=[["ary",M],["bind",S],["bindKey",T],["curry",N],["curryRight",W],["flip",ue],["partial",w],["partialRight",D],["rearg",J]],we="[object Arguments]",_e="[object Array]",sn="[object AsyncFunction]",Me="[object Boolean]",ln="[object Date]",ht="[object DOMException]",Pn="[object Error]",H="[object Function]",Ln="[object GeneratorFunction]",Ve="[object Map]",cn="[object Number]",Pi="[object Null]",_n="[object Object]",it="[object Promise]",ut="[object Proxy]",Ye="[object RegExp]",bn="[object Set]",kn="[object String]",Ir="[object Symbol]",Nc="[object Undefined]",Ut="[object WeakMap]",Wc="[object WeakSet]",jt="[object ArrayBuffer]",wt="[object DataView]",_i="[object Float32Array]",Vi="[object Float64Array]",Ni="[object Int8Array]",Wi="[object Int16Array]",Mi="[object Int32Array]",Xi="[object Uint8Array]",Li="[object Uint8ClampedArray]",Di="[object Uint16Array]",Zi="[object Uint32Array]",Mc=/\b__p \+= '';/g,Xc=/\b(__p \+=) '' \+/g,Lc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bo=/&(?:amp|lt|gt|quot|#39);/g,To=/[&<>"']/g,Dc=RegExp(Bo.source),Zc=RegExp(To.source),Hc=/<%-([\s\S]+?)%>/g,Yc=/<%([\s\S]+?)%>/g,Oo=/<%=([\s\S]+?)%>/g,Jc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zc=/^\w*$/,kc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hi=/[\\^$.*+?()[\]{}|]/g,Uc=RegExp(Hi.source),Yi=/^\s+/,jc=/\s/,Qc=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$c=/\{\n\/\* \[wrapped with (.+)\] \*/,Kc=/,? & /,qc=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ef=/[()=,{}\[\]\/\s]/,nf=/\\(\\)?/g,tf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Po=/\w*$/,rf=/^[-+]0x[0-9a-f]+$/i,uf=/^0b[01]+$/i,of=/^\[object .+?Constructor\]$/,af=/^0o[0-7]+$/i,sf=/^(?:0|[1-9]\d*)$/,lf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Cr=/($^)/,cf=/['\n\r\u2028\u2029\\]/g,Ar="\\ud800-\\udfff",ff="\\u0300-\\u036f",df="\\ufe20-\\ufe2f",gf="\\u20d0-\\u20ff",_o=ff+df+gf,Vo="\\u2700-\\u27bf",No="a-z\\xdf-\\xf6\\xf8-\\xff",pf="\\xac\\xb1\\xd7\\xf7",hf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bf="\\u2000-\\u206f",vf=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Wo="A-Z\\xc0-\\xd6\\xd8-\\xde",Mo="\\ufe0e\\ufe0f",Xo=pf+hf+bf+vf,Ji="['’]",mf="["+Ar+"]",Lo="["+Xo+"]",xr="["+_o+"]",Do="\\d+",If="["+Vo+"]",Zo="["+No+"]",Ho="[^"+Ar+Xo+Do+Vo+No+Wo+"]",zi="\\ud83c[\\udffb-\\udfff]",Cf="(?:"+xr+"|"+zi+")",Yo="[^"+Ar+"]",ki="(?:\\ud83c[\\udde6-\\uddff]){2}",Ui="[\\ud800-\\udbff][\\udc00-\\udfff]",Gt="["+Wo+"]",Jo="\\u200d",zo="(?:"+Zo+"|"+Ho+")",Af="(?:"+Gt+"|"+Ho+")",ko="(?:"+Ji+"(?:d|ll|m|re|s|t|ve))?",Uo="(?:"+Ji+"(?:D|LL|M|RE|S|T|VE))?",jo=Cf+"?",Qo="["+Mo+"]?",xf="(?:"+Jo+"(?:"+[Yo,ki,Ui].join("|")+")"+Qo+jo+")*",yf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ef="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$o=Qo+jo+xf,Sf="(?:"+[If,ki,Ui].join("|")+")"+$o,wf="(?:"+[Yo+xr+"?",xr,ki,Ui,mf].join("|")+")",Gf=RegExp(Ji,"g"),Rf=RegExp(xr,"g"),ji=RegExp(zi+"(?="+zi+")|"+wf+$o,"g"),Ff=RegExp([Gt+"?"+Zo+"+"+ko+"(?="+[Lo,Gt,"$"].join("|")+")",Af+"+"+Uo+"(?="+[Lo,Gt+zo,"$"].join("|")+")",Gt+"?"+zo+"+"+ko,Gt+"+"+Uo,Ef,yf,Do,Sf].join("|"),"g"),Bf=RegExp("["+Jo+Ar+_o+Mo+"]"),Tf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Of=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Pf=-1,Ee={};Ee[_i]=Ee[Vi]=Ee[Ni]=Ee[Wi]=Ee[Mi]=Ee[Xi]=Ee[Li]=Ee[Di]=Ee[Zi]=!0,Ee[we]=Ee[_e]=Ee[jt]=Ee[Me]=Ee[wt]=Ee[ln]=Ee[Pn]=Ee[H]=Ee[Ve]=Ee[cn]=Ee[_n]=Ee[Ye]=Ee[bn]=Ee[kn]=Ee[Ut]=!1;var ye={};ye[we]=ye[_e]=ye[jt]=ye[wt]=ye[Me]=ye[ln]=ye[_i]=ye[Vi]=ye[Ni]=ye[Wi]=ye[Mi]=ye[Ve]=ye[cn]=ye[_n]=ye[Ye]=ye[bn]=ye[kn]=ye[Ir]=ye[Xi]=ye[Li]=ye[Di]=ye[Zi]=!0,ye[Pn]=ye[H]=ye[Ut]=!1;var _f={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Vf={"&":"&","<":"<",">":">",'"':""","'":"'"},Nf={"&":"&","<":"<",">":">",""":'"',"'":"'"},Wf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Mf=parseFloat,Xf=parseInt,Ko=typeof si=="object"&&si&&si.Object===Object&&si,Lf=typeof self=="object"&&self&&self.Object===Object&&self,je=Ko||Lf||Function("return this")(),Qi=r&&!r.nodeType&&r,bt=Qi&&!0&&i&&!i.nodeType&&i,qo=bt&&bt.exports===Qi,$i=qo&&Ko.process,En=(function(){try{var C=bt&&bt.require&&bt.require("util").types;return C||$i&&$i.binding&&$i.binding("util")}catch{}})(),ea=En&&En.isArrayBuffer,na=En&&En.isDate,ta=En&&En.isMap,ra=En&&En.isRegExp,ia=En&&En.isSet,ua=En&&En.isTypedArray;function vn(C,R,y){switch(y.length){case 0:return C.call(R);case 1:return C.call(R,y[0]);case 2:return C.call(R,y[0],y[1]);case 3:return C.call(R,y[0],y[1],y[2])}return C.apply(R,y)}function Df(C,R,y,Z){for(var q=-1,le=C==null?0:C.length;++q<le;){var Je=C[q];R(Z,Je,y(Je),C)}return Z}function Sn(C,R){for(var y=-1,Z=C==null?0:C.length;++y<Z&&R(C[y],y,C)!==!1;);return C}function Zf(C,R){for(var y=C==null?0:C.length;y--&&R(C[y],y,C)!==!1;);return C}function oa(C,R){for(var y=-1,Z=C==null?0:C.length;++y<Z;)if(!R(C[y],y,C))return!1;return!0}function ot(C,R){for(var y=-1,Z=C==null?0:C.length,q=0,le=[];++y<Z;){var Je=C[y];R(Je,y,C)&&(le[q++]=Je)}return le}function yr(C,R){var y=C==null?0:C.length;return!!y&&Rt(C,R,0)>-1}function Ki(C,R,y){for(var Z=-1,q=C==null?0:C.length;++Z<q;)if(y(R,C[Z]))return!0;return!1}function Se(C,R){for(var y=-1,Z=C==null?0:C.length,q=Array(Z);++y<Z;)q[y]=R(C[y],y,C);return q}function at(C,R){for(var y=-1,Z=R.length,q=C.length;++y<Z;)C[q+y]=R[y];return C}function qi(C,R,y,Z){var q=-1,le=C==null?0:C.length;for(Z&&le&&(y=C[++q]);++q<le;)y=R(y,C[q],q,C);return y}function Hf(C,R,y,Z){var q=C==null?0:C.length;for(Z&&q&&(y=C[--q]);q--;)y=R(y,C[q],q,C);return y}function eu(C,R){for(var y=-1,Z=C==null?0:C.length;++y<Z;)if(R(C[y],y,C))return!0;return!1}var Yf=nu("length");function Jf(C){return C.split("")}function zf(C){return C.match(qc)||[]}function aa(C,R,y){var Z;return y(C,function(q,le,Je){if(R(q,le,Je))return Z=le,!1}),Z}function Er(C,R,y,Z){for(var q=C.length,le=y+(Z?1:-1);Z?le--:++le<q;)if(R(C[le],le,C))return le;return-1}function Rt(C,R,y){return R===R?id(C,R,y):Er(C,sa,y)}function kf(C,R,y,Z){for(var q=y-1,le=C.length;++q<le;)if(Z(C[q],R))return q;return-1}function sa(C){return C!==C}function la(C,R){var y=C==null?0:C.length;return y?ru(C,R)/y:De}function nu(C){return function(R){return R==null?u:R[C]}}function tu(C){return function(R){return C==null?u:C[R]}}function ca(C,R,y,Z,q){return q(C,function(le,Je,xe){y=Z?(Z=!1,le):R(y,le,Je,xe)}),y}function Uf(C,R){var y=C.length;for(C.sort(R);y--;)C[y]=C[y].value;return C}function ru(C,R){for(var y,Z=-1,q=C.length;++Z<q;){var le=R(C[Z]);le!==u&&(y=y===u?le:y+le)}return y}function iu(C,R){for(var y=-1,Z=Array(C);++y<C;)Z[y]=R(y);return Z}function jf(C,R){return Se(R,function(y){return[y,C[y]]})}function fa(C){return C&&C.slice(0,ha(C)+1).replace(Yi,"")}function mn(C){return function(R){return C(R)}}function uu(C,R){return Se(R,function(y){return C[y]})}function Qt(C,R){return C.has(R)}function da(C,R){for(var y=-1,Z=C.length;++y<Z&&Rt(R,C[y],0)>-1;);return y}function ga(C,R){for(var y=C.length;y--&&Rt(R,C[y],0)>-1;);return y}function Qf(C,R){for(var y=C.length,Z=0;y--;)C[y]===R&&++Z;return Z}var $f=tu(_f),Kf=tu(Vf);function qf(C){return"\\"+Wf[C]}function ed(C,R){return C==null?u:C[R]}function Ft(C){return Bf.test(C)}function nd(C){return Tf.test(C)}function td(C){for(var R,y=[];!(R=C.next()).done;)y.push(R.value);return y}function ou(C){var R=-1,y=Array(C.size);return C.forEach(function(Z,q){y[++R]=[q,Z]}),y}function pa(C,R){return function(y){return C(R(y))}}function st(C,R){for(var y=-1,Z=C.length,q=0,le=[];++y<Z;){var Je=C[y];(Je===R||Je===m)&&(C[y]=m,le[q++]=y)}return le}function Sr(C){var R=-1,y=Array(C.size);return C.forEach(function(Z){y[++R]=Z}),y}function rd(C){var R=-1,y=Array(C.size);return C.forEach(function(Z){y[++R]=[Z,Z]}),y}function id(C,R,y){for(var Z=y-1,q=C.length;++Z<q;)if(C[Z]===R)return Z;return-1}function ud(C,R,y){for(var Z=y+1;Z--;)if(C[Z]===R)return Z;return Z}function Bt(C){return Ft(C)?ad(C):Yf(C)}function Vn(C){return Ft(C)?sd(C):Jf(C)}function ha(C){for(var R=C.length;R--&&jc.test(C.charAt(R)););return R}var od=tu(Nf);function ad(C){for(var R=ji.lastIndex=0;ji.test(C);)++R;return R}function sd(C){return C.match(ji)||[]}function ld(C){return C.match(Ff)||[]}var cd=(function C(R){R=R==null?je:Tt.defaults(je.Object(),R,Tt.pick(je,Of));var y=R.Array,Z=R.Date,q=R.Error,le=R.Function,Je=R.Math,xe=R.Object,au=R.RegExp,fd=R.String,wn=R.TypeError,wr=y.prototype,dd=le.prototype,Ot=xe.prototype,Gr=R["__core-js_shared__"],Rr=dd.toString,be=Ot.hasOwnProperty,gd=0,ba=(function(){var e=/[^.]+$/.exec(Gr&&Gr.keys&&Gr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Fr=Ot.toString,pd=Rr.call(xe),hd=je._,bd=au("^"+Rr.call(be).replace(Hi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Br=qo?R.Buffer:u,lt=R.Symbol,Tr=R.Uint8Array,va=Br?Br.allocUnsafe:u,Or=pa(xe.getPrototypeOf,xe),ma=xe.create,Ia=Ot.propertyIsEnumerable,Pr=wr.splice,Ca=lt?lt.isConcatSpreadable:u,$t=lt?lt.iterator:u,vt=lt?lt.toStringTag:u,_r=(function(){try{var e=xt(xe,"defineProperty");return e({},"",{}),e}catch{}})(),vd=R.clearTimeout!==je.clearTimeout&&R.clearTimeout,md=Z&&Z.now!==je.Date.now&&Z.now,Id=R.setTimeout!==je.setTimeout&&R.setTimeout,Vr=Je.ceil,Nr=Je.floor,su=xe.getOwnPropertySymbols,Cd=Br?Br.isBuffer:u,Aa=R.isFinite,Ad=wr.join,xd=pa(xe.keys,xe),ze=Je.max,qe=Je.min,yd=Z.now,Ed=R.parseInt,xa=Je.random,Sd=wr.reverse,lu=xt(R,"DataView"),Kt=xt(R,"Map"),cu=xt(R,"Promise"),Pt=xt(R,"Set"),qt=xt(R,"WeakMap"),er=xt(xe,"create"),Wr=qt&&new qt,_t={},wd=yt(lu),Gd=yt(Kt),Rd=yt(cu),Fd=yt(Pt),Bd=yt(qt),Mr=lt?lt.prototype:u,nr=Mr?Mr.valueOf:u,ya=Mr?Mr.toString:u;function f(e){if(Be(e)&&!ee(e)&&!(e instanceof ae)){if(e instanceof Gn)return e;if(be.call(e,"__wrapped__"))return Es(e)}return new Gn(e)}var Vt=(function(){function e(){}return function(n){if(!Ge(n))return{};if(ma)return ma(n);e.prototype=n;var t=new e;return e.prototype=u,t}})();function Xr(){}function Gn(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=u}f.templateSettings={escape:Hc,evaluate:Yc,interpolate:Oo,variable:"",imports:{_:f}},f.prototype=Xr.prototype,f.prototype.constructor=f,Gn.prototype=Vt(Xr.prototype),Gn.prototype.constructor=Gn;function ae(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ze,this.__views__=[]}function Td(){var e=new ae(this.__wrapped__);return e.__actions__=fn(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=fn(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=fn(this.__views__),e}function Od(){if(this.__filtered__){var e=new ae(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Pd(){var e=this.__wrapped__.value(),n=this.__dir__,t=ee(e),a=n<0,l=t?e.length:0,p=Jg(0,l,this.__views__),v=p.start,I=p.end,x=I-v,O=a?I:v-1,P=this.__iteratees__,V=P.length,L=0,Y=qe(x,this.__takeCount__);if(!t||!a&&l==x&&Y==x)return ka(e,this.__actions__);var Q=[];e:for(;x--&&L<Y;){O+=n;for(var re=-1,$=e[O];++re<V;){var oe=P[re],se=oe.iteratee,An=oe.type,on=se($);if(An==me)$=on;else if(!on){if(An==Pe)continue e;break e}}Q[L++]=$}return Q}ae.prototype=Vt(Xr.prototype),ae.prototype.constructor=ae;function mt(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}function _d(){this.__data__=er?er(null):{},this.size=0}function Vd(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function Nd(e){var n=this.__data__;if(er){var t=n[e];return t===g?u:t}return be.call(n,e)?n[e]:u}function Wd(e){var n=this.__data__;return er?n[e]!==u:be.call(n,e)}function Md(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=er&&n===u?g:n,this}mt.prototype.clear=_d,mt.prototype.delete=Vd,mt.prototype.get=Nd,mt.prototype.has=Wd,mt.prototype.set=Md;function Un(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}function Xd(){this.__data__=[],this.size=0}function Ld(e){var n=this.__data__,t=Lr(n,e);if(t<0)return!1;var a=n.length-1;return t==a?n.pop():Pr.call(n,t,1),--this.size,!0}function Dd(e){var n=this.__data__,t=Lr(n,e);return t<0?u:n[t][1]}function Zd(e){return Lr(this.__data__,e)>-1}function Hd(e,n){var t=this.__data__,a=Lr(t,e);return a<0?(++this.size,t.push([e,n])):t[a][1]=n,this}Un.prototype.clear=Xd,Un.prototype.delete=Ld,Un.prototype.get=Dd,Un.prototype.has=Zd,Un.prototype.set=Hd;function jn(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var a=e[n];this.set(a[0],a[1])}}function Yd(){this.size=0,this.__data__={hash:new mt,map:new(Kt||Un),string:new mt}}function Jd(e){var n=Kr(this,e).delete(e);return this.size-=n?1:0,n}function zd(e){return Kr(this,e).get(e)}function kd(e){return Kr(this,e).has(e)}function Ud(e,n){var t=Kr(this,e),a=t.size;return t.set(e,n),this.size+=t.size==a?0:1,this}jn.prototype.clear=Yd,jn.prototype.delete=Jd,jn.prototype.get=zd,jn.prototype.has=kd,jn.prototype.set=Ud;function It(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new jn;++n<t;)this.add(e[n])}function jd(e){return this.__data__.set(e,g),this}function Qd(e){return this.__data__.has(e)}It.prototype.add=It.prototype.push=jd,It.prototype.has=Qd;function Nn(e){var n=this.__data__=new Un(e);this.size=n.size}function $d(){this.__data__=new Un,this.size=0}function Kd(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}function qd(e){return this.__data__.get(e)}function eg(e){return this.__data__.has(e)}function ng(e,n){var t=this.__data__;if(t instanceof Un){var a=t.__data__;if(!Kt||a.length<o-1)return a.push([e,n]),this.size=++t.size,this;t=this.__data__=new jn(a)}return t.set(e,n),this.size=t.size,this}Nn.prototype.clear=$d,Nn.prototype.delete=Kd,Nn.prototype.get=qd,Nn.prototype.has=eg,Nn.prototype.set=ng;function Ea(e,n){var t=ee(e),a=!t&&Et(e),l=!t&&!a&&pt(e),p=!t&&!a&&!l&&Xt(e),v=t||a||l||p,I=v?iu(e.length,fd):[],x=I.length;for(var O in e)(n||be.call(e,O))&&!(v&&(O=="length"||l&&(O=="offset"||O=="parent")||p&&(O=="buffer"||O=="byteLength"||O=="byteOffset")||qn(O,x)))&&I.push(O);return I}function Sa(e){var n=e.length;return n?e[Au(0,n-1)]:u}function tg(e,n){return qr(fn(e),Ct(n,0,e.length))}function rg(e){return qr(fn(e))}function fu(e,n,t){(t!==u&&!Wn(e[n],t)||t===u&&!(n in e))&&Qn(e,n,t)}function tr(e,n,t){var a=e[n];(!(be.call(e,n)&&Wn(a,t))||t===u&&!(n in e))&&Qn(e,n,t)}function Lr(e,n){for(var t=e.length;t--;)if(Wn(e[t][0],n))return t;return-1}function ig(e,n,t,a){return ct(e,function(l,p,v){n(a,l,t(l),v)}),a}function wa(e,n){return e&&Zn(n,ke(n),e)}function ug(e,n){return e&&Zn(n,gn(n),e)}function Qn(e,n,t){n=="__proto__"&&_r?_r(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}function du(e,n){for(var t=-1,a=n.length,l=y(a),p=e==null;++t<a;)l[t]=p?u:zu(e,n[t]);return l}function Ct(e,n,t){return e===e&&(t!==u&&(e=e<=t?e:t),n!==u&&(e=e>=n?e:n)),e}function Rn(e,n,t,a,l,p){var v,I=n&A,x=n&B,O=n&E;if(t&&(v=l?t(e,a,l,p):t(e)),v!==u)return v;if(!Ge(e))return e;var P=ee(e);if(P){if(v=kg(e),!I)return fn(e,v)}else{var V=en(e),L=V==H||V==Ln;if(pt(e))return Qa(e,I);if(V==_n||V==we||L&&!l){if(v=x||L?{}:hs(e),!I)return x?Ng(e,ug(v,e)):Vg(e,wa(v,e))}else{if(!ye[V])return l?e:{};v=Ug(e,V,I)}}p||(p=new Nn);var Y=p.get(e);if(Y)return Y;p.set(e,v),Ys(e)?e.forEach(function($){v.add(Rn($,n,t,$,e,p))}):Zs(e)&&e.forEach(function($,oe){v.set(oe,Rn($,n,t,oe,e,p))});var Q=O?x?Ou:Tu:x?gn:ke,re=P?u:Q(e);return Sn(re||e,function($,oe){re&&(oe=$,$=e[oe]),tr(v,oe,Rn($,n,t,oe,e,p))}),v}function og(e){var n=ke(e);return function(t){return Ga(t,e,n)}}function Ga(e,n,t){var a=t.length;if(e==null)return!a;for(e=xe(e);a--;){var l=t[a],p=n[l],v=e[l];if(v===u&&!(l in e)||!p(v))return!1}return!0}function Ra(e,n,t){if(typeof e!="function")throw new wn(d);return lr(function(){e.apply(u,t)},n)}function rr(e,n,t,a){var l=-1,p=yr,v=!0,I=e.length,x=[],O=n.length;if(!I)return x;t&&(n=Se(n,mn(t))),a?(p=Ki,v=!1):n.length>=o&&(p=Qt,v=!1,n=new It(n));e:for(;++l<I;){var P=e[l],V=t==null?P:t(P);if(P=a||P!==0?P:0,v&&V===V){for(var L=O;L--;)if(n[L]===V)continue e;x.push(P)}else p(n,V,a)||x.push(P)}return x}var ct=ns(Dn),Fa=ns(pu,!0);function ag(e,n){var t=!0;return ct(e,function(a,l,p){return t=!!n(a,l,p),t}),t}function Dr(e,n,t){for(var a=-1,l=e.length;++a<l;){var p=e[a],v=n(p);if(v!=null&&(I===u?v===v&&!Cn(v):t(v,I)))var I=v,x=p}return x}function sg(e,n,t,a){var l=e.length;for(t=ne(t),t<0&&(t=-t>l?0:l+t),a=a===u||a>l?l:ne(a),a<0&&(a+=l),a=t>a?0:zs(a);t<a;)e[t++]=n;return e}function Ba(e,n){var t=[];return ct(e,function(a,l,p){n(a,l,p)&&t.push(a)}),t}function Qe(e,n,t,a,l){var p=-1,v=e.length;for(t||(t=Qg),l||(l=[]);++p<v;){var I=e[p];n>0&&t(I)?n>1?Qe(I,n-1,t,a,l):at(l,I):a||(l[l.length]=I)}return l}var gu=ts(),Ta=ts(!0);function Dn(e,n){return e&&gu(e,n,ke)}function pu(e,n){return e&&Ta(e,n,ke)}function Zr(e,n){return ot(n,function(t){return et(e[t])})}function At(e,n){n=dt(n,e);for(var t=0,a=n.length;e!=null&&t<a;)e=e[Hn(n[t++])];return t&&t==a?e:u}function Oa(e,n,t){var a=n(e);return ee(e)?a:at(a,t(e))}function rn(e){return e==null?e===u?Nc:Pi:vt&&vt in xe(e)?Yg(e):rp(e)}function hu(e,n){return e>n}function lg(e,n){return e!=null&&be.call(e,n)}function cg(e,n){return e!=null&&n in xe(e)}function fg(e,n,t){return e>=qe(n,t)&&e<ze(n,t)}function bu(e,n,t){for(var a=t?Ki:yr,l=e[0].length,p=e.length,v=p,I=y(p),x=1/0,O=[];v--;){var P=e[v];v&&n&&(P=Se(P,mn(n))),x=qe(P.length,x),I[v]=!t&&(n||l>=120&&P.length>=120)?new It(v&&P):u}P=e[0];var V=-1,L=I[0];e:for(;++V<l&&O.length<x;){var Y=P[V],Q=n?n(Y):Y;if(Y=t||Y!==0?Y:0,!(L?Qt(L,Q):a(O,Q,t))){for(v=p;--v;){var re=I[v];if(!(re?Qt(re,Q):a(e[v],Q,t)))continue e}L&&L.push(Q),O.push(Y)}}return O}function dg(e,n,t,a){return Dn(e,function(l,p,v){n(a,t(l),p,v)}),a}function ir(e,n,t){n=dt(n,e),e=Is(e,n);var a=e==null?e:e[Hn(Bn(n))];return a==null?u:vn(a,e,t)}function Pa(e){return Be(e)&&rn(e)==we}function gg(e){return Be(e)&&rn(e)==jt}function pg(e){return Be(e)&&rn(e)==ln}function ur(e,n,t,a,l){return e===n?!0:e==null||n==null||!Be(e)&&!Be(n)?e!==e&&n!==n:hg(e,n,t,a,ur,l)}function hg(e,n,t,a,l,p){var v=ee(e),I=ee(n),x=v?_e:en(e),O=I?_e:en(n);x=x==we?_n:x,O=O==we?_n:O;var P=x==_n,V=O==_n,L=x==O;if(L&&pt(e)){if(!pt(n))return!1;v=!0,P=!1}if(L&&!P)return p||(p=new Nn),v||Xt(e)?ds(e,n,t,a,l,p):Zg(e,n,x,t,a,l,p);if(!(t&F)){var Y=P&&be.call(e,"__wrapped__"),Q=V&&be.call(n,"__wrapped__");if(Y||Q){var re=Y?e.value():e,$=Q?n.value():n;return p||(p=new Nn),l(re,$,t,a,p)}}return L?(p||(p=new Nn),Hg(e,n,t,a,l,p)):!1}function bg(e){return Be(e)&&en(e)==Ve}function vu(e,n,t,a){var l=t.length,p=l,v=!a;if(e==null)return!p;for(e=xe(e);l--;){var I=t[l];if(v&&I[2]?I[1]!==e[I[0]]:!(I[0]in e))return!1}for(;++l<p;){I=t[l];var x=I[0],O=e[x],P=I[1];if(v&&I[2]){if(O===u&&!(x in e))return!1}else{var V=new Nn;if(a)var L=a(O,P,x,e,n,V);if(!(L===u?ur(P,O,F|G,a,V):L))return!1}}return!0}function _a(e){if(!Ge(e)||Kg(e))return!1;var n=et(e)?bd:of;return n.test(yt(e))}function vg(e){return Be(e)&&rn(e)==Ye}function mg(e){return Be(e)&&en(e)==bn}function Ig(e){return Be(e)&&ui(e.length)&&!!Ee[rn(e)]}function Va(e){return typeof e=="function"?e:e==null?pn:typeof e=="object"?ee(e)?Ma(e[0],e[1]):Wa(e):rl(e)}function mu(e){if(!sr(e))return xd(e);var n=[];for(var t in xe(e))be.call(e,t)&&t!="constructor"&&n.push(t);return n}function Cg(e){if(!Ge(e))return tp(e);var n=sr(e),t=[];for(var a in e)a=="constructor"&&(n||!be.call(e,a))||t.push(a);return t}function Iu(e,n){return e<n}function Na(e,n){var t=-1,a=dn(e)?y(e.length):[];return ct(e,function(l,p,v){a[++t]=n(l,p,v)}),a}function Wa(e){var n=_u(e);return n.length==1&&n[0][2]?vs(n[0][0],n[0][1]):function(t){return t===e||vu(t,e,n)}}function Ma(e,n){return Nu(e)&&bs(n)?vs(Hn(e),n):function(t){var a=zu(t,e);return a===u&&a===n?ku(t,e):ur(n,a,F|G)}}function Hr(e,n,t,a,l){e!==n&&gu(n,function(p,v){if(l||(l=new Nn),Ge(p))Ag(e,n,v,t,Hr,a,l);else{var I=a?a(Mu(e,v),p,v+"",e,n,l):u;I===u&&(I=p),fu(e,v,I)}},gn)}function Ag(e,n,t,a,l,p,v){var I=Mu(e,t),x=Mu(n,t),O=v.get(x);if(O){fu(e,t,O);return}var P=p?p(I,x,t+"",e,n,v):u,V=P===u;if(V){var L=ee(x),Y=!L&&pt(x),Q=!L&&!Y&&Xt(x);P=x,L||Y||Q?ee(I)?P=I:Ne(I)?P=fn(I):Y?(V=!1,P=Qa(x,!0)):Q?(V=!1,P=$a(x,!0)):P=[]:cr(x)||Et(x)?(P=I,Et(I)?P=ks(I):(!Ge(I)||et(I))&&(P=hs(x))):V=!1}V&&(v.set(x,P),l(P,x,a,p,v),v.delete(x)),fu(e,t,P)}function Xa(e,n){var t=e.length;if(t)return n+=n<0?t:0,qn(n,t)?e[n]:u}function La(e,n,t){n.length?n=Se(n,function(p){return ee(p)?function(v){return At(v,p.length===1?p[0]:p)}:p}):n=[pn];var a=-1;n=Se(n,mn(j()));var l=Na(e,function(p,v,I){var x=Se(n,function(O){return O(p)});return{criteria:x,index:++a,value:p}});return Uf(l,function(p,v){return _g(p,v,t)})}function xg(e,n){return Da(e,n,function(t,a){return ku(e,a)})}function Da(e,n,t){for(var a=-1,l=n.length,p={};++a<l;){var v=n[a],I=At(e,v);t(I,v)&&or(p,dt(v,e),I)}return p}function yg(e){return function(n){return At(n,e)}}function Cu(e,n,t,a){var l=a?kf:Rt,p=-1,v=n.length,I=e;for(e===n&&(n=fn(n)),t&&(I=Se(e,mn(t)));++p<v;)for(var x=0,O=n[p],P=t?t(O):O;(x=l(I,P,x,a))>-1;)I!==e&&Pr.call(I,x,1),Pr.call(e,x,1);return e}function Za(e,n){for(var t=e?n.length:0,a=t-1;t--;){var l=n[t];if(t==a||l!==p){var p=l;qn(l)?Pr.call(e,l,1):Eu(e,l)}}return e}function Au(e,n){return e+Nr(xa()*(n-e+1))}function Eg(e,n,t,a){for(var l=-1,p=ze(Vr((n-e)/(t||1)),0),v=y(p);p--;)v[a?p:++l]=e,e+=t;return v}function xu(e,n){var t="";if(!e||n<1||n>Ce)return t;do n%2&&(t+=e),n=Nr(n/2),n&&(e+=e);while(n);return t}function ie(e,n){return Xu(ms(e,n,pn),e+"")}function Sg(e){return Sa(Lt(e))}function wg(e,n){var t=Lt(e);return qr(t,Ct(n,0,t.length))}function or(e,n,t,a){if(!Ge(e))return e;n=dt(n,e);for(var l=-1,p=n.length,v=p-1,I=e;I!=null&&++l<p;){var x=Hn(n[l]),O=t;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(l!=v){var P=I[x];O=a?a(P,x,I):u,O===u&&(O=Ge(P)?P:qn(n[l+1])?[]:{})}tr(I,x,O),I=I[x]}return e}var Ha=Wr?function(e,n){return Wr.set(e,n),e}:pn,Gg=_r?function(e,n){return _r(e,"toString",{configurable:!0,enumerable:!1,value:ju(n),writable:!0})}:pn;function Rg(e){return qr(Lt(e))}function Fn(e,n,t){var a=-1,l=e.length;n<0&&(n=-n>l?0:l+n),t=t>l?l:t,t<0&&(t+=l),l=n>t?0:t-n>>>0,n>>>=0;for(var p=y(l);++a<l;)p[a]=e[a+n];return p}function Fg(e,n){var t;return ct(e,function(a,l,p){return t=n(a,l,p),!t}),!!t}function Yr(e,n,t){var a=0,l=e==null?a:e.length;if(typeof n=="number"&&n===n&&l<=He){for(;a<l;){var p=a+l>>>1,v=e[p];v!==null&&!Cn(v)&&(t?v<=n:v<n)?a=p+1:l=p}return l}return yu(e,n,pn,t)}function yu(e,n,t,a){var l=0,p=e==null?0:e.length;if(p===0)return 0;n=t(n);for(var v=n!==n,I=n===null,x=Cn(n),O=n===u;l<p;){var P=Nr((l+p)/2),V=t(e[P]),L=V!==u,Y=V===null,Q=V===V,re=Cn(V);if(v)var $=a||Q;else O?$=Q&&(a||L):I?$=Q&&L&&(a||!Y):x?$=Q&&L&&!Y&&(a||!re):Y||re?$=!1:$=a?V<=n:V<n;$?l=P+1:p=P}return qe(p,Ae)}function Ya(e,n){for(var t=-1,a=e.length,l=0,p=[];++t<a;){var v=e[t],I=n?n(v):v;if(!t||!Wn(I,x)){var x=I;p[l++]=v===0?0:v}}return p}function Ja(e){return typeof e=="number"?e:Cn(e)?De:+e}function In(e){if(typeof e=="string")return e;if(ee(e))return Se(e,In)+"";if(Cn(e))return ya?ya.call(e):"";var n=e+"";return n=="0"&&1/e==-Fe?"-0":n}function ft(e,n,t){var a=-1,l=yr,p=e.length,v=!0,I=[],x=I;if(t)v=!1,l=Ki;else if(p>=o){var O=n?null:Lg(e);if(O)return Sr(O);v=!1,l=Qt,x=new It}else x=n?[]:I;e:for(;++a<p;){var P=e[a],V=n?n(P):P;if(P=t||P!==0?P:0,v&&V===V){for(var L=x.length;L--;)if(x[L]===V)continue e;n&&x.push(V),I.push(P)}else l(x,V,t)||(x!==I&&x.push(V),I.push(P))}return I}function Eu(e,n){return n=dt(n,e),e=Is(e,n),e==null||delete e[Hn(Bn(n))]}function za(e,n,t,a){return or(e,n,t(At(e,n)),a)}function Jr(e,n,t,a){for(var l=e.length,p=a?l:-1;(a?p--:++p<l)&&n(e[p],p,e););return t?Fn(e,a?0:p,a?p+1:l):Fn(e,a?p+1:0,a?l:p)}function ka(e,n){var t=e;return t instanceof ae&&(t=t.value()),qi(n,function(a,l){return l.func.apply(l.thisArg,at([a],l.args))},t)}function Su(e,n,t){var a=e.length;if(a<2)return a?ft(e[0]):[];for(var l=-1,p=y(a);++l<a;)for(var v=e[l],I=-1;++I<a;)I!=l&&(p[l]=rr(p[l]||v,e[I],n,t));return ft(Qe(p,1),n,t)}function Ua(e,n,t){for(var a=-1,l=e.length,p=n.length,v={};++a<l;){var I=a<p?n[a]:u;t(v,e[a],I)}return v}function wu(e){return Ne(e)?e:[]}function Gu(e){return typeof e=="function"?e:pn}function dt(e,n){return ee(e)?e:Nu(e,n)?[e]:ys(de(e))}var Bg=ie;function gt(e,n,t){var a=e.length;return t=t===u?a:t,!n&&t>=a?e:Fn(e,n,t)}var ja=vd||function(e){return je.clearTimeout(e)};function Qa(e,n){if(n)return e.slice();var t=e.length,a=va?va(t):new e.constructor(t);return e.copy(a),a}function Ru(e){var n=new e.constructor(e.byteLength);return new Tr(n).set(new Tr(e)),n}function Tg(e,n){var t=n?Ru(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}function Og(e){var n=new e.constructor(e.source,Po.exec(e));return n.lastIndex=e.lastIndex,n}function Pg(e){return nr?xe(nr.call(e)):{}}function $a(e,n){var t=n?Ru(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function Ka(e,n){if(e!==n){var t=e!==u,a=e===null,l=e===e,p=Cn(e),v=n!==u,I=n===null,x=n===n,O=Cn(n);if(!I&&!O&&!p&&e>n||p&&v&&x&&!I&&!O||a&&v&&x||!t&&x||!l)return 1;if(!a&&!p&&!O&&e<n||O&&t&&l&&!a&&!p||I&&t&&l||!v&&l||!x)return-1}return 0}function _g(e,n,t){for(var a=-1,l=e.criteria,p=n.criteria,v=l.length,I=t.length;++a<v;){var x=Ka(l[a],p[a]);if(x){if(a>=I)return x;var O=t[a];return x*(O=="desc"?-1:1)}}return e.index-n.index}function qa(e,n,t,a){for(var l=-1,p=e.length,v=t.length,I=-1,x=n.length,O=ze(p-v,0),P=y(x+O),V=!a;++I<x;)P[I]=n[I];for(;++l<v;)(V||l<p)&&(P[t[l]]=e[l]);for(;O--;)P[I++]=e[l++];return P}function es(e,n,t,a){for(var l=-1,p=e.length,v=-1,I=t.length,x=-1,O=n.length,P=ze(p-I,0),V=y(P+O),L=!a;++l<P;)V[l]=e[l];for(var Y=l;++x<O;)V[Y+x]=n[x];for(;++v<I;)(L||l<p)&&(V[Y+t[v]]=e[l++]);return V}function fn(e,n){var t=-1,a=e.length;for(n||(n=y(a));++t<a;)n[t]=e[t];return n}function Zn(e,n,t,a){var l=!t;t||(t={});for(var p=-1,v=n.length;++p<v;){var I=n[p],x=a?a(t[I],e[I],I,t,e):u;x===u&&(x=e[I]),l?Qn(t,I,x):tr(t,I,x)}return t}function Vg(e,n){return Zn(e,Vu(e),n)}function Ng(e,n){return Zn(e,gs(e),n)}function zr(e,n){return function(t,a){var l=ee(t)?Df:ig,p=n?n():{};return l(t,e,j(a,2),p)}}function Nt(e){return ie(function(n,t){var a=-1,l=t.length,p=l>1?t[l-1]:u,v=l>2?t[2]:u;for(p=e.length>3&&typeof p=="function"?(l--,p):u,v&&un(t[0],t[1],v)&&(p=l<3?u:p,l=1),n=xe(n);++a<l;){var I=t[a];I&&e(n,I,a,p)}return n})}function ns(e,n){return function(t,a){if(t==null)return t;if(!dn(t))return e(t,a);for(var l=t.length,p=n?l:-1,v=xe(t);(n?p--:++p<l)&&a(v[p],p,v)!==!1;);return t}}function ts(e){return function(n,t,a){for(var l=-1,p=xe(n),v=a(n),I=v.length;I--;){var x=v[e?I:++l];if(t(p[x],x,p)===!1)break}return n}}function Wg(e,n,t){var a=n&S,l=ar(e);function p(){var v=this&&this!==je&&this instanceof p?l:e;return v.apply(a?t:this,arguments)}return p}function rs(e){return function(n){n=de(n);var t=Ft(n)?Vn(n):u,a=t?t[0]:n.charAt(0),l=t?gt(t,1).join(""):n.slice(1);return a[e]()+l}}function Wt(e){return function(n){return qi(nl(el(n).replace(Gf,"")),e,"")}}function ar(e){return function(){var n=arguments;switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3]);case 5:return new e(n[0],n[1],n[2],n[3],n[4]);case 6:return new e(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new e(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var t=Vt(e.prototype),a=e.apply(t,n);return Ge(a)?a:t}}function Mg(e,n,t){var a=ar(e);function l(){for(var p=arguments.length,v=y(p),I=p,x=Mt(l);I--;)v[I]=arguments[I];var O=p<3&&v[0]!==x&&v[p-1]!==x?[]:st(v,x);if(p-=O.length,p<t)return ss(e,n,kr,l.placeholder,u,v,O,u,u,t-p);var P=this&&this!==je&&this instanceof l?a:e;return vn(P,this,v)}return l}function is(e){return function(n,t,a){var l=xe(n);if(!dn(n)){var p=j(t,3);n=ke(n),t=function(I){return p(l[I],I,l)}}var v=e(n,t,a);return v>-1?l[p?n[v]:v]:u}}function us(e){return Kn(function(n){var t=n.length,a=t,l=Gn.prototype.thru;for(e&&n.reverse();a--;){var p=n[a];if(typeof p!="function")throw new wn(d);if(l&&!v&&$r(p)=="wrapper")var v=new Gn([],!0)}for(a=v?a:t;++a<t;){p=n[a];var I=$r(p),x=I=="wrapper"?Pu(p):u;x&&Wu(x[0])&&x[1]==(M|N|w|J)&&!x[4].length&&x[9]==1?v=v[$r(x[0])].apply(v,x[3]):v=p.length==1&&Wu(p)?v[I]():v.thru(p)}return function(){var O=arguments,P=O[0];if(v&&O.length==1&&ee(P))return v.plant(P).value();for(var V=0,L=t?n[V].apply(this,O):P;++V<t;)L=n[V].call(this,L);return L}})}function kr(e,n,t,a,l,p,v,I,x,O){var P=n&M,V=n&S,L=n&T,Y=n&(N|W),Q=n&ue,re=L?u:ar(e);function $(){for(var oe=arguments.length,se=y(oe),An=oe;An--;)se[An]=arguments[An];if(Y)var on=Mt($),xn=Qf(se,on);if(a&&(se=qa(se,a,l,Y)),p&&(se=es(se,p,v,Y)),oe-=xn,Y&&oe<O){var We=st(se,on);return ss(e,n,kr,$.placeholder,t,se,We,I,x,O-oe)}var Mn=V?t:this,tt=L?Mn[e]:e;return oe=se.length,I?se=ip(se,I):Q&&oe>1&&se.reverse(),P&&x<oe&&(se.length=x),this&&this!==je&&this instanceof $&&(tt=re||ar(tt)),tt.apply(Mn,se)}return $}function os(e,n){return function(t,a){return dg(t,e,n(a),{})}}function Ur(e,n){return function(t,a){var l;if(t===u&&a===u)return n;if(t!==u&&(l=t),a!==u){if(l===u)return a;typeof t=="string"||typeof a=="string"?(t=In(t),a=In(a)):(t=Ja(t),a=Ja(a)),l=e(t,a)}return l}}function Fu(e){return Kn(function(n){return n=Se(n,mn(j())),ie(function(t){var a=this;return e(n,function(l){return vn(l,a,t)})})})}function jr(e,n){n=n===u?" ":In(n);var t=n.length;if(t<2)return t?xu(n,e):n;var a=xu(n,Vr(e/Bt(n)));return Ft(n)?gt(Vn(a),0,e).join(""):a.slice(0,e)}function Xg(e,n,t,a){var l=n&S,p=ar(e);function v(){for(var I=-1,x=arguments.length,O=-1,P=a.length,V=y(P+x),L=this&&this!==je&&this instanceof v?p:e;++O<P;)V[O]=a[O];for(;x--;)V[O++]=arguments[++I];return vn(L,l?t:this,V)}return v}function as(e){return function(n,t,a){return a&&typeof a!="number"&&un(n,t,a)&&(t=a=u),n=nt(n),t===u?(t=n,n=0):t=nt(t),a=a===u?n<t?1:-1:nt(a),Eg(n,t,a,e)}}function Qr(e){return function(n,t){return typeof n=="string"&&typeof t=="string"||(n=Tn(n),t=Tn(t)),e(n,t)}}function ss(e,n,t,a,l,p,v,I,x,O){var P=n&N,V=P?v:u,L=P?u:v,Y=P?p:u,Q=P?u:p;n|=P?w:D,n&=~(P?D:w),n&X||(n&=-4);var re=[e,n,l,Y,V,Q,L,I,x,O],$=t.apply(u,re);return Wu(e)&&Cs($,re),$.placeholder=a,As($,e,n)}function Bu(e){var n=Je[e];return function(t,a){if(t=Tn(t),a=a==null?0:qe(ne(a),292),a&&Aa(t)){var l=(de(t)+"e").split("e"),p=n(l[0]+"e"+(+l[1]+a));return l=(de(p)+"e").split("e"),+(l[0]+"e"+(+l[1]-a))}return n(t)}}var Lg=Pt&&1/Sr(new Pt([,-0]))[1]==Fe?function(e){return new Pt(e)}:Ku;function ls(e){return function(n){var t=en(n);return t==Ve?ou(n):t==bn?rd(n):jf(n,e(n))}}function $n(e,n,t,a,l,p,v,I){var x=n&T;if(!x&&typeof e!="function")throw new wn(d);var O=a?a.length:0;if(O||(n&=-97,a=l=u),v=v===u?v:ze(ne(v),0),I=I===u?I:ne(I),O-=l?l.length:0,n&D){var P=a,V=l;a=l=u}var L=x?u:Pu(e),Y=[e,n,t,a,l,P,V,p,v,I];if(L&&np(Y,L),e=Y[0],n=Y[1],t=Y[2],a=Y[3],l=Y[4],I=Y[9]=Y[9]===u?x?0:e.length:ze(Y[9]-O,0),!I&&n&(N|W)&&(n&=-25),!n||n==S)var Q=Wg(e,n,t);else n==N||n==W?Q=Mg(e,n,I):(n==w||n==(S|w))&&!l.length?Q=Xg(e,n,t,a):Q=kr.apply(u,Y);var re=L?Ha:Cs;return As(re(Q,Y),e,n)}function cs(e,n,t,a){return e===u||Wn(e,Ot[t])&&!be.call(a,t)?n:e}function fs(e,n,t,a,l,p){return Ge(e)&&Ge(n)&&(p.set(n,e),Hr(e,n,u,fs,p),p.delete(n)),e}function Dg(e){return cr(e)?u:e}function ds(e,n,t,a,l,p){var v=t&F,I=e.length,x=n.length;if(I!=x&&!(v&&x>I))return!1;var O=p.get(e),P=p.get(n);if(O&&P)return O==n&&P==e;var V=-1,L=!0,Y=t&G?new It:u;for(p.set(e,n),p.set(n,e);++V<I;){var Q=e[V],re=n[V];if(a)var $=v?a(re,Q,V,n,e,p):a(Q,re,V,e,n,p);if($!==u){if($)continue;L=!1;break}if(Y){if(!eu(n,function(oe,se){if(!Qt(Y,se)&&(Q===oe||l(Q,oe,t,a,p)))return Y.push(se)})){L=!1;break}}else if(!(Q===re||l(Q,re,t,a,p))){L=!1;break}}return p.delete(e),p.delete(n),L}function Zg(e,n,t,a,l,p,v){switch(t){case wt:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case jt:return!(e.byteLength!=n.byteLength||!p(new Tr(e),new Tr(n)));case Me:case ln:case cn:return Wn(+e,+n);case Pn:return e.name==n.name&&e.message==n.message;case Ye:case kn:return e==n+"";case Ve:var I=ou;case bn:var x=a&F;if(I||(I=Sr),e.size!=n.size&&!x)return!1;var O=v.get(e);if(O)return O==n;a|=G,v.set(e,n);var P=ds(I(e),I(n),a,l,p,v);return v.delete(e),P;case Ir:if(nr)return nr.call(e)==nr.call(n)}return!1}function Hg(e,n,t,a,l,p){var v=t&F,I=Tu(e),x=I.length,O=Tu(n),P=O.length;if(x!=P&&!v)return!1;for(var V=x;V--;){var L=I[V];if(!(v?L in n:be.call(n,L)))return!1}var Y=p.get(e),Q=p.get(n);if(Y&&Q)return Y==n&&Q==e;var re=!0;p.set(e,n),p.set(n,e);for(var $=v;++V<x;){L=I[V];var oe=e[L],se=n[L];if(a)var An=v?a(se,oe,L,n,e,p):a(oe,se,L,e,n,p);if(!(An===u?oe===se||l(oe,se,t,a,p):An)){re=!1;break}$||($=L=="constructor")}if(re&&!$){var on=e.constructor,xn=n.constructor;on!=xn&&"constructor"in e&&"constructor"in n&&!(typeof on=="function"&&on instanceof on&&typeof xn=="function"&&xn instanceof xn)&&(re=!1)}return p.delete(e),p.delete(n),re}function Kn(e){return Xu(ms(e,u,Gs),e+"")}function Tu(e){return Oa(e,ke,Vu)}function Ou(e){return Oa(e,gn,gs)}var Pu=Wr?function(e){return Wr.get(e)}:Ku;function $r(e){for(var n=e.name+"",t=_t[n],a=be.call(_t,n)?t.length:0;a--;){var l=t[a],p=l.func;if(p==null||p==e)return l.name}return n}function Mt(e){var n=be.call(f,"placeholder")?f:e;return n.placeholder}function j(){var e=f.iteratee||Qu;return e=e===Qu?Va:e,arguments.length?e(arguments[0],arguments[1]):e}function Kr(e,n){var t=e.__data__;return $g(n)?t[typeof n=="string"?"string":"hash"]:t.map}function _u(e){for(var n=ke(e),t=n.length;t--;){var a=n[t],l=e[a];n[t]=[a,l,bs(l)]}return n}function xt(e,n){var t=ed(e,n);return _a(t)?t:u}function Yg(e){var n=be.call(e,vt),t=e[vt];try{e[vt]=u;var a=!0}catch{}var l=Fr.call(e);return a&&(n?e[vt]=t:delete e[vt]),l}var Vu=su?function(e){return e==null?[]:(e=xe(e),ot(su(e),function(n){return Ia.call(e,n)}))}:qu,gs=su?function(e){for(var n=[];e;)at(n,Vu(e)),e=Or(e);return n}:qu,en=rn;(lu&&en(new lu(new ArrayBuffer(1)))!=wt||Kt&&en(new Kt)!=Ve||cu&&en(cu.resolve())!=it||Pt&&en(new Pt)!=bn||qt&&en(new qt)!=Ut)&&(en=function(e){var n=rn(e),t=n==_n?e.constructor:u,a=t?yt(t):"";if(a)switch(a){case wd:return wt;case Gd:return Ve;case Rd:return it;case Fd:return bn;case Bd:return Ut}return n});function Jg(e,n,t){for(var a=-1,l=t.length;++a<l;){var p=t[a],v=p.size;switch(p.type){case"drop":e+=v;break;case"dropRight":n-=v;break;case"take":n=qe(n,e+v);break;case"takeRight":e=ze(e,n-v);break}}return{start:e,end:n}}function zg(e){var n=e.match($c);return n?n[1].split(Kc):[]}function ps(e,n,t){n=dt(n,e);for(var a=-1,l=n.length,p=!1;++a<l;){var v=Hn(n[a]);if(!(p=e!=null&&t(e,v)))break;e=e[v]}return p||++a!=l?p:(l=e==null?0:e.length,!!l&&ui(l)&&qn(v,l)&&(ee(e)||Et(e)))}function kg(e){var n=e.length,t=new e.constructor(n);return n&&typeof e[0]=="string"&&be.call(e,"index")&&(t.index=e.index,t.input=e.input),t}function hs(e){return typeof e.constructor=="function"&&!sr(e)?Vt(Or(e)):{}}function Ug(e,n,t){var a=e.constructor;switch(n){case jt:return Ru(e);case Me:case ln:return new a(+e);case wt:return Tg(e,t);case _i:case Vi:case Ni:case Wi:case Mi:case Xi:case Li:case Di:case Zi:return $a(e,t);case Ve:return new a;case cn:case kn:return new a(e);case Ye:return Og(e);case bn:return new a;case Ir:return Pg(e)}}function jg(e,n){var t=n.length;if(!t)return e;var a=t-1;return n[a]=(t>1?"& ":"")+n[a],n=n.join(t>2?", ":" "),e.replace(Qc,`{
|
|
9
|
-
/* [wrapped with `+
|
|
10
|
-
`)}function Qg(e){return ee(e)||Et(e)||!!(Ca&&e&&e[Ca])}function qn(e,n){var t=typeof e;return n=n??Ce,!!n&&(t=="number"||t!="symbol"&&sf.test(e))&&e>-1&&e%1==0&&e<n}function un(e,n,t){if(!Ge(t))return!1;var a=typeof n;return(a=="number"?dn(t)&&qn(n,t.length):a=="string"&&n in t)?Wn(t[n],e):!1}function Nu(e,n){if(ee(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||Cn(e)?!0:zc.test(e)||!Jc.test(e)||n!=null&&e in xe(n)}function $g(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function Wu(e){var n=$r(e),t=f[n];if(typeof t!="function"||!(n in ae.prototype))return!1;if(e===t)return!0;var a=Pu(t);return!!a&&e===a[0]}function Kg(e){return!!ba&&ba in e}var qg=Gr?et:eo;function sr(e){var n=e&&e.constructor,t=typeof n=="function"&&n.prototype||Ot;return e===t}function bs(e){return e===e&&!Ge(e)}function vs(e,n){return function(t){return t==null?!1:t[e]===n&&(n!==u||e in xe(t))}}function ep(e){var n=ri(e,function(a){return t.size===h&&t.clear(),a}),t=n.cache;return n}function np(e,n){var t=e[1],a=n[1],l=t|a,p=l<(S|T|M),v=a==M&&t==N||a==M&&t==J&&e[7].length<=n[8]||a==(M|J)&&n[7].length<=n[8]&&t==N;if(!(p||v))return e;a&S&&(e[2]=n[2],l|=t&S?0:X);var I=n[3];if(I){var x=e[3];e[3]=x?qa(x,I,n[4]):I,e[4]=x?st(e[3],m):n[4]}return I=n[5],I&&(x=e[5],e[5]=x?es(x,I,n[6]):I,e[6]=x?st(e[5],m):n[6]),I=n[7],I&&(e[7]=I),a&M&&(e[8]=e[8]==null?n[8]:qe(e[8],n[8])),e[9]==null&&(e[9]=n[9]),e[0]=n[0],e[1]=l,e}function tp(e){var n=[];if(e!=null)for(var t in xe(e))n.push(t);return n}function rp(e){return Fr.call(e)}function ms(e,n,t){return n=ze(n===u?e.length-1:n,0),function(){for(var a=arguments,l=-1,p=ze(a.length-n,0),v=y(p);++l<p;)v[l]=a[n+l];l=-1;for(var I=y(n+1);++l<n;)I[l]=a[l];return I[n]=t(v),vn(e,this,I)}}function Is(e,n){return n.length<2?e:At(e,Fn(n,0,-1))}function ip(e,n){for(var t=e.length,a=qe(n.length,t),l=fn(e);a--;){var p=n[a];e[a]=qn(p,t)?l[p]:u}return e}function Mu(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}var Cs=xs(Ha),lr=Id||function(e,n){return je.setTimeout(e,n)},Xu=xs(Gg);function As(e,n,t){var a=n+"";return Xu(e,jg(a,up(zg(a),t)))}function xs(e){var n=0,t=0;return function(){var a=yd(),l=Oe-(a-t);if(t=a,l>0){if(++n>=he)return arguments[0]}else n=0;return e.apply(u,arguments)}}function qr(e,n){var t=-1,a=e.length,l=a-1;for(n=n===u?a:n;++t<n;){var p=Au(t,l),v=e[p];e[p]=e[t],e[t]=v}return e.length=n,e}var ys=ep(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(kc,function(t,a,l,p){n.push(l?p.replace(nf,"$1"):a||t)}),n});function Hn(e){if(typeof e=="string"||Cn(e))return e;var n=e+"";return n=="0"&&1/e==-Fe?"-0":n}function yt(e){if(e!=null){try{return Rr.call(e)}catch{}try{return e+""}catch{}}return""}function up(e,n){return Sn(Ke,function(t){var a="_."+t[0];n&t[1]&&!yr(e,a)&&e.push(a)}),e.sort()}function Es(e){if(e instanceof ae)return e.clone();var n=new Gn(e.__wrapped__,e.__chain__);return n.__actions__=fn(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function op(e,n,t){(t?un(e,n,t):n===u)?n=1:n=ze(ne(n),0);var a=e==null?0:e.length;if(!a||n<1)return[];for(var l=0,p=0,v=y(Vr(a/n));l<a;)v[p++]=Fn(e,l,l+=n);return v}function ap(e){for(var n=-1,t=e==null?0:e.length,a=0,l=[];++n<t;){var p=e[n];p&&(l[a++]=p)}return l}function sp(){var e=arguments.length;if(!e)return[];for(var n=y(e-1),t=arguments[0],a=e;a--;)n[a-1]=arguments[a];return at(ee(t)?fn(t):[t],Qe(n,1))}var lp=ie(function(e,n){return Ne(e)?rr(e,Qe(n,1,Ne,!0)):[]}),cp=ie(function(e,n){var t=Bn(n);return Ne(t)&&(t=u),Ne(e)?rr(e,Qe(n,1,Ne,!0),j(t,2)):[]}),fp=ie(function(e,n){var t=Bn(n);return Ne(t)&&(t=u),Ne(e)?rr(e,Qe(n,1,Ne,!0),u,t):[]});function dp(e,n,t){var a=e==null?0:e.length;return a?(n=t||n===u?1:ne(n),Fn(e,n<0?0:n,a)):[]}function gp(e,n,t){var a=e==null?0:e.length;return a?(n=t||n===u?1:ne(n),n=a-n,Fn(e,0,n<0?0:n)):[]}function pp(e,n){return e&&e.length?Jr(e,j(n,3),!0,!0):[]}function hp(e,n){return e&&e.length?Jr(e,j(n,3),!0):[]}function bp(e,n,t,a){var l=e==null?0:e.length;return l?(t&&typeof t!="number"&&un(e,n,t)&&(t=0,a=l),sg(e,n,t,a)):[]}function Ss(e,n,t){var a=e==null?0:e.length;if(!a)return-1;var l=t==null?0:ne(t);return l<0&&(l=ze(a+l,0)),Er(e,j(n,3),l)}function ws(e,n,t){var a=e==null?0:e.length;if(!a)return-1;var l=a-1;return t!==u&&(l=ne(t),l=t<0?ze(a+l,0):qe(l,a-1)),Er(e,j(n,3),l,!0)}function Gs(e){var n=e==null?0:e.length;return n?Qe(e,1):[]}function vp(e){var n=e==null?0:e.length;return n?Qe(e,Fe):[]}function mp(e,n){var t=e==null?0:e.length;return t?(n=n===u?1:ne(n),Qe(e,n)):[]}function Ip(e){for(var n=-1,t=e==null?0:e.length,a={};++n<t;){var l=e[n];a[l[0]]=l[1]}return a}function Rs(e){return e&&e.length?e[0]:u}function Cp(e,n,t){var a=e==null?0:e.length;if(!a)return-1;var l=t==null?0:ne(t);return l<0&&(l=ze(a+l,0)),Rt(e,n,l)}function Ap(e){var n=e==null?0:e.length;return n?Fn(e,0,-1):[]}var xp=ie(function(e){var n=Se(e,wu);return n.length&&n[0]===e[0]?bu(n):[]}),yp=ie(function(e){var n=Bn(e),t=Se(e,wu);return n===Bn(t)?n=u:t.pop(),t.length&&t[0]===e[0]?bu(t,j(n,2)):[]}),Ep=ie(function(e){var n=Bn(e),t=Se(e,wu);return n=typeof n=="function"?n:u,n&&t.pop(),t.length&&t[0]===e[0]?bu(t,u,n):[]});function Sp(e,n){return e==null?"":Ad.call(e,n)}function Bn(e){var n=e==null?0:e.length;return n?e[n-1]:u}function wp(e,n,t){var a=e==null?0:e.length;if(!a)return-1;var l=a;return t!==u&&(l=ne(t),l=l<0?ze(a+l,0):qe(l,a-1)),n===n?ud(e,n,l):Er(e,sa,l,!0)}function Gp(e,n){return e&&e.length?Xa(e,ne(n)):u}var Rp=ie(Fs);function Fs(e,n){return e&&e.length&&n&&n.length?Cu(e,n):e}function Fp(e,n,t){return e&&e.length&&n&&n.length?Cu(e,n,j(t,2)):e}function Bp(e,n,t){return e&&e.length&&n&&n.length?Cu(e,n,u,t):e}var Tp=Kn(function(e,n){var t=e==null?0:e.length,a=du(e,n);return Za(e,Se(n,function(l){return qn(l,t)?+l:l}).sort(Ka)),a});function Op(e,n){var t=[];if(!(e&&e.length))return t;var a=-1,l=[],p=e.length;for(n=j(n,3);++a<p;){var v=e[a];n(v,a,e)&&(t.push(v),l.push(a))}return Za(e,l),t}function Lu(e){return e==null?e:Sd.call(e)}function Pp(e,n,t){var a=e==null?0:e.length;return a?(t&&typeof t!="number"&&un(e,n,t)?(n=0,t=a):(n=n==null?0:ne(n),t=t===u?a:ne(t)),Fn(e,n,t)):[]}function _p(e,n){return Yr(e,n)}function Vp(e,n,t){return yu(e,n,j(t,2))}function Np(e,n){var t=e==null?0:e.length;if(t){var a=Yr(e,n);if(a<t&&Wn(e[a],n))return a}return-1}function Wp(e,n){return Yr(e,n,!0)}function Mp(e,n,t){return yu(e,n,j(t,2),!0)}function Xp(e,n){var t=e==null?0:e.length;if(t){var a=Yr(e,n,!0)-1;if(Wn(e[a],n))return a}return-1}function Lp(e){return e&&e.length?Ya(e):[]}function Dp(e,n){return e&&e.length?Ya(e,j(n,2)):[]}function Zp(e){var n=e==null?0:e.length;return n?Fn(e,1,n):[]}function Hp(e,n,t){return e&&e.length?(n=t||n===u?1:ne(n),Fn(e,0,n<0?0:n)):[]}function Yp(e,n,t){var a=e==null?0:e.length;return a?(n=t||n===u?1:ne(n),n=a-n,Fn(e,n<0?0:n,a)):[]}function Jp(e,n){return e&&e.length?Jr(e,j(n,3),!1,!0):[]}function zp(e,n){return e&&e.length?Jr(e,j(n,3)):[]}var kp=ie(function(e){return ft(Qe(e,1,Ne,!0))}),Up=ie(function(e){var n=Bn(e);return Ne(n)&&(n=u),ft(Qe(e,1,Ne,!0),j(n,2))}),jp=ie(function(e){var n=Bn(e);return n=typeof n=="function"?n:u,ft(Qe(e,1,Ne,!0),u,n)});function Qp(e){return e&&e.length?ft(e):[]}function $p(e,n){return e&&e.length?ft(e,j(n,2)):[]}function Kp(e,n){return n=typeof n=="function"?n:u,e&&e.length?ft(e,u,n):[]}function Du(e){if(!(e&&e.length))return[];var n=0;return e=ot(e,function(t){if(Ne(t))return n=ze(t.length,n),!0}),iu(n,function(t){return Se(e,nu(t))})}function Bs(e,n){if(!(e&&e.length))return[];var t=Du(e);return n==null?t:Se(t,function(a){return vn(n,u,a)})}var qp=ie(function(e,n){return Ne(e)?rr(e,n):[]}),eh=ie(function(e){return Su(ot(e,Ne))}),nh=ie(function(e){var n=Bn(e);return Ne(n)&&(n=u),Su(ot(e,Ne),j(n,2))}),th=ie(function(e){var n=Bn(e);return n=typeof n=="function"?n:u,Su(ot(e,Ne),u,n)}),rh=ie(Du);function ih(e,n){return Ua(e||[],n||[],tr)}function uh(e,n){return Ua(e||[],n||[],or)}var oh=ie(function(e){var n=e.length,t=n>1?e[n-1]:u;return t=typeof t=="function"?(e.pop(),t):u,Bs(e,t)});function Ts(e){var n=f(e);return n.__chain__=!0,n}function ah(e,n){return n(e),e}function ei(e,n){return n(e)}var sh=Kn(function(e){var n=e.length,t=n?e[0]:0,a=this.__wrapped__,l=function(p){return du(p,e)};return n>1||this.__actions__.length||!(a instanceof ae)||!qn(t)?this.thru(l):(a=a.slice(t,+t+(n?1:0)),a.__actions__.push({func:ei,args:[l],thisArg:u}),new Gn(a,this.__chain__).thru(function(p){return n&&!p.length&&p.push(u),p}))});function lh(){return Ts(this)}function ch(){return new Gn(this.value(),this.__chain__)}function fh(){this.__values__===u&&(this.__values__=Js(this.value()));var e=this.__index__>=this.__values__.length,n=e?u:this.__values__[this.__index__++];return{done:e,value:n}}function dh(){return this}function gh(e){for(var n,t=this;t instanceof Xr;){var a=Es(t);a.__index__=0,a.__values__=u,n?l.__wrapped__=a:n=a;var l=a;t=t.__wrapped__}return l.__wrapped__=e,n}function ph(){var e=this.__wrapped__;if(e instanceof ae){var n=e;return this.__actions__.length&&(n=new ae(this)),n=n.reverse(),n.__actions__.push({func:ei,args:[Lu],thisArg:u}),new Gn(n,this.__chain__)}return this.thru(Lu)}function hh(){return ka(this.__wrapped__,this.__actions__)}var bh=zr(function(e,n,t){be.call(e,t)?++e[t]:Qn(e,t,1)});function vh(e,n,t){var a=ee(e)?oa:ag;return t&&un(e,n,t)&&(n=u),a(e,j(n,3))}function mh(e,n){var t=ee(e)?ot:Ba;return t(e,j(n,3))}var Ih=is(Ss),Ch=is(ws);function Ah(e,n){return Qe(ni(e,n),1)}function xh(e,n){return Qe(ni(e,n),Fe)}function yh(e,n,t){return t=t===u?1:ne(t),Qe(ni(e,n),t)}function Os(e,n){var t=ee(e)?Sn:ct;return t(e,j(n,3))}function Ps(e,n){var t=ee(e)?Zf:Fa;return t(e,j(n,3))}var Eh=zr(function(e,n,t){be.call(e,t)?e[t].push(n):Qn(e,t,[n])});function Sh(e,n,t,a){e=dn(e)?e:Lt(e),t=t&&!a?ne(t):0;var l=e.length;return t<0&&(t=ze(l+t,0)),oi(e)?t<=l&&e.indexOf(n,t)>-1:!!l&&Rt(e,n,t)>-1}var wh=ie(function(e,n,t){var a=-1,l=typeof n=="function",p=dn(e)?y(e.length):[];return ct(e,function(v){p[++a]=l?vn(n,v,t):ir(v,n,t)}),p}),Gh=zr(function(e,n,t){Qn(e,t,n)});function ni(e,n){var t=ee(e)?Se:Na;return t(e,j(n,3))}function Rh(e,n,t,a){return e==null?[]:(ee(n)||(n=n==null?[]:[n]),t=a?u:t,ee(t)||(t=t==null?[]:[t]),La(e,n,t))}var Fh=zr(function(e,n,t){e[t?0:1].push(n)},function(){return[[],[]]});function Bh(e,n,t){var a=ee(e)?qi:ca,l=arguments.length<3;return a(e,j(n,4),t,l,ct)}function Th(e,n,t){var a=ee(e)?Hf:ca,l=arguments.length<3;return a(e,j(n,4),t,l,Fa)}function Oh(e,n){var t=ee(e)?ot:Ba;return t(e,ii(j(n,3)))}function Ph(e){var n=ee(e)?Sa:Sg;return n(e)}function _h(e,n,t){(t?un(e,n,t):n===u)?n=1:n=ne(n);var a=ee(e)?tg:wg;return a(e,n)}function Vh(e){var n=ee(e)?rg:Rg;return n(e)}function Nh(e){if(e==null)return 0;if(dn(e))return oi(e)?Bt(e):e.length;var n=en(e);return n==Ve||n==bn?e.size:mu(e).length}function Wh(e,n,t){var a=ee(e)?eu:Fg;return t&&un(e,n,t)&&(n=u),a(e,j(n,3))}var Mh=ie(function(e,n){if(e==null)return[];var t=n.length;return t>1&&un(e,n[0],n[1])?n=[]:t>2&&un(n[0],n[1],n[2])&&(n=[n[0]]),La(e,Qe(n,1),[])}),ti=md||function(){return je.Date.now()};function Xh(e,n){if(typeof n!="function")throw new wn(d);return e=ne(e),function(){if(--e<1)return n.apply(this,arguments)}}function _s(e,n,t){return n=t?u:n,n=e&&n==null?e.length:n,$n(e,M,u,u,u,u,n)}function Vs(e,n){var t;if(typeof n!="function")throw new wn(d);return e=ne(e),function(){return--e>0&&(t=n.apply(this,arguments)),e<=1&&(n=u),t}}var Zu=ie(function(e,n,t){var a=S;if(t.length){var l=st(t,Mt(Zu));a|=w}return $n(e,a,n,t,l)}),Ns=ie(function(e,n,t){var a=S|T;if(t.length){var l=st(t,Mt(Ns));a|=w}return $n(n,a,e,t,l)});function Ws(e,n,t){n=t?u:n;var a=$n(e,N,u,u,u,u,u,n);return a.placeholder=Ws.placeholder,a}function Ms(e,n,t){n=t?u:n;var a=$n(e,W,u,u,u,u,u,n);return a.placeholder=Ms.placeholder,a}function Xs(e,n,t){var a,l,p,v,I,x,O=0,P=!1,V=!1,L=!0;if(typeof e!="function")throw new wn(d);n=Tn(n)||0,Ge(t)&&(P=!!t.leading,V="maxWait"in t,p=V?ze(Tn(t.maxWait)||0,n):p,L="trailing"in t?!!t.trailing:L);function Y(We){var Mn=a,tt=l;return a=l=u,O=We,v=e.apply(tt,Mn),v}function Q(We){return O=We,I=lr(oe,n),P?Y(We):v}function re(We){var Mn=We-x,tt=We-O,il=n-Mn;return V?qe(il,p-tt):il}function $(We){var Mn=We-x,tt=We-O;return x===u||Mn>=n||Mn<0||V&&tt>=p}function oe(){var We=ti();if($(We))return se(We);I=lr(oe,re(We))}function se(We){return I=u,L&&a?Y(We):(a=l=u,v)}function An(){I!==u&&ja(I),O=0,a=x=l=I=u}function on(){return I===u?v:se(ti())}function xn(){var We=ti(),Mn=$(We);if(a=arguments,l=this,x=We,Mn){if(I===u)return Q(x);if(V)return ja(I),I=lr(oe,n),Y(x)}return I===u&&(I=lr(oe,n)),v}return xn.cancel=An,xn.flush=on,xn}var Lh=ie(function(e,n){return Ra(e,1,n)}),Dh=ie(function(e,n,t){return Ra(e,Tn(n)||0,t)});function Zh(e){return $n(e,ue)}function ri(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new wn(d);var t=function(){var a=arguments,l=n?n.apply(this,a):a[0],p=t.cache;if(p.has(l))return p.get(l);var v=e.apply(this,a);return t.cache=p.set(l,v)||p,v};return t.cache=new(ri.Cache||jn),t}ri.Cache=jn;function ii(e){if(typeof e!="function")throw new wn(d);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function Hh(e){return Vs(2,e)}var Yh=Bg(function(e,n){n=n.length==1&&ee(n[0])?Se(n[0],mn(j())):Se(Qe(n,1),mn(j()));var t=n.length;return ie(function(a){for(var l=-1,p=qe(a.length,t);++l<p;)a[l]=n[l].call(this,a[l]);return vn(e,this,a)})}),Hu=ie(function(e,n){var t=st(n,Mt(Hu));return $n(e,w,u,n,t)}),Ls=ie(function(e,n){var t=st(n,Mt(Ls));return $n(e,D,u,n,t)}),Jh=Kn(function(e,n){return $n(e,J,u,u,u,n)});function zh(e,n){if(typeof e!="function")throw new wn(d);return n=n===u?n:ne(n),ie(e,n)}function kh(e,n){if(typeof e!="function")throw new wn(d);return n=n==null?0:ze(ne(n),0),ie(function(t){var a=t[n],l=gt(t,0,n);return a&&at(l,a),vn(e,this,l)})}function Uh(e,n,t){var a=!0,l=!0;if(typeof e!="function")throw new wn(d);return Ge(t)&&(a="leading"in t?!!t.leading:a,l="trailing"in t?!!t.trailing:l),Xs(e,n,{leading:a,maxWait:n,trailing:l})}function jh(e){return _s(e,1)}function Qh(e,n){return Hu(Gu(n),e)}function $h(){if(!arguments.length)return[];var e=arguments[0];return ee(e)?e:[e]}function Kh(e){return Rn(e,E)}function qh(e,n){return n=typeof n=="function"?n:u,Rn(e,E,n)}function eb(e){return Rn(e,A|E)}function nb(e,n){return n=typeof n=="function"?n:u,Rn(e,A|E,n)}function tb(e,n){return n==null||Ga(e,n,ke(n))}function Wn(e,n){return e===n||e!==e&&n!==n}var rb=Qr(hu),ib=Qr(function(e,n){return e>=n}),Et=Pa((function(){return arguments})())?Pa:function(e){return Be(e)&&be.call(e,"callee")&&!Ia.call(e,"callee")},ee=y.isArray,ub=ea?mn(ea):gg;function dn(e){return e!=null&&ui(e.length)&&!et(e)}function Ne(e){return Be(e)&&dn(e)}function ob(e){return e===!0||e===!1||Be(e)&&rn(e)==Me}var pt=Cd||eo,ab=na?mn(na):pg;function sb(e){return Be(e)&&e.nodeType===1&&!cr(e)}function lb(e){if(e==null)return!0;if(dn(e)&&(ee(e)||typeof e=="string"||typeof e.splice=="function"||pt(e)||Xt(e)||Et(e)))return!e.length;var n=en(e);if(n==Ve||n==bn)return!e.size;if(sr(e))return!mu(e).length;for(var t in e)if(be.call(e,t))return!1;return!0}function cb(e,n){return ur(e,n)}function fb(e,n,t){t=typeof t=="function"?t:u;var a=t?t(e,n):u;return a===u?ur(e,n,u,t):!!a}function Yu(e){if(!Be(e))return!1;var n=rn(e);return n==Pn||n==ht||typeof e.message=="string"&&typeof e.name=="string"&&!cr(e)}function db(e){return typeof e=="number"&&Aa(e)}function et(e){if(!Ge(e))return!1;var n=rn(e);return n==H||n==Ln||n==sn||n==ut}function Ds(e){return typeof e=="number"&&e==ne(e)}function ui(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ce}function Ge(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function Be(e){return e!=null&&typeof e=="object"}var Zs=ta?mn(ta):bg;function gb(e,n){return e===n||vu(e,n,_u(n))}function pb(e,n,t){return t=typeof t=="function"?t:u,vu(e,n,_u(n),t)}function hb(e){return Hs(e)&&e!=+e}function bb(e){if(qg(e))throw new q(c);return _a(e)}function vb(e){return e===null}function mb(e){return e==null}function Hs(e){return typeof e=="number"||Be(e)&&rn(e)==cn}function cr(e){if(!Be(e)||rn(e)!=_n)return!1;var n=Or(e);if(n===null)return!0;var t=be.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&Rr.call(t)==pd}var Ju=ra?mn(ra):vg;function Ib(e){return Ds(e)&&e>=-Ce&&e<=Ce}var Ys=ia?mn(ia):mg;function oi(e){return typeof e=="string"||!ee(e)&&Be(e)&&rn(e)==kn}function Cn(e){return typeof e=="symbol"||Be(e)&&rn(e)==Ir}var Xt=ua?mn(ua):Ig;function Cb(e){return e===u}function Ab(e){return Be(e)&&en(e)==Ut}function xb(e){return Be(e)&&rn(e)==Wc}var yb=Qr(Iu),Eb=Qr(function(e,n){return e<=n});function Js(e){if(!e)return[];if(dn(e))return oi(e)?Vn(e):fn(e);if($t&&e[$t])return td(e[$t]());var n=en(e),t=n==Ve?ou:n==bn?Sr:Lt;return t(e)}function nt(e){if(!e)return e===0?e:0;if(e=Tn(e),e===Fe||e===-Fe){var n=e<0?-1:1;return n*an}return e===e?e:0}function ne(e){var n=nt(e),t=n%1;return n===n?t?n-t:n:0}function zs(e){return e?Ct(ne(e),0,Ze):0}function Tn(e){if(typeof e=="number")return e;if(Cn(e))return De;if(Ge(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Ge(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=fa(e);var t=uf.test(e);return t||af.test(e)?Xf(e.slice(2),t?2:8):rf.test(e)?De:+e}function ks(e){return Zn(e,gn(e))}function Sb(e){return e?Ct(ne(e),-Ce,Ce):e===0?e:0}function de(e){return e==null?"":In(e)}var wb=Nt(function(e,n){if(sr(n)||dn(n)){Zn(n,ke(n),e);return}for(var t in n)be.call(n,t)&&tr(e,t,n[t])}),Us=Nt(function(e,n){Zn(n,gn(n),e)}),ai=Nt(function(e,n,t,a){Zn(n,gn(n),e,a)}),Gb=Nt(function(e,n,t,a){Zn(n,ke(n),e,a)}),Rb=Kn(du);function Fb(e,n){var t=Vt(e);return n==null?t:wa(t,n)}var Bb=ie(function(e,n){e=xe(e);var t=-1,a=n.length,l=a>2?n[2]:u;for(l&&un(n[0],n[1],l)&&(a=1);++t<a;)for(var p=n[t],v=gn(p),I=-1,x=v.length;++I<x;){var O=v[I],P=e[O];(P===u||Wn(P,Ot[O])&&!be.call(e,O))&&(e[O]=p[O])}return e}),Tb=ie(function(e){return e.push(u,fs),vn(js,u,e)});function Ob(e,n){return aa(e,j(n,3),Dn)}function Pb(e,n){return aa(e,j(n,3),pu)}function _b(e,n){return e==null?e:gu(e,j(n,3),gn)}function Vb(e,n){return e==null?e:Ta(e,j(n,3),gn)}function Nb(e,n){return e&&Dn(e,j(n,3))}function Wb(e,n){return e&&pu(e,j(n,3))}function Mb(e){return e==null?[]:Zr(e,ke(e))}function Xb(e){return e==null?[]:Zr(e,gn(e))}function zu(e,n,t){var a=e==null?u:At(e,n);return a===u?t:a}function Lb(e,n){return e!=null&&ps(e,n,lg)}function ku(e,n){return e!=null&&ps(e,n,cg)}var Db=os(function(e,n,t){n!=null&&typeof n.toString!="function"&&(n=Fr.call(n)),e[n]=t},ju(pn)),Zb=os(function(e,n,t){n!=null&&typeof n.toString!="function"&&(n=Fr.call(n)),be.call(e,n)?e[n].push(t):e[n]=[t]},j),Hb=ie(ir);function ke(e){return dn(e)?Ea(e):mu(e)}function gn(e){return dn(e)?Ea(e,!0):Cg(e)}function Yb(e,n){var t={};return n=j(n,3),Dn(e,function(a,l,p){Qn(t,n(a,l,p),a)}),t}function Jb(e,n){var t={};return n=j(n,3),Dn(e,function(a,l,p){Qn(t,l,n(a,l,p))}),t}var zb=Nt(function(e,n,t){Hr(e,n,t)}),js=Nt(function(e,n,t,a){Hr(e,n,t,a)}),kb=Kn(function(e,n){var t={};if(e==null)return t;var a=!1;n=Se(n,function(p){return p=dt(p,e),a||(a=p.length>1),p}),Zn(e,Ou(e),t),a&&(t=Rn(t,A|B|E,Dg));for(var l=n.length;l--;)Eu(t,n[l]);return t});function Ub(e,n){return Qs(e,ii(j(n)))}var jb=Kn(function(e,n){return e==null?{}:xg(e,n)});function Qs(e,n){if(e==null)return{};var t=Se(Ou(e),function(a){return[a]});return n=j(n),Da(e,t,function(a,l){return n(a,l[0])})}function Qb(e,n,t){n=dt(n,e);var a=-1,l=n.length;for(l||(l=1,e=u);++a<l;){var p=e==null?u:e[Hn(n[a])];p===u&&(a=l,p=t),e=et(p)?p.call(e):p}return e}function $b(e,n,t){return e==null?e:or(e,n,t)}function Kb(e,n,t,a){return a=typeof a=="function"?a:u,e==null?e:or(e,n,t,a)}var $s=ls(ke),Ks=ls(gn);function qb(e,n,t){var a=ee(e),l=a||pt(e)||Xt(e);if(n=j(n,4),t==null){var p=e&&e.constructor;l?t=a?new p:[]:Ge(e)?t=et(p)?Vt(Or(e)):{}:t={}}return(l?Sn:Dn)(e,function(v,I,x){return n(t,v,I,x)}),t}function e0(e,n){return e==null?!0:Eu(e,n)}function n0(e,n,t){return e==null?e:za(e,n,Gu(t))}function t0(e,n,t,a){return a=typeof a=="function"?a:u,e==null?e:za(e,n,Gu(t),a)}function Lt(e){return e==null?[]:uu(e,ke(e))}function r0(e){return e==null?[]:uu(e,gn(e))}function i0(e,n,t){return t===u&&(t=n,n=u),t!==u&&(t=Tn(t),t=t===t?t:0),n!==u&&(n=Tn(n),n=n===n?n:0),Ct(Tn(e),n,t)}function u0(e,n,t){return n=nt(n),t===u?(t=n,n=0):t=nt(t),e=Tn(e),fg(e,n,t)}function o0(e,n,t){if(t&&typeof t!="boolean"&&un(e,n,t)&&(n=t=u),t===u&&(typeof n=="boolean"?(t=n,n=u):typeof e=="boolean"&&(t=e,e=u)),e===u&&n===u?(e=0,n=1):(e=nt(e),n===u?(n=e,e=0):n=nt(n)),e>n){var a=e;e=n,n=a}if(t||e%1||n%1){var l=xa();return qe(e+l*(n-e+Mf("1e-"+((l+"").length-1))),n)}return Au(e,n)}var a0=Wt(function(e,n,t){return n=n.toLowerCase(),e+(t?qs(n):n)});function qs(e){return Uu(de(e).toLowerCase())}function el(e){return e=de(e),e&&e.replace(lf,$f).replace(Rf,"")}function s0(e,n,t){e=de(e),n=In(n);var a=e.length;t=t===u?a:Ct(ne(t),0,a);var l=t;return t-=n.length,t>=0&&e.slice(t,l)==n}function l0(e){return e=de(e),e&&Zc.test(e)?e.replace(To,Kf):e}function c0(e){return e=de(e),e&&Uc.test(e)?e.replace(Hi,"\\$&"):e}var f0=Wt(function(e,n,t){return e+(t?"-":"")+n.toLowerCase()}),d0=Wt(function(e,n,t){return e+(t?" ":"")+n.toLowerCase()}),g0=rs("toLowerCase");function p0(e,n,t){e=de(e),n=ne(n);var a=n?Bt(e):0;if(!n||a>=n)return e;var l=(n-a)/2;return jr(Nr(l),t)+e+jr(Vr(l),t)}function h0(e,n,t){e=de(e),n=ne(n);var a=n?Bt(e):0;return n&&a<n?e+jr(n-a,t):e}function b0(e,n,t){e=de(e),n=ne(n);var a=n?Bt(e):0;return n&&a<n?jr(n-a,t)+e:e}function v0(e,n,t){return t||n==null?n=0:n&&(n=+n),Ed(de(e).replace(Yi,""),n||0)}function m0(e,n,t){return(t?un(e,n,t):n===u)?n=1:n=ne(n),xu(de(e),n)}function I0(){var e=arguments,n=de(e[0]);return e.length<3?n:n.replace(e[1],e[2])}var C0=Wt(function(e,n,t){return e+(t?"_":"")+n.toLowerCase()});function A0(e,n,t){return t&&typeof t!="number"&&un(e,n,t)&&(n=t=u),t=t===u?Ze:t>>>0,t?(e=de(e),e&&(typeof n=="string"||n!=null&&!Ju(n))&&(n=In(n),!n&&Ft(e))?gt(Vn(e),0,t):e.split(n,t)):[]}var x0=Wt(function(e,n,t){return e+(t?" ":"")+Uu(n)});function y0(e,n,t){return e=de(e),t=t==null?0:Ct(ne(t),0,e.length),n=In(n),e.slice(t,t+n.length)==n}function E0(e,n,t){var a=f.templateSettings;t&&un(e,n,t)&&(n=u),e=de(e),n=ai({},n,a,cs);var l=ai({},n.imports,a.imports,cs),p=ke(l),v=uu(l,p),I,x,O=0,P=n.interpolate||Cr,V="__p += '",L=au((n.escape||Cr).source+"|"+P.source+"|"+(P===Oo?tf:Cr).source+"|"+(n.evaluate||Cr).source+"|$","g"),Y="//# sourceURL="+(be.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Pf+"]")+`
|
|
11
|
-
`;e.replace(
|
|
12
|
-
__e(`+
|
|
13
|
-
'`),
|
|
14
|
-
`+
|
|
15
|
-
__p += '`),
|
|
16
|
-
((__t = (`+
|
|
17
|
-
'`),
|
|
18
|
-
`;var
|
|
19
|
-
`+
|
|
8
|
+
*/var Ix=ao.exports,Zu;function kx(){return Zu||(Zu=1,(function(r,i){(function(){var n,a="4.17.21",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",d="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",v=500,b="__lodash_placeholder__",w=1,D=2,T=4,q=1,z=2,S=1,B=2,y=4,k=8,N=16,O=32,j=64,re=128,A=256,Q=512,ae=30,ce="...",V=800,ee=16,se=1,ve=2,we=3,me=1/0,Y=9007199254740991,Ne=17976931348623157e292,I=NaN,F=4294967295,Z=F-1,ne=F>>>1,W=[["ary",re],["bind",S],["bindKey",B],["curry",k],["curryRight",N],["flip",Q],["partial",O],["partialRight",j],["rearg",A]],J="[object Arguments]",M="[object Array]",L="[object AsyncFunction]",oe="[object Boolean]",ue="[object Date]",le="[object DOMException]",fe="[object Error]",$="[object Function]",xe="[object GeneratorFunction]",ie="[object Map]",Ue="[object Number]",Fe="[object Null]",Qe="[object Object]",ot="[object Promise]",Xe="[object Proxy]",qe="[object RegExp]",st="[object Set]",zt="[object String]",tt="[object Symbol]",Mt="[object Undefined]",Ut="[object WeakMap]",gr="[object WeakSet]",mt="[object ArrayBuffer]",lt="[object DataView]",wt="[object Float32Array]",cr="[object Float64Array]",an="[object Int8Array]",$r="[object Int16Array]",Kr="[object Int32Array]",Bn="[object Uint8Array]",sn="[object Uint8ClampedArray]",Fn="[object Uint16Array]",ln="[object Uint32Array]",Ui=/\b__p \+= '';/g,Ae=/\b(__p \+=) '' \+/g,Pe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xt=/&(?:amp|lt|gt|quot|#39);/g,vr=/[&<>"']/g,cn=RegExp(xt.source),Ur=RegExp(vr.source),un=/<%-([\s\S]+?)%>/g,dn=/<%([\s\S]+?)%>/g,Cr=/<%=([\s\S]+?)%>/g,Wn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yf=/^\w*$/,Xf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qi=/[\\^$.*+?()[\]{}|]/g,Zf=RegExp(qi.source),Gi=/^\s+/,Jf=/\s/,Qf=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,eh=/\{\n\/\* \[wrapped with (.+)\] \*/,th=/,? & /,rh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nh=/[()=,{}\[\]\/\s]/,oh=/\\(\\)?/g,ih=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,El=/\w*$/,ah=/^[-+]0x[0-9a-f]+$/i,sh=/^0b[01]+$/i,lh=/^\[object .+?Constructor\]$/,ch=/^0o[0-7]+$/i,uh=/^(?:0|[1-9]\d*)$/,dh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wo=/($^)/,ph=/['\n\r\u2028\u2029\\]/g,xo="\\ud800-\\udfff",fh="\\u0300-\\u036f",hh="\\ufe20-\\ufe2f",gh="\\u20d0-\\u20ff",Sl=fh+hh+gh,Ol="\\u2700-\\u27bf",Nl="a-z\\xdf-\\xf6\\xf8-\\xff",vh="\\xac\\xb1\\xd7\\xf7",bh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mh="\\u2000-\\u206f",wh=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cl="A-Z\\xc0-\\xd6\\xd8-\\xde",Rl="\\ufe0e\\ufe0f",Dl=vh+bh+mh+wh,Yi="['’]",xh="["+xo+"]",zl="["+Dl+"]",yo="["+Sl+"]",Ml="\\d+",yh="["+Ol+"]",Tl="["+Nl+"]",Al="[^"+xo+Dl+Ml+Ol+Nl+Cl+"]",Xi="\\ud83c[\\udffb-\\udfff]",_h="(?:"+yo+"|"+Xi+")",Pl="[^"+xo+"]",Zi="(?:\\ud83c[\\udde6-\\uddff]){2}",Ji="[\\ud800-\\udbff][\\udc00-\\udfff]",pn="["+Cl+"]",Ll="\\u200d",Bl="(?:"+Tl+"|"+Al+")",Ih="(?:"+pn+"|"+Al+")",Fl="(?:"+Yi+"(?:d|ll|m|re|s|t|ve))?",Wl="(?:"+Yi+"(?:D|LL|M|RE|S|T|VE))?",Hl=_h+"?",jl="["+Rl+"]?",kh="(?:"+Ll+"(?:"+[Pl,Zi,Ji].join("|")+")"+jl+Hl+")*",Eh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Sh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vl=jl+Hl+kh,Oh="(?:"+[yh,Zi,Ji].join("|")+")"+Vl,Nh="(?:"+[Pl+yo+"?",yo,Zi,Ji,xh].join("|")+")",Ch=RegExp(Yi,"g"),Rh=RegExp(yo,"g"),Qi=RegExp(Xi+"(?="+Xi+")|"+Nh+Vl,"g"),Dh=RegExp([pn+"?"+Tl+"+"+Fl+"(?="+[zl,pn,"$"].join("|")+")",Ih+"+"+Wl+"(?="+[zl,pn+Bl,"$"].join("|")+")",pn+"?"+Bl+"+"+Fl,pn+"+"+Wl,Sh,Eh,Ml,Oh].join("|"),"g"),zh=RegExp("["+Ll+xo+Sl+Rl+"]"),Mh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Th=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ah=-1,Ze={};Ze[wt]=Ze[cr]=Ze[an]=Ze[$r]=Ze[Kr]=Ze[Bn]=Ze[sn]=Ze[Fn]=Ze[ln]=!0,Ze[J]=Ze[M]=Ze[mt]=Ze[oe]=Ze[lt]=Ze[ue]=Ze[fe]=Ze[$]=Ze[ie]=Ze[Ue]=Ze[Qe]=Ze[qe]=Ze[st]=Ze[zt]=Ze[Ut]=!1;var Ye={};Ye[J]=Ye[M]=Ye[mt]=Ye[lt]=Ye[oe]=Ye[ue]=Ye[wt]=Ye[cr]=Ye[an]=Ye[$r]=Ye[Kr]=Ye[ie]=Ye[Ue]=Ye[Qe]=Ye[qe]=Ye[st]=Ye[zt]=Ye[tt]=Ye[Bn]=Ye[sn]=Ye[Fn]=Ye[ln]=!0,Ye[fe]=Ye[$]=Ye[Ut]=!1;var Ph={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Lh={"&":"&","<":"<",">":">",'"':""","'":"'"},Bh={"&":"&","<":"<",">":">",""":'"',"'":"'"},Fh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wh=parseFloat,Hh=parseInt,$l=typeof si=="object"&&si&&si.Object===Object&&si,jh=typeof self=="object"&&self&&self.Object===Object&&self,yt=$l||jh||Function("return this")(),ea=i&&!i.nodeType&&i,qr=ea&&!0&&r&&!r.nodeType&&r,Kl=qr&&qr.exports===ea,ta=Kl&&$l.process,qt=(function(){try{var C=qr&&qr.require&&qr.require("util").types;return C||ta&&ta.binding&&ta.binding("util")}catch{}})(),Ul=qt&&qt.isArrayBuffer,ql=qt&&qt.isDate,Gl=qt&&qt.isMap,Yl=qt&&qt.isRegExp,Xl=qt&&qt.isSet,Zl=qt&&qt.isTypedArray;function Ft(C,H,P){switch(P.length){case 0:return C.call(H);case 1:return C.call(H,P[0]);case 2:return C.call(H,P[0],P[1]);case 3:return C.call(H,P[0],P[1],P[2])}return C.apply(H,P)}function Vh(C,H,P,pe){for(var Ee=-1,Le=C==null?0:C.length;++Ee<Le;){var dt=C[Ee];H(pe,dt,P(dt),C)}return pe}function Gt(C,H){for(var P=-1,pe=C==null?0:C.length;++P<pe&&H(C[P],P,C)!==!1;);return C}function $h(C,H){for(var P=C==null?0:C.length;P--&&H(C[P],P,C)!==!1;);return C}function Jl(C,H){for(var P=-1,pe=C==null?0:C.length;++P<pe;)if(!H(C[P],P,C))return!1;return!0}function Rr(C,H){for(var P=-1,pe=C==null?0:C.length,Ee=0,Le=[];++P<pe;){var dt=C[P];H(dt,P,C)&&(Le[Ee++]=dt)}return Le}function _o(C,H){var P=C==null?0:C.length;return!!P&&fn(C,H,0)>-1}function ra(C,H,P){for(var pe=-1,Ee=C==null?0:C.length;++pe<Ee;)if(P(H,C[pe]))return!0;return!1}function Je(C,H){for(var P=-1,pe=C==null?0:C.length,Ee=Array(pe);++P<pe;)Ee[P]=H(C[P],P,C);return Ee}function Dr(C,H){for(var P=-1,pe=H.length,Ee=C.length;++P<pe;)C[Ee+P]=H[P];return C}function na(C,H,P,pe){var Ee=-1,Le=C==null?0:C.length;for(pe&&Le&&(P=C[++Ee]);++Ee<Le;)P=H(P,C[Ee],Ee,C);return P}function Kh(C,H,P,pe){var Ee=C==null?0:C.length;for(pe&&Ee&&(P=C[--Ee]);Ee--;)P=H(P,C[Ee],Ee,C);return P}function oa(C,H){for(var P=-1,pe=C==null?0:C.length;++P<pe;)if(H(C[P],P,C))return!0;return!1}var Uh=ia("length");function qh(C){return C.split("")}function Gh(C){return C.match(rh)||[]}function Ql(C,H,P){var pe;return P(C,function(Ee,Le,dt){if(H(Ee,Le,dt))return pe=Le,!1}),pe}function Io(C,H,P,pe){for(var Ee=C.length,Le=P+(pe?1:-1);pe?Le--:++Le<Ee;)if(H(C[Le],Le,C))return Le;return-1}function fn(C,H,P){return H===H?ag(C,H,P):Io(C,ec,P)}function Yh(C,H,P,pe){for(var Ee=P-1,Le=C.length;++Ee<Le;)if(pe(C[Ee],H))return Ee;return-1}function ec(C){return C!==C}function tc(C,H){var P=C==null?0:C.length;return P?sa(C,H)/P:I}function ia(C){return function(H){return H==null?n:H[C]}}function aa(C){return function(H){return C==null?n:C[H]}}function rc(C,H,P,pe,Ee){return Ee(C,function(Le,dt,Ge){P=pe?(pe=!1,Le):H(P,Le,dt,Ge)}),P}function Xh(C,H){var P=C.length;for(C.sort(H);P--;)C[P]=C[P].value;return C}function sa(C,H){for(var P,pe=-1,Ee=C.length;++pe<Ee;){var Le=H(C[pe]);Le!==n&&(P=P===n?Le:P+Le)}return P}function la(C,H){for(var P=-1,pe=Array(C);++P<C;)pe[P]=H(P);return pe}function Zh(C,H){return Je(H,function(P){return[P,C[P]]})}function nc(C){return C&&C.slice(0,sc(C)+1).replace(Gi,"")}function Wt(C){return function(H){return C(H)}}function ca(C,H){return Je(H,function(P){return C[P]})}function Hn(C,H){return C.has(H)}function oc(C,H){for(var P=-1,pe=C.length;++P<pe&&fn(H,C[P],0)>-1;);return P}function ic(C,H){for(var P=C.length;P--&&fn(H,C[P],0)>-1;);return P}function Jh(C,H){for(var P=C.length,pe=0;P--;)C[P]===H&&++pe;return pe}var Qh=aa(Ph),eg=aa(Lh);function tg(C){return"\\"+Fh[C]}function rg(C,H){return C==null?n:C[H]}function hn(C){return zh.test(C)}function ng(C){return Mh.test(C)}function og(C){for(var H,P=[];!(H=C.next()).done;)P.push(H.value);return P}function ua(C){var H=-1,P=Array(C.size);return C.forEach(function(pe,Ee){P[++H]=[Ee,pe]}),P}function ac(C,H){return function(P){return C(H(P))}}function zr(C,H){for(var P=-1,pe=C.length,Ee=0,Le=[];++P<pe;){var dt=C[P];(dt===H||dt===b)&&(C[P]=b,Le[Ee++]=P)}return Le}function ko(C){var H=-1,P=Array(C.size);return C.forEach(function(pe){P[++H]=pe}),P}function ig(C){var H=-1,P=Array(C.size);return C.forEach(function(pe){P[++H]=[pe,pe]}),P}function ag(C,H,P){for(var pe=P-1,Ee=C.length;++pe<Ee;)if(C[pe]===H)return pe;return-1}function sg(C,H,P){for(var pe=P+1;pe--;)if(C[pe]===H)return pe;return pe}function gn(C){return hn(C)?cg(C):Uh(C)}function nr(C){return hn(C)?ug(C):qh(C)}function sc(C){for(var H=C.length;H--&&Jf.test(C.charAt(H)););return H}var lg=aa(Bh);function cg(C){for(var H=Qi.lastIndex=0;Qi.test(C);)++H;return H}function ug(C){return C.match(Qi)||[]}function dg(C){return C.match(Dh)||[]}var pg=(function C(H){H=H==null?yt:vn.defaults(yt.Object(),H,vn.pick(yt,Th));var P=H.Array,pe=H.Date,Ee=H.Error,Le=H.Function,dt=H.Math,Ge=H.Object,da=H.RegExp,fg=H.String,Yt=H.TypeError,Eo=P.prototype,hg=Le.prototype,bn=Ge.prototype,So=H["__core-js_shared__"],Oo=hg.toString,Ve=bn.hasOwnProperty,gg=0,lc=(function(){var e=/[^.]+$/.exec(So&&So.keys&&So.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),No=bn.toString,vg=Oo.call(Ge),bg=yt._,mg=da("^"+Oo.call(Ve).replace(qi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Co=Kl?H.Buffer:n,Mr=H.Symbol,Ro=H.Uint8Array,cc=Co?Co.allocUnsafe:n,Do=ac(Ge.getPrototypeOf,Ge),uc=Ge.create,dc=bn.propertyIsEnumerable,zo=Eo.splice,pc=Mr?Mr.isConcatSpreadable:n,jn=Mr?Mr.iterator:n,Gr=Mr?Mr.toStringTag:n,Mo=(function(){try{var e=Qr(Ge,"defineProperty");return e({},"",{}),e}catch{}})(),wg=H.clearTimeout!==yt.clearTimeout&&H.clearTimeout,xg=pe&&pe.now!==yt.Date.now&&pe.now,yg=H.setTimeout!==yt.setTimeout&&H.setTimeout,To=dt.ceil,Ao=dt.floor,pa=Ge.getOwnPropertySymbols,_g=Co?Co.isBuffer:n,fc=H.isFinite,Ig=Eo.join,kg=ac(Ge.keys,Ge),pt=dt.max,It=dt.min,Eg=pe.now,Sg=H.parseInt,hc=dt.random,Og=Eo.reverse,fa=Qr(H,"DataView"),Vn=Qr(H,"Map"),ha=Qr(H,"Promise"),mn=Qr(H,"Set"),$n=Qr(H,"WeakMap"),Kn=Qr(Ge,"create"),Po=$n&&new $n,wn={},Ng=en(fa),Cg=en(Vn),Rg=en(ha),Dg=en(mn),zg=en($n),Lo=Mr?Mr.prototype:n,Un=Lo?Lo.valueOf:n,gc=Lo?Lo.toString:n;function h(e){if(rt(e)&&!Se(e)&&!(e instanceof Me)){if(e instanceof Xt)return e;if(Ve.call(e,"__wrapped__"))return vu(e)}return new Xt(e)}var xn=(function(){function e(){}return function(t){if(!et(t))return{};if(uc)return uc(t);e.prototype=t;var o=new e;return e.prototype=n,o}})();function Bo(){}function Xt(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}h.templateSettings={escape:un,evaluate:dn,interpolate:Cr,variable:"",imports:{_:h}},h.prototype=Bo.prototype,h.prototype.constructor=h,Xt.prototype=xn(Bo.prototype),Xt.prototype.constructor=Xt;function Me(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=F,this.__views__=[]}function Mg(){var e=new Me(this.__wrapped__);return e.__actions__=Tt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Tt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Tt(this.__views__),e}function Tg(){if(this.__filtered__){var e=new Me(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Ag(){var e=this.__wrapped__.value(),t=this.__dir__,o=Se(e),c=t<0,p=o?e.length:0,g=qv(0,p,this.__views__),m=g.start,_=g.end,R=_-m,K=c?_:m-1,U=this.__iteratees__,X=U.length,de=0,be=It(R,this.__takeCount__);if(!o||!c&&p==R&&be==R)return Fc(e,this.__actions__);var Ie=[];e:for(;R--&&de<be;){K+=t;for(var Ce=-1,ke=e[K];++Ce<X;){var ze=U[Ce],Te=ze.iteratee,Vt=ze.type,Nt=Te(ke);if(Vt==ve)ke=Nt;else if(!Nt){if(Vt==se)continue e;break e}}Ie[de++]=ke}return Ie}Me.prototype=xn(Bo.prototype),Me.prototype.constructor=Me;function Yr(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var c=e[t];this.set(c[0],c[1])}}function Pg(){this.__data__=Kn?Kn(null):{},this.size=0}function Lg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Bg(e){var t=this.__data__;if(Kn){var o=t[e];return o===f?n:o}return Ve.call(t,e)?t[e]:n}function Fg(e){var t=this.__data__;return Kn?t[e]!==n:Ve.call(t,e)}function Wg(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Kn&&t===n?f:t,this}Yr.prototype.clear=Pg,Yr.prototype.delete=Lg,Yr.prototype.get=Bg,Yr.prototype.has=Fg,Yr.prototype.set=Wg;function br(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var c=e[t];this.set(c[0],c[1])}}function Hg(){this.__data__=[],this.size=0}function jg(e){var t=this.__data__,o=Fo(t,e);if(o<0)return!1;var c=t.length-1;return o==c?t.pop():zo.call(t,o,1),--this.size,!0}function Vg(e){var t=this.__data__,o=Fo(t,e);return o<0?n:t[o][1]}function $g(e){return Fo(this.__data__,e)>-1}function Kg(e,t){var o=this.__data__,c=Fo(o,e);return c<0?(++this.size,o.push([e,t])):o[c][1]=t,this}br.prototype.clear=Hg,br.prototype.delete=jg,br.prototype.get=Vg,br.prototype.has=$g,br.prototype.set=Kg;function mr(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var c=e[t];this.set(c[0],c[1])}}function Ug(){this.size=0,this.__data__={hash:new Yr,map:new(Vn||br),string:new Yr}}function qg(e){var t=Zo(this,e).delete(e);return this.size-=t?1:0,t}function Gg(e){return Zo(this,e).get(e)}function Yg(e){return Zo(this,e).has(e)}function Xg(e,t){var o=Zo(this,e),c=o.size;return o.set(e,t),this.size+=o.size==c?0:1,this}mr.prototype.clear=Ug,mr.prototype.delete=qg,mr.prototype.get=Gg,mr.prototype.has=Yg,mr.prototype.set=Xg;function Xr(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new mr;++t<o;)this.add(e[t])}function Zg(e){return this.__data__.set(e,f),this}function Jg(e){return this.__data__.has(e)}Xr.prototype.add=Xr.prototype.push=Zg,Xr.prototype.has=Jg;function or(e){var t=this.__data__=new br(e);this.size=t.size}function Qg(){this.__data__=new br,this.size=0}function ev(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function tv(e){return this.__data__.get(e)}function rv(e){return this.__data__.has(e)}function nv(e,t){var o=this.__data__;if(o instanceof br){var c=o.__data__;if(!Vn||c.length<s-1)return c.push([e,t]),this.size=++o.size,this;o=this.__data__=new mr(c)}return o.set(e,t),this.size=o.size,this}or.prototype.clear=Qg,or.prototype.delete=ev,or.prototype.get=tv,or.prototype.has=rv,or.prototype.set=nv;function vc(e,t){var o=Se(e),c=!o&&tn(e),p=!o&&!c&&Br(e),g=!o&&!c&&!p&&kn(e),m=o||c||p||g,_=m?la(e.length,fg):[],R=_.length;for(var K in e)(t||Ve.call(e,K))&&!(m&&(K=="length"||p&&(K=="offset"||K=="parent")||g&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||_r(K,R)))&&_.push(K);return _}function bc(e){var t=e.length;return t?e[Ea(0,t-1)]:n}function ov(e,t){return Jo(Tt(e),Zr(t,0,e.length))}function iv(e){return Jo(Tt(e))}function ga(e,t,o){(o!==n&&!ir(e[t],o)||o===n&&!(t in e))&&wr(e,t,o)}function qn(e,t,o){var c=e[t];(!(Ve.call(e,t)&&ir(c,o))||o===n&&!(t in e))&&wr(e,t,o)}function Fo(e,t){for(var o=e.length;o--;)if(ir(e[o][0],t))return o;return-1}function av(e,t,o,c){return Tr(e,function(p,g,m){t(c,p,o(p),m)}),c}function mc(e,t){return e&&dr(t,ht(t),e)}function sv(e,t){return e&&dr(t,Pt(t),e)}function wr(e,t,o){t=="__proto__"&&Mo?Mo(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function va(e,t){for(var o=-1,c=t.length,p=P(c),g=e==null;++o<c;)p[o]=g?n:Xa(e,t[o]);return p}function Zr(e,t,o){return e===e&&(o!==n&&(e=e<=o?e:o),t!==n&&(e=e>=t?e:t)),e}function Zt(e,t,o,c,p,g){var m,_=t&w,R=t&D,K=t&T;if(o&&(m=p?o(e,c,p,g):o(e)),m!==n)return m;if(!et(e))return e;var U=Se(e);if(U){if(m=Yv(e),!_)return Tt(e,m)}else{var X=kt(e),de=X==$||X==xe;if(Br(e))return jc(e,_);if(X==Qe||X==J||de&&!p){if(m=R||de?{}:su(e),!_)return R?Bv(e,sv(m,e)):Lv(e,mc(m,e))}else{if(!Ye[X])return p?e:{};m=Xv(e,X,_)}}g||(g=new or);var be=g.get(e);if(be)return be;g.set(e,m),Pu(e)?e.forEach(function(ke){m.add(Zt(ke,t,o,ke,e,g))}):Tu(e)&&e.forEach(function(ke,ze){m.set(ze,Zt(ke,t,o,ze,e,g))});var Ie=K?R?Pa:Aa:R?Pt:ht,Ce=U?n:Ie(e);return Gt(Ce||e,function(ke,ze){Ce&&(ze=ke,ke=e[ze]),qn(m,ze,Zt(ke,t,o,ze,e,g))}),m}function lv(e){var t=ht(e);return function(o){return wc(o,e,t)}}function wc(e,t,o){var c=o.length;if(e==null)return!c;for(e=Ge(e);c--;){var p=o[c],g=t[p],m=e[p];if(m===n&&!(p in e)||!g(m))return!1}return!0}function xc(e,t,o){if(typeof e!="function")throw new Yt(u);return eo(function(){e.apply(n,o)},t)}function Gn(e,t,o,c){var p=-1,g=_o,m=!0,_=e.length,R=[],K=t.length;if(!_)return R;o&&(t=Je(t,Wt(o))),c?(g=ra,m=!1):t.length>=s&&(g=Hn,m=!1,t=new Xr(t));e:for(;++p<_;){var U=e[p],X=o==null?U:o(U);if(U=c||U!==0?U:0,m&&X===X){for(var de=K;de--;)if(t[de]===X)continue e;R.push(U)}else g(t,X,c)||R.push(U)}return R}var Tr=qc(ur),yc=qc(ma,!0);function cv(e,t){var o=!0;return Tr(e,function(c,p,g){return o=!!t(c,p,g),o}),o}function Wo(e,t,o){for(var c=-1,p=e.length;++c<p;){var g=e[c],m=t(g);if(m!=null&&(_===n?m===m&&!jt(m):o(m,_)))var _=m,R=g}return R}function uv(e,t,o,c){var p=e.length;for(o=Oe(o),o<0&&(o=-o>p?0:p+o),c=c===n||c>p?p:Oe(c),c<0&&(c+=p),c=o>c?0:Bu(c);o<c;)e[o++]=t;return e}function _c(e,t){var o=[];return Tr(e,function(c,p,g){t(c,p,g)&&o.push(c)}),o}function _t(e,t,o,c,p){var g=-1,m=e.length;for(o||(o=Jv),p||(p=[]);++g<m;){var _=e[g];t>0&&o(_)?t>1?_t(_,t-1,o,c,p):Dr(p,_):c||(p[p.length]=_)}return p}var ba=Gc(),Ic=Gc(!0);function ur(e,t){return e&&ba(e,t,ht)}function ma(e,t){return e&&Ic(e,t,ht)}function Ho(e,t){return Rr(t,function(o){return Ir(e[o])})}function Jr(e,t){t=Pr(t,e);for(var o=0,c=t.length;e!=null&&o<c;)e=e[pr(t[o++])];return o&&o==c?e:n}function kc(e,t,o){var c=t(e);return Se(e)?c:Dr(c,o(e))}function St(e){return e==null?e===n?Mt:Fe:Gr&&Gr in Ge(e)?Uv(e):ib(e)}function wa(e,t){return e>t}function dv(e,t){return e!=null&&Ve.call(e,t)}function pv(e,t){return e!=null&&t in Ge(e)}function fv(e,t,o){return e>=It(t,o)&&e<pt(t,o)}function xa(e,t,o){for(var c=o?ra:_o,p=e[0].length,g=e.length,m=g,_=P(g),R=1/0,K=[];m--;){var U=e[m];m&&t&&(U=Je(U,Wt(t))),R=It(U.length,R),_[m]=!o&&(t||p>=120&&U.length>=120)?new Xr(m&&U):n}U=e[0];var X=-1,de=_[0];e:for(;++X<p&&K.length<R;){var be=U[X],Ie=t?t(be):be;if(be=o||be!==0?be:0,!(de?Hn(de,Ie):c(K,Ie,o))){for(m=g;--m;){var Ce=_[m];if(!(Ce?Hn(Ce,Ie):c(e[m],Ie,o)))continue e}de&&de.push(Ie),K.push(be)}}return K}function hv(e,t,o,c){return ur(e,function(p,g,m){t(c,o(p),g,m)}),c}function Yn(e,t,o){t=Pr(t,e),e=du(e,t);var c=e==null?e:e[pr(Qt(t))];return c==null?n:Ft(c,e,o)}function Ec(e){return rt(e)&&St(e)==J}function gv(e){return rt(e)&&St(e)==mt}function vv(e){return rt(e)&&St(e)==ue}function Xn(e,t,o,c,p){return e===t?!0:e==null||t==null||!rt(e)&&!rt(t)?e!==e&&t!==t:bv(e,t,o,c,Xn,p)}function bv(e,t,o,c,p,g){var m=Se(e),_=Se(t),R=m?M:kt(e),K=_?M:kt(t);R=R==J?Qe:R,K=K==J?Qe:K;var U=R==Qe,X=K==Qe,de=R==K;if(de&&Br(e)){if(!Br(t))return!1;m=!0,U=!1}if(de&&!U)return g||(g=new or),m||kn(e)?ou(e,t,o,c,p,g):$v(e,t,R,o,c,p,g);if(!(o&q)){var be=U&&Ve.call(e,"__wrapped__"),Ie=X&&Ve.call(t,"__wrapped__");if(be||Ie){var Ce=be?e.value():e,ke=Ie?t.value():t;return g||(g=new or),p(Ce,ke,o,c,g)}}return de?(g||(g=new or),Kv(e,t,o,c,p,g)):!1}function mv(e){return rt(e)&&kt(e)==ie}function ya(e,t,o,c){var p=o.length,g=p,m=!c;if(e==null)return!g;for(e=Ge(e);p--;){var _=o[p];if(m&&_[2]?_[1]!==e[_[0]]:!(_[0]in e))return!1}for(;++p<g;){_=o[p];var R=_[0],K=e[R],U=_[1];if(m&&_[2]){if(K===n&&!(R in e))return!1}else{var X=new or;if(c)var de=c(K,U,R,e,t,X);if(!(de===n?Xn(U,K,q|z,c,X):de))return!1}}return!0}function Sc(e){if(!et(e)||eb(e))return!1;var t=Ir(e)?mg:lh;return t.test(en(e))}function wv(e){return rt(e)&&St(e)==qe}function xv(e){return rt(e)&&kt(e)==st}function yv(e){return rt(e)&&oi(e.length)&&!!Ze[St(e)]}function Oc(e){return typeof e=="function"?e:e==null?Lt:typeof e=="object"?Se(e)?Rc(e[0],e[1]):Cc(e):Yu(e)}function _a(e){if(!Qn(e))return kg(e);var t=[];for(var o in Ge(e))Ve.call(e,o)&&o!="constructor"&&t.push(o);return t}function _v(e){if(!et(e))return ob(e);var t=Qn(e),o=[];for(var c in e)c=="constructor"&&(t||!Ve.call(e,c))||o.push(c);return o}function Ia(e,t){return e<t}function Nc(e,t){var o=-1,c=At(e)?P(e.length):[];return Tr(e,function(p,g,m){c[++o]=t(p,g,m)}),c}function Cc(e){var t=Ba(e);return t.length==1&&t[0][2]?cu(t[0][0],t[0][1]):function(o){return o===e||ya(o,e,t)}}function Rc(e,t){return Wa(e)&&lu(t)?cu(pr(e),t):function(o){var c=Xa(o,e);return c===n&&c===t?Za(o,e):Xn(t,c,q|z)}}function jo(e,t,o,c,p){e!==t&&ba(t,function(g,m){if(p||(p=new or),et(g))Iv(e,t,m,o,jo,c,p);else{var _=c?c(ja(e,m),g,m+"",e,t,p):n;_===n&&(_=g),ga(e,m,_)}},Pt)}function Iv(e,t,o,c,p,g,m){var _=ja(e,o),R=ja(t,o),K=m.get(R);if(K){ga(e,o,K);return}var U=g?g(_,R,o+"",e,t,m):n,X=U===n;if(X){var de=Se(R),be=!de&&Br(R),Ie=!de&&!be&&kn(R);U=R,de||be||Ie?Se(_)?U=_:it(_)?U=Tt(_):be?(X=!1,U=jc(R,!0)):Ie?(X=!1,U=Vc(R,!0)):U=[]:to(R)||tn(R)?(U=_,tn(_)?U=Fu(_):(!et(_)||Ir(_))&&(U=su(R))):X=!1}X&&(m.set(R,U),p(U,R,c,g,m),m.delete(R)),ga(e,o,U)}function Dc(e,t){var o=e.length;if(o)return t+=t<0?o:0,_r(t,o)?e[t]:n}function zc(e,t,o){t.length?t=Je(t,function(g){return Se(g)?function(m){return Jr(m,g.length===1?g[0]:g)}:g}):t=[Lt];var c=-1;t=Je(t,Wt(ye()));var p=Nc(e,function(g,m,_){var R=Je(t,function(K){return K(g)});return{criteria:R,index:++c,value:g}});return Xh(p,function(g,m){return Pv(g,m,o)})}function kv(e,t){return Mc(e,t,function(o,c){return Za(e,c)})}function Mc(e,t,o){for(var c=-1,p=t.length,g={};++c<p;){var m=t[c],_=Jr(e,m);o(_,m)&&Zn(g,Pr(m,e),_)}return g}function Ev(e){return function(t){return Jr(t,e)}}function ka(e,t,o,c){var p=c?Yh:fn,g=-1,m=t.length,_=e;for(e===t&&(t=Tt(t)),o&&(_=Je(e,Wt(o)));++g<m;)for(var R=0,K=t[g],U=o?o(K):K;(R=p(_,U,R,c))>-1;)_!==e&&zo.call(_,R,1),zo.call(e,R,1);return e}function Tc(e,t){for(var o=e?t.length:0,c=o-1;o--;){var p=t[o];if(o==c||p!==g){var g=p;_r(p)?zo.call(e,p,1):Na(e,p)}}return e}function Ea(e,t){return e+Ao(hc()*(t-e+1))}function Sv(e,t,o,c){for(var p=-1,g=pt(To((t-e)/(o||1)),0),m=P(g);g--;)m[c?g:++p]=e,e+=o;return m}function Sa(e,t){var o="";if(!e||t<1||t>Y)return o;do t%2&&(o+=e),t=Ao(t/2),t&&(e+=e);while(t);return o}function Re(e,t){return Va(uu(e,t,Lt),e+"")}function Ov(e){return bc(En(e))}function Nv(e,t){var o=En(e);return Jo(o,Zr(t,0,o.length))}function Zn(e,t,o,c){if(!et(e))return e;t=Pr(t,e);for(var p=-1,g=t.length,m=g-1,_=e;_!=null&&++p<g;){var R=pr(t[p]),K=o;if(R==="__proto__"||R==="constructor"||R==="prototype")return e;if(p!=m){var U=_[R];K=c?c(U,R,_):n,K===n&&(K=et(U)?U:_r(t[p+1])?[]:{})}qn(_,R,K),_=_[R]}return e}var Ac=Po?function(e,t){return Po.set(e,t),e}:Lt,Cv=Mo?function(e,t){return Mo(e,"toString",{configurable:!0,enumerable:!1,value:Qa(t),writable:!0})}:Lt;function Rv(e){return Jo(En(e))}function Jt(e,t,o){var c=-1,p=e.length;t<0&&(t=-t>p?0:p+t),o=o>p?p:o,o<0&&(o+=p),p=t>o?0:o-t>>>0,t>>>=0;for(var g=P(p);++c<p;)g[c]=e[c+t];return g}function Dv(e,t){var o;return Tr(e,function(c,p,g){return o=t(c,p,g),!o}),!!o}function Vo(e,t,o){var c=0,p=e==null?c:e.length;if(typeof t=="number"&&t===t&&p<=ne){for(;c<p;){var g=c+p>>>1,m=e[g];m!==null&&!jt(m)&&(o?m<=t:m<t)?c=g+1:p=g}return p}return Oa(e,t,Lt,o)}function Oa(e,t,o,c){var p=0,g=e==null?0:e.length;if(g===0)return 0;t=o(t);for(var m=t!==t,_=t===null,R=jt(t),K=t===n;p<g;){var U=Ao((p+g)/2),X=o(e[U]),de=X!==n,be=X===null,Ie=X===X,Ce=jt(X);if(m)var ke=c||Ie;else K?ke=Ie&&(c||de):_?ke=Ie&&de&&(c||!be):R?ke=Ie&&de&&!be&&(c||!Ce):be||Ce?ke=!1:ke=c?X<=t:X<t;ke?p=U+1:g=U}return It(g,Z)}function Pc(e,t){for(var o=-1,c=e.length,p=0,g=[];++o<c;){var m=e[o],_=t?t(m):m;if(!o||!ir(_,R)){var R=_;g[p++]=m===0?0:m}}return g}function Lc(e){return typeof e=="number"?e:jt(e)?I:+e}function Ht(e){if(typeof e=="string")return e;if(Se(e))return Je(e,Ht)+"";if(jt(e))return gc?gc.call(e):"";var t=e+"";return t=="0"&&1/e==-me?"-0":t}function Ar(e,t,o){var c=-1,p=_o,g=e.length,m=!0,_=[],R=_;if(o)m=!1,p=ra;else if(g>=s){var K=t?null:jv(e);if(K)return ko(K);m=!1,p=Hn,R=new Xr}else R=t?[]:_;e:for(;++c<g;){var U=e[c],X=t?t(U):U;if(U=o||U!==0?U:0,m&&X===X){for(var de=R.length;de--;)if(R[de]===X)continue e;t&&R.push(X),_.push(U)}else p(R,X,o)||(R!==_&&R.push(X),_.push(U))}return _}function Na(e,t){return t=Pr(t,e),e=du(e,t),e==null||delete e[pr(Qt(t))]}function Bc(e,t,o,c){return Zn(e,t,o(Jr(e,t)),c)}function $o(e,t,o,c){for(var p=e.length,g=c?p:-1;(c?g--:++g<p)&&t(e[g],g,e););return o?Jt(e,c?0:g,c?g+1:p):Jt(e,c?g+1:0,c?p:g)}function Fc(e,t){var o=e;return o instanceof Me&&(o=o.value()),na(t,function(c,p){return p.func.apply(p.thisArg,Dr([c],p.args))},o)}function Ca(e,t,o){var c=e.length;if(c<2)return c?Ar(e[0]):[];for(var p=-1,g=P(c);++p<c;)for(var m=e[p],_=-1;++_<c;)_!=p&&(g[p]=Gn(g[p]||m,e[_],t,o));return Ar(_t(g,1),t,o)}function Wc(e,t,o){for(var c=-1,p=e.length,g=t.length,m={};++c<p;){var _=c<g?t[c]:n;o(m,e[c],_)}return m}function Ra(e){return it(e)?e:[]}function Da(e){return typeof e=="function"?e:Lt}function Pr(e,t){return Se(e)?e:Wa(e,t)?[e]:gu(We(e))}var zv=Re;function Lr(e,t,o){var c=e.length;return o=o===n?c:o,!t&&o>=c?e:Jt(e,t,o)}var Hc=wg||function(e){return yt.clearTimeout(e)};function jc(e,t){if(t)return e.slice();var o=e.length,c=cc?cc(o):new e.constructor(o);return e.copy(c),c}function za(e){var t=new e.constructor(e.byteLength);return new Ro(t).set(new Ro(e)),t}function Mv(e,t){var o=t?za(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function Tv(e){var t=new e.constructor(e.source,El.exec(e));return t.lastIndex=e.lastIndex,t}function Av(e){return Un?Ge(Un.call(e)):{}}function Vc(e,t){var o=t?za(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function $c(e,t){if(e!==t){var o=e!==n,c=e===null,p=e===e,g=jt(e),m=t!==n,_=t===null,R=t===t,K=jt(t);if(!_&&!K&&!g&&e>t||g&&m&&R&&!_&&!K||c&&m&&R||!o&&R||!p)return 1;if(!c&&!g&&!K&&e<t||K&&o&&p&&!c&&!g||_&&o&&p||!m&&p||!R)return-1}return 0}function Pv(e,t,o){for(var c=-1,p=e.criteria,g=t.criteria,m=p.length,_=o.length;++c<m;){var R=$c(p[c],g[c]);if(R){if(c>=_)return R;var K=o[c];return R*(K=="desc"?-1:1)}}return e.index-t.index}function Kc(e,t,o,c){for(var p=-1,g=e.length,m=o.length,_=-1,R=t.length,K=pt(g-m,0),U=P(R+K),X=!c;++_<R;)U[_]=t[_];for(;++p<m;)(X||p<g)&&(U[o[p]]=e[p]);for(;K--;)U[_++]=e[p++];return U}function Uc(e,t,o,c){for(var p=-1,g=e.length,m=-1,_=o.length,R=-1,K=t.length,U=pt(g-_,0),X=P(U+K),de=!c;++p<U;)X[p]=e[p];for(var be=p;++R<K;)X[be+R]=t[R];for(;++m<_;)(de||p<g)&&(X[be+o[m]]=e[p++]);return X}function Tt(e,t){var o=-1,c=e.length;for(t||(t=P(c));++o<c;)t[o]=e[o];return t}function dr(e,t,o,c){var p=!o;o||(o={});for(var g=-1,m=t.length;++g<m;){var _=t[g],R=c?c(o[_],e[_],_,o,e):n;R===n&&(R=e[_]),p?wr(o,_,R):qn(o,_,R)}return o}function Lv(e,t){return dr(e,Fa(e),t)}function Bv(e,t){return dr(e,iu(e),t)}function Ko(e,t){return function(o,c){var p=Se(o)?Vh:av,g=t?t():{};return p(o,e,ye(c,2),g)}}function yn(e){return Re(function(t,o){var c=-1,p=o.length,g=p>1?o[p-1]:n,m=p>2?o[2]:n;for(g=e.length>3&&typeof g=="function"?(p--,g):n,m&&Ot(o[0],o[1],m)&&(g=p<3?n:g,p=1),t=Ge(t);++c<p;){var _=o[c];_&&e(t,_,c,g)}return t})}function qc(e,t){return function(o,c){if(o==null)return o;if(!At(o))return e(o,c);for(var p=o.length,g=t?p:-1,m=Ge(o);(t?g--:++g<p)&&c(m[g],g,m)!==!1;);return o}}function Gc(e){return function(t,o,c){for(var p=-1,g=Ge(t),m=c(t),_=m.length;_--;){var R=m[e?_:++p];if(o(g[R],R,g)===!1)break}return t}}function Fv(e,t,o){var c=t&S,p=Jn(e);function g(){var m=this&&this!==yt&&this instanceof g?p:e;return m.apply(c?o:this,arguments)}return g}function Yc(e){return function(t){t=We(t);var o=hn(t)?nr(t):n,c=o?o[0]:t.charAt(0),p=o?Lr(o,1).join(""):t.slice(1);return c[e]()+p}}function _n(e){return function(t){return na(qu(Uu(t).replace(Ch,"")),e,"")}}function Jn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var o=xn(e.prototype),c=e.apply(o,t);return et(c)?c:o}}function Wv(e,t,o){var c=Jn(e);function p(){for(var g=arguments.length,m=P(g),_=g,R=In(p);_--;)m[_]=arguments[_];var K=g<3&&m[0]!==R&&m[g-1]!==R?[]:zr(m,R);if(g-=K.length,g<o)return eu(e,t,Uo,p.placeholder,n,m,K,n,n,o-g);var U=this&&this!==yt&&this instanceof p?c:e;return Ft(U,this,m)}return p}function Xc(e){return function(t,o,c){var p=Ge(t);if(!At(t)){var g=ye(o,3);t=ht(t),o=function(_){return g(p[_],_,p)}}var m=e(t,o,c);return m>-1?p[g?t[m]:m]:n}}function Zc(e){return yr(function(t){var o=t.length,c=o,p=Xt.prototype.thru;for(e&&t.reverse();c--;){var g=t[c];if(typeof g!="function")throw new Yt(u);if(p&&!m&&Xo(g)=="wrapper")var m=new Xt([],!0)}for(c=m?c:o;++c<o;){g=t[c];var _=Xo(g),R=_=="wrapper"?La(g):n;R&&Ha(R[0])&&R[1]==(re|k|O|A)&&!R[4].length&&R[9]==1?m=m[Xo(R[0])].apply(m,R[3]):m=g.length==1&&Ha(g)?m[_]():m.thru(g)}return function(){var K=arguments,U=K[0];if(m&&K.length==1&&Se(U))return m.plant(U).value();for(var X=0,de=o?t[X].apply(this,K):U;++X<o;)de=t[X].call(this,de);return de}})}function Uo(e,t,o,c,p,g,m,_,R,K){var U=t&re,X=t&S,de=t&B,be=t&(k|N),Ie=t&Q,Ce=de?n:Jn(e);function ke(){for(var ze=arguments.length,Te=P(ze),Vt=ze;Vt--;)Te[Vt]=arguments[Vt];if(be)var Nt=In(ke),$t=Jh(Te,Nt);if(c&&(Te=Kc(Te,c,p,be)),g&&(Te=Uc(Te,g,m,be)),ze-=$t,be&&ze<K){var at=zr(Te,Nt);return eu(e,t,Uo,ke.placeholder,o,Te,at,_,R,K-ze)}var ar=X?o:this,Er=de?ar[e]:e;return ze=Te.length,_?Te=ab(Te,_):Ie&&ze>1&&Te.reverse(),U&&R<ze&&(Te.length=R),this&&this!==yt&&this instanceof ke&&(Er=Ce||Jn(Er)),Er.apply(ar,Te)}return ke}function Jc(e,t){return function(o,c){return hv(o,e,t(c),{})}}function qo(e,t){return function(o,c){var p;if(o===n&&c===n)return t;if(o!==n&&(p=o),c!==n){if(p===n)return c;typeof o=="string"||typeof c=="string"?(o=Ht(o),c=Ht(c)):(o=Lc(o),c=Lc(c)),p=e(o,c)}return p}}function Ma(e){return yr(function(t){return t=Je(t,Wt(ye())),Re(function(o){var c=this;return e(t,function(p){return Ft(p,c,o)})})})}function Go(e,t){t=t===n?" ":Ht(t);var o=t.length;if(o<2)return o?Sa(t,e):t;var c=Sa(t,To(e/gn(t)));return hn(t)?Lr(nr(c),0,e).join(""):c.slice(0,e)}function Hv(e,t,o,c){var p=t&S,g=Jn(e);function m(){for(var _=-1,R=arguments.length,K=-1,U=c.length,X=P(U+R),de=this&&this!==yt&&this instanceof m?g:e;++K<U;)X[K]=c[K];for(;R--;)X[K++]=arguments[++_];return Ft(de,p?o:this,X)}return m}function Qc(e){return function(t,o,c){return c&&typeof c!="number"&&Ot(t,o,c)&&(o=c=n),t=kr(t),o===n?(o=t,t=0):o=kr(o),c=c===n?t<o?1:-1:kr(c),Sv(t,o,c,e)}}function Yo(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=er(t),o=er(o)),e(t,o)}}function eu(e,t,o,c,p,g,m,_,R,K){var U=t&k,X=U?m:n,de=U?n:m,be=U?g:n,Ie=U?n:g;t|=U?O:j,t&=~(U?j:O),t&y||(t&=-4);var Ce=[e,t,p,be,X,Ie,de,_,R,K],ke=o.apply(n,Ce);return Ha(e)&&pu(ke,Ce),ke.placeholder=c,fu(ke,e,t)}function Ta(e){var t=dt[e];return function(o,c){if(o=er(o),c=c==null?0:It(Oe(c),292),c&&fc(o)){var p=(We(o)+"e").split("e"),g=t(p[0]+"e"+(+p[1]+c));return p=(We(g)+"e").split("e"),+(p[0]+"e"+(+p[1]-c))}return t(o)}}var jv=mn&&1/ko(new mn([,-0]))[1]==me?function(e){return new mn(e)}:rs;function tu(e){return function(t){var o=kt(t);return o==ie?ua(t):o==st?ig(t):Zh(t,e(t))}}function xr(e,t,o,c,p,g,m,_){var R=t&B;if(!R&&typeof e!="function")throw new Yt(u);var K=c?c.length:0;if(K||(t&=-97,c=p=n),m=m===n?m:pt(Oe(m),0),_=_===n?_:Oe(_),K-=p?p.length:0,t&j){var U=c,X=p;c=p=n}var de=R?n:La(e),be=[e,t,o,c,p,U,X,g,m,_];if(de&&nb(be,de),e=be[0],t=be[1],o=be[2],c=be[3],p=be[4],_=be[9]=be[9]===n?R?0:e.length:pt(be[9]-K,0),!_&&t&(k|N)&&(t&=-25),!t||t==S)var Ie=Fv(e,t,o);else t==k||t==N?Ie=Wv(e,t,_):(t==O||t==(S|O))&&!p.length?Ie=Hv(e,t,o,c):Ie=Uo.apply(n,be);var Ce=de?Ac:pu;return fu(Ce(Ie,be),e,t)}function ru(e,t,o,c){return e===n||ir(e,bn[o])&&!Ve.call(c,o)?t:e}function nu(e,t,o,c,p,g){return et(e)&&et(t)&&(g.set(t,e),jo(e,t,n,nu,g),g.delete(t)),e}function Vv(e){return to(e)?n:e}function ou(e,t,o,c,p,g){var m=o&q,_=e.length,R=t.length;if(_!=R&&!(m&&R>_))return!1;var K=g.get(e),U=g.get(t);if(K&&U)return K==t&&U==e;var X=-1,de=!0,be=o&z?new Xr:n;for(g.set(e,t),g.set(t,e);++X<_;){var Ie=e[X],Ce=t[X];if(c)var ke=m?c(Ce,Ie,X,t,e,g):c(Ie,Ce,X,e,t,g);if(ke!==n){if(ke)continue;de=!1;break}if(be){if(!oa(t,function(ze,Te){if(!Hn(be,Te)&&(Ie===ze||p(Ie,ze,o,c,g)))return be.push(Te)})){de=!1;break}}else if(!(Ie===Ce||p(Ie,Ce,o,c,g))){de=!1;break}}return g.delete(e),g.delete(t),de}function $v(e,t,o,c,p,g,m){switch(o){case lt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case mt:return!(e.byteLength!=t.byteLength||!g(new Ro(e),new Ro(t)));case oe:case ue:case Ue:return ir(+e,+t);case fe:return e.name==t.name&&e.message==t.message;case qe:case zt:return e==t+"";case ie:var _=ua;case st:var R=c&q;if(_||(_=ko),e.size!=t.size&&!R)return!1;var K=m.get(e);if(K)return K==t;c|=z,m.set(e,t);var U=ou(_(e),_(t),c,p,g,m);return m.delete(e),U;case tt:if(Un)return Un.call(e)==Un.call(t)}return!1}function Kv(e,t,o,c,p,g){var m=o&q,_=Aa(e),R=_.length,K=Aa(t),U=K.length;if(R!=U&&!m)return!1;for(var X=R;X--;){var de=_[X];if(!(m?de in t:Ve.call(t,de)))return!1}var be=g.get(e),Ie=g.get(t);if(be&&Ie)return be==t&&Ie==e;var Ce=!0;g.set(e,t),g.set(t,e);for(var ke=m;++X<R;){de=_[X];var ze=e[de],Te=t[de];if(c)var Vt=m?c(Te,ze,de,t,e,g):c(ze,Te,de,e,t,g);if(!(Vt===n?ze===Te||p(ze,Te,o,c,g):Vt)){Ce=!1;break}ke||(ke=de=="constructor")}if(Ce&&!ke){var Nt=e.constructor,$t=t.constructor;Nt!=$t&&"constructor"in e&&"constructor"in t&&!(typeof Nt=="function"&&Nt instanceof Nt&&typeof $t=="function"&&$t instanceof $t)&&(Ce=!1)}return g.delete(e),g.delete(t),Ce}function yr(e){return Va(uu(e,n,wu),e+"")}function Aa(e){return kc(e,ht,Fa)}function Pa(e){return kc(e,Pt,iu)}var La=Po?function(e){return Po.get(e)}:rs;function Xo(e){for(var t=e.name+"",o=wn[t],c=Ve.call(wn,t)?o.length:0;c--;){var p=o[c],g=p.func;if(g==null||g==e)return p.name}return t}function In(e){var t=Ve.call(h,"placeholder")?h:e;return t.placeholder}function ye(){var e=h.iteratee||es;return e=e===es?Oc:e,arguments.length?e(arguments[0],arguments[1]):e}function Zo(e,t){var o=e.__data__;return Qv(t)?o[typeof t=="string"?"string":"hash"]:o.map}function Ba(e){for(var t=ht(e),o=t.length;o--;){var c=t[o],p=e[c];t[o]=[c,p,lu(p)]}return t}function Qr(e,t){var o=rg(e,t);return Sc(o)?o:n}function Uv(e){var t=Ve.call(e,Gr),o=e[Gr];try{e[Gr]=n;var c=!0}catch{}var p=No.call(e);return c&&(t?e[Gr]=o:delete e[Gr]),p}var Fa=pa?function(e){return e==null?[]:(e=Ge(e),Rr(pa(e),function(t){return dc.call(e,t)}))}:ns,iu=pa?function(e){for(var t=[];e;)Dr(t,Fa(e)),e=Do(e);return t}:ns,kt=St;(fa&&kt(new fa(new ArrayBuffer(1)))!=lt||Vn&&kt(new Vn)!=ie||ha&&kt(ha.resolve())!=ot||mn&&kt(new mn)!=st||$n&&kt(new $n)!=Ut)&&(kt=function(e){var t=St(e),o=t==Qe?e.constructor:n,c=o?en(o):"";if(c)switch(c){case Ng:return lt;case Cg:return ie;case Rg:return ot;case Dg:return st;case zg:return Ut}return t});function qv(e,t,o){for(var c=-1,p=o.length;++c<p;){var g=o[c],m=g.size;switch(g.type){case"drop":e+=m;break;case"dropRight":t-=m;break;case"take":t=It(t,e+m);break;case"takeRight":e=pt(e,t-m);break}}return{start:e,end:t}}function Gv(e){var t=e.match(eh);return t?t[1].split(th):[]}function au(e,t,o){t=Pr(t,e);for(var c=-1,p=t.length,g=!1;++c<p;){var m=pr(t[c]);if(!(g=e!=null&&o(e,m)))break;e=e[m]}return g||++c!=p?g:(p=e==null?0:e.length,!!p&&oi(p)&&_r(m,p)&&(Se(e)||tn(e)))}function Yv(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&Ve.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function su(e){return typeof e.constructor=="function"&&!Qn(e)?xn(Do(e)):{}}function Xv(e,t,o){var c=e.constructor;switch(t){case mt:return za(e);case oe:case ue:return new c(+e);case lt:return Mv(e,o);case wt:case cr:case an:case $r:case Kr:case Bn:case sn:case Fn:case ln:return Vc(e,o);case ie:return new c;case Ue:case zt:return new c(e);case qe:return Tv(e);case st:return new c;case tt:return Av(e)}}function Zv(e,t){var o=t.length;if(!o)return e;var c=o-1;return t[c]=(o>1?"& ":"")+t[c],t=t.join(o>2?", ":" "),e.replace(Qf,`{
|
|
9
|
+
/* [wrapped with `+t+`] */
|
|
10
|
+
`)}function Jv(e){return Se(e)||tn(e)||!!(pc&&e&&e[pc])}function _r(e,t){var o=typeof e;return t=t??Y,!!t&&(o=="number"||o!="symbol"&&uh.test(e))&&e>-1&&e%1==0&&e<t}function Ot(e,t,o){if(!et(o))return!1;var c=typeof t;return(c=="number"?At(o)&&_r(t,o.length):c=="string"&&t in o)?ir(o[t],e):!1}function Wa(e,t){if(Se(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||jt(e)?!0:Yf.test(e)||!Wn.test(e)||t!=null&&e in Ge(t)}function Qv(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ha(e){var t=Xo(e),o=h[t];if(typeof o!="function"||!(t in Me.prototype))return!1;if(e===o)return!0;var c=La(o);return!!c&&e===c[0]}function eb(e){return!!lc&&lc in e}var tb=So?Ir:os;function Qn(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||bn;return e===o}function lu(e){return e===e&&!et(e)}function cu(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==n||e in Ge(o))}}function rb(e){var t=ri(e,function(c){return o.size===v&&o.clear(),c}),o=t.cache;return t}function nb(e,t){var o=e[1],c=t[1],p=o|c,g=p<(S|B|re),m=c==re&&o==k||c==re&&o==A&&e[7].length<=t[8]||c==(re|A)&&t[7].length<=t[8]&&o==k;if(!(g||m))return e;c&S&&(e[2]=t[2],p|=o&S?0:y);var _=t[3];if(_){var R=e[3];e[3]=R?Kc(R,_,t[4]):_,e[4]=R?zr(e[3],b):t[4]}return _=t[5],_&&(R=e[5],e[5]=R?Uc(R,_,t[6]):_,e[6]=R?zr(e[5],b):t[6]),_=t[7],_&&(e[7]=_),c&re&&(e[8]=e[8]==null?t[8]:It(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=p,e}function ob(e){var t=[];if(e!=null)for(var o in Ge(e))t.push(o);return t}function ib(e){return No.call(e)}function uu(e,t,o){return t=pt(t===n?e.length-1:t,0),function(){for(var c=arguments,p=-1,g=pt(c.length-t,0),m=P(g);++p<g;)m[p]=c[t+p];p=-1;for(var _=P(t+1);++p<t;)_[p]=c[p];return _[t]=o(m),Ft(e,this,_)}}function du(e,t){return t.length<2?e:Jr(e,Jt(t,0,-1))}function ab(e,t){for(var o=e.length,c=It(t.length,o),p=Tt(e);c--;){var g=t[c];e[c]=_r(g,o)?p[g]:n}return e}function ja(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var pu=hu(Ac),eo=yg||function(e,t){return yt.setTimeout(e,t)},Va=hu(Cv);function fu(e,t,o){var c=t+"";return Va(e,Zv(c,sb(Gv(c),o)))}function hu(e){var t=0,o=0;return function(){var c=Eg(),p=ee-(c-o);if(o=c,p>0){if(++t>=V)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Jo(e,t){var o=-1,c=e.length,p=c-1;for(t=t===n?c:t;++o<t;){var g=Ea(o,p),m=e[g];e[g]=e[o],e[o]=m}return e.length=t,e}var gu=rb(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Xf,function(o,c,p,g){t.push(p?g.replace(oh,"$1"):c||o)}),t});function pr(e){if(typeof e=="string"||jt(e))return e;var t=e+"";return t=="0"&&1/e==-me?"-0":t}function en(e){if(e!=null){try{return Oo.call(e)}catch{}try{return e+""}catch{}}return""}function sb(e,t){return Gt(W,function(o){var c="_."+o[0];t&o[1]&&!_o(e,c)&&e.push(c)}),e.sort()}function vu(e){if(e instanceof Me)return e.clone();var t=new Xt(e.__wrapped__,e.__chain__);return t.__actions__=Tt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function lb(e,t,o){(o?Ot(e,t,o):t===n)?t=1:t=pt(Oe(t),0);var c=e==null?0:e.length;if(!c||t<1)return[];for(var p=0,g=0,m=P(To(c/t));p<c;)m[g++]=Jt(e,p,p+=t);return m}function cb(e){for(var t=-1,o=e==null?0:e.length,c=0,p=[];++t<o;){var g=e[t];g&&(p[c++]=g)}return p}function ub(){var e=arguments.length;if(!e)return[];for(var t=P(e-1),o=arguments[0],c=e;c--;)t[c-1]=arguments[c];return Dr(Se(o)?Tt(o):[o],_t(t,1))}var db=Re(function(e,t){return it(e)?Gn(e,_t(t,1,it,!0)):[]}),pb=Re(function(e,t){var o=Qt(t);return it(o)&&(o=n),it(e)?Gn(e,_t(t,1,it,!0),ye(o,2)):[]}),fb=Re(function(e,t){var o=Qt(t);return it(o)&&(o=n),it(e)?Gn(e,_t(t,1,it,!0),n,o):[]});function hb(e,t,o){var c=e==null?0:e.length;return c?(t=o||t===n?1:Oe(t),Jt(e,t<0?0:t,c)):[]}function gb(e,t,o){var c=e==null?0:e.length;return c?(t=o||t===n?1:Oe(t),t=c-t,Jt(e,0,t<0?0:t)):[]}function vb(e,t){return e&&e.length?$o(e,ye(t,3),!0,!0):[]}function bb(e,t){return e&&e.length?$o(e,ye(t,3),!0):[]}function mb(e,t,o,c){var p=e==null?0:e.length;return p?(o&&typeof o!="number"&&Ot(e,t,o)&&(o=0,c=p),uv(e,t,o,c)):[]}function bu(e,t,o){var c=e==null?0:e.length;if(!c)return-1;var p=o==null?0:Oe(o);return p<0&&(p=pt(c+p,0)),Io(e,ye(t,3),p)}function mu(e,t,o){var c=e==null?0:e.length;if(!c)return-1;var p=c-1;return o!==n&&(p=Oe(o),p=o<0?pt(c+p,0):It(p,c-1)),Io(e,ye(t,3),p,!0)}function wu(e){var t=e==null?0:e.length;return t?_t(e,1):[]}function wb(e){var t=e==null?0:e.length;return t?_t(e,me):[]}function xb(e,t){var o=e==null?0:e.length;return o?(t=t===n?1:Oe(t),_t(e,t)):[]}function yb(e){for(var t=-1,o=e==null?0:e.length,c={};++t<o;){var p=e[t];c[p[0]]=p[1]}return c}function xu(e){return e&&e.length?e[0]:n}function _b(e,t,o){var c=e==null?0:e.length;if(!c)return-1;var p=o==null?0:Oe(o);return p<0&&(p=pt(c+p,0)),fn(e,t,p)}function Ib(e){var t=e==null?0:e.length;return t?Jt(e,0,-1):[]}var kb=Re(function(e){var t=Je(e,Ra);return t.length&&t[0]===e[0]?xa(t):[]}),Eb=Re(function(e){var t=Qt(e),o=Je(e,Ra);return t===Qt(o)?t=n:o.pop(),o.length&&o[0]===e[0]?xa(o,ye(t,2)):[]}),Sb=Re(function(e){var t=Qt(e),o=Je(e,Ra);return t=typeof t=="function"?t:n,t&&o.pop(),o.length&&o[0]===e[0]?xa(o,n,t):[]});function Ob(e,t){return e==null?"":Ig.call(e,t)}function Qt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Nb(e,t,o){var c=e==null?0:e.length;if(!c)return-1;var p=c;return o!==n&&(p=Oe(o),p=p<0?pt(c+p,0):It(p,c-1)),t===t?sg(e,t,p):Io(e,ec,p,!0)}function Cb(e,t){return e&&e.length?Dc(e,Oe(t)):n}var Rb=Re(yu);function yu(e,t){return e&&e.length&&t&&t.length?ka(e,t):e}function Db(e,t,o){return e&&e.length&&t&&t.length?ka(e,t,ye(o,2)):e}function zb(e,t,o){return e&&e.length&&t&&t.length?ka(e,t,n,o):e}var Mb=yr(function(e,t){var o=e==null?0:e.length,c=va(e,t);return Tc(e,Je(t,function(p){return _r(p,o)?+p:p}).sort($c)),c});function Tb(e,t){var o=[];if(!(e&&e.length))return o;var c=-1,p=[],g=e.length;for(t=ye(t,3);++c<g;){var m=e[c];t(m,c,e)&&(o.push(m),p.push(c))}return Tc(e,p),o}function $a(e){return e==null?e:Og.call(e)}function Ab(e,t,o){var c=e==null?0:e.length;return c?(o&&typeof o!="number"&&Ot(e,t,o)?(t=0,o=c):(t=t==null?0:Oe(t),o=o===n?c:Oe(o)),Jt(e,t,o)):[]}function Pb(e,t){return Vo(e,t)}function Lb(e,t,o){return Oa(e,t,ye(o,2))}function Bb(e,t){var o=e==null?0:e.length;if(o){var c=Vo(e,t);if(c<o&&ir(e[c],t))return c}return-1}function Fb(e,t){return Vo(e,t,!0)}function Wb(e,t,o){return Oa(e,t,ye(o,2),!0)}function Hb(e,t){var o=e==null?0:e.length;if(o){var c=Vo(e,t,!0)-1;if(ir(e[c],t))return c}return-1}function jb(e){return e&&e.length?Pc(e):[]}function Vb(e,t){return e&&e.length?Pc(e,ye(t,2)):[]}function $b(e){var t=e==null?0:e.length;return t?Jt(e,1,t):[]}function Kb(e,t,o){return e&&e.length?(t=o||t===n?1:Oe(t),Jt(e,0,t<0?0:t)):[]}function Ub(e,t,o){var c=e==null?0:e.length;return c?(t=o||t===n?1:Oe(t),t=c-t,Jt(e,t<0?0:t,c)):[]}function qb(e,t){return e&&e.length?$o(e,ye(t,3),!1,!0):[]}function Gb(e,t){return e&&e.length?$o(e,ye(t,3)):[]}var Yb=Re(function(e){return Ar(_t(e,1,it,!0))}),Xb=Re(function(e){var t=Qt(e);return it(t)&&(t=n),Ar(_t(e,1,it,!0),ye(t,2))}),Zb=Re(function(e){var t=Qt(e);return t=typeof t=="function"?t:n,Ar(_t(e,1,it,!0),n,t)});function Jb(e){return e&&e.length?Ar(e):[]}function Qb(e,t){return e&&e.length?Ar(e,ye(t,2)):[]}function em(e,t){return t=typeof t=="function"?t:n,e&&e.length?Ar(e,n,t):[]}function Ka(e){if(!(e&&e.length))return[];var t=0;return e=Rr(e,function(o){if(it(o))return t=pt(o.length,t),!0}),la(t,function(o){return Je(e,ia(o))})}function _u(e,t){if(!(e&&e.length))return[];var o=Ka(e);return t==null?o:Je(o,function(c){return Ft(t,n,c)})}var tm=Re(function(e,t){return it(e)?Gn(e,t):[]}),rm=Re(function(e){return Ca(Rr(e,it))}),nm=Re(function(e){var t=Qt(e);return it(t)&&(t=n),Ca(Rr(e,it),ye(t,2))}),om=Re(function(e){var t=Qt(e);return t=typeof t=="function"?t:n,Ca(Rr(e,it),n,t)}),im=Re(Ka);function am(e,t){return Wc(e||[],t||[],qn)}function sm(e,t){return Wc(e||[],t||[],Zn)}var lm=Re(function(e){var t=e.length,o=t>1?e[t-1]:n;return o=typeof o=="function"?(e.pop(),o):n,_u(e,o)});function Iu(e){var t=h(e);return t.__chain__=!0,t}function cm(e,t){return t(e),e}function Qo(e,t){return t(e)}var um=yr(function(e){var t=e.length,o=t?e[0]:0,c=this.__wrapped__,p=function(g){return va(g,e)};return t>1||this.__actions__.length||!(c instanceof Me)||!_r(o)?this.thru(p):(c=c.slice(o,+o+(t?1:0)),c.__actions__.push({func:Qo,args:[p],thisArg:n}),new Xt(c,this.__chain__).thru(function(g){return t&&!g.length&&g.push(n),g}))});function dm(){return Iu(this)}function pm(){return new Xt(this.value(),this.__chain__)}function fm(){this.__values__===n&&(this.__values__=Lu(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function hm(){return this}function gm(e){for(var t,o=this;o instanceof Bo;){var c=vu(o);c.__index__=0,c.__values__=n,t?p.__wrapped__=c:t=c;var p=c;o=o.__wrapped__}return p.__wrapped__=e,t}function vm(){var e=this.__wrapped__;if(e instanceof Me){var t=e;return this.__actions__.length&&(t=new Me(this)),t=t.reverse(),t.__actions__.push({func:Qo,args:[$a],thisArg:n}),new Xt(t,this.__chain__)}return this.thru($a)}function bm(){return Fc(this.__wrapped__,this.__actions__)}var mm=Ko(function(e,t,o){Ve.call(e,o)?++e[o]:wr(e,o,1)});function wm(e,t,o){var c=Se(e)?Jl:cv;return o&&Ot(e,t,o)&&(t=n),c(e,ye(t,3))}function xm(e,t){var o=Se(e)?Rr:_c;return o(e,ye(t,3))}var ym=Xc(bu),_m=Xc(mu);function Im(e,t){return _t(ei(e,t),1)}function km(e,t){return _t(ei(e,t),me)}function Em(e,t,o){return o=o===n?1:Oe(o),_t(ei(e,t),o)}function ku(e,t){var o=Se(e)?Gt:Tr;return o(e,ye(t,3))}function Eu(e,t){var o=Se(e)?$h:yc;return o(e,ye(t,3))}var Sm=Ko(function(e,t,o){Ve.call(e,o)?e[o].push(t):wr(e,o,[t])});function Om(e,t,o,c){e=At(e)?e:En(e),o=o&&!c?Oe(o):0;var p=e.length;return o<0&&(o=pt(p+o,0)),ii(e)?o<=p&&e.indexOf(t,o)>-1:!!p&&fn(e,t,o)>-1}var Nm=Re(function(e,t,o){var c=-1,p=typeof t=="function",g=At(e)?P(e.length):[];return Tr(e,function(m){g[++c]=p?Ft(t,m,o):Yn(m,t,o)}),g}),Cm=Ko(function(e,t,o){wr(e,o,t)});function ei(e,t){var o=Se(e)?Je:Nc;return o(e,ye(t,3))}function Rm(e,t,o,c){return e==null?[]:(Se(t)||(t=t==null?[]:[t]),o=c?n:o,Se(o)||(o=o==null?[]:[o]),zc(e,t,o))}var Dm=Ko(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function zm(e,t,o){var c=Se(e)?na:rc,p=arguments.length<3;return c(e,ye(t,4),o,p,Tr)}function Mm(e,t,o){var c=Se(e)?Kh:rc,p=arguments.length<3;return c(e,ye(t,4),o,p,yc)}function Tm(e,t){var o=Se(e)?Rr:_c;return o(e,ni(ye(t,3)))}function Am(e){var t=Se(e)?bc:Ov;return t(e)}function Pm(e,t,o){(o?Ot(e,t,o):t===n)?t=1:t=Oe(t);var c=Se(e)?ov:Nv;return c(e,t)}function Lm(e){var t=Se(e)?iv:Rv;return t(e)}function Bm(e){if(e==null)return 0;if(At(e))return ii(e)?gn(e):e.length;var t=kt(e);return t==ie||t==st?e.size:_a(e).length}function Fm(e,t,o){var c=Se(e)?oa:Dv;return o&&Ot(e,t,o)&&(t=n),c(e,ye(t,3))}var Wm=Re(function(e,t){if(e==null)return[];var o=t.length;return o>1&&Ot(e,t[0],t[1])?t=[]:o>2&&Ot(t[0],t[1],t[2])&&(t=[t[0]]),zc(e,_t(t,1),[])}),ti=xg||function(){return yt.Date.now()};function Hm(e,t){if(typeof t!="function")throw new Yt(u);return e=Oe(e),function(){if(--e<1)return t.apply(this,arguments)}}function Su(e,t,o){return t=o?n:t,t=e&&t==null?e.length:t,xr(e,re,n,n,n,n,t)}function Ou(e,t){var o;if(typeof t!="function")throw new Yt(u);return e=Oe(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Ua=Re(function(e,t,o){var c=S;if(o.length){var p=zr(o,In(Ua));c|=O}return xr(e,c,t,o,p)}),Nu=Re(function(e,t,o){var c=S|B;if(o.length){var p=zr(o,In(Nu));c|=O}return xr(t,c,e,o,p)});function Cu(e,t,o){t=o?n:t;var c=xr(e,k,n,n,n,n,n,t);return c.placeholder=Cu.placeholder,c}function Ru(e,t,o){t=o?n:t;var c=xr(e,N,n,n,n,n,n,t);return c.placeholder=Ru.placeholder,c}function Du(e,t,o){var c,p,g,m,_,R,K=0,U=!1,X=!1,de=!0;if(typeof e!="function")throw new Yt(u);t=er(t)||0,et(o)&&(U=!!o.leading,X="maxWait"in o,g=X?pt(er(o.maxWait)||0,t):g,de="trailing"in o?!!o.trailing:de);function be(at){var ar=c,Er=p;return c=p=n,K=at,m=e.apply(Er,ar),m}function Ie(at){return K=at,_=eo(ze,t),U?be(at):m}function Ce(at){var ar=at-R,Er=at-K,Xu=t-ar;return X?It(Xu,g-Er):Xu}function ke(at){var ar=at-R,Er=at-K;return R===n||ar>=t||ar<0||X&&Er>=g}function ze(){var at=ti();if(ke(at))return Te(at);_=eo(ze,Ce(at))}function Te(at){return _=n,de&&c?be(at):(c=p=n,m)}function Vt(){_!==n&&Hc(_),K=0,c=R=p=_=n}function Nt(){return _===n?m:Te(ti())}function $t(){var at=ti(),ar=ke(at);if(c=arguments,p=this,R=at,ar){if(_===n)return Ie(R);if(X)return Hc(_),_=eo(ze,t),be(R)}return _===n&&(_=eo(ze,t)),m}return $t.cancel=Vt,$t.flush=Nt,$t}var jm=Re(function(e,t){return xc(e,1,t)}),Vm=Re(function(e,t,o){return xc(e,er(t)||0,o)});function $m(e){return xr(e,Q)}function ri(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Yt(u);var o=function(){var c=arguments,p=t?t.apply(this,c):c[0],g=o.cache;if(g.has(p))return g.get(p);var m=e.apply(this,c);return o.cache=g.set(p,m)||g,m};return o.cache=new(ri.Cache||mr),o}ri.Cache=mr;function ni(e){if(typeof e!="function")throw new Yt(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Km(e){return Ou(2,e)}var Um=zv(function(e,t){t=t.length==1&&Se(t[0])?Je(t[0],Wt(ye())):Je(_t(t,1),Wt(ye()));var o=t.length;return Re(function(c){for(var p=-1,g=It(c.length,o);++p<g;)c[p]=t[p].call(this,c[p]);return Ft(e,this,c)})}),qa=Re(function(e,t){var o=zr(t,In(qa));return xr(e,O,n,t,o)}),zu=Re(function(e,t){var o=zr(t,In(zu));return xr(e,j,n,t,o)}),qm=yr(function(e,t){return xr(e,A,n,n,n,t)});function Gm(e,t){if(typeof e!="function")throw new Yt(u);return t=t===n?t:Oe(t),Re(e,t)}function Ym(e,t){if(typeof e!="function")throw new Yt(u);return t=t==null?0:pt(Oe(t),0),Re(function(o){var c=o[t],p=Lr(o,0,t);return c&&Dr(p,c),Ft(e,this,p)})}function Xm(e,t,o){var c=!0,p=!0;if(typeof e!="function")throw new Yt(u);return et(o)&&(c="leading"in o?!!o.leading:c,p="trailing"in o?!!o.trailing:p),Du(e,t,{leading:c,maxWait:t,trailing:p})}function Zm(e){return Su(e,1)}function Jm(e,t){return qa(Da(t),e)}function Qm(){if(!arguments.length)return[];var e=arguments[0];return Se(e)?e:[e]}function ew(e){return Zt(e,T)}function tw(e,t){return t=typeof t=="function"?t:n,Zt(e,T,t)}function rw(e){return Zt(e,w|T)}function nw(e,t){return t=typeof t=="function"?t:n,Zt(e,w|T,t)}function ow(e,t){return t==null||wc(e,t,ht(t))}function ir(e,t){return e===t||e!==e&&t!==t}var iw=Yo(wa),aw=Yo(function(e,t){return e>=t}),tn=Ec((function(){return arguments})())?Ec:function(e){return rt(e)&&Ve.call(e,"callee")&&!dc.call(e,"callee")},Se=P.isArray,sw=Ul?Wt(Ul):gv;function At(e){return e!=null&&oi(e.length)&&!Ir(e)}function it(e){return rt(e)&&At(e)}function lw(e){return e===!0||e===!1||rt(e)&&St(e)==oe}var Br=_g||os,cw=ql?Wt(ql):vv;function uw(e){return rt(e)&&e.nodeType===1&&!to(e)}function dw(e){if(e==null)return!0;if(At(e)&&(Se(e)||typeof e=="string"||typeof e.splice=="function"||Br(e)||kn(e)||tn(e)))return!e.length;var t=kt(e);if(t==ie||t==st)return!e.size;if(Qn(e))return!_a(e).length;for(var o in e)if(Ve.call(e,o))return!1;return!0}function pw(e,t){return Xn(e,t)}function fw(e,t,o){o=typeof o=="function"?o:n;var c=o?o(e,t):n;return c===n?Xn(e,t,n,o):!!c}function Ga(e){if(!rt(e))return!1;var t=St(e);return t==fe||t==le||typeof e.message=="string"&&typeof e.name=="string"&&!to(e)}function hw(e){return typeof e=="number"&&fc(e)}function Ir(e){if(!et(e))return!1;var t=St(e);return t==$||t==xe||t==L||t==Xe}function Mu(e){return typeof e=="number"&&e==Oe(e)}function oi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Y}function et(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function rt(e){return e!=null&&typeof e=="object"}var Tu=Gl?Wt(Gl):mv;function gw(e,t){return e===t||ya(e,t,Ba(t))}function vw(e,t,o){return o=typeof o=="function"?o:n,ya(e,t,Ba(t),o)}function bw(e){return Au(e)&&e!=+e}function mw(e){if(tb(e))throw new Ee(l);return Sc(e)}function ww(e){return e===null}function xw(e){return e==null}function Au(e){return typeof e=="number"||rt(e)&&St(e)==Ue}function to(e){if(!rt(e)||St(e)!=Qe)return!1;var t=Do(e);if(t===null)return!0;var o=Ve.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&Oo.call(o)==vg}var Ya=Yl?Wt(Yl):wv;function yw(e){return Mu(e)&&e>=-Y&&e<=Y}var Pu=Xl?Wt(Xl):xv;function ii(e){return typeof e=="string"||!Se(e)&&rt(e)&&St(e)==zt}function jt(e){return typeof e=="symbol"||rt(e)&&St(e)==tt}var kn=Zl?Wt(Zl):yv;function _w(e){return e===n}function Iw(e){return rt(e)&&kt(e)==Ut}function kw(e){return rt(e)&&St(e)==gr}var Ew=Yo(Ia),Sw=Yo(function(e,t){return e<=t});function Lu(e){if(!e)return[];if(At(e))return ii(e)?nr(e):Tt(e);if(jn&&e[jn])return og(e[jn]());var t=kt(e),o=t==ie?ua:t==st?ko:En;return o(e)}function kr(e){if(!e)return e===0?e:0;if(e=er(e),e===me||e===-me){var t=e<0?-1:1;return t*Ne}return e===e?e:0}function Oe(e){var t=kr(e),o=t%1;return t===t?o?t-o:t:0}function Bu(e){return e?Zr(Oe(e),0,F):0}function er(e){if(typeof e=="number")return e;if(jt(e))return I;if(et(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=et(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=nc(e);var o=sh.test(e);return o||ch.test(e)?Hh(e.slice(2),o?2:8):ah.test(e)?I:+e}function Fu(e){return dr(e,Pt(e))}function Ow(e){return e?Zr(Oe(e),-Y,Y):e===0?e:0}function We(e){return e==null?"":Ht(e)}var Nw=yn(function(e,t){if(Qn(t)||At(t)){dr(t,ht(t),e);return}for(var o in t)Ve.call(t,o)&&qn(e,o,t[o])}),Wu=yn(function(e,t){dr(t,Pt(t),e)}),ai=yn(function(e,t,o,c){dr(t,Pt(t),e,c)}),Cw=yn(function(e,t,o,c){dr(t,ht(t),e,c)}),Rw=yr(va);function Dw(e,t){var o=xn(e);return t==null?o:mc(o,t)}var zw=Re(function(e,t){e=Ge(e);var o=-1,c=t.length,p=c>2?t[2]:n;for(p&&Ot(t[0],t[1],p)&&(c=1);++o<c;)for(var g=t[o],m=Pt(g),_=-1,R=m.length;++_<R;){var K=m[_],U=e[K];(U===n||ir(U,bn[K])&&!Ve.call(e,K))&&(e[K]=g[K])}return e}),Mw=Re(function(e){return e.push(n,nu),Ft(Hu,n,e)});function Tw(e,t){return Ql(e,ye(t,3),ur)}function Aw(e,t){return Ql(e,ye(t,3),ma)}function Pw(e,t){return e==null?e:ba(e,ye(t,3),Pt)}function Lw(e,t){return e==null?e:Ic(e,ye(t,3),Pt)}function Bw(e,t){return e&&ur(e,ye(t,3))}function Fw(e,t){return e&&ma(e,ye(t,3))}function Ww(e){return e==null?[]:Ho(e,ht(e))}function Hw(e){return e==null?[]:Ho(e,Pt(e))}function Xa(e,t,o){var c=e==null?n:Jr(e,t);return c===n?o:c}function jw(e,t){return e!=null&&au(e,t,dv)}function Za(e,t){return e!=null&&au(e,t,pv)}var Vw=Jc(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=No.call(t)),e[t]=o},Qa(Lt)),$w=Jc(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=No.call(t)),Ve.call(e,t)?e[t].push(o):e[t]=[o]},ye),Kw=Re(Yn);function ht(e){return At(e)?vc(e):_a(e)}function Pt(e){return At(e)?vc(e,!0):_v(e)}function Uw(e,t){var o={};return t=ye(t,3),ur(e,function(c,p,g){wr(o,t(c,p,g),c)}),o}function qw(e,t){var o={};return t=ye(t,3),ur(e,function(c,p,g){wr(o,p,t(c,p,g))}),o}var Gw=yn(function(e,t,o){jo(e,t,o)}),Hu=yn(function(e,t,o,c){jo(e,t,o,c)}),Yw=yr(function(e,t){var o={};if(e==null)return o;var c=!1;t=Je(t,function(g){return g=Pr(g,e),c||(c=g.length>1),g}),dr(e,Pa(e),o),c&&(o=Zt(o,w|D|T,Vv));for(var p=t.length;p--;)Na(o,t[p]);return o});function Xw(e,t){return ju(e,ni(ye(t)))}var Zw=yr(function(e,t){return e==null?{}:kv(e,t)});function ju(e,t){if(e==null)return{};var o=Je(Pa(e),function(c){return[c]});return t=ye(t),Mc(e,o,function(c,p){return t(c,p[0])})}function Jw(e,t,o){t=Pr(t,e);var c=-1,p=t.length;for(p||(p=1,e=n);++c<p;){var g=e==null?n:e[pr(t[c])];g===n&&(c=p,g=o),e=Ir(g)?g.call(e):g}return e}function Qw(e,t,o){return e==null?e:Zn(e,t,o)}function e0(e,t,o,c){return c=typeof c=="function"?c:n,e==null?e:Zn(e,t,o,c)}var Vu=tu(ht),$u=tu(Pt);function t0(e,t,o){var c=Se(e),p=c||Br(e)||kn(e);if(t=ye(t,4),o==null){var g=e&&e.constructor;p?o=c?new g:[]:et(e)?o=Ir(g)?xn(Do(e)):{}:o={}}return(p?Gt:ur)(e,function(m,_,R){return t(o,m,_,R)}),o}function r0(e,t){return e==null?!0:Na(e,t)}function n0(e,t,o){return e==null?e:Bc(e,t,Da(o))}function o0(e,t,o,c){return c=typeof c=="function"?c:n,e==null?e:Bc(e,t,Da(o),c)}function En(e){return e==null?[]:ca(e,ht(e))}function i0(e){return e==null?[]:ca(e,Pt(e))}function a0(e,t,o){return o===n&&(o=t,t=n),o!==n&&(o=er(o),o=o===o?o:0),t!==n&&(t=er(t),t=t===t?t:0),Zr(er(e),t,o)}function s0(e,t,o){return t=kr(t),o===n?(o=t,t=0):o=kr(o),e=er(e),fv(e,t,o)}function l0(e,t,o){if(o&&typeof o!="boolean"&&Ot(e,t,o)&&(t=o=n),o===n&&(typeof t=="boolean"?(o=t,t=n):typeof e=="boolean"&&(o=e,e=n)),e===n&&t===n?(e=0,t=1):(e=kr(e),t===n?(t=e,e=0):t=kr(t)),e>t){var c=e;e=t,t=c}if(o||e%1||t%1){var p=hc();return It(e+p*(t-e+Wh("1e-"+((p+"").length-1))),t)}return Ea(e,t)}var c0=_n(function(e,t,o){return t=t.toLowerCase(),e+(o?Ku(t):t)});function Ku(e){return Ja(We(e).toLowerCase())}function Uu(e){return e=We(e),e&&e.replace(dh,Qh).replace(Rh,"")}function u0(e,t,o){e=We(e),t=Ht(t);var c=e.length;o=o===n?c:Zr(Oe(o),0,c);var p=o;return o-=t.length,o>=0&&e.slice(o,p)==t}function d0(e){return e=We(e),e&&Ur.test(e)?e.replace(vr,eg):e}function p0(e){return e=We(e),e&&Zf.test(e)?e.replace(qi,"\\$&"):e}var f0=_n(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),h0=_n(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),g0=Yc("toLowerCase");function v0(e,t,o){e=We(e),t=Oe(t);var c=t?gn(e):0;if(!t||c>=t)return e;var p=(t-c)/2;return Go(Ao(p),o)+e+Go(To(p),o)}function b0(e,t,o){e=We(e),t=Oe(t);var c=t?gn(e):0;return t&&c<t?e+Go(t-c,o):e}function m0(e,t,o){e=We(e),t=Oe(t);var c=t?gn(e):0;return t&&c<t?Go(t-c,o)+e:e}function w0(e,t,o){return o||t==null?t=0:t&&(t=+t),Sg(We(e).replace(Gi,""),t||0)}function x0(e,t,o){return(o?Ot(e,t,o):t===n)?t=1:t=Oe(t),Sa(We(e),t)}function y0(){var e=arguments,t=We(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var _0=_n(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function I0(e,t,o){return o&&typeof o!="number"&&Ot(e,t,o)&&(t=o=n),o=o===n?F:o>>>0,o?(e=We(e),e&&(typeof t=="string"||t!=null&&!Ya(t))&&(t=Ht(t),!t&&hn(e))?Lr(nr(e),0,o):e.split(t,o)):[]}var k0=_n(function(e,t,o){return e+(o?" ":"")+Ja(t)});function E0(e,t,o){return e=We(e),o=o==null?0:Zr(Oe(o),0,e.length),t=Ht(t),e.slice(o,o+t.length)==t}function S0(e,t,o){var c=h.templateSettings;o&&Ot(e,t,o)&&(t=n),e=We(e),t=ai({},t,c,ru);var p=ai({},t.imports,c.imports,ru),g=ht(p),m=ca(p,g),_,R,K=0,U=t.interpolate||wo,X="__p += '",de=da((t.escape||wo).source+"|"+U.source+"|"+(U===Cr?ih:wo).source+"|"+(t.evaluate||wo).source+"|$","g"),be="//# sourceURL="+(Ve.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ah+"]")+`
|
|
11
|
+
`;e.replace(de,function(ke,ze,Te,Vt,Nt,$t){return Te||(Te=Vt),X+=e.slice(K,$t).replace(ph,tg),ze&&(_=!0,X+=`' +
|
|
12
|
+
__e(`+ze+`) +
|
|
13
|
+
'`),Nt&&(R=!0,X+=`';
|
|
14
|
+
`+Nt+`;
|
|
15
|
+
__p += '`),Te&&(X+=`' +
|
|
16
|
+
((__t = (`+Te+`)) == null ? '' : __t) +
|
|
17
|
+
'`),K=$t+ke.length,ke}),X+=`';
|
|
18
|
+
`;var Ie=Ve.call(t,"variable")&&t.variable;if(!Ie)X=`with (obj) {
|
|
19
|
+
`+X+`
|
|
20
20
|
}
|
|
21
|
-
`;else if(
|
|
22
|
-
`+(
|
|
23
|
-
`)+"var __t, __p = ''"+(
|
|
21
|
+
`;else if(nh.test(Ie))throw new Ee(d);X=(R?X.replace(Ui,""):X).replace(Ae,"$1").replace(Pe,"$1;"),X="function("+(Ie||"obj")+`) {
|
|
22
|
+
`+(Ie?"":`obj || (obj = {});
|
|
23
|
+
`)+"var __t, __p = ''"+(_?", __e = _.escape":"")+(R?`, __j = Array.prototype.join;
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
|
-
`)+
|
|
27
|
-
}`;var re=tl(function(){return le(p,Y+"return "+V).apply(u,v)});if(re.source=V,Yu(re))throw re;return re}function S0(e){return de(e).toLowerCase()}function w0(e){return de(e).toUpperCase()}function G0(e,n,t){if(e=de(e),e&&(t||n===u))return fa(e);if(!e||!(n=In(n)))return e;var a=Vn(e),l=Vn(n),p=da(a,l),v=ga(a,l)+1;return gt(a,p,v).join("")}function R0(e,n,t){if(e=de(e),e&&(t||n===u))return e.slice(0,ha(e)+1);if(!e||!(n=In(n)))return e;var a=Vn(e),l=ga(a,Vn(n))+1;return gt(a,0,l).join("")}function F0(e,n,t){if(e=de(e),e&&(t||n===u))return e.replace(Yi,"");if(!e||!(n=In(n)))return e;var a=Vn(e),l=da(a,Vn(n));return gt(a,l).join("")}function B0(e,n){var t=ve,a=Re;if(Ge(n)){var l="separator"in n?n.separator:l;t="length"in n?ne(n.length):t,a="omission"in n?In(n.omission):a}e=de(e);var p=e.length;if(Ft(e)){var v=Vn(e);p=v.length}if(t>=p)return e;var I=t-Bt(a);if(I<1)return a;var x=v?gt(v,0,I).join(""):e.slice(0,I);if(l===u)return x+a;if(v&&(I+=x.length-I),Ju(l)){if(e.slice(I).search(l)){var O,P=x;for(l.global||(l=au(l.source,de(Po.exec(l))+"g")),l.lastIndex=0;O=l.exec(P);)var V=O.index;x=x.slice(0,V===u?I:V)}}else if(e.indexOf(In(l),I)!=I){var L=x.lastIndexOf(l);L>-1&&(x=x.slice(0,L))}return x+a}function T0(e){return e=de(e),e&&Dc.test(e)?e.replace(Bo,od):e}var O0=Wt(function(e,n,t){return e+(t?" ":"")+n.toUpperCase()}),Uu=rs("toUpperCase");function nl(e,n,t){return e=de(e),n=t?u:n,n===u?nd(e)?ld(e):zf(e):e.match(n)||[]}var tl=ie(function(e,n){try{return vn(e,u,n)}catch(t){return Yu(t)?t:new q(t)}}),P0=Kn(function(e,n){return Sn(n,function(t){t=Hn(t),Qn(e,t,Zu(e[t],e))}),e});function _0(e){var n=e==null?0:e.length,t=j();return e=n?Se(e,function(a){if(typeof a[1]!="function")throw new wn(d);return[t(a[0]),a[1]]}):[],ie(function(a){for(var l=-1;++l<n;){var p=e[l];if(vn(p[0],this,a))return vn(p[1],this,a)}})}function V0(e){return og(Rn(e,A))}function ju(e){return function(){return e}}function N0(e,n){return e==null||e!==e?n:e}var W0=us(),M0=us(!0);function pn(e){return e}function Qu(e){return Va(typeof e=="function"?e:Rn(e,A))}function X0(e){return Wa(Rn(e,A))}function L0(e,n){return Ma(e,Rn(n,A))}var D0=ie(function(e,n){return function(t){return ir(t,e,n)}}),Z0=ie(function(e,n){return function(t){return ir(e,t,n)}});function $u(e,n,t){var a=ke(n),l=Zr(n,a);t==null&&!(Ge(n)&&(l.length||!a.length))&&(t=n,n=e,e=this,l=Zr(n,ke(n)));var p=!(Ge(t)&&"chain"in t)||!!t.chain,v=et(e);return Sn(l,function(I){var x=n[I];e[I]=x,v&&(e.prototype[I]=function(){var O=this.__chain__;if(p||O){var P=e(this.__wrapped__),V=P.__actions__=fn(this.__actions__);return V.push({func:x,args:arguments,thisArg:e}),P.__chain__=O,P}return x.apply(e,at([this.value()],arguments))})}),e}function H0(){return je._===this&&(je._=hd),this}function Ku(){}function Y0(e){return e=ne(e),ie(function(n){return Xa(n,e)})}var J0=Fu(Se),z0=Fu(oa),k0=Fu(eu);function rl(e){return Nu(e)?nu(Hn(e)):yg(e)}function U0(e){return function(n){return e==null?u:At(e,n)}}var j0=as(),Q0=as(!0);function qu(){return[]}function eo(){return!1}function $0(){return{}}function K0(){return""}function q0(){return!0}function ev(e,n){if(e=ne(e),e<1||e>Ce)return[];var t=Ze,a=qe(e,Ze);n=j(n),e-=Ze;for(var l=iu(a,n);++t<e;)n(t);return l}function nv(e){return ee(e)?Se(e,Hn):Cn(e)?[e]:fn(ys(de(e)))}function tv(e){var n=++gd;return de(e)+n}var rv=Ur(function(e,n){return e+n},0),iv=Bu("ceil"),uv=Ur(function(e,n){return e/n},1),ov=Bu("floor");function av(e){return e&&e.length?Dr(e,pn,hu):u}function sv(e,n){return e&&e.length?Dr(e,j(n,2),hu):u}function lv(e){return la(e,pn)}function cv(e,n){return la(e,j(n,2))}function fv(e){return e&&e.length?Dr(e,pn,Iu):u}function dv(e,n){return e&&e.length?Dr(e,j(n,2),Iu):u}var gv=Ur(function(e,n){return e*n},1),pv=Bu("round"),hv=Ur(function(e,n){return e-n},0);function bv(e){return e&&e.length?ru(e,pn):0}function vv(e,n){return e&&e.length?ru(e,j(n,2)):0}return f.after=Xh,f.ary=_s,f.assign=wb,f.assignIn=Us,f.assignInWith=ai,f.assignWith=Gb,f.at=Rb,f.before=Vs,f.bind=Zu,f.bindAll=P0,f.bindKey=Ns,f.castArray=$h,f.chain=Ts,f.chunk=op,f.compact=ap,f.concat=sp,f.cond=_0,f.conforms=V0,f.constant=ju,f.countBy=bh,f.create=Fb,f.curry=Ws,f.curryRight=Ms,f.debounce=Xs,f.defaults=Bb,f.defaultsDeep=Tb,f.defer=Lh,f.delay=Dh,f.difference=lp,f.differenceBy=cp,f.differenceWith=fp,f.drop=dp,f.dropRight=gp,f.dropRightWhile=pp,f.dropWhile=hp,f.fill=bp,f.filter=mh,f.flatMap=Ah,f.flatMapDeep=xh,f.flatMapDepth=yh,f.flatten=Gs,f.flattenDeep=vp,f.flattenDepth=mp,f.flip=Zh,f.flow=W0,f.flowRight=M0,f.fromPairs=Ip,f.functions=Mb,f.functionsIn=Xb,f.groupBy=Eh,f.initial=Ap,f.intersection=xp,f.intersectionBy=yp,f.intersectionWith=Ep,f.invert=Db,f.invertBy=Zb,f.invokeMap=wh,f.iteratee=Qu,f.keyBy=Gh,f.keys=ke,f.keysIn=gn,f.map=ni,f.mapKeys=Yb,f.mapValues=Jb,f.matches=X0,f.matchesProperty=L0,f.memoize=ri,f.merge=zb,f.mergeWith=js,f.method=D0,f.methodOf=Z0,f.mixin=$u,f.negate=ii,f.nthArg=Y0,f.omit=kb,f.omitBy=Ub,f.once=Hh,f.orderBy=Rh,f.over=J0,f.overArgs=Yh,f.overEvery=z0,f.overSome=k0,f.partial=Hu,f.partialRight=Ls,f.partition=Fh,f.pick=jb,f.pickBy=Qs,f.property=rl,f.propertyOf=U0,f.pull=Rp,f.pullAll=Fs,f.pullAllBy=Fp,f.pullAllWith=Bp,f.pullAt=Tp,f.range=j0,f.rangeRight=Q0,f.rearg=Jh,f.reject=Oh,f.remove=Op,f.rest=zh,f.reverse=Lu,f.sampleSize=_h,f.set=$b,f.setWith=Kb,f.shuffle=Vh,f.slice=Pp,f.sortBy=Mh,f.sortedUniq=Lp,f.sortedUniqBy=Dp,f.split=A0,f.spread=kh,f.tail=Zp,f.take=Hp,f.takeRight=Yp,f.takeRightWhile=Jp,f.takeWhile=zp,f.tap=ah,f.throttle=Uh,f.thru=ei,f.toArray=Js,f.toPairs=$s,f.toPairsIn=Ks,f.toPath=nv,f.toPlainObject=ks,f.transform=qb,f.unary=jh,f.union=kp,f.unionBy=Up,f.unionWith=jp,f.uniq=Qp,f.uniqBy=$p,f.uniqWith=Kp,f.unset=e0,f.unzip=Du,f.unzipWith=Bs,f.update=n0,f.updateWith=t0,f.values=Lt,f.valuesIn=r0,f.without=qp,f.words=nl,f.wrap=Qh,f.xor=eh,f.xorBy=nh,f.xorWith=th,f.zip=rh,f.zipObject=ih,f.zipObjectDeep=uh,f.zipWith=oh,f.entries=$s,f.entriesIn=Ks,f.extend=Us,f.extendWith=ai,$u(f,f),f.add=rv,f.attempt=tl,f.camelCase=a0,f.capitalize=qs,f.ceil=iv,f.clamp=i0,f.clone=Kh,f.cloneDeep=eb,f.cloneDeepWith=nb,f.cloneWith=qh,f.conformsTo=tb,f.deburr=el,f.defaultTo=N0,f.divide=uv,f.endsWith=s0,f.eq=Wn,f.escape=l0,f.escapeRegExp=c0,f.every=vh,f.find=Ih,f.findIndex=Ss,f.findKey=Ob,f.findLast=Ch,f.findLastIndex=ws,f.findLastKey=Pb,f.floor=ov,f.forEach=Os,f.forEachRight=Ps,f.forIn=_b,f.forInRight=Vb,f.forOwn=Nb,f.forOwnRight=Wb,f.get=zu,f.gt=rb,f.gte=ib,f.has=Lb,f.hasIn=ku,f.head=Rs,f.identity=pn,f.includes=Sh,f.indexOf=Cp,f.inRange=u0,f.invoke=Hb,f.isArguments=Et,f.isArray=ee,f.isArrayBuffer=ub,f.isArrayLike=dn,f.isArrayLikeObject=Ne,f.isBoolean=ob,f.isBuffer=pt,f.isDate=ab,f.isElement=sb,f.isEmpty=lb,f.isEqual=cb,f.isEqualWith=fb,f.isError=Yu,f.isFinite=db,f.isFunction=et,f.isInteger=Ds,f.isLength=ui,f.isMap=Zs,f.isMatch=gb,f.isMatchWith=pb,f.isNaN=hb,f.isNative=bb,f.isNil=mb,f.isNull=vb,f.isNumber=Hs,f.isObject=Ge,f.isObjectLike=Be,f.isPlainObject=cr,f.isRegExp=Ju,f.isSafeInteger=Ib,f.isSet=Ys,f.isString=oi,f.isSymbol=Cn,f.isTypedArray=Xt,f.isUndefined=Cb,f.isWeakMap=Ab,f.isWeakSet=xb,f.join=Sp,f.kebabCase=f0,f.last=Bn,f.lastIndexOf=wp,f.lowerCase=d0,f.lowerFirst=g0,f.lt=yb,f.lte=Eb,f.max=av,f.maxBy=sv,f.mean=lv,f.meanBy=cv,f.min=fv,f.minBy=dv,f.stubArray=qu,f.stubFalse=eo,f.stubObject=$0,f.stubString=K0,f.stubTrue=q0,f.multiply=gv,f.nth=Gp,f.noConflict=H0,f.noop=Ku,f.now=ti,f.pad=p0,f.padEnd=h0,f.padStart=b0,f.parseInt=v0,f.random=o0,f.reduce=Bh,f.reduceRight=Th,f.repeat=m0,f.replace=I0,f.result=Qb,f.round=pv,f.runInContext=C,f.sample=Ph,f.size=Nh,f.snakeCase=C0,f.some=Wh,f.sortedIndex=_p,f.sortedIndexBy=Vp,f.sortedIndexOf=Np,f.sortedLastIndex=Wp,f.sortedLastIndexBy=Mp,f.sortedLastIndexOf=Xp,f.startCase=x0,f.startsWith=y0,f.subtract=hv,f.sum=bv,f.sumBy=vv,f.template=E0,f.times=ev,f.toFinite=nt,f.toInteger=ne,f.toLength=zs,f.toLower=S0,f.toNumber=Tn,f.toSafeInteger=Sb,f.toString=de,f.toUpper=w0,f.trim=G0,f.trimEnd=R0,f.trimStart=F0,f.truncate=B0,f.unescape=T0,f.uniqueId=tv,f.upperCase=O0,f.upperFirst=Uu,f.each=Os,f.eachRight=Ps,f.first=Rs,$u(f,(function(){var e={};return Dn(f,function(n,t){be.call(f.prototype,t)||(e[t]=n)}),e})(),{chain:!1}),f.VERSION=s,Sn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){f[e].placeholder=f}),Sn(["drop","take"],function(e,n){ae.prototype[e]=function(t){t=t===u?1:ze(ne(t),0);var a=this.__filtered__&&!n?new ae(this):this.clone();return a.__filtered__?a.__takeCount__=qe(t,a.__takeCount__):a.__views__.push({size:qe(t,Ze),type:e+(a.__dir__<0?"Right":"")}),a},ae.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Sn(["filter","map","takeWhile"],function(e,n){var t=n+1,a=t==Pe||t==Ie;ae.prototype[e]=function(l){var p=this.clone();return p.__iteratees__.push({iteratee:j(l,3),type:t}),p.__filtered__=p.__filtered__||a,p}}),Sn(["head","last"],function(e,n){var t="take"+(n?"Right":"");ae.prototype[e]=function(){return this[t](1).value()[0]}}),Sn(["initial","tail"],function(e,n){var t="drop"+(n?"":"Right");ae.prototype[e]=function(){return this.__filtered__?new ae(this):this[t](1)}}),ae.prototype.compact=function(){return this.filter(pn)},ae.prototype.find=function(e){return this.filter(e).head()},ae.prototype.findLast=function(e){return this.reverse().find(e)},ae.prototype.invokeMap=ie(function(e,n){return typeof e=="function"?new ae(this):this.map(function(t){return ir(t,e,n)})}),ae.prototype.reject=function(e){return this.filter(ii(j(e)))},ae.prototype.slice=function(e,n){e=ne(e);var t=this;return t.__filtered__&&(e>0||n<0)?new ae(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==u&&(n=ne(n),t=n<0?t.dropRight(-n):t.take(n-e)),t)},ae.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ae.prototype.toArray=function(){return this.take(Ze)},Dn(ae.prototype,function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),l=f[a?"take"+(n=="last"?"Right":""):n],p=a||/^find/.test(n);l&&(f.prototype[n]=function(){var v=this.__wrapped__,I=a?[1]:arguments,x=v instanceof ae,O=I[0],P=x||ee(v),V=function(oe){var se=l.apply(f,at([oe],I));return a&&L?se[0]:se};P&&t&&typeof O=="function"&&O.length!=1&&(x=P=!1);var L=this.__chain__,Y=!!this.__actions__.length,Q=p&&!L,re=x&&!Y;if(!p&&P){v=re?v:new ae(this);var $=e.apply(v,I);return $.__actions__.push({func:ei,args:[V],thisArg:u}),new Gn($,L)}return Q&&re?e.apply(this,I):($=this.thru(V),Q?a?$.value()[0]:$.value():$)})}),Sn(["pop","push","shift","sort","splice","unshift"],function(e){var n=wr[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);f.prototype[e]=function(){var l=arguments;if(a&&!this.__chain__){var p=this.value();return n.apply(ee(p)?p:[],l)}return this[t](function(v){return n.apply(ee(v)?v:[],l)})}}),Dn(ae.prototype,function(e,n){var t=f[n];if(t){var a=t.name+"";be.call(_t,a)||(_t[a]=[]),_t[a].push({name:n,func:t})}}),_t[kr(u,T).name]=[{name:"wrapper",func:u}],ae.prototype.clone=Td,ae.prototype.reverse=Od,ae.prototype.value=Pd,f.prototype.at=sh,f.prototype.chain=lh,f.prototype.commit=ch,f.prototype.next=fh,f.prototype.plant=gh,f.prototype.reverse=ph,f.prototype.toJSON=f.prototype.valueOf=f.prototype.value=hh,f.prototype.first=f.prototype.head,$t&&(f.prototype[$t]=dh),f}),Tt=cd();bt?((bt.exports=Tt)._=Tt,Qi._=Tt):je._=Tt}).call(Ev)})(gr,gr.exports)),gr.exports}var pi=Sv();const al={session:{"webforms.renderer.showPopOver":!0,"webforms.renderer.showUnsavedPopOver":!0,"webforms.tooltip.behavior":Xe.ETooltipBehavior.SHOW_AFTER_TIMEOUT,"webforms.tooltip.timeout":3e3,"studio.tips":!0,"welcometour.active":!0,"studio.enablePreview":!1},project:{"webforms.renderer.indexPage":"","webforms.display-mode":"neutral"}},wv=i=>[{name:On.FolderRootPath.WEBFORMS,path:On.FolderRootPath.WEBFORMS,type:On.FileFolderType.FOLDER,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0,children:i.map(r=>({name:r.name,path:`${On.FolderRootPath.WEBFORMS}/${r.name}`,type:On.FileFolderType.WEBFORM,ext:"WebForm",error:null,flags:{},config:{}}))}],Gv=({tabPath:i=null,preferences:r,qodly:u=!0,explorer:s,webforms:o=[]})=>{var b,g,h;const c=o.length?o:((h=(g=(b=s==null?void 0:s.find(m=>m.path===On.FolderRootPath.WEBFORMS))==null?void 0:b.children)==null?void 0:g.filter(m=>(m==null?void 0:m.ext)==="WebForm"))==null?void 0:h.map(m=>({name:m.name})))??[],d=r===void 0?{session:{...al.session},project:{...al.project}}:{session:{...r.session??{}},project:{...r.project??{}}};return{tabPath:i,preferences:d,qodly:u,explorer:s??wv(c),webforms:c}};function Hl(i,r){return i.reduce((u,s)=>u||(s.path===r?s:s.children?Hl(s.children,r):null),null)}function Rv(i,r){switch(r.type){case"SET_TAB_PATH":return{...i,tabPath:r.payload};case"SET_PREFERENCES":return{...i,preferences:r.payload};case"SET_QODLY":return{...i,qodly:r.payload};case"SET_EXPLORER":return{...i,explorer:r.payload};case"SET_WEBFORMS":return{...i,webforms:r.payload};case"SET_SETTING":{const{path:u,settingsKey:s,value:o}=r.payload;return{...i,preferences:{...i.preferences,[u]:{...i.preferences[u]??{},[s]:o}}}}case"SET_SETTINGS_AS_TEXT":{const{path:u,settings:s}=r.payload;return{...i,preferences:{...i.preferences,[u]:s}}}default:return i}}const Yl=_.createContext(null),Fv=({children:i,tabPath:r,preferences:u,qodly:s,explorer:o,webforms:c,onFetchFolderContentWithoutExpanding:d,onCreateNewFileAndOpen:b,onOpenModal:g,onChange:h})=>{const[m,A]=_.useReducer(Rv,Gv({tabPath:r,preferences:u,qodly:s,explorer:o,webforms:c}));_.useEffect(()=>{h==null||h(m.preferences)},[m.preferences,h]),_.useEffect(()=>{r!==void 0&&m.tabPath!==r&&A({type:"SET_TAB_PATH",payload:r})},[r,m.tabPath]),_.useEffect(()=>{u!==void 0&&!pi.isEqual(m.preferences,u)&&A({type:"SET_PREFERENCES",payload:{session:{...u.session??{}},project:{...u.project??{}}}})},[u,m.preferences]),_.useEffect(()=>{s!==void 0&&m.qodly!==s&&A({type:"SET_QODLY",payload:s})},[s,m.qodly]),_.useEffect(()=>{o&&(pi.isEqual(m.explorer,o)||A({type:"SET_EXPLORER",payload:o}))},[o,m.explorer]),_.useEffect(()=>{c!==void 0&&!pi.isEqual(m.webforms,c)&&A({type:"SET_WEBFORMS",payload:c})},[c,m.webforms]);const B=_.useMemo(()=>({onFetchFolderContentWithoutExpanding:d,onCreateNewFileAndOpen:b,onOpenModal:g}),[d,b,g]);return U.jsx(Yl.Provider,{value:{state:m,dispatch:A,externalActions:B},children:i})};function Bv(i){const r=_.useContext(Yl);if(!r)throw new Error("useReducerAdapter must be used within a ReducerAdapterProvider");const{state:u,dispatch:s,externalActions:o}=r;return{getTabPath:_.useCallback(()=>i??u.tabPath,[i,u.tabPath]),getPreferences:_.useCallback(()=>u.preferences,[u.preferences]),getQodly:_.useCallback(()=>u.qodly,[u.qodly]),getFeatureFlag:_.useCallback(c=>c==="states"?!0:!!u.preferences.session[`features.experimental.${c}`],[u.preferences.session]),getExplorer:_.useCallback(()=>u.explorer,[u.explorer]),getWebForms:_.useCallback(()=>u.webforms,[u.webforms]),findNodeByPath:_.useCallback(c=>Hl(u.explorer,c),[u.explorer]),actions:{setSetting:_.useCallback(c=>{s({type:"SET_SETTING",payload:c})},[]),setSettingsAsText:_.useCallback(c=>{s({type:"SET_SETTINGS_AS_TEXT",payload:c})},[]),fetchFolderContentWithoutExpanding:_.useCallback(async c=>o.onFetchFolderContentWithoutExpanding?o.onFetchFolderContentWithoutExpanding(c):Promise.reject(new Error("ReducerAdapterProvider must receive onFetchFolderContentWithoutExpanding when using features that load folder content (e.g. WebformSelector).")),[o]),createNewFileAndOpen:_.useCallback(async c=>o.onCreateNewFileAndOpen?o.onCreateNewFileAndOpen(c):Promise.reject(new Error("ReducerAdapterProvider must receive onCreateNewFileAndOpen when using features that create new files (e.g. WebformSelector).")),[o]),openModal:_.useCallback(async c=>o.onOpenModal?o.onOpenModal(c):typeof window<"u"&&c.type===On.ModalType.CONFIRM?{confirmed:window.confirm(c.message)}:{confirmed:!0},[o])}}}const Tv=({name:i,value:r,defaultValue:u,options:s,onChange:o,setTouched:c})=>{const[d,b]=_.useState(u),g=r??d;return U.jsx("div",{role:"radiogroup","aria-label":i,className:"flex items-center gap-1",children:s.map(h=>{const m=g===h.value;return U.jsx("button",{type:"button",role:"radio",name:i,"aria-checked":m,title:h.tooltip,onClick:()=>{var A;c==null||c(!0),b(h.value),o==null||o(h.value),(A=h.onClick)==null||A.call(h,h.value)},className:`inline-flex h-7 w-7 items-center justify-center rounded transition-colors ${m?"text-grey-50":"text-grey-300 hover:text-grey-100"}`,children:_.createElement(h.icon,{className:"h-4 w-4"})},h.value)})})},Ov=({icon:i,label:r,path:u,settingsKey:s,options:o})=>{const c=zt(),d=c.getPreferences()[u][s];return U.jsx("div",{className:"select-none space-y-4 rounded-md p-4 hover:bg-primary-hover",children:U.jsxs("div",{className:"flex items-center",children:[U.jsx("span",{className:"mr-3 flex h-6 w-6 items-center justify-center",children:_.createElement(i,{className:"w-full h-full text-white"})}),U.jsx("div",{className:"text-sm",children:r}),U.jsx("span",{className:"ml-auto",children:U.jsx(Tv,{name:"tooltip-behavior",value:d,onChange:b=>{c.actions.setSetting({path:u,settingsKey:s,value:b})},options:o})})]})})},Pv=({icon:i,label:r,path:u,settingsKey:s,title:o})=>{const c=zt(),b=c.getPreferences()[u][s]/1e3,[g,h]=_.useState(String(b));_.useEffect(()=>{h(String(b))},[b]);const m=_.useCallback(B=>{const E=Math.max(1,Math.min(60,B));h(String(E)),c.actions.setSetting({path:u,settingsKey:s,value:E*1e3})},[c.actions,u,s]),A=()=>{if(g.trim()===""){h(String(b));return}const B=Number(g);if(!Number.isFinite(B)){h(String(b));return}m(B)};return U.jsx("div",{className:"select-none space-y-4 rounded p-4 hover:bg-primary-hover",children:U.jsxs("div",{className:"flex items-center",children:[U.jsx("span",{className:"mr-3 flex h-6 w-6 items-center justify-center",children:_.createElement(i,{className:"w-full h-full text-white"})}),U.jsx("div",{className:"text-sm",children:r}),U.jsx("span",{className:"relative ml-auto flex",children:U.jsxs("span",{className:"flex h-6 w-10 overflow-hidden rounded bg-grey-300",children:[U.jsx("input",{type:"text",inputMode:"numeric",title:o,value:g,onChange:B=>{const E=B.target.value.replace(/[^\d]/g,"");h(E)},onBlur:A,onKeyDown:B=>{B.key==="Enter"&&A()},className:"w-6 bg-grey-300 pl-1.5 text-xs text-grey-50 focus:outline-none"}),U.jsxs("span",{className:"ml-auto flex w-4 flex-col border-l border-grey-500 bg-grey-300",children:[U.jsx("button",{type:"button",className:"h-3 w-4 text-[8px] leading-none text-grey-50 hover:bg-primary-hover","aria-label":"Increment value",onClick:()=>m(b+1),children:"▲"}),U.jsx("button",{type:"button",className:"h-3 w-4 text-[8px] leading-none text-grey-50 hover:bg-primary-hover","aria-label":"Decrement value",onClick:()=>m(b-1),children:"▼"})]})]})})]})})},_v=({icon:i,label:r,path:u,settingsKey:s})=>{const o=zt(),c=o.getPreferences()[u][s];return U.jsx("div",{className:"select-none space-y-4 rounded-md p-4 hover:bg-primary-hover",children:U.jsxs("div",{className:"flex items-center",children:[U.jsx("span",{className:"mr-3 flex h-6 w-6 items-center justify-center",children:_.createElement(i,{className:"w-full h-full text-white"})}),U.jsx("div",{className:"text-sm",children:r}),U.jsx("span",{className:"ml-auto",children:U.jsxs(mv.Switch,{checked:c,onChange:d=>{o.actions.setSetting({path:u,settingsKey:s,value:d})},className:`${c?"bg-primary-dark":"bg-grey-300"}
|
|
28
|
-
relative inline-flex h-5 w-8 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:[U.jsx("span",{className:"sr-only",children:r}),U.jsx("span",{"aria-hidden":"true",className:`${c?"translate-x-3":"translate-x-0"}
|
|
29
|
-
pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})]})})]})})},Vv={input:i=>({...i,color:"#eaeaea",margin:0,padding:0}),control:(i,r)=>({backgroundColor:"#535353",color:"#eaeaea",borderRadius:"4px",display:"flex",width:208,borderTop:"0px",border:r!=null&&r.menuIsOpen?"1px solid #F1F5F9":"",borderBottom:r!=null&&r.menuIsOpen?"0px":"",borderBottomLeftRadius:r!=null&&r.menuIsOpen?"0px":"4px",borderBottomRightRadius:r!=null&&r.menuIsOpen?"0px":"4px"}),valueContainer:i=>({...i,padding:"0 2px",display:"flex",flex:1,position:"relative",boxSizing:"border-box",overflow:"hidden",alignItems:"center"}),indicatorsContainer:i=>({...i,padding:0}),dropdownIndicator:i=>({...i,padding:"4px"}),clearIndicator:i=>({...i,padding:"4px"}),container:i=>({...i,flex:1}),menu:(i,r)=>{var u,s;return{...i,backgroundColor:"#262626",color:"#eaeaea",borderRadius:"4px",padding:0,zIndex:11,boxShadow:"4px 4px 8px #222222",margin:0,border:"1px solid #F1F5F9",borderTopLeftRadius:(u=r==null?void 0:r.selectProps)!=null&&u.menuIsOpen?"0px":"4px",borderTopRightRadius:(s=r==null?void 0:r.selectProps)!=null&&s.menuIsOpen?"0px":"4px"}},menuList:i=>({...i,padding:0,borderRadius:"4px"}),option:(i,r)=>({...i,padding:4,color:"#75499A",backgroundColor:r.isFocused?"#75499A":"#262626",":active":{backgroundColor:"#75499A"}}),group:i=>({...i,paddingTop:"8px",paddingBottom:0}),groupHeading:i=>({...i,textTransform:"none",fontSize:".7rem",marginTop:2,marginBottom:5}),singleValue:i=>({...i,color:"#eaeaea",marginLeft:"7px",maxWidth:"calc(100% - 14px)"}),menuPortal:i=>({...i,zIndex:9999,fontSize:"0.7rem"}),placeholder:i=>({...i,marginLeft:"7px"})};var no={exports:{}};/*!
|
|
26
|
+
`)+X+`return __p
|
|
27
|
+
}`;var Ce=Gu(function(){return Le(g,be+"return "+X).apply(n,m)});if(Ce.source=X,Ga(Ce))throw Ce;return Ce}function O0(e){return We(e).toLowerCase()}function N0(e){return We(e).toUpperCase()}function C0(e,t,o){if(e=We(e),e&&(o||t===n))return nc(e);if(!e||!(t=Ht(t)))return e;var c=nr(e),p=nr(t),g=oc(c,p),m=ic(c,p)+1;return Lr(c,g,m).join("")}function R0(e,t,o){if(e=We(e),e&&(o||t===n))return e.slice(0,sc(e)+1);if(!e||!(t=Ht(t)))return e;var c=nr(e),p=ic(c,nr(t))+1;return Lr(c,0,p).join("")}function D0(e,t,o){if(e=We(e),e&&(o||t===n))return e.replace(Gi,"");if(!e||!(t=Ht(t)))return e;var c=nr(e),p=oc(c,nr(t));return Lr(c,p).join("")}function z0(e,t){var o=ae,c=ce;if(et(t)){var p="separator"in t?t.separator:p;o="length"in t?Oe(t.length):o,c="omission"in t?Ht(t.omission):c}e=We(e);var g=e.length;if(hn(e)){var m=nr(e);g=m.length}if(o>=g)return e;var _=o-gn(c);if(_<1)return c;var R=m?Lr(m,0,_).join(""):e.slice(0,_);if(p===n)return R+c;if(m&&(_+=R.length-_),Ya(p)){if(e.slice(_).search(p)){var K,U=R;for(p.global||(p=da(p.source,We(El.exec(p))+"g")),p.lastIndex=0;K=p.exec(U);)var X=K.index;R=R.slice(0,X===n?_:X)}}else if(e.indexOf(Ht(p),_)!=_){var de=R.lastIndexOf(p);de>-1&&(R=R.slice(0,de))}return R+c}function M0(e){return e=We(e),e&&cn.test(e)?e.replace(xt,lg):e}var T0=_n(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),Ja=Yc("toUpperCase");function qu(e,t,o){return e=We(e),t=o?n:t,t===n?ng(e)?dg(e):Gh(e):e.match(t)||[]}var Gu=Re(function(e,t){try{return Ft(e,n,t)}catch(o){return Ga(o)?o:new Ee(o)}}),A0=yr(function(e,t){return Gt(t,function(o){o=pr(o),wr(e,o,Ua(e[o],e))}),e});function P0(e){var t=e==null?0:e.length,o=ye();return e=t?Je(e,function(c){if(typeof c[1]!="function")throw new Yt(u);return[o(c[0]),c[1]]}):[],Re(function(c){for(var p=-1;++p<t;){var g=e[p];if(Ft(g[0],this,c))return Ft(g[1],this,c)}})}function L0(e){return lv(Zt(e,w))}function Qa(e){return function(){return e}}function B0(e,t){return e==null||e!==e?t:e}var F0=Zc(),W0=Zc(!0);function Lt(e){return e}function es(e){return Oc(typeof e=="function"?e:Zt(e,w))}function H0(e){return Cc(Zt(e,w))}function j0(e,t){return Rc(e,Zt(t,w))}var V0=Re(function(e,t){return function(o){return Yn(o,e,t)}}),$0=Re(function(e,t){return function(o){return Yn(e,o,t)}});function ts(e,t,o){var c=ht(t),p=Ho(t,c);o==null&&!(et(t)&&(p.length||!c.length))&&(o=t,t=e,e=this,p=Ho(t,ht(t)));var g=!(et(o)&&"chain"in o)||!!o.chain,m=Ir(e);return Gt(p,function(_){var R=t[_];e[_]=R,m&&(e.prototype[_]=function(){var K=this.__chain__;if(g||K){var U=e(this.__wrapped__),X=U.__actions__=Tt(this.__actions__);return X.push({func:R,args:arguments,thisArg:e}),U.__chain__=K,U}return R.apply(e,Dr([this.value()],arguments))})}),e}function K0(){return yt._===this&&(yt._=bg),this}function rs(){}function U0(e){return e=Oe(e),Re(function(t){return Dc(t,e)})}var q0=Ma(Je),G0=Ma(Jl),Y0=Ma(oa);function Yu(e){return Wa(e)?ia(pr(e)):Ev(e)}function X0(e){return function(t){return e==null?n:Jr(e,t)}}var Z0=Qc(),J0=Qc(!0);function ns(){return[]}function os(){return!1}function Q0(){return{}}function ex(){return""}function tx(){return!0}function rx(e,t){if(e=Oe(e),e<1||e>Y)return[];var o=F,c=It(e,F);t=ye(t),e-=F;for(var p=la(c,t);++o<e;)t(o);return p}function nx(e){return Se(e)?Je(e,pr):jt(e)?[e]:Tt(gu(We(e)))}function ox(e){var t=++gg;return We(e)+t}var ix=qo(function(e,t){return e+t},0),ax=Ta("ceil"),sx=qo(function(e,t){return e/t},1),lx=Ta("floor");function cx(e){return e&&e.length?Wo(e,Lt,wa):n}function ux(e,t){return e&&e.length?Wo(e,ye(t,2),wa):n}function dx(e){return tc(e,Lt)}function px(e,t){return tc(e,ye(t,2))}function fx(e){return e&&e.length?Wo(e,Lt,Ia):n}function hx(e,t){return e&&e.length?Wo(e,ye(t,2),Ia):n}var gx=qo(function(e,t){return e*t},1),vx=Ta("round"),bx=qo(function(e,t){return e-t},0);function mx(e){return e&&e.length?sa(e,Lt):0}function wx(e,t){return e&&e.length?sa(e,ye(t,2)):0}return h.after=Hm,h.ary=Su,h.assign=Nw,h.assignIn=Wu,h.assignInWith=ai,h.assignWith=Cw,h.at=Rw,h.before=Ou,h.bind=Ua,h.bindAll=A0,h.bindKey=Nu,h.castArray=Qm,h.chain=Iu,h.chunk=lb,h.compact=cb,h.concat=ub,h.cond=P0,h.conforms=L0,h.constant=Qa,h.countBy=mm,h.create=Dw,h.curry=Cu,h.curryRight=Ru,h.debounce=Du,h.defaults=zw,h.defaultsDeep=Mw,h.defer=jm,h.delay=Vm,h.difference=db,h.differenceBy=pb,h.differenceWith=fb,h.drop=hb,h.dropRight=gb,h.dropRightWhile=vb,h.dropWhile=bb,h.fill=mb,h.filter=xm,h.flatMap=Im,h.flatMapDeep=km,h.flatMapDepth=Em,h.flatten=wu,h.flattenDeep=wb,h.flattenDepth=xb,h.flip=$m,h.flow=F0,h.flowRight=W0,h.fromPairs=yb,h.functions=Ww,h.functionsIn=Hw,h.groupBy=Sm,h.initial=Ib,h.intersection=kb,h.intersectionBy=Eb,h.intersectionWith=Sb,h.invert=Vw,h.invertBy=$w,h.invokeMap=Nm,h.iteratee=es,h.keyBy=Cm,h.keys=ht,h.keysIn=Pt,h.map=ei,h.mapKeys=Uw,h.mapValues=qw,h.matches=H0,h.matchesProperty=j0,h.memoize=ri,h.merge=Gw,h.mergeWith=Hu,h.method=V0,h.methodOf=$0,h.mixin=ts,h.negate=ni,h.nthArg=U0,h.omit=Yw,h.omitBy=Xw,h.once=Km,h.orderBy=Rm,h.over=q0,h.overArgs=Um,h.overEvery=G0,h.overSome=Y0,h.partial=qa,h.partialRight=zu,h.partition=Dm,h.pick=Zw,h.pickBy=ju,h.property=Yu,h.propertyOf=X0,h.pull=Rb,h.pullAll=yu,h.pullAllBy=Db,h.pullAllWith=zb,h.pullAt=Mb,h.range=Z0,h.rangeRight=J0,h.rearg=qm,h.reject=Tm,h.remove=Tb,h.rest=Gm,h.reverse=$a,h.sampleSize=Pm,h.set=Qw,h.setWith=e0,h.shuffle=Lm,h.slice=Ab,h.sortBy=Wm,h.sortedUniq=jb,h.sortedUniqBy=Vb,h.split=I0,h.spread=Ym,h.tail=$b,h.take=Kb,h.takeRight=Ub,h.takeRightWhile=qb,h.takeWhile=Gb,h.tap=cm,h.throttle=Xm,h.thru=Qo,h.toArray=Lu,h.toPairs=Vu,h.toPairsIn=$u,h.toPath=nx,h.toPlainObject=Fu,h.transform=t0,h.unary=Zm,h.union=Yb,h.unionBy=Xb,h.unionWith=Zb,h.uniq=Jb,h.uniqBy=Qb,h.uniqWith=em,h.unset=r0,h.unzip=Ka,h.unzipWith=_u,h.update=n0,h.updateWith=o0,h.values=En,h.valuesIn=i0,h.without=tm,h.words=qu,h.wrap=Jm,h.xor=rm,h.xorBy=nm,h.xorWith=om,h.zip=im,h.zipObject=am,h.zipObjectDeep=sm,h.zipWith=lm,h.entries=Vu,h.entriesIn=$u,h.extend=Wu,h.extendWith=ai,ts(h,h),h.add=ix,h.attempt=Gu,h.camelCase=c0,h.capitalize=Ku,h.ceil=ax,h.clamp=a0,h.clone=ew,h.cloneDeep=rw,h.cloneDeepWith=nw,h.cloneWith=tw,h.conformsTo=ow,h.deburr=Uu,h.defaultTo=B0,h.divide=sx,h.endsWith=u0,h.eq=ir,h.escape=d0,h.escapeRegExp=p0,h.every=wm,h.find=ym,h.findIndex=bu,h.findKey=Tw,h.findLast=_m,h.findLastIndex=mu,h.findLastKey=Aw,h.floor=lx,h.forEach=ku,h.forEachRight=Eu,h.forIn=Pw,h.forInRight=Lw,h.forOwn=Bw,h.forOwnRight=Fw,h.get=Xa,h.gt=iw,h.gte=aw,h.has=jw,h.hasIn=Za,h.head=xu,h.identity=Lt,h.includes=Om,h.indexOf=_b,h.inRange=s0,h.invoke=Kw,h.isArguments=tn,h.isArray=Se,h.isArrayBuffer=sw,h.isArrayLike=At,h.isArrayLikeObject=it,h.isBoolean=lw,h.isBuffer=Br,h.isDate=cw,h.isElement=uw,h.isEmpty=dw,h.isEqual=pw,h.isEqualWith=fw,h.isError=Ga,h.isFinite=hw,h.isFunction=Ir,h.isInteger=Mu,h.isLength=oi,h.isMap=Tu,h.isMatch=gw,h.isMatchWith=vw,h.isNaN=bw,h.isNative=mw,h.isNil=xw,h.isNull=ww,h.isNumber=Au,h.isObject=et,h.isObjectLike=rt,h.isPlainObject=to,h.isRegExp=Ya,h.isSafeInteger=yw,h.isSet=Pu,h.isString=ii,h.isSymbol=jt,h.isTypedArray=kn,h.isUndefined=_w,h.isWeakMap=Iw,h.isWeakSet=kw,h.join=Ob,h.kebabCase=f0,h.last=Qt,h.lastIndexOf=Nb,h.lowerCase=h0,h.lowerFirst=g0,h.lt=Ew,h.lte=Sw,h.max=cx,h.maxBy=ux,h.mean=dx,h.meanBy=px,h.min=fx,h.minBy=hx,h.stubArray=ns,h.stubFalse=os,h.stubObject=Q0,h.stubString=ex,h.stubTrue=tx,h.multiply=gx,h.nth=Cb,h.noConflict=K0,h.noop=rs,h.now=ti,h.pad=v0,h.padEnd=b0,h.padStart=m0,h.parseInt=w0,h.random=l0,h.reduce=zm,h.reduceRight=Mm,h.repeat=x0,h.replace=y0,h.result=Jw,h.round=vx,h.runInContext=C,h.sample=Am,h.size=Bm,h.snakeCase=_0,h.some=Fm,h.sortedIndex=Pb,h.sortedIndexBy=Lb,h.sortedIndexOf=Bb,h.sortedLastIndex=Fb,h.sortedLastIndexBy=Wb,h.sortedLastIndexOf=Hb,h.startCase=k0,h.startsWith=E0,h.subtract=bx,h.sum=mx,h.sumBy=wx,h.template=S0,h.times=rx,h.toFinite=kr,h.toInteger=Oe,h.toLength=Bu,h.toLower=O0,h.toNumber=er,h.toSafeInteger=Ow,h.toString=We,h.toUpper=N0,h.trim=C0,h.trimEnd=R0,h.trimStart=D0,h.truncate=z0,h.unescape=M0,h.uniqueId=ox,h.upperCase=T0,h.upperFirst=Ja,h.each=ku,h.eachRight=Eu,h.first=xu,ts(h,(function(){var e={};return ur(h,function(t,o){Ve.call(h.prototype,o)||(e[o]=t)}),e})(),{chain:!1}),h.VERSION=a,Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){h[e].placeholder=h}),Gt(["drop","take"],function(e,t){Me.prototype[e]=function(o){o=o===n?1:pt(Oe(o),0);var c=this.__filtered__&&!t?new Me(this):this.clone();return c.__filtered__?c.__takeCount__=It(o,c.__takeCount__):c.__views__.push({size:It(o,F),type:e+(c.__dir__<0?"Right":"")}),c},Me.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),Gt(["filter","map","takeWhile"],function(e,t){var o=t+1,c=o==se||o==we;Me.prototype[e]=function(p){var g=this.clone();return g.__iteratees__.push({iteratee:ye(p,3),type:o}),g.__filtered__=g.__filtered__||c,g}}),Gt(["head","last"],function(e,t){var o="take"+(t?"Right":"");Me.prototype[e]=function(){return this[o](1).value()[0]}}),Gt(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");Me.prototype[e]=function(){return this.__filtered__?new Me(this):this[o](1)}}),Me.prototype.compact=function(){return this.filter(Lt)},Me.prototype.find=function(e){return this.filter(e).head()},Me.prototype.findLast=function(e){return this.reverse().find(e)},Me.prototype.invokeMap=Re(function(e,t){return typeof e=="function"?new Me(this):this.map(function(o){return Yn(o,e,t)})}),Me.prototype.reject=function(e){return this.filter(ni(ye(e)))},Me.prototype.slice=function(e,t){e=Oe(e);var o=this;return o.__filtered__&&(e>0||t<0)?new Me(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==n&&(t=Oe(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},Me.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Me.prototype.toArray=function(){return this.take(F)},ur(Me.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),c=/^(?:head|last)$/.test(t),p=h[c?"take"+(t=="last"?"Right":""):t],g=c||/^find/.test(t);p&&(h.prototype[t]=function(){var m=this.__wrapped__,_=c?[1]:arguments,R=m instanceof Me,K=_[0],U=R||Se(m),X=function(ze){var Te=p.apply(h,Dr([ze],_));return c&&de?Te[0]:Te};U&&o&&typeof K=="function"&&K.length!=1&&(R=U=!1);var de=this.__chain__,be=!!this.__actions__.length,Ie=g&&!de,Ce=R&&!be;if(!g&&U){m=Ce?m:new Me(this);var ke=e.apply(m,_);return ke.__actions__.push({func:Qo,args:[X],thisArg:n}),new Xt(ke,de)}return Ie&&Ce?e.apply(this,_):(ke=this.thru(X),Ie?c?ke.value()[0]:ke.value():ke)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Eo[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",c=/^(?:pop|shift)$/.test(e);h.prototype[e]=function(){var p=arguments;if(c&&!this.__chain__){var g=this.value();return t.apply(Se(g)?g:[],p)}return this[o](function(m){return t.apply(Se(m)?m:[],p)})}}),ur(Me.prototype,function(e,t){var o=h[t];if(o){var c=o.name+"";Ve.call(wn,c)||(wn[c]=[]),wn[c].push({name:t,func:o})}}),wn[Uo(n,B).name]=[{name:"wrapper",func:n}],Me.prototype.clone=Mg,Me.prototype.reverse=Tg,Me.prototype.value=Ag,h.prototype.at=um,h.prototype.chain=dm,h.prototype.commit=pm,h.prototype.next=fm,h.prototype.plant=gm,h.prototype.reverse=vm,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=bm,h.prototype.first=h.prototype.head,jn&&(h.prototype[jn]=hm),h}),vn=pg();qr?((qr.exports=vn)._=vn,ea._=vn):yt._=vn}).call(Ix)})(ao,ao.exports)),ao.exports}var yi=kx();const Ci={session:{"webforms.renderer.showPopOver":!0,"webforms.renderer.showUnsavedPopOver":!0,"webforms.tooltip.behavior":ut.ETooltipBehavior.SHOW_AFTER_TIMEOUT,"webforms.tooltip.timeout":3e3,"studio.tips":!0,"welcometour.active":!0,"studio.enablePreview":!1},project:{"webforms.renderer.indexPage":"","webforms.display-mode":"neutral"}},Ex=r=>[{name:Rt.FolderRootPath.WEBFORMS,path:Rt.FolderRootPath.WEBFORMS,type:Rt.FileFolderType.FOLDER,error:null,flags:{expanded:!1,loading:!1,cached:!1},config:{},isRoot:!0,children:r.map(i=>({name:i.name,path:`${Rt.FolderRootPath.WEBFORMS}/${i.name}`,type:Rt.FileFolderType.WEBFORM,ext:"WebForm",error:null,flags:{},config:{}}))}],Sx=({tabPath:r=null,preferences:i={},qodly:n=!0,explorer:a,webforms:s=[]})=>{var d,f,v;const l=s.length?s:((v=(f=(d=a==null?void 0:a.find(b=>b.path===Rt.FolderRootPath.WEBFORMS))==null?void 0:d.children)==null?void 0:f.filter(b=>(b==null?void 0:b.ext)==="WebForm"))==null?void 0:v.map(b=>({name:b.name})))??[],u={session:{...Ci.session,...i.session??{}},project:{...Ci.project,...i.project??{}}};return{tabPath:r,preferences:u,qodly:n,explorer:a??Ex(l),webforms:l}};function Jd(r,i){return r.reduce((n,a)=>n||(a.path===i?a:a.children?Jd(a.children,i):null),null)}function Ox(r,i){switch(i.type){case"SET_TAB_PATH":return{...r,tabPath:i.payload};case"SET_PREFERENCES":return{...r,preferences:i.payload};case"SET_QODLY":return{...r,qodly:i.payload};case"SET_EXPLORER":return{...r,explorer:i.payload};case"SET_WEBFORMS":return{...r,webforms:i.payload};case"SET_SETTING":{const{path:n,settingsKey:a,value:s}=i.payload;return{...r,preferences:{...r.preferences,[n]:{...r.preferences[n]??{},[a]:s}}}}case"SET_SETTINGS_AS_TEXT":{const{path:n,settings:a}=i.payload;return{...r,preferences:{...r.preferences,[n]:a}}}default:return r}}const Qd=x.createContext(null),ep=({children:r,tabPath:i,preferences:n,qodly:a,explorer:s,webforms:l,onFetchFolderContentWithoutExpanding:u,onCreateNewFileAndOpen:d,onOpenModal:f,onChange:v})=>{const[b,w]=x.useReducer(Ox,Sx({tabPath:i,preferences:n,qodly:a,explorer:s,webforms:l}));Rt.useDidMountEffect(()=>{v==null||v(b.preferences)},[b.preferences,v]),x.useEffect(()=>{i!==void 0&&b.tabPath!==i&&w({type:"SET_TAB_PATH",payload:i})},[i,b.tabPath]),x.useEffect(()=>{n!==void 0&&!yi.isEqual(b.preferences,n)&&w({type:"SET_PREFERENCES",payload:{session:{...Ci.session,...n.session??{}},project:{...Ci.project,...n.project??{}}}})},[n]),x.useEffect(()=>{a!==void 0&&b.qodly!==a&&w({type:"SET_QODLY",payload:a})},[a,b.qodly]),x.useEffect(()=>{s&&(yi.isEqual(b.explorer,s)||w({type:"SET_EXPLORER",payload:s}))},[s,b.explorer]),x.useEffect(()=>{l!==void 0&&!yi.isEqual(b.webforms,l)&&w({type:"SET_WEBFORMS",payload:l})},[l,b.webforms]);const D=x.useMemo(()=>({onFetchFolderContentWithoutExpanding:u,onCreateNewFileAndOpen:d,onOpenModal:f}),[u,d,f]);return E.jsx(Qd.Provider,{value:{state:b,dispatch:w,externalActions:D},children:r})};function tp(r){const i=x.useContext(Qd);if(!i)throw new Error("useReducerAdapter must be used within a ReducerAdapterProvider");const{state:n,dispatch:a,externalActions:s}=i;return{getTabPath:x.useCallback(()=>r??n.tabPath,[r,n.tabPath]),getPreferences:x.useCallback(()=>n.preferences,[n.preferences]),getQodly:x.useCallback(()=>n.qodly,[n.qodly]),getFeatureFlag:x.useCallback(l=>l==="states"?!0:!!n.preferences.session[`features.experimental.${l}`],[n.preferences.session]),getExplorer:x.useCallback(()=>n.explorer,[n.explorer]),getWebForms:x.useCallback(()=>n.webforms,[n.webforms]),findNodeByPath:x.useCallback(l=>Jd(n.explorer,l),[n.explorer]),actions:{setSetting:x.useCallback(l=>{a({type:"SET_SETTING",payload:l})},[]),setSettingsAsText:x.useCallback(l=>{a({type:"SET_SETTINGS_AS_TEXT",payload:l})},[]),fetchFolderContentWithoutExpanding:x.useCallback(async l=>s.onFetchFolderContentWithoutExpanding?s.onFetchFolderContentWithoutExpanding(l):Promise.reject(new Error("ReducerAdapterProvider must receive onFetchFolderContentWithoutExpanding when using features that load folder content (e.g. WebformSelector).")),[s]),createNewFileAndOpen:x.useCallback(async l=>s.onCreateNewFileAndOpen?s.onCreateNewFileAndOpen(l):Promise.reject(new Error("ReducerAdapterProvider must receive onCreateNewFileAndOpen when using features that create new files (e.g. WebformSelector).")),[s]),openModal:x.useCallback(async l=>s.onOpenModal?s.onOpenModal(l):typeof window<"u"&&l.type===Rt.ModalType.CONFIRM?{confirmed:window.confirm(l.message)}:{confirmed:!0},[s])}}}const Nx=({name:r,value:i,defaultValue:n,options:a,onChange:s,setTouched:l})=>{const[u,d]=x.useState(n),f=i??u;return E.jsx("div",{role:"radiogroup","aria-label":r,className:"flex items-center gap-1",children:a.map(v=>{const b=f===v.value;return E.jsx("button",{type:"button",role:"radio",name:r,"aria-checked":b,title:v.tooltip,onClick:()=>{var w;l==null||l(!0),d(v.value),s==null||s(v.value),(w=v.onClick)==null||w.call(v,v.value)},className:`inline-flex h-7 w-7 items-center justify-center rounded transition-colors ${b?"text-grey-50":"text-grey-300 hover:text-grey-100"}`,children:x.createElement(v.icon,{className:"h-4 w-4"})},v.value)})})},Cx=({icon:r,label:i,path:n,settingsKey:a,options:s})=>{var d;const l=ho(),u=(d=l.getPreferences()[n])==null?void 0:d[a];return E.jsx("div",{className:"select-none space-y-4 rounded-md p-4 hover:bg-primary-hover",children:E.jsxs("div",{className:"flex items-center",children:[E.jsx("span",{className:"mr-3 flex h-6 w-6 items-center justify-center",children:x.createElement(r,{className:"w-full h-full"})}),E.jsx("div",{className:"text-sm",children:i}),E.jsx("span",{className:"ml-auto",children:E.jsx(Nx,{name:"tooltip-behavior",value:u,onChange:f=>{l.actions.setSetting({path:n,settingsKey:a,value:f})},options:s})})]})})};(function(){try{const r=document.createElement("style");r.setAttribute("data-vite-dev-id","ui-components.css"),r.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}:root:not(#\\#),:host:not(#\\#){--color-green-500:oklch(72.3% .219 149.579);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-500:oklch(65.6% .241 354.308);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.65rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--color-grey-50:var(--ws-grey-50);--color-grey-100:var(--ws-grey-100);--color-grey-200:var(--ws-grey-200);--color-grey-300:var(--ws-grey-300);--color-grey-400:var(--ws-grey-400);--color-grey-500:var(--ws-grey-500);--color-grey-600:var(--ws-grey-600);--color-grey-700:var(--ws-grey-700);--color-grey-800:var(--ws-grey-800);--color-primary-500:var(--ws-primary-500);--color-primary-600:var(--ws-primary-600);--color-primary-700:var(--ws-primary-700);--color-positive-200:var(--ws-positive-200);--color-positive-400:var(--ws-positive-400);--color-positive-500:var(--ws-positive-500);--color-positive-600:var(--ws-positive-600);--color-warning-500:var(--ws-warning-500);--color-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--text-xxs:.55rem;--text-s:.75rem;--min-height-6:1.5rem;--color-canvas-default:var(--ws-bg-default);--color-canvas-subtle:var(--ws-grey-100);--color-panel:var(--ws-grey-300);--color-panel-subtle:var(--ws-grey-200);--color-card:var(--ws-card-bg);--color-card-border:var(--ws-card-border);--color-body:var(--ws-bg-foreground);--color-body-bg:var(--ws-bg-default);--color-body-light:var(--ws-grey-100);--color-muted:var(--ws-text-muted);--color-neutral:var(--ws-grey-200);--color-button-text:var(--ws-button-fg);--color-primary:var(--ws-primary-default);--color-primary-hover:var(--ws-primary-hover);--color-primary-light:var(--ws-primary-light);--color-primary-dark:var(--ws-primary-dark);--color-positive:var(--ws-positive-500);--color-positive-hover:var(--ws-positive-hover);--color-positive-text:var(--ws-positive-text);--color-positive-bg:var(--ws-positive-bg);--color-positive-light:var(--ws-positive-light);--color-positive-dark:var(--ws-positive-dark);--color-negative:var(--ws-negative-500);--color-negative-hover:var(--ws-negative-hover);--color-negative-text:var(--ws-negative-text);--color-negative-bg:var(--ws-negative-bg);--color-negative-light:var(--ws-negative-light);--color-negative-dark:var(--ws-negative-dark);--color-warning:var(--ws-warning-500);--color-warning-hover:var(--ws-warning-hover);--color-warning-text:var(--ws-warning-text);--color-warning-bg:var(--ws-warning-bg);--color-warning-light:var(--ws-warning-light);--color-warning-dark:var(--ws-warning-dark);--color-input-bg:var(--ws-input-bg);--color-input-border:var(--ws-input-border);--color-input-text:var(--ws-input-text);--color-input-placeholder:var(--ws-input-placeholder);--color-input-focus-border:var(--ws-input-focus-border);--color-select-border:var(--ws-select-border);--color-select-text:var(--ws-select-text);--color-select-list-bg:var(--ws-select-list-bg);--color-input-option-hover-bg:var(--ws-input-option-hover-bg);--color-input-option-active-bg:var(--ws-input-option-active-bg);--color-input-option-active-text:var(--ws-input-option-active-text);--color-input-error-border:var(--ws-input-error-border);--color-input-error-bg:var(--ws-input-error-bg);--color-input-warning-border:var(--ws-input-warning-border);--color-input-warning-bg:var(--ws-input-warning-bg);--color-input-message-bg:var(--ws-input-message-bg);--color-input-message-text:var(--ws-input-message-text);--color-input-disable:var(--ws-disable-input);--color-inactive-text:var(--ws-inactive-text);--color-panel-0:var(--ws-panel-0);--color-panel-1:var(--ws-panel-1);--color-panel-2:var(--ws-panel-2);--color-panel-3:var(--ws-panel-3);--color-panel-4:var(--ws-panel-4);--color-panel-5:var(--ws-panel-5);--color-panel-border-subtle:var(--ws-panel-border-subtle);--color-tab-bg-default:var(--ws-tab-bg-default);--color-tab-border:var(--ws-tab-border);--color-tab-active-bg:var(--ws-tab-active-bg);--color-tab-active-fg:var(--ws-tab-active-fg);--color-tab-inactive-bg:var(--ws-tab-inactive-bg);--color-tab-inactive-fg:var(--ws-tab-inactive-fg);--color-panel-border:var(--ws-panel-border)}.pointer-events-auto:not(#\\#){pointer-events:auto}.pointer-events-none:not(#\\#){pointer-events:none}.collapse:not(#\\#){visibility:collapse}.visible:not(#\\#){visibility:visible}.sr-only:not(#\\#){clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute:not(#\\#){position:absolute}.fixed:not(#\\#){position:fixed}.relative:not(#\\#){position:relative}.static:not(#\\#){position:static}.inset-0:not(#\\#){inset:calc(var(--spacing)*0)}.-top-1\\/5:not(#\\#){top:-20%}.top-0:not(#\\#){top:calc(var(--spacing)*0)}.top-1:not(#\\#){top:calc(var(--spacing)*1)}.top-full:not(#\\#){top:100%}.-right-12:not(#\\#){right:calc(var(--spacing)*-12)}.right-0:not(#\\#){right:calc(var(--spacing)*0)}.right-1:not(#\\#){right:calc(var(--spacing)*1)}.bottom-0:not(#\\#){bottom:calc(var(--spacing)*0)}.bottom-full:not(#\\#){bottom:100%}.left-0:not(#\\#){left:calc(var(--spacing)*0)}.left-0\\.5:not(#\\#){left:calc(var(--spacing)*.5)}.left-1\\/2:not(#\\#){left:50%}.left-3\\.5:not(#\\#){left:calc(var(--spacing)*3.5)}.left-4:not(#\\#){left:calc(var(--spacing)*4)}.left-4\\.5:not(#\\#){left:calc(var(--spacing)*4.5)}.left-5\\.5:not(#\\#){left:calc(var(--spacing)*5.5)}.left-full:not(#\\#){left:100%}.z-1:not(#\\#){z-index:1}.z-2:not(#\\#){z-index:2}.z-10:not(#\\#){z-index:10}.z-40:not(#\\#){z-index:40}.z-50:not(#\\#){z-index:50}.z-60:not(#\\#){z-index:60}.z-9999:not(#\\#){z-index:9999}.container:not(#\\#){width:100%}@media(min-width:40rem){.container:not(#\\#){max-width:40rem}}@media(min-width:48rem){.container:not(#\\#){max-width:48rem}}@media(min-width:64rem){.container:not(#\\#){max-width:64rem}}@media(min-width:80rem){.container:not(#\\#){max-width:80rem}}@media(min-width:96rem){.container:not(#\\#){max-width:96rem}}.m-0:not(#\\#){margin:calc(var(--spacing)*0)}.m-0\\.5:not(#\\#){margin:calc(var(--spacing)*.5)}.m-px:not(#\\#){margin:1px}.mx-1:not(#\\#){margin-inline:calc(var(--spacing)*1)}.-my-1:not(#\\#){margin-block:calc(var(--spacing)*-1)}.mt-1:not(#\\#){margin-top:calc(var(--spacing)*1)}.mt-2:not(#\\#){margin-top:calc(var(--spacing)*2)}.mt-4:not(#\\#){margin-top:calc(var(--spacing)*4)}.mt-8:not(#\\#){margin-top:calc(var(--spacing)*8)}.mr-1:not(#\\#){margin-right:calc(var(--spacing)*1)}.mr-2:not(#\\#){margin-right:calc(var(--spacing)*2)}.mb-1:not(#\\#){margin-bottom:calc(var(--spacing)*1)}.mb-2:not(#\\#){margin-bottom:calc(var(--spacing)*2)}.mb-4:not(#\\#){margin-bottom:calc(var(--spacing)*4)}.ml-1:not(#\\#){margin-left:calc(var(--spacing)*1)}.ml-1\\.5:not(#\\#){margin-left:calc(var(--spacing)*1.5)}.ml-2:not(#\\#){margin-left:calc(var(--spacing)*2)}.box-border:not(#\\#){box-sizing:border-box}.block:not(#\\#){display:block}.flex:not(#\\#){display:flex}.grid:not(#\\#){display:grid}.hidden:not(#\\#){display:none}.inline:not(#\\#){display:inline}.inline-block:not(#\\#){display:inline-block}.inline-flex:not(#\\#){display:inline-flex}.table:not(#\\#){display:table}.size-1\\.5:not(#\\#){width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-1\\.75:not(#\\#){width:calc(var(--spacing)*1.75);height:calc(var(--spacing)*1.75)}.size-2:not(#\\#){width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\\.5:not(#\\#){width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3:not(#\\#){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-3\\.25:not(#\\#){width:calc(var(--spacing)*3.25);height:calc(var(--spacing)*3.25)}.size-4:not(#\\#){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5:not(#\\#){width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6:not(#\\#){width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-fit:not(#\\#){width:fit-content;height:fit-content}.h-2:not(#\\#){height:calc(var(--spacing)*2)}.h-3:not(#\\#){height:calc(var(--spacing)*3)}.h-3\\.5:not(#\\#){height:calc(var(--spacing)*3.5)}.h-4:not(#\\#){height:calc(var(--spacing)*4)}.h-4\\.5:not(#\\#){height:calc(var(--spacing)*4.5)}.h-5:not(#\\#){height:calc(var(--spacing)*5)}.h-5\\.5:not(#\\#){height:calc(var(--spacing)*5.5)}.h-6:not(#\\#){height:calc(var(--spacing)*6)}.h-7:not(#\\#){height:calc(var(--spacing)*7)}.h-7\\.5:not(#\\#){height:calc(var(--spacing)*7.5)}.h-8:not(#\\#){height:calc(var(--spacing)*8)}.h-10:not(#\\#){height:calc(var(--spacing)*10)}.h-14:not(#\\#){height:calc(var(--spacing)*14)}.h-20:not(#\\#){height:calc(var(--spacing)*20)}.h-100:not(#\\#){height:calc(var(--spacing)*100)}.h-\\[120px\\]:not(#\\#){height:120px}.h-fit:not(#\\#){height:fit-content}.h-full:not(#\\#){height:100%}.max-h-\\[400px\\]:not(#\\#){max-height:400px}.max-h-full:not(#\\#){max-height:100%}.min-h-5:not(#\\#){min-height:calc(var(--spacing)*5)}.min-h-6:not(#\\#){min-height:var(--min-height-6)}.min-h-7:not(#\\#){min-height:calc(var(--spacing)*7)}.min-h-\\[100px\\]:not(#\\#){min-height:100px}.min-h-fit:not(#\\#){min-height:fit-content}.min-h-screen:not(#\\#){min-height:100vh}.w-0\\.5:not(#\\#){width:calc(var(--spacing)*.5)}.w-1\\/2:not(#\\#){width:50%}.w-3:not(#\\#){width:calc(var(--spacing)*3)}.w-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5)}.w-4:not(#\\#){width:calc(var(--spacing)*4)}.w-5:not(#\\#){width:calc(var(--spacing)*5)}.w-6:not(#\\#){width:calc(var(--spacing)*6)}.w-7:not(#\\#){width:calc(var(--spacing)*7)}.w-8:not(#\\#){width:calc(var(--spacing)*8)}.w-9:not(#\\#){width:calc(var(--spacing)*9)}.w-11:not(#\\#){width:calc(var(--spacing)*11)}.w-16:not(#\\#){width:calc(var(--spacing)*16)}.w-20:not(#\\#){width:calc(var(--spacing)*20)}.w-32:not(#\\#){width:calc(var(--spacing)*32)}.w-48:not(#\\#){width:calc(var(--spacing)*48)}.w-52:not(#\\#){width:calc(var(--spacing)*52)}.w-60:not(#\\#){width:calc(var(--spacing)*60)}.w-64:not(#\\#){width:calc(var(--spacing)*64)}.w-80:not(#\\#){width:calc(var(--spacing)*80)}.w-96:not(#\\#){width:calc(var(--spacing)*96)}.w-fit:not(#\\#){width:fit-content}.w-full:not(#\\#){width:100%}.w-px:not(#\\#){width:1px}.max-w-100:not(#\\#){max-width:calc(var(--spacing)*100)}.max-w-\\[300px\\]:not(#\\#){max-width:300px}.max-w-md:not(#\\#){max-width:var(--container-md)}.min-w-0:not(#\\#){min-width:calc(var(--spacing)*0)}.min-w-3\\.5:not(#\\#){min-width:calc(var(--spacing)*3.5)}.min-w-4\\.5:not(#\\#){min-width:calc(var(--spacing)*4.5)}.min-w-5:not(#\\#){min-width:calc(var(--spacing)*5)}.min-w-7\\.5:not(#\\#){min-width:calc(var(--spacing)*7.5)}.min-w-50:not(#\\#){min-width:calc(var(--spacing)*50)}.min-w-\\[150px\\]:not(#\\#){min-width:150px}.min-w-fit:not(#\\#){min-width:fit-content}.min-w-full:not(#\\#){min-width:100%}.flex-1:not(#\\#){flex:1}.flex-3:not(#\\#){flex:3}.flex-none:not(#\\#){flex:none}.shrink-0:not(#\\#){flex-shrink:0}.origin-top-right:not(#\\#){transform-origin:100% 0}.-translate-x-1\\/2:not(#\\#){--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full:not(#\\#){--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0:not(#\\#){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full:not(#\\#){--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full:not(#\\#){--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0:not(#\\#){--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-1\\/2:not(#\\#){--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full:not(#\\#){--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-0:not(#\\#){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95:not(#\\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100:not(#\\#){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110:not(#\\#){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-45:not(#\\#){rotate:-45deg}.rotate-45:not(#\\#){rotate:45deg}.rotate-90:not(#\\#){rotate:90deg}.rotate-180:not(#\\#){rotate:180deg}.transform:not(#\\#){transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce:not(#\\#){animation:var(--animate-bounce)}.cursor-auto:not(#\\#){cursor:auto}.cursor-not-allowed:not(#\\#){cursor:not-allowed}.cursor-pointer:not(#\\#){cursor:pointer}.cursor-se-resize:not(#\\#){cursor:se-resize}.resize:not(#\\#){resize:both}.resize-none:not(#\\#){resize:none}.list-disc:not(#\\#){list-style-type:disc}.appearance-none:not(#\\#){-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2:not(#\\#){grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3:not(#\\#){grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col:not(#\\#){flex-direction:column}.flex-row:not(#\\#){flex-direction:row}.flex-wrap:not(#\\#){flex-wrap:wrap}.place-content-center:not(#\\#){place-content:center}.place-items-center:not(#\\#){place-items:center}.items-center:not(#\\#){align-items:center}.items-end:not(#\\#){align-items:flex-end}.items-start:not(#\\#){align-items:flex-start}.justify-around:not(#\\#){justify-content:space-around}.justify-between:not(#\\#){justify-content:space-between}.justify-center:not(#\\#){justify-content:center}.gap-0\\.5:not(#\\#){gap:calc(var(--spacing)*.5)}.gap-1:not(#\\#){gap:calc(var(--spacing)*1)}.gap-1\\.5:not(#\\#){gap:calc(var(--spacing)*1.5)}.gap-2:not(#\\#){gap:calc(var(--spacing)*2)}.gap-2\\.5:not(#\\#){gap:calc(var(--spacing)*2.5)}.gap-3:not(#\\#){gap:calc(var(--spacing)*3)}.gap-4:not(#\\#){gap:calc(var(--spacing)*4)}.gap-6:not(#\\#){gap:calc(var(--spacing)*6)}.gap-8:not(#\\#){gap:calc(var(--spacing)*8)}.gap-10:not(#\\#){gap:calc(var(--spacing)*10)}.gap-14:not(#\\#){gap:calc(var(--spacing)*14)}:where(.space-y-1>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1:not(#\\#){column-gap:calc(var(--spacing)*1)}.gap-x-2:not(#\\#){column-gap:calc(var(--spacing)*2)}.gap-x-3:not(#\\#){column-gap:calc(var(--spacing)*3)}.gap-x-4:not(#\\#){column-gap:calc(var(--spacing)*4)}.gap-x-20:not(#\\#){column-gap:calc(var(--spacing)*20)}:where(.space-x-4>:not(:last-child)):not(#\\#){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.truncate:not(#\\#){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden:not(#\\#){overflow:hidden}.overflow-y-auto:not(#\\#){overflow-y:auto}.rounded:not(#\\#){border-radius:.25rem}.rounded-full:not(#\\#){border-radius:3.40282e38px}.rounded-lg:not(#\\#){border-radius:var(--radius-lg)}.rounded-md:not(#\\#){border-radius:var(--radius-md)}.rounded-xs:not(#\\#){border-radius:var(--radius-xs)}.rounded-t:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-none:not(#\\#){border-top-left-radius:0;border-top-right-radius:0}.rounded-b-none:not(#\\#){border-bottom-right-radius:0;border-bottom-left-radius:0}.border:not(#\\#){border-style:var(--tw-border-style);border-width:1px}.border-0:not(#\\#){border-style:var(--tw-border-style);border-width:0}.border-2:not(#\\#){border-style:var(--tw-border-style);border-width:2px}.border-px:not(#\\#){border-width:1px}.divide:not(#\\#){border-width:.5px}.border-t:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:0}.border-r:not(#\\#){border-right-style:var(--tw-border-style);border-right-width:1px}.border-b:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-dashed:not(#\\#){--tw-border-style:dashed;border-style:dashed}.border-body:not(#\\#){border-color:var(--color-body)}.border-body-light:not(#\\#){border-color:var(--color-body-light)}.border-canvas-default:not(#\\#){border-color:var(--color-canvas-default)}.border-card-border:not(#\\#){border-color:var(--color-card-border)}.border-grey-100:not(#\\#){border-color:var(--color-grey-100)}.border-grey-200:not(#\\#){border-color:var(--color-grey-200)}.border-input-border:not(#\\#){border-color:var(--color-input-border)}.border-input-disable:not(#\\#){border-color:var(--color-input-disable)}.border-input-error-border:not(#\\#){border-color:var(--color-input-error-border)}.border-input-focus-border:not(#\\#){border-color:var(--color-input-focus-border)}.border-input-warning-border:not(#\\#){border-color:var(--color-input-warning-border)}.border-negative:not(#\\#){border-color:var(--color-negative)}.border-negative-500:not(#\\#){border-color:var(--color-negative-500)}.border-neutral:not(#\\#){border-color:var(--color-neutral)}.border-panel:not(#\\#){border-color:var(--color-panel)}.border-panel-border:not(#\\#){border-color:var(--color-panel-border)}.border-panel-border-subtle:not(#\\#){border-color:var(--color-panel-border-subtle)}.border-panel-subtle:not(#\\#){border-color:var(--color-panel-subtle)}.border-positive:not(#\\#){border-color:var(--color-positive)}.border-positive-text:not(#\\#){border-color:var(--color-positive-text)}.border-primary:not(#\\#){border-color:var(--color-primary)}.border-primary-700:not(#\\#){border-color:var(--color-primary-700)}.border-primary-hover:not(#\\#){border-color:var(--color-primary-hover)}.border-select-border:not(#\\#){border-color:var(--color-select-border)}.border-tab-border:not(#\\#){border-color:var(--color-tab-border)}.border-transparent:not(#\\#){border-color:#0000}.border-warning:not(#\\#){border-color:var(--color-warning)}.border-warning-bg:not(#\\#){border-color:var(--color-warning-bg)}.border-white:not(#\\#){border-color:var(--color-white)}.bg-blue-500:not(#\\#){background-color:var(--color-blue-500)}.bg-body:not(#\\#){background-color:var(--color-body)}.bg-body-bg:not(#\\#){background-color:var(--color-body-bg)}.bg-canvas-default:not(#\\#){background-color:var(--color-canvas-default)}.bg-canvas-subtle:not(#\\#){background-color:var(--color-canvas-subtle)}.bg-card:not(#\\#){background-color:var(--color-card)}.bg-gray-100:not(#\\#){background-color:var(--color-gray-100)}.bg-grey-50:not(#\\#){background-color:var(--color-grey-50)}.bg-grey-200:not(#\\#){background-color:var(--color-grey-200)}.bg-grey-300:not(#\\#){background-color:var(--color-grey-300)}.bg-grey-400:not(#\\#){background-color:var(--color-grey-400)}.bg-grey-500:not(#\\#){background-color:var(--color-grey-500)}.bg-grey-600:not(#\\#){background-color:var(--color-grey-600)}.bg-grey-700:not(#\\#){background-color:var(--color-grey-700)}.bg-grey-800:not(#\\#){background-color:var(--color-grey-800)}.bg-input-bg:not(#\\#){background-color:var(--color-input-bg)}.bg-input-border:not(#\\#){background-color:var(--color-input-border)}.bg-input-disable:not(#\\#){background-color:var(--color-input-disable)}.bg-input-error-bg:not(#\\#){background-color:var(--color-input-error-bg)}.bg-input-message-bg:not(#\\#){background-color:var(--color-input-message-bg)}.bg-input-option-active-bg:not(#\\#){background-color:var(--color-input-option-active-bg)}.bg-input-option-hover-bg:not(#\\#){background-color:var(--color-input-option-hover-bg)}.bg-input-text:not(#\\#){background-color:var(--color-input-text)}.bg-input-warning-bg:not(#\\#){background-color:var(--color-input-warning-bg)}.bg-negative:not(#\\#){background-color:var(--color-negative)}.bg-negative-400:not(#\\#){background-color:var(--color-negative-400)}.bg-negative-500:not(#\\#){background-color:var(--color-negative-500)}.bg-negative-bg:not(#\\#){background-color:var(--color-negative-bg)}.bg-negative-hover:not(#\\#){background-color:var(--color-negative-hover)}.bg-negative-light:not(#\\#){background-color:var(--color-negative-light)}.bg-panel:not(#\\#){background-color:var(--color-panel)}.bg-panel-0:not(#\\#){background-color:var(--color-panel-0)}.bg-panel-1:not(#\\#){background-color:var(--color-panel-1)}.bg-panel-2:not(#\\#){background-color:var(--color-panel-2)}.bg-panel-3:not(#\\#){background-color:var(--color-panel-3)}.bg-panel-4:not(#\\#){background-color:var(--color-panel-4)}.bg-panel-5:not(#\\#){background-color:var(--color-panel-5)}.bg-panel-subtle:not(#\\#){background-color:var(--color-panel-subtle)}.bg-positive:not(#\\#){background-color:var(--color-positive)}.bg-positive-200:not(#\\#){background-color:var(--color-positive-200)}.bg-positive-500:not(#\\#){background-color:var(--color-positive-500)}.bg-positive-bg:not(#\\#){background-color:var(--color-positive-bg)}.bg-positive-hover:not(#\\#){background-color:var(--color-positive-hover)}.bg-positive-light:not(#\\#){background-color:var(--color-positive-light)}.bg-primary:not(#\\#){background-color:var(--color-primary)}.bg-primary-500:not(#\\#){background-color:var(--color-primary-500)}.bg-primary-600:not(#\\#){background-color:var(--color-primary-600)}.bg-primary-hover:not(#\\#){background-color:var(--color-primary-hover)}.bg-primary-light:not(#\\#){background-color:var(--color-primary-light)}.bg-primary\\/30:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/30:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.bg-select-list-bg:not(#\\#){background-color:var(--color-select-list-bg)}.bg-tab-active-bg:not(#\\#){background-color:var(--color-tab-active-bg)}.bg-tab-bg-default:not(#\\#){background-color:var(--color-tab-bg-default)}.bg-tab-inactive-bg:not(#\\#){background-color:var(--color-tab-inactive-bg)}.bg-transparent:not(#\\#){background-color:#0000}.bg-warning:not(#\\#){background-color:var(--color-warning)}.bg-warning-500:not(#\\#){background-color:var(--color-warning-500)}.bg-warning-bg:not(#\\#){background-color:var(--color-warning-bg)}.bg-warning-hover:not(#\\#){background-color:var(--color-warning-hover)}.bg-warning-light:not(#\\#){background-color:var(--color-warning-light)}.bg-white:not(#\\#){background-color:var(--color-white)}.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right in oklab}}.bg-linear-to-r:not(#\\#){background-image:linear-gradient(var(--tw-gradient-stops))}.from-green-500:not(#\\#){--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-primary:not(#\\#){--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-500:not(#\\#){--tw-gradient-to:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500:not(#\\#){--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.stroke-current:not(#\\#){stroke:currentColor}.p-0:not(#\\#){padding:calc(var(--spacing)*0)}.p-0\\.5:not(#\\#){padding:calc(var(--spacing)*.5)}.p-1:not(#\\#){padding:calc(var(--spacing)*1)}.p-1\\!{padding:calc(var(--spacing)*1)!important}.p-1\\.5:not(#\\#){padding:calc(var(--spacing)*1.5)}.p-2:not(#\\#){padding:calc(var(--spacing)*2)}.p-2\\.5:not(#\\#){padding:calc(var(--spacing)*2.5)}.p-3:not(#\\#){padding:calc(var(--spacing)*3)}.p-4:not(#\\#){padding:calc(var(--spacing)*4)}.p-6:not(#\\#){padding:calc(var(--spacing)*6)}.p-8:not(#\\#){padding:calc(var(--spacing)*8)}.p-10:not(#\\#){padding:calc(var(--spacing)*10)}.p-50:not(#\\#){padding:calc(var(--spacing)*50)}.p-px:not(#\\#){padding:1px}.px-0\\.5:not(#\\#){padding-inline:calc(var(--spacing)*.5)}.px-1:not(#\\#){padding-inline:calc(var(--spacing)*1)}.px-1\\.5:not(#\\#){padding-inline:calc(var(--spacing)*1.5)}.px-2:not(#\\#){padding-inline:calc(var(--spacing)*2)}.px-3:not(#\\#){padding-inline:calc(var(--spacing)*3)}.px-4:not(#\\#){padding-inline:calc(var(--spacing)*4)}.px-6:not(#\\#){padding-inline:calc(var(--spacing)*6)}.px-7:not(#\\#){padding-inline:calc(var(--spacing)*7)}.px-8:not(#\\#){padding-inline:calc(var(--spacing)*8)}.py-0\\.5:not(#\\#){padding-block:calc(var(--spacing)*.5)}.py-1:not(#\\#){padding-block:calc(var(--spacing)*1)}.py-1\\.5:not(#\\#){padding-block:calc(var(--spacing)*1.5)}.py-2:not(#\\#){padding-block:calc(var(--spacing)*2)}.py-3:not(#\\#){padding-block:calc(var(--spacing)*3)}.pt-0\\.5:not(#\\#){padding-top:calc(var(--spacing)*.5)}.pt-1:not(#\\#){padding-top:calc(var(--spacing)*1)}.pt-1\\.5:not(#\\#){padding-top:calc(var(--spacing)*1.5)}.pt-2:not(#\\#){padding-top:calc(var(--spacing)*2)}.pl-1:not(#\\#){padding-left:calc(var(--spacing)*1)}.pl-4:not(#\\#){padding-left:calc(var(--spacing)*4)}.text-center:not(#\\#){text-align:center}.text-left:not(#\\#){text-align:left}.text-2xl:not(#\\#){font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl:not(#\\#){font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl:not(#\\#){font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl:not(#\\#){font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl:not(#\\#){font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-7xl:not(#\\#){font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.text-8xl:not(#\\#){font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.text-9xl:not(#\\#){font-size:var(--text-9xl);line-height:var(--tw-leading,var(--text-9xl--line-height))}.text-base:not(#\\#){font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg:not(#\\#){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm:not(#\\#){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl:not(#\\#){font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs:not(#\\#){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-s:not(#\\#){font-size:var(--text-s)}.text-xxs:not(#\\#){font-size:var(--text-xxs)}.leading-3:not(#\\#){--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-4:not(#\\#){--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5:not(#\\#){--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none:not(#\\#){--tw-leading:1;line-height:1}.font-bold:not(#\\#){--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium:not(#\\#){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold:not(#\\#){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin:not(#\\#){--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.whitespace-nowrap:not(#\\#){white-space:nowrap}.text-body:not(#\\#){color:var(--color-body)}.text-button-text:not(#\\#){color:var(--color-button-text)}.text-gray-50:not(#\\#){color:var(--color-gray-50)}.text-gray-400:not(#\\#){color:var(--color-gray-400)}.text-gray-500:not(#\\#){color:var(--color-gray-500)}.text-gray-800:not(#\\#){color:var(--color-gray-800)}.text-grey-50:not(#\\#){color:var(--color-grey-50)}.text-grey-100:not(#\\#){color:var(--color-grey-100)}.text-grey-200:not(#\\#){color:var(--color-grey-200)}.text-grey-300:not(#\\#){color:var(--color-grey-300)}.text-grey-700:not(#\\#){color:var(--color-grey-700)}.text-inactive-text:not(#\\#){color:var(--color-inactive-text)}.text-inherit:not(#\\#){color:inherit}.text-input-disable:not(#\\#){color:var(--color-input-disable)}.text-input-message-text:not(#\\#){color:var(--color-input-message-text)}.text-input-option-active-text:not(#\\#){color:var(--color-input-option-active-text)}.text-input-placeholder:not(#\\#){color:var(--color-input-placeholder)}.text-input-text:not(#\\#){color:var(--color-input-text)}.text-muted:not(#\\#){color:var(--color-muted)}.text-negative:not(#\\#){color:var(--color-negative)}.text-negative-500:not(#\\#){color:var(--color-negative-500)}.text-negative-dark:not(#\\#){color:var(--color-negative-dark)}.text-negative-text:not(#\\#){color:var(--color-negative-text)}.text-panel-subtle:not(#\\#){color:var(--color-panel-subtle)}.text-positive:not(#\\#){color:var(--color-positive)}.text-positive-500:not(#\\#){color:var(--color-positive-500)}.text-positive-600:not(#\\#){color:var(--color-positive-600)}.text-positive-dark:not(#\\#){color:var(--color-positive-dark)}.text-positive-text:not(#\\#),.text-positive-text\\/70:not(#\\#){color:var(--color-positive-text)}@supports (color:color-mix(in lab,red,red)){.text-positive-text\\/70:not(#\\#){color:color-mix(in oklab,var(--color-positive-text)70%,transparent)}}.text-primary:not(#\\#){color:var(--color-primary)}.text-primary-dark:not(#\\#){color:var(--color-primary-dark)}.text-primary-hover:not(#\\#){color:var(--color-primary-hover)}.text-select-text:not(#\\#){color:var(--color-select-text)}.text-tab-active-fg:not(#\\#){color:var(--color-tab-active-fg)}.text-tab-inactive-fg:not(#\\#){color:var(--color-tab-inactive-fg)}.text-warning:not(#\\#){color:var(--color-warning)}.text-warning-dark:not(#\\#){color:var(--color-warning-dark)}.text-warning-text:not(#\\#){color:var(--color-warning-text)}.capitalize:not(#\\#){text-transform:capitalize}.lowercase:not(#\\#){text-transform:lowercase}.uppercase:not(#\\#){text-transform:uppercase}.italic:not(#\\#){font-style:italic}.underline:not(#\\#){text-decoration-line:underline}.decoration-transparent:not(#\\#){text-decoration-color:#0000}.opacity-0:not(#\\#){opacity:0}.opacity-50:not(#\\#){opacity:.5}.opacity-60:not(#\\#){opacity:.6}.opacity-80:not(#\\#){opacity:.8}.opacity-100:not(#\\#){opacity:1}.shadow:not(#\\#){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner:not(#\\#){--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg:not(#\\#){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md:not(#\\#){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs:not(#\\#){--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-input-error-border:not(#\\#){--tw-ring-color:var(--color-input-error-border)}.ring-input-focus-border:not(#\\#){--tw-ring-color:var(--color-input-focus-border)}.ring-input-warning-border:not(#\\#){--tw-ring-color:var(--color-input-warning-border)}.ring-positive:not(#\\#){--tw-ring-color:var(--color-positive)}.outline-hidden:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.outline:not(#\\#),.outline-1:not(#\\#){outline-style:var(--tw-outline-style);outline-width:1px}.outline-s:not(#\\#){outline-width:.5px}.outline-xs:not(#\\#){outline-width:.3px}.outline-xxs:not(#\\#){outline-width:.1px}.outline-canvas-default:not(#\\#){outline-color:var(--color-canvas-default)}.outline-primary:not(#\\#){outline-color:var(--color-primary)}.blur:not(#\\#){--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter:not(#\\#){filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all:not(#\\#){transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity:not(#\\#){transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform:not(#\\#){transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150:not(#\\#){--tw-duration:.15s;transition-duration:.15s}.duration-200:not(#\\#){--tw-duration:.2s;transition-duration:.2s}.duration-300:not(#\\#){--tw-duration:.3s;transition-duration:.3s}.ease-in-out:not(#\\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out:not(#\\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-solid:not(#\\#){--tw-outline-style:solid;outline-style:solid}.select-none:not(#\\#){-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:flex:is(:where(.group):hover *):not(#\\#){display:flex}.group-hover\\:grid:is(:where(.group):hover *):not(#\\#){display:grid}.group-hover\\:border-body:is(:where(.group):hover *):not(#\\#){border-color:var(--color-body)}.group-hover\\:border-negative-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-negative-text)}.group-hover\\:border-positive-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-positive-text)}.group-hover\\:border-warning-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-warning-text)}.group-hover\\:bg-grey-400:is(:where(.group):hover *):not(#\\#){background-color:var(--color-grey-400)}.group-hover\\:bg-negative-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-hover)}.group-hover\\:bg-negative-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-light)}.group-hover\\:bg-positive-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-hover)}.group-hover\\:bg-positive-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-light)}.group-hover\\:bg-primary-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-hover)}.group-hover\\:bg-primary-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-light)}.group-hover\\:bg-warning-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-hover)}.group-hover\\:bg-warning-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-light)}.group-hover\\:opacity-100:is(:where(.group):hover *):not(#\\#){opacity:1}}.placeholder\\:text-sm:not(#\\#)::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.placeholder\\:text-xs:not(#\\#)::placeholder{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.placeholder\\:text-s:not(#\\#)::placeholder{font-size:var(--text-s)}.placeholder\\:text-input-placeholder:not(#\\#)::placeholder{color:var(--color-input-placeholder)}.placeholder\\:opacity-60:not(#\\#)::placeholder{opacity:.6}.first\\:bottom-full:first-child:not(#\\#){bottom:100%}.first\\:-ml-1\\.5:first-child:not(#\\#){margin-left:calc(var(--spacing)*-1.5)}.first\\:rounded-t:first-child:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.first\\:rounded-l:first-child:not(#\\#){border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.last\\:top-full:last-child:not(#\\#){top:100%}.last\\:-mr-1\\.5:last-child:not(#\\#){margin-right:calc(var(--spacing)*-1.5)}.last\\:rounded-r:last-child:not(#\\#){border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.last\\:rounded-b:last-child:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.only\\:top-full:only-child:not(#\\#){top:100%}.only\\:-mx-0\\.5:only-child:not(#\\#){margin-inline:calc(var(--spacing)*-.5)}.only\\:rounded:only-child:not(#\\#){border-radius:.25rem}.only\\:ring-1:only-child:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:border-input-error-border:focus-within:not(#\\#){border-color:var(--color-input-error-border)}.focus-within\\:border-input-focus-border:focus-within:not(#\\#){border-color:var(--color-input-focus-border)}.focus-within\\:border-input-warning-border:focus-within:not(#\\#){border-color:var(--color-input-warning-border)}.focus-within\\:border-positive:focus-within:not(#\\#){border-color:var(--color-positive)}@media(hover:hover){.hover\\:border-black:hover:not(#\\#){border-color:var(--color-black)}.hover\\:border-canvas-subtle:hover:not(#\\#){border-color:var(--color-canvas-subtle)}.hover\\:border-negative-hover:hover:not(#\\#){border-color:var(--color-negative-hover)}.hover\\:border-positive-hover:hover:not(#\\#){border-color:var(--color-positive-hover)}.hover\\:border-primary-hover:hover:not(#\\#){border-color:var(--color-primary-hover)}.hover\\:border-warning-hover:hover:not(#\\#){border-color:var(--color-warning-hover)}.hover\\:bg-canvas-subtle:hover:not(#\\#){background-color:var(--color-canvas-subtle)}.hover\\:bg-grey-500:hover:not(#\\#){background-color:var(--color-grey-500)}.hover\\:bg-grey-700:hover:not(#\\#){background-color:var(--color-grey-700)}.hover\\:bg-input-option-hover-bg:hover:not(#\\#){background-color:var(--color-input-option-hover-bg)}.hover\\:bg-negative:hover:not(#\\#){background-color:var(--color-negative)}.hover\\:bg-negative-hover:hover:not(#\\#){background-color:var(--color-negative-hover)}.hover\\:bg-positive:hover:not(#\\#){background-color:var(--color-positive)}.hover\\:bg-positive-hover:hover:not(#\\#){background-color:var(--color-positive-hover)}.hover\\:bg-primary-600:hover:not(#\\#){background-color:var(--color-primary-600)}.hover\\:bg-primary-hover:hover:not(#\\#){background-color:var(--color-primary-hover)}.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)20%,transparent)}}.hover\\:bg-transparent:hover:not(#\\#){background-color:#0000}.hover\\:bg-warning:hover:not(#\\#){background-color:var(--color-warning)}.hover\\:bg-warning-hover:hover:not(#\\#){background-color:var(--color-warning-hover)}.hover\\:text-body:hover:not(#\\#){color:var(--color-body)}.hover\\:text-button-text:hover:not(#\\#){color:var(--color-button-text)}.hover\\:text-grey-200:hover:not(#\\#){color:var(--color-grey-200)}.hover\\:text-negative-400:hover:not(#\\#){color:var(--color-negative-400)}.hover\\:text-negative-hover:hover:not(#\\#){color:var(--color-negative-hover)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-hover:hover:not(#\\#){color:var(--color-positive-hover)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.hover\\:text-primary-hover:hover:not(#\\#){color:var(--color-primary-hover)}.hover\\:text-tab-active-fg:hover:not(#\\#){color:var(--color-tab-active-fg)}.hover\\:text-warning-hover:hover:not(#\\#){color:var(--color-warning-hover)}.hover\\:decoration-current:hover:not(#\\#){text-decoration-color:currentColor}}.focus\\:bg-transparent:focus:not(#\\#){background-color:#0000}.focus\\:ring-2:focus:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-negative:focus:not(#\\#){--tw-ring-color:var(--color-negative)}.focus\\:ring-positive:focus:not(#\\#){--tw-ring-color:var(--color-positive)}.focus\\:ring-primary:focus:not(#\\#){--tw-ring-color:var(--color-primary)}.focus\\:ring-warning:focus:not(#\\#){--tw-ring-color:var(--color-warning)}.focus\\:ring-offset-0:focus:not(#\\#){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:ring-offset-2:focus:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:ring-2:focus-visible:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-primary:focus-visible:not(#\\#){--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-offset-2:focus-visible:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}:root:not(#\\#){--ws-primary-50:#f2ddff;--ws-primary-100:#edd0ff;--ws-primary-300:#d0acef;--ws-primary-400:#c190ea;--ws-primary-600:#935ebf;--ws-primary-800:#563374;--ws-primary-900:#381e4f;--ws-primary-950:#29133c;--ws-positive-50:#ecf9f2;--ws-positive-100:#d9f2e6;--ws-positive-300:#8ed9b3;--ws-positive-400:#68cd99;--ws-positive-700:#28734d;--ws-positive-800:#28734d;--ws-positive-900:#0d261a;--ws-positive-950:#07130d;--ws-warning-50:#fff7e6;--ws-warning-100:#ffefcc;--ws-warning-300:#fed066;--ws-warning-400:#fdc133;--ws-warning-700:#986a00;--ws-warning-800:#654700;--ws-warning-900:#332300;--ws-warning-950:#191200;--ws-negative-50:#feeeee;--ws-negative-100:#fcdcdc;--ws-negative-300:#f69797;--ws-negative-400:#f37575;--ws-negative-700:#9a3232;--ws-negative-800:#6e2222;--ws-negative-900:#431212;--ws-negative-950:#2e0a0a;--ws-grey-300:#535353;--ws-grey-400:#484848;--ws-grey-600:#3f3f3f;--ws-palette-primary-200:#e0c7f5;--ws-palette-primary-500:#b174e5;--ws-palette-primary-700:#75499a;--ws-button-bg:var(--vscode-button-background,var(--theia-button-background,var(--ws-palette-primary-500)));--ws-button-fg:var(--vscode-button-foreground,var(--theia-button-foreground,var(--ws-palette-white)));--ws-primary-default:var(--ws-button-bg);--ws-button-text:var(--ws-button-fg);--ws-primary-hover:var(--vscode-button-hoverBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-light:var(--vscode-editorInfo-foreground,var(--theia-button-secondaryForeground,var(--ws-palette-primary-200)));--ws-primary-dark:var(--vscode-editor-lineHighlightBackground,var(--theia-button-secondaryBackground,var(--ws-palette-primary-700)));--ws-primary-200:var(--ws-primary-light);--ws-primary-500:var(--ws-primary-default);--ws-primary-700:var(--ws-primary-hover);--ws-palette-positive-200:#b3e6cc;--ws-palette-positive-500:#42c080;--ws-palette-positive-600:#359a66;--ws-positive-dark:var(--vscode-gitDecoration-addedResourceForeground,var(--ws-palette-positive-600));--ws-positive-hover:var(--ws-positive-dark);--ws-positive-bg:var(--ws-palette-positive-100);--ws-positive-light:var(--ws-palette-positive-200);--ws-positive-border:var(--ws-positive-500);--ws-positive-text:var(--ws-positive-500);--ws-positive-500:var(--vscode-testing-iconPassed,var(--ws-palette-positive-500));--ws-positive-200:var(--ws-positive-light);--ws-positive-600:var(--ws-positive-dark);--ws-palette-warning-200:#fee099;--ws-palette-warning-500:#fdb100;--ws-palette-warning-600:#ca8e00;--ws-warning-hover:var(--ws-warning-600);--ws-warning-text:var(--ws-warning-500);--ws-warning-border:var(--ws-warning-500);--ws-warning-500:var(--vscode-list-warningForeground,var(--ws-palette-warning-500));--ws-warning-bg:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-500));--ws-warning-light:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-200));--ws-warning-dark:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-600));--ws-warning-200:var(--ws-warning-light);--ws-warning-600:var(--ws-warning-dark);--ws-palette-negative-200:#f9baba;--ws-palette-negative-500:#f05252;--ws-palette-negative-600:#c54242;--ws-negative-hover:var(--ws-negative-600);--ws-negative-text:var(--ws-negative-500);--ws-negative-500:var(--vscode-errorForeground,var(--ws-palette-negative-500));--ws-negative-light:var(--ws-palette-negative-200);--ws-negative-dark:var(--ws-palette-negative-600);--ws-negative-200:var(--ws-negative-light);--ws-negative-600:var(--ws-negative-dark);--ws-palette-white:#fff;--ws-palette-grey-50:#f1f5f9;--ws-palette-grey-100:#ccc;--ws-palette-grey-200:#888;--ws-palette-grey-300:#535353;--ws-palette-grey-400:#484848;--ws-palette-grey-500:#444;--ws-palette-grey-600:#3f3f3f;--ws-palette-grey-700:#393939;--ws-palette-grey-800:#383838;--ws-palette-grey-900:#262626;--ws-palette-grey-950:#151515;--ws-bg-default:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-white)));--ws-bg-foreground:var(--vscode-editor-foreground,var(--theia-editor-foreground,var(--ws-palette-grey-50)));--ws-grey-50:var(--ws-bg-foreground);--ws-grey-100:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-100)));--ws-grey-200:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-200)));--ws-grey-950:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-950)));--ws-grey-500:var(--vscode-descriptionForeground,var(--ws-palette-grey-500));--ws-grey-800:var(--vscode-descriptionForeground,var(--ws-palette-grey-800));--ws-card-bg:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900)));--ws-card-border:var(--vscode-editorGroupHeader-tabsBorder,var(--theia-editorGroupHeader-tabsBorder,var(--ws-palette-grey-50)));--ws-palette-input-bg:var(--ws-palette-grey-300);--ws-palette-input-border:var(--ws-palette-grey-300);--ws-palette-input-text:var(--ws-palette-grey-50);--ws-palette-input-placeholder:var(--ws-palette-grey-200);--ws-palette-input-focus-border:var(--ws-palette-grey-50);--ws-input-bg:var(--vscode-input-background,var(--vscode-editorWidget-background,var(--theia-input-background,var(--ws-palette-input-bg))));--ws-input-border:var(--vscode-input-border,var(--vscode-panel-border,var(--theia-input-border,var(--ws-palette-input-border))));--ws-input-text:var(--vscode-input-foreground,var(--vscode-editor-foreground,var(--theia-input-foreground,var(--ws-palette-input-text))));--ws-input-placeholder:var(--vscode-input-placeholderForeground,var(--vscode-editor-foreground,var(--theia-input-placeholderForeground,var(--ws-palette-input-placeholder))));--ws-input-focus-border:var(--vscode-focusBorder,var(--vscode-button-background,var(--theia-focusBorder,var(--ws-palette-primary-500))));--ws-select-bg:var(--vscode-dropdown-background,var(--vscode-editorWidget-background,var(--theia-dropdown-background,var(--ws-input-bg))));--ws-select-border:var(--vscode-dropdown-border,var(--vscode-panel-border,var(--theia-dropdown-border,var(--ws-input-border))));--ws-select-text:var(--vscode-dropdown-foreground,var(--vscode-editor-foreground,var(--theia-dropdown-foreground,var(--ws-input-text))));--ws-select-list-bg:var(--vscode-dropdown-listBackground,var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-900))));--ws-input-option-hover-bg:var(--vscode-list-hoverBackground,var(--vscode-button-hoverBackground,var(--theia-list-hoverBackground,var(--ws-palette-primary-700))));--ws-input-option-active-bg:var(--vscode-list-activeSelectionBackground,var(--theia-list-activeSelectionBackground,var(--ws-palette-primary-500)));--ws-input-option-active-text:var(--vscode-list-activeSelectionForeground,var(--theia-list-activeSelectionForeground,var(--ws-palette-white)));--ws-input-error-border:var(--vscode-inputValidation-errorBorder,var(--theia-inputValidation-errorBorder,var(--ws-palette-negative-500)));--ws-input-error-bg:var(--vscode-inputValidation-errorBackground,var(--theia-inputValidation-errorBackground,var(--ws-palette-negative-200)));--ws-input-warning-border:var(--vscode-inputValidation-warningBorder,var(--theia-inputValidation-warningBorder,var(--ws-palette-warning-500)));--ws-input-warning-bg:var(--vscode-inputValidation-warningBackground,var(--theia-inputValidation-warningBackground,var(--ws-palette-warning-200)));--ws-input-info-bg:var(--vscode-panel-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-bg:var(--vscode-editor-lineHighlightBackground,var(--vscode-editorWidget-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200))));--ws-input-message-text:var(--vscode-editorInfo-foreground,var(--vscode-editor-foreground,var(--theia-inputValidation-infoForeground,var(--ws-palette-primary-500))));--ws-inactive-text:var(--vscode-disabledForeground,var(--theia-disabled-foreground,var(--ws-palette-grey-200)));--ws-text-muted:var(--vscode-descriptionForeground,var(--vscode-editor-foreground,var(--theia-descriptionForeground,var(--ws-palette-grey-100))));--ws-disable-bg:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-300)));--ws-disable-input:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-200)));--ws-panel-0:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-900)));--ws-panel-1:var(--vscode-sideBar-background,var(--vscode-panel-background,var(--theia-sideBar-background,var(--ws-palette-grey-700))));--ws-panel-2:var(--vscode-panel-background,var(--vscode-editor-background,var(--theia-panel-background,var(--ws-palette-grey-900))));--ws-panel-3:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900))));--ws-panel-4:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-300)));--ws-panel-5:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-950)));--ws-panel-border-subtle:var(--vscode-panel-border,var(--vscode-tab-border,var(--theia-border-color,var(--ws-palette-grey-100))));--ws-panel-border-strong:var(--vscode-contrastBorder,var(--vscode-focusBorder,var(--theia-contrastBorder,var(--ws-palette-grey-300))));--ws-tab-bg-default:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--ws-palette-grey-900)));--ws-tab-border:var(--vscode-tab-border,var(--vscode-editorGroupHeader-tabsBorder,var(--ws-palette-grey-950)));--ws-tab-active-bg:var(--vscode-tab-activeBackground,var(--ws-palette-grey-800));--ws-tab-active-fg:var(--vscode-tab-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-tab-inactive-bg:var(--vscode-tab-inactiveBackground,var(--ws-palette-grey-900));--ws-tab-inactive-fg:var(--vscode-tab-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-200)));--ws-tab-hover-bg:var(--vscode-tab-hoverBackground,var(--vscode-toolbar-hoverBackground,var(--ws-palette-grey-700)));--ws-panel-header-bg:var(--vscode-sideBarSectionHeader-background,var(--vscode-editorGroupHeader-tabsBackground,var(--ws-palette-grey-800)));--ws-panel-header-fg:var(--vscode-sideBarSectionHeader-foreground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-bg:var(--vscode-panel-background,var(--vscode-editor-background,var(--ws-bg-default)));--ws-panel-border:var(--vscode-panel-border,var(--vscode-tab-border,var(--ws-palette-grey-950)));--ws-panel-title-active-border:var(--vscode-panelTitle-activeBorder,var(--vscode-focusBorder,var(--ws-palette-primary-500)));--ws-panel-title-active-fg:var(--vscode-panelTitle-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-title-inactive-fg:var(--vscode-panelTitle-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-100)))}.center-absolute:not(#\\#){--tw-translate-x: -50% ;--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);position:absolute;top:50%;left:50%}.ws-group:hover .ws-checkbox-hover-target{opacity:1!important}.simplebar-scrollbar:not(#\\#):before{background-color:#ccc}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
28
|
+
`,document.head.appendChild(r)}catch(r){console.error("vite-plugin-inject-css: failed to inject css",r)}})();const Rx=r=>E.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:E.jsx("path",{d:"M21.66 6.28a.5.5 0 0 0 0-.697l-.967-.993a.5.5 0 0 0-.716 0L8.499 16.373 4.023 11.78a.5.5 0 0 0-.716 0l-.967.993a.5.5 0 0 0 0 .697l5.889 6.046.014-.014a.377.377 0 0 0 .54 0L21.66 6.28Z",fill:"currentColor"})}),Dx=r=>E.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:E.jsx("path",{d:"M10.84 2.714c0-.394.346-.714.773-.714h.774c.427 0 .773.32.773.714V9.5h5.025c.427 0 .773.32.773.714v3.572H5.042v-3.572c0-.394.346-.714.773-.714h5.025V2.714ZM5.042 14.5h13.916l1.034 6.685c.067.43-.295.815-.765.815h-2.1l-.681-5.929L15.764 22h-3.236l-.721-2.143L11.086 22h-2.85l-.682-3.929L6.872 22H4.773c-.47 0-.832-.385-.765-.815L5.042 14.5Z",fill:"currentColor"})}),Wi=r=>E.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:E.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),zx=r=>E.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:E.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),Mx=r=>E.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:E.jsx("path",{d:"M20.673 5.133c.136.24.053.55-.185.69l-16.25 9.623a.487.487 0 0 1-.676-.18l-.497-.884a.513.513 0 0 1 .185-.69L19.5 4.069c.238-.141.54-.06.676.18l.497.884ZM20.938 9.657c.136.24.053.55-.185.69L7.925 17.944a.487.487 0 0 1-.676-.181l-.497-.884a.513.513 0 0 1 .185-.69l12.829-7.597c.237-.14.54-.06.675.181l.497.884ZM20.16 15.376c.237-.14.32-.45.184-.69l-.497-.884a.487.487 0 0 0-.676-.18l-7.695 4.556a.513.513 0 0 0-.185.69l.498.884c.135.24.437.322.675.181l7.695-4.557Z",fill:"currentColor"})}),Tx=(r,i)=>{const n=new Array(r.length+i.length);for(let a=0;a<r.length;a++)n[a]=r[a];for(let a=0;a<i.length;a++)n[r.length+a]=i[a];return n},Ax=(r,i)=>({classGroupId:r,validator:i}),rp=(r=new Map,i=null,n)=>({nextPart:r,validators:i,classGroupId:n}),Ri="-",Ju=[],Px="arbitrary..",Lx=r=>{const i=Fx(r),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=r;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Bx(s);const l=s.split(Ri),u=l[0]===""&&l.length>1?1:0;return np(l,u,i)},getConflictingClassGroupIds:(s,l)=>{if(l){const u=a[s],d=n[s];return u?d?Tx(d,u):u:d||Ju}return n[s]||Ju}}},np=(r,i,n)=>{if(r.length-i===0)return n.classGroupId;const a=r[i],s=n.nextPart.get(a);if(s){const f=np(r,i+1,s);if(f)return f}const l=n.validators;if(l===null)return;const u=i===0?r.join(Ri):r.slice(i).join(Ri),d=l.length;for(let f=0;f<d;f++){const v=l[f];if(v.validator(u))return v.classGroupId}},Bx=r=>r.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=r.slice(1,-1),n=i.indexOf(":"),a=i.slice(0,n);return a?Px+a:void 0})(),Fx=r=>{const{theme:i,classGroups:n}=r;return Wx(n,i)},Wx=(r,i)=>{const n=rp();for(const a in r){const s=r[a];Cs(s,n,a,i)}return n},Cs=(r,i,n,a)=>{const s=r.length;for(let l=0;l<s;l++){const u=r[l];Hx(u,i,n,a)}},Hx=(r,i,n,a)=>{if(typeof r=="string"){jx(r,i,n);return}if(typeof r=="function"){Vx(r,i,n,a);return}$x(r,i,n,a)},jx=(r,i,n)=>{const a=r===""?i:op(i,r);a.classGroupId=n},Vx=(r,i,n,a)=>{if(Kx(r)){Cs(r(a),i,n,a);return}i.validators===null&&(i.validators=[]),i.validators.push(Ax(n,r))},$x=(r,i,n,a)=>{const s=Object.entries(r),l=s.length;for(let u=0;u<l;u++){const[d,f]=s[u];Cs(f,op(i,d),n,a)}},op=(r,i)=>{let n=r;const a=i.split(Ri),s=a.length;for(let l=0;l<s;l++){const u=a[l];let d=n.nextPart.get(u);d||(d=rp(),n.nextPart.set(u,d)),n=d}return n},Kx=r=>"isThemeGetter"in r&&r.isThemeGetter===!0,Ux=r=>{if(r<1)return{get:()=>{},set:()=>{}};let i=0,n=Object.create(null),a=Object.create(null);const s=(l,u)=>{n[l]=u,i++,i>r&&(i=0,a=n,n=Object.create(null))};return{get(l){let u=n[l];if(u!==void 0)return u;if((u=a[l])!==void 0)return s(l,u),u},set(l,u){l in n?n[l]=u:s(l,u)}}},xs="!",Qu=":",qx=[],ed=(r,i,n,a,s)=>({modifiers:r,hasImportantModifier:i,baseClassName:n,maybePostfixModifierPosition:a,isExternal:s}),Gx=r=>{const{prefix:i,experimentalParseClassName:n}=r;let a=s=>{const l=[];let u=0,d=0,f=0,v;const b=s.length;for(let z=0;z<b;z++){const S=s[z];if(u===0&&d===0){if(S===Qu){l.push(s.slice(f,z)),f=z+1;continue}if(S==="/"){v=z;continue}}S==="["?u++:S==="]"?u--:S==="("?d++:S===")"&&d--}const w=l.length===0?s:s.slice(f);let D=w,T=!1;w.endsWith(xs)?(D=w.slice(0,-1),T=!0):w.startsWith(xs)&&(D=w.slice(1),T=!0);const q=v&&v>f?v-f:void 0;return ed(l,T,D,q)};if(i){const s=i+Qu,l=a;a=u=>u.startsWith(s)?l(u.slice(s.length)):ed(qx,!1,u,void 0,!0)}if(n){const s=a;a=l=>n({className:l,parseClassName:s})}return a},Yx=r=>{const i=new Map;return r.orderSensitiveModifiers.forEach((n,a)=>{i.set(n,1e6+a)}),n=>{const a=[];let s=[];for(let l=0;l<n.length;l++){const u=n[l],d=u[0]==="[",f=i.has(u);d||f?(s.length>0&&(s.sort(),a.push(...s),s=[]),a.push(u)):s.push(u)}return s.length>0&&(s.sort(),a.push(...s)),a}},Xx=r=>({cache:Ux(r.cacheSize),parseClassName:Gx(r),sortModifiers:Yx(r),...Lx(r)}),Zx=/\s+/,Jx=(r,i)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:l}=i,u=[],d=r.trim().split(Zx);let f="";for(let v=d.length-1;v>=0;v-=1){const b=d[v],{isExternal:w,modifiers:D,hasImportantModifier:T,baseClassName:q,maybePostfixModifierPosition:z}=n(b);if(w){f=b+(f.length>0?" "+f:f);continue}let S=!!z,B=a(S?q.substring(0,z):q);if(!B){if(!S){f=b+(f.length>0?" "+f:f);continue}if(B=a(q),!B){f=b+(f.length>0?" "+f:f);continue}S=!1}const y=D.length===0?"":D.length===1?D[0]:l(D).join(":"),k=T?y+xs:y,N=k+B;if(u.indexOf(N)>-1)continue;u.push(N);const O=s(B,S);for(let j=0;j<O.length;++j){const re=O[j];u.push(k+re)}f=b+(f.length>0?" "+f:f)}return f},Qx=(...r)=>{let i=0,n,a,s="";for(;i<r.length;)(n=r[i++])&&(a=ip(n))&&(s&&(s+=" "),s+=a);return s},ip=r=>{if(typeof r=="string")return r;let i,n="";for(let a=0;a<r.length;a++)r[a]&&(i=ip(r[a]))&&(n&&(n+=" "),n+=i);return n},td=(r,...i)=>{let n,a,s,l;const u=f=>{const v=i.reduce((b,w)=>w(b),r());return n=Xx(v),a=n.cache.get,s=n.cache.set,l=d,d(f)},d=f=>{const v=a(f);if(v)return v;const b=Jx(f,n);return s(f,b),b};return l=u,(...f)=>l(Qx(...f))},ey=[],ft=r=>{const i=n=>n[r]||ey;return i.isThemeGetter=!0,i},ap=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ty=/^\d+\/\d+$/,ry=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ny=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,iy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ay=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sn=r=>ty.test(r),De=r=>!!r&&!Number.isNaN(Number(r)),Fr=r=>!!r&&Number.isInteger(Number(r)),is=r=>r.endsWith("%")&&De(r.slice(0,-1)),Sr=r=>ry.test(r),sy=()=>!0,ly=r=>ny.test(r)&&!oy.test(r),lp=()=>!1,cy=r=>iy.test(r),uy=r=>ay.test(r),dy=r=>!he(r)&&!ge(r),py=r=>An(r,dp,lp),he=r=>ap.test(r),rn=r=>An(r,pp,ly),as=r=>An(r,by,De),rd=r=>An(r,cp,lp),fy=r=>An(r,up,uy),li=r=>An(r,fp,cy),ge=r=>sp.test(r),ro=r=>Pn(r,pp),hy=r=>Pn(r,my),nd=r=>Pn(r,cp),gy=r=>Pn(r,dp),vy=r=>Pn(r,up),ci=r=>Pn(r,fp,!0),An=(r,i,n)=>{const a=ap.exec(r);return a?a[1]?i(a[1]):n(a[2]):!1},Pn=(r,i,n=!1)=>{const a=sp.exec(r);return a?a[1]?i(a[1]):n:!1},cp=r=>r==="position"||r==="percentage",up=r=>r==="image"||r==="url",dp=r=>r==="length"||r==="size"||r==="bg-size",pp=r=>r==="length",by=r=>r==="number",my=r=>r==="family-name",fp=r=>r==="shadow",od=()=>{const r=ft("color"),i=ft("font"),n=ft("text"),a=ft("font-weight"),s=ft("tracking"),l=ft("leading"),u=ft("breakpoint"),d=ft("container"),f=ft("spacing"),v=ft("radius"),b=ft("shadow"),w=ft("inset-shadow"),D=ft("text-shadow"),T=ft("drop-shadow"),q=ft("blur"),z=ft("perspective"),S=ft("aspect"),B=ft("ease"),y=ft("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...N(),ge,he],j=()=>["auto","hidden","clip","visible","scroll"],re=()=>["auto","contain","none"],A=()=>[ge,he,f],Q=()=>[Sn,"full","auto",...A()],ae=()=>[Fr,"none","subgrid",ge,he],ce=()=>["auto",{span:["full",Fr,ge,he]},Fr,ge,he],V=()=>[Fr,"auto",ge,he],ee=()=>["auto","min","max","fr",ge,he],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ve=()=>["start","end","center","stretch","center-safe","end-safe"],we=()=>["auto",...A()],me=()=>[Sn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],Y=()=>[r,ge,he],Ne=()=>[...N(),nd,rd,{position:[ge,he]}],I=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",gy,py,{size:[ge,he]}],Z=()=>[is,ro,rn],ne=()=>["","none","full",v,ge,he],W=()=>["",De,ro,rn],J=()=>["solid","dashed","dotted","double"],M=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>[De,is,nd,rd],oe=()=>["","none",q,ge,he],ue=()=>["none",De,ge,he],le=()=>["none",De,ge,he],fe=()=>[De,ge,he],$=()=>[Sn,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Sr],breakpoint:[Sr],color:[sy],container:[Sr],"drop-shadow":[Sr],ease:["in","out","in-out"],font:[dy],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Sr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Sr],shadow:[Sr],spacing:["px",De],text:[Sr],"text-shadow":[Sr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Sn,he,ge,S]}],container:["container"],columns:[{columns:[De,he,ge,d]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:re()}],"overscroll-x":[{"overscroll-x":re()}],"overscroll-y":[{"overscroll-y":re()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Q()}],"inset-x":[{"inset-x":Q()}],"inset-y":[{"inset-y":Q()}],start:[{start:Q()}],end:[{end:Q()}],top:[{top:Q()}],right:[{right:Q()}],bottom:[{bottom:Q()}],left:[{left:Q()}],visibility:["visible","invisible","collapse"],z:[{z:[Fr,"auto",ge,he]}],basis:[{basis:[Sn,"full","auto",d,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[De,Sn,"auto","initial","none",he]}],grow:[{grow:["",De,ge,he]}],shrink:[{shrink:["",De,ge,he]}],order:[{order:[Fr,"first","last","none",ge,he]}],"grid-cols":[{"grid-cols":ae()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":ae()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...ve(),"normal"]}],"justify-self":[{"justify-self":["auto",...ve()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...ve(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ve(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...ve(),"baseline"]}],"place-self":[{"place-self":["auto",...ve()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:we()}],mx:[{mx:we()}],my:[{my:we()}],ms:[{ms:we()}],me:[{me:we()}],mt:[{mt:we()}],mr:[{mr:we()}],mb:[{mb:we()}],ml:[{ml:we()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:me()}],w:[{w:[d,"screen",...me()]}],"min-w":[{"min-w":[d,"screen","none",...me()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...me()]}],h:[{h:["screen","lh",...me()]}],"min-h":[{"min-h":["screen","lh","none",...me()]}],"max-h":[{"max-h":["screen","lh",...me()]}],"font-size":[{text:["base",n,ro,rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,ge,as]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",is,he]}],"font-family":[{font:[hy,he,i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,ge,he]}],"line-clamp":[{"line-clamp":[De,"none",ge,as]}],leading:[{leading:[l,...A()]}],"list-image":[{"list-image":["none",ge,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[De,"from-font","auto",ge,rn]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[De,"auto",ge,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,he]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ge,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ne()}],"bg-repeat":[{bg:I()}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fr,ge,he],radial:["",ge,he],conic:[Fr,ge,he]},vy,fy]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:ne()}],"rounded-s":[{"rounded-s":ne()}],"rounded-e":[{"rounded-e":ne()}],"rounded-t":[{"rounded-t":ne()}],"rounded-r":[{"rounded-r":ne()}],"rounded-b":[{"rounded-b":ne()}],"rounded-l":[{"rounded-l":ne()}],"rounded-ss":[{"rounded-ss":ne()}],"rounded-se":[{"rounded-se":ne()}],"rounded-ee":[{"rounded-ee":ne()}],"rounded-es":[{"rounded-es":ne()}],"rounded-tl":[{"rounded-tl":ne()}],"rounded-tr":[{"rounded-tr":ne()}],"rounded-br":[{"rounded-br":ne()}],"rounded-bl":[{"rounded-bl":ne()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[De,ge,he]}],"outline-w":[{outline:["",De,ro,rn]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",b,ci,li]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",w,ci,li]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[De,rn]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",D,ci,li]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[De,ge,he]}],"mix-blend":[{"mix-blend":[...M(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":M()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[De]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[ge,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[De]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ne()}],"mask-repeat":[{mask:I()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,he]}],filter:[{filter:["","none",ge,he]}],blur:[{blur:oe()}],brightness:[{brightness:[De,ge,he]}],contrast:[{contrast:[De,ge,he]}],"drop-shadow":[{"drop-shadow":["","none",T,ci,li]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",De,ge,he]}],"hue-rotate":[{"hue-rotate":[De,ge,he]}],invert:[{invert:["",De,ge,he]}],saturate:[{saturate:[De,ge,he]}],sepia:[{sepia:["",De,ge,he]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,he]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[De,ge,he]}],"backdrop-contrast":[{"backdrop-contrast":[De,ge,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",De,ge,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[De,ge,he]}],"backdrop-invert":[{"backdrop-invert":["",De,ge,he]}],"backdrop-opacity":[{"backdrop-opacity":[De,ge,he]}],"backdrop-saturate":[{"backdrop-saturate":[De,ge,he]}],"backdrop-sepia":[{"backdrop-sepia":["",De,ge,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[De,"initial",ge,he]}],ease:[{ease:["linear","initial",B,ge,he]}],delay:[{delay:[De,ge,he]}],animate:[{animate:["none",y,ge,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[z,ge,he]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[ge,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$()}],"translate-x":[{"translate-x":$()}],"translate-y":[{"translate-y":$()}],"translate-z":[{"translate-z":$()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge,he]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ge,he]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[De,ro,rn,as]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},wy=(r,{cacheSize:i,prefix:n,experimentalParseClassName:a,extend:s={},override:l={}})=>(so(r,"cacheSize",i),so(r,"prefix",n),so(r,"experimentalParseClassName",a),ui(r.theme,l.theme),ui(r.classGroups,l.classGroups),ui(r.conflictingClassGroups,l.conflictingClassGroups),ui(r.conflictingClassGroupModifiers,l.conflictingClassGroupModifiers),so(r,"orderSensitiveModifiers",l.orderSensitiveModifiers),di(r.theme,s.theme),di(r.classGroups,s.classGroups),di(r.conflictingClassGroups,s.conflictingClassGroups),di(r.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),hp(r,s,"orderSensitiveModifiers"),r),so=(r,i,n)=>{n!==void 0&&(r[i]=n)},ui=(r,i)=>{if(i)for(const n in i)so(r,n,i[n])},di=(r,i)=>{if(i)for(const n in i)hp(r,i,n)},hp=(r,i,n)=>{const a=i[n];a!==void 0&&(r[n]=r[n]?r[n].concat(a):a)},xy=(r,...i)=>typeof r=="function"?td(od,r,...i):td(()=>wy(od(),r),...i);function gp(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var id={exports:{}};/*!
|
|
30
29
|
Copyright (c) 2018 Jed Watson.
|
|
31
30
|
Licensed under the MIT License (MIT), see
|
|
32
31
|
http://jedwatson.github.io/classnames
|
|
33
|
-
*/var
|
|
34
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ht(i){return Jv(i)||zv(i)||Ul(i)||kv()}function Uv(i){if(i.sheet)return i.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===i)return document.styleSheets[r]}function jv(i){var r=document.createElement("style");return r.setAttribute("data-emotion",i.key),i.nonce!==void 0&&r.setAttribute("nonce",i.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var Qv=(function(){function i(u){var s=this;this._insertTag=function(o){var c;s.tags.length===0?s.insertionPoint?c=s.insertionPoint.nextSibling:s.prepend?c=s.container.firstChild:c=s.before:c=s.tags[s.tags.length-1].nextSibling,s.container.insertBefore(o,c),s.tags.push(o)},this.isSpeedy=u.speedy===void 0?!0:u.speedy,this.tags=[],this.ctr=0,this.nonce=u.nonce,this.key=u.key,this.container=u.container,this.prepend=u.prepend,this.insertionPoint=u.insertionPoint,this.before=null}var r=i.prototype;return r.hydrate=function(s){s.forEach(this._insertTag)},r.insert=function(s){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(jv(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var c=Uv(o);try{c.insertRule(s,c.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(s));this.ctr++},r.flush=function(){this.tags.forEach(function(s){var o;return(o=s.parentNode)==null?void 0:o.removeChild(s)}),this.tags=[],this.ctr=0},i})(),nn="-ms-",Ci="-moz-",ce="-webkit-",jl="comm",Co="rule",Ao="decl",$v="@import",Ql="@keyframes",Kv="@layer",qv=Math.abs,Ri=String.fromCharCode,em=Object.assign;function nm(i,r){return $e(i,0)^45?(((r<<2^$e(i,0))<<2^$e(i,1))<<2^$e(i,2))<<2^$e(i,3):0}function $l(i){return i.trim()}function tm(i,r){return(i=r.exec(i))?i[0]:i}function fe(i,r,u){return i.replace(r,u)}function po(i,r){return i.indexOf(r)}function $e(i,r){return i.charCodeAt(r)|0}function hr(i,r,u){return i.slice(r,u)}function Yn(i){return i.length}function xo(i){return i.length}function li(i,r){return r.push(i),i}function rm(i,r){return i.map(r).join("")}var Fi=1,Jt=1,Kl=0,hn=0,Le=0,kt="";function Bi(i,r,u,s,o,c,d){return{value:i,root:r,parent:u,type:s,props:o,children:c,line:Fi,column:Jt,length:d,return:""}}function fr(i,r){return em(Bi("",null,null,"",null,null,0),i,{length:-i.length},r)}function im(){return Le}function um(){return Le=hn>0?$e(kt,--hn):0,Jt--,Le===10&&(Jt=1,Fi--),Le}function yn(){return Le=hn<Kl?$e(kt,hn++):0,Jt++,Le===10&&(Jt=1,Fi++),Le}function zn(){return $e(kt,hn)}function hi(){return hn}function mr(i,r){return hr(kt,i,r)}function br(i){switch(i){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ql(i){return Fi=Jt=1,Kl=Yn(kt=i),hn=0,[]}function ec(i){return kt="",i}function bi(i){return $l(mr(hn-1,ho(i===91?i+2:i===40?i+1:i)))}function om(i){for(;(Le=zn())&&Le<33;)yn();return br(i)>2||br(Le)>3?"":" "}function am(i,r){for(;--r&&yn()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return mr(i,hi()+(r<6&&zn()==32&&yn()==32))}function ho(i){for(;yn();)switch(Le){case i:return hn;case 34:case 39:i!==34&&i!==39&&ho(Le);break;case 40:i===41&&ho(i);break;case 92:yn();break}return hn}function sm(i,r){for(;yn()&&i+Le!==57;)if(i+Le===84&&zn()===47)break;return"/*"+mr(r,hn-1)+"*"+Ri(i===47?i:yn())}function lm(i){for(;!br(zn());)yn();return mr(i,hn)}function cm(i){return ec(vi("",null,null,null,[""],i=ql(i),0,[0],i))}function vi(i,r,u,s,o,c,d,b,g){for(var h=0,m=0,A=d,B=0,E=0,F=0,G=1,S=1,T=1,X=0,N="",W=o,w=c,D=s,M=N;S;)switch(F=X,X=yn()){case 40:if(F!=108&&$e(M,A-1)==58){po(M+=fe(bi(X),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:M+=bi(X);break;case 9:case 10:case 13:case 32:M+=om(F);break;case 92:M+=am(hi()-1,7);continue;case 47:switch(zn()){case 42:case 47:li(fm(sm(yn(),hi()),r,u),g);break;default:M+="/"}break;case 123*G:b[h++]=Yn(M)*T;case 125*G:case 59:case 0:switch(X){case 0:case 125:S=0;case 59+m:T==-1&&(M=fe(M,/\f/g,"")),E>0&&Yn(M)-A&&li(E>32?dl(M+";",s,u,A-1):dl(fe(M," ","")+";",s,u,A-2),g);break;case 59:M+=";";default:if(li(D=fl(M,r,u,h,m,o,b,N,W=[],w=[],A),c),X===123)if(m===0)vi(M,r,D,D,W,c,A,b,w);else switch(B===99&&$e(M,3)===110?100:B){case 100:case 108:case 109:case 115:vi(i,D,D,s&&li(fl(i,D,D,0,0,o,b,N,o,W=[],A),w),o,w,A,b,s?W:w);break;default:vi(M,D,D,D,[""],w,0,b,w)}}h=m=E=0,G=T=1,N=M="",A=d;break;case 58:A=1+Yn(M),E=F;default:if(G<1){if(X==123)--G;else if(X==125&&G++==0&&um()==125)continue}switch(M+=Ri(X),X*G){case 38:T=m>0?1:(M+="\f",-1);break;case 44:b[h++]=(Yn(M)-1)*T,T=1;break;case 64:zn()===45&&(M+=bi(yn())),B=zn(),m=A=Yn(N=M+=lm(hi())),X++;break;case 45:F===45&&Yn(M)==2&&(G=0)}}return c}function fl(i,r,u,s,o,c,d,b,g,h,m){for(var A=o-1,B=o===0?c:[""],E=xo(B),F=0,G=0,S=0;F<s;++F)for(var T=0,X=hr(i,A+1,A=qv(G=d[F])),N=i;T<E;++T)(N=$l(G>0?B[T]+" "+X:fe(X,/&\f/g,B[T])))&&(g[S++]=N);return Bi(i,r,u,o===0?Co:b,g,h,m)}function fm(i,r,u){return Bi(i,r,u,jl,Ri(im()),hr(i,2,-2),0)}function dl(i,r,u,s){return Bi(i,r,u,Ao,hr(i,0,s),hr(i,s+1,-1),s)}function Yt(i,r){for(var u="",s=xo(i),o=0;o<s;o++)u+=r(i[o],o,i,r)||"";return u}function dm(i,r,u,s){switch(i.type){case Kv:if(i.children.length)break;case $v:case Ao:return i.return=i.return||i.value;case jl:return"";case Ql:return i.return=i.value+"{"+Yt(i.children,s)+"}";case Co:i.value=i.props.join(",")}return Yn(u=Yt(i.children,s))?i.return=i.value+"{"+u+"}":""}function gm(i){var r=xo(i);return function(u,s,o,c){for(var d="",b=0;b<r;b++)d+=i[b](u,s,o,c)||"";return d}}function pm(i){return function(r){r.root||(r=r.return)&&i(r)}}function hm(i){var r=Object.create(null);return function(u){return r[u]===void 0&&(r[u]=i(u)),r[u]}}var bm=function(r,u,s){for(var o=0,c=0;o=c,c=zn(),o===38&&c===12&&(u[s]=1),!br(c);)yn();return mr(r,hn)},vm=function(r,u){var s=-1,o=44;do switch(br(o)){case 0:o===38&&zn()===12&&(u[s]=1),r[s]+=bm(hn-1,u,s);break;case 2:r[s]+=bi(o);break;case 4:if(o===44){r[++s]=zn()===58?"&\f":"",u[s]=r[s].length;break}default:r[s]+=Ri(o)}while(o=yn());return r},mm=function(r,u){return ec(vm(ql(r),u))},gl=new WeakMap,Im=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var u=r.value,s=r.parent,o=r.column===s.column&&r.line===s.line;s.type!=="rule";)if(s=s.parent,!s)return;if(!(r.props.length===1&&u.charCodeAt(0)!==58&&!gl.get(s))&&!o){gl.set(r,!0);for(var c=[],d=mm(u,c),b=s.props,g=0,h=0;g<d.length;g++)for(var m=0;m<b.length;m++,h++)r.props[h]=c[g]?d[g].replace(/&\f/g,b[m]):b[m]+" "+d[g]}}},Cm=function(r){if(r.type==="decl"){var u=r.value;u.charCodeAt(0)===108&&u.charCodeAt(2)===98&&(r.return="",r.value="")}};function nc(i,r){switch(nm(i,r)){case 5103:return ce+"print-"+i+i;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ce+i+i;case 5349:case 4246:case 4810:case 6968:case 2756:return ce+i+Ci+i+nn+i+i;case 6828:case 4268:return ce+i+nn+i+i;case 6165:return ce+i+nn+"flex-"+i+i;case 5187:return ce+i+fe(i,/(\w+).+(:[^]+)/,ce+"box-$1$2"+nn+"flex-$1$2")+i;case 5443:return ce+i+nn+"flex-item-"+fe(i,/flex-|-self/,"")+i;case 4675:return ce+i+nn+"flex-line-pack"+fe(i,/align-content|flex-|-self/,"")+i;case 5548:return ce+i+nn+fe(i,"shrink","negative")+i;case 5292:return ce+i+nn+fe(i,"basis","preferred-size")+i;case 6060:return ce+"box-"+fe(i,"-grow","")+ce+i+nn+fe(i,"grow","positive")+i;case 4554:return ce+fe(i,/([^-])(transform)/g,"$1"+ce+"$2")+i;case 6187:return fe(fe(fe(i,/(zoom-|grab)/,ce+"$1"),/(image-set)/,ce+"$1"),i,"")+i;case 5495:case 3959:return fe(i,/(image-set\([^]*)/,ce+"$1$`$1");case 4968:return fe(fe(i,/(.+:)(flex-)?(.*)/,ce+"box-pack:$3"+nn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ce+i+i;case 4095:case 3583:case 4068:case 2532:return fe(i,/(.+)-inline(.+)/,ce+"$1$2")+i;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Yn(i)-1-r>6)switch($e(i,r+1)){case 109:if($e(i,r+4)!==45)break;case 102:return fe(i,/(.+:)(.+)-([^]+)/,"$1"+ce+"$2-$3$1"+Ci+($e(i,r+3)==108?"$3":"$2-$3"))+i;case 115:return~po(i,"stretch")?nc(fe(i,"stretch","fill-available"),r)+i:i}break;case 4949:if($e(i,r+1)!==115)break;case 6444:switch($e(i,Yn(i)-3-(~po(i,"!important")&&10))){case 107:return fe(i,":",":"+ce)+i;case 101:return fe(i,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ce+($e(i,14)===45?"inline-":"")+"box$3$1"+ce+"$2$3$1"+nn+"$2box$3")+i}break;case 5936:switch($e(i,r+11)){case 114:return ce+i+nn+fe(i,/[svh]\w+-[tblr]{2}/,"tb")+i;case 108:return ce+i+nn+fe(i,/[svh]\w+-[tblr]{2}/,"tb-rl")+i;case 45:return ce+i+nn+fe(i,/[svh]\w+-[tblr]{2}/,"lr")+i}return ce+i+nn+i+i}return i}var Am=function(r,u,s,o){if(r.length>-1&&!r.return)switch(r.type){case Ao:r.return=nc(r.value,r.length);break;case Ql:return Yt([fr(r,{value:fe(r.value,"@","@"+ce)})],o);case Co:if(r.length)return rm(r.props,function(c){switch(tm(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Yt([fr(r,{props:[fe(c,/:(read-\w+)/,":"+Ci+"$1")]})],o);case"::placeholder":return Yt([fr(r,{props:[fe(c,/:(plac\w+)/,":"+ce+"input-$1")]}),fr(r,{props:[fe(c,/:(plac\w+)/,":"+Ci+"$1")]}),fr(r,{props:[fe(c,/:(plac\w+)/,nn+"input-$1")]})],o)}return""})}},xm=[Am],ym=function(r){var u=r.key;if(u==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(G){var S=G.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(G),G.setAttribute("data-s",""))})}var o=r.stylisPlugins||xm,c={},d,b=[];d=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+u+' "]'),function(G){for(var S=G.getAttribute("data-emotion").split(" "),T=1;T<S.length;T++)c[S[T]]=!0;b.push(G)});var g,h=[Im,Cm];{var m,A=[dm,pm(function(G){m.insert(G)})],B=gm(h.concat(o,A)),E=function(S){return Yt(cm(S),B)};g=function(S,T,X,N){m=X,E(S?S+"{"+T.styles+"}":T.styles),N&&(F.inserted[T.name]=!0)}}var F={key:u,sheet:new Qv({key:u,container:d,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:c,registered:{},insert:g};return F.sheet.hydrate(b),F},ci={exports:{}},ge={};/** @license React v16.13.1
|
|
32
|
+
*/var ad;function yy(){return ad||(ad=1,(function(r){(function(){var i={}.hasOwnProperty;function n(){for(var l="",u=0;u<arguments.length;u++){var d=arguments[u];d&&(l=s(l,a(d)))}return l}function a(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return n.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var u="";for(var d in l)i.call(l,d)&&l[d]&&(u=s(u,d));return u}function s(l,u){return u?l?l+" "+u:l+u:l}r.exports?(n.default=n,r.exports=n):window.classNames=n})()})(id)),id.exports}var _y=yy();const Iy=gp(_y),ky=xy({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-s","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"],"text-color":["text-body","text-muted","text-inactive-text","text-button-text","text-positive-text","text-negative-text","text-negative","text-warning-text","text-input-text","text-select-text","text-input-message-text","text-placeholder"]}}});function G(...r){return ky(Iy(r))}const go={sm:{checkbox:"size-4",hoverSquare:"size-2.5",text:"text-xs",spacing:"gap-1",icon:"size-3.25"},md:{checkbox:"size-5",hoverSquare:"size-3.5",text:"text-sm",spacing:"gap-1.5",icon:"size-4"},lg:{checkbox:"size-6",hoverSquare:"size-4",text:"text-base",spacing:"gap-2",icon:"size-5"}},tr={primary:{checked:"bg-primary border-primary",unchecked:"border border-body bg-transparent",checkedHover:"hover:bg-primary-hover hover:border-primary-hover",hoverSquare:"bg-primary-hover",focus:"focus:ring-primary",label:"text-body"},positive:{checked:"bg-positive border-positive",unchecked:"border border-positive bg-transparent",checkedHover:"hover:bg-positive-hover hover:border-positive-hover",hoverSquare:"bg-positive-hover",focus:"focus:ring-positive",label:"text-positive"},warning:{checked:"bg-warning border-warning",unchecked:"border border-warning bg-transparent",checkedHover:"hover:bg-warning-hover hover:border-warning-hover",hoverSquare:"bg-warning-hover",focus:"focus:ring-warning",label:"text-warning"},negative:{checked:"bg-negative border-negative",unchecked:"border border-negative bg-transparent",checkedHover:"hover:bg-negative-hover hover:border-negative-hover",hoverSquare:"bg-negative-hover",focus:"focus:ring-negative",label:"text-negative"}},Ey=`
|
|
33
|
+
appearance-none border rounded transition-all duration-200
|
|
34
|
+
focus:ring-2 focus:ring-offset-2 focus:outline-hidden
|
|
35
|
+
relative
|
|
36
|
+
`,Sy=(r,i,n)=>{const{isChecked:a,isIndeterminate:s,isDisabled:l,isInvalid:u}=n,d=a||s;return G(Ey,go[r].checkbox,{"cursor-pointer":!l},u?{[tr.negative.checked]:d,[tr.negative.unchecked]:!d,[tr.negative.checkedHover]:!l&&d,[tr.negative.focus]:!l,"border-input-disable":l}:{[tr[i].checked]:d&&!l,[tr[i].unchecked]:!d&&!l,[tr[i].checkedHover]:!l&&d,[tr[i].focus]:!l,"border-input-disable":l,"bg-input-disable":l&&d})},Oy=(r,i,n)=>{const{isDisabled:a,isInvalid:s}=n;return G(go[r].text,s?{[tr.negative.label]:s}:{"text-input-disable":a,[tr[i].label]:!a,"cursor-pointer":!a})},Ny=r=>G("inline-flex items-center ws-group",go[r].spacing),Cy=(r,i,n)=>G("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",go[r].hoverSquare,{[tr.negative.hoverSquare]:n,[tr[i].hoverSquare]:!n}),Ry=r=>`${go[r].icon}`,Dy=r=>E.jsx("svg",{className:`absolute inset-0 ${r.className}`,fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...r,children:E.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),zy=x.forwardRef(({label:r,isDisabled:i=!1,isInvalid:n=!1,isRequired:a=!1,size:s="md",color:l="primary",onChange:u,onFocus:d,onBlur:f,value:v,defaultValue:b,name:w,id:D,...T},q)=>{const[z,S]=x.useState(b),B=v===!0||z===!0,y=v===null,k=B||y,N={isChecked:B,isIndeterminate:y,isDisabled:i,isInvalid:n},O=Sy(s,l,N),j=Oy(s,l,N),re=Ny(s),A=Cy(s,l,n),Q=Ry(s);return E.jsxs("label",{"data-qui":"Checkbox",className:re,children:[E.jsxs("div",{className:O,children:[E.jsx("input",{ref:q,type:"checkbox",className:"sr-only",checked:B,disabled:i,required:a,onChange:ae=>{v===void 0&&S(ae.target.checked),u==null||u(ae)},onFocus:d,onBlur:f,name:w,id:D,...T}),k&&E.jsx("div",{className:"center-absolute",children:y?E.jsx(Dy,{className:Q}):E.jsx(Rx,{className:Q})}),!k&&!i&&E.jsx("div",{className:A})]}),r&&E.jsxs("span",{className:j,children:[r,a&&E.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});zy.displayName="Checkbox";const vo={sm:{container:"gap-2",radio:"size-3",label:"text-xs",dot:"size-2",hoverDot:"size-1.5"},md:{container:"gap-2.5",radio:"size-4",label:"text-sm",dot:"size-2.5",hoverDot:"size-2"},lg:{container:"gap-3",radio:"size-6",label:"text-base",dot:"size-4",hoverDot:"size-3"}},co={primary:{radio:"border-body-light group-hover:border-body",radioInvalid:"border-negative",dot:"bg-primary group-hover:bg-primary-hover",hoverDot:"bg-primary-hover",label:"text-body"},positive:{radio:"border-positive group-hover:border-positive-text",radioInvalid:"border-negative",dot:"bg-positive group-hover:bg-positive-hover",hoverDot:"bg-positive-bg",label:"text-positive-text"},warning:{radio:"border-warning group-hover:border-warning-text",radioInvalid:"border-negative",dot:"bg-warning group-hover:bg-warning-hover",hoverDot:"bg-warning-bg",label:"text-warning-text"},negative:{radio:"border-negative group-hover:border-negative-text",radioInvalid:"border-negative",dot:"bg-negative group-hover:bg-negative-hover",hoverDot:"bg-negative-bg",label:"text-negative"}},My=`
|
|
37
|
+
relative rounded-full border transition-all duration-200 ease-in-out bg-transparent
|
|
38
|
+
focus:outline-hidden focus:ring-2 focus:ring-offset-0
|
|
39
|
+
cursor-pointer peer
|
|
40
|
+
`,Ty=(r,i,n)=>{const{isDisabled:a,isInvalid:s}=n;return G(My,vo[r].radio,s?co[i].radioInvalid:{[co[i].radio]:!a,"cursor-not-allowed opacity-60":a})},Ay=(r,i,n)=>{const{checked:a,isDisabled:s,isInvalid:l}=n;return G("center-absolute rounded-full transition-all duration-200 ease-in-out",vo[r].dot,l?"bg-negative":{[co[i].dot]:!s,"border-neutral":s,"opacity-0 scale-0":!a,"opacity-100 scale-100":a&&!s})},Py=(r,i,n)=>G("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",vo[r].hoverDot,{[co[i].hoverDot]:!n,"bg-negative-bg":n}),Ly=r=>G("cursor-pointer select-none transition-colors duration-200",vo[r].label),By=(r,i,n,a)=>{const{isDisabled:s,isInvalid:l}=n;return G("inline-flex items-center group",vo[r].container,l?{"text-negative":l}:{[co[i].label]:!s,"text-muted":s},a)},Fy=x.createContext(null),Wy=()=>{const r=x.useContext(Fy);if(!r)throw new Error("Radio.Item must be used within Radio.Group");return r},Hy=x.forwardRef(({value:r,label:i,size:n,color:a,isDisabled:s,isInvalid:l,isRequired:u,className:d,...f},v)=>{const b=Wy(),w=n??b.size,D=a??b.color,T=s??b.isDisabled,q=l??b.isInvalid,z=u??b.isRequired,S=b.value===r,B={checked:S,isDisabled:T,isInvalid:q},y=Ty(w,D,B),k=Ay(w,D,B),N=Py(w,D,q),O=Ly(w),j=By(w,D,B,d),re=()=>{T||b.onChange(r)};return E.jsxs("label",{"data-qui":"RadioItem",className:j,children:[E.jsxs("div",{className:G("relative",{hidden:b.hideIndicator}),children:[E.jsx("input",{ref:v,type:"radio",value:r,checked:S,disabled:T,required:z,"aria-invalid":q,"aria-label":i?void 0:f["aria-label"],name:b.name,onChange:re,className:"sr-only",...f}),E.jsxs("div",{className:y,children:[E.jsx("div",{className:k}),!S&&!T&&E.jsx("div",{className:N})]})]}),i&&E.jsxs("span",{className:O,children:[i,z&&E.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});Hy.displayName="RadioItem";const vp={sm:{container:"h-4.5 p-1 rounded",text:"text-xxs"},md:{container:"h-6 p-1 rounded",text:"text-s"},lg:{container:"h-7 p-1 rounded",text:"text-sm"},xl:{container:"h-7.5 p-1 rounded",text:"text-lg"}},jy={primary:{bg:{solid:"bg-primary",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-primary",ghost:"text-primary"},border:{solid:"border-primary",outline:"border-primary",ghost:"border-transparent"},hover:{solid:"hover:bg-primary-hover hover:border-primary-hover",outline:"hover:border-black hover:text-primary-hover",ghost:"hover:bg-primary-hover hover:text-body"}},white:{bg:{solid:"bg-white",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-primary",outline:"text-body",ghost:"text-body"},border:{solid:"border-white",outline:"border-white",ghost:"border-transparent"},hover:{solid:"hover:bg-canvas-subtle hover:border-canvas-subtle",outline:"hover:border-canvas hover:text-canvas",ghost:"hover:bg-primary-hover hover:text-body"}},positive:{bg:{solid:"bg-positive",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-positive-text",ghost:"text-positive-text"},border:{solid:"border-positive",outline:"border-positive",ghost:"border-transparent"},hover:{solid:"hover:bg-positive-hover hover:border-positive-hover",outline:"hover:border-positive-hover hover:text-positive-hover",ghost:"hover:bg-positive-hover hover:text-body"}},warning:{bg:{solid:"bg-warning",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-warning-text",ghost:"text-warning-text"},border:{solid:"border-warning",outline:"border-warning",ghost:"border-transparent"},hover:{solid:"hover:bg-warning-hover hover:border-warning-hover",outline:"hover:border-warning-hover hover:text-warning-hover",ghost:"hover:bg-warning-hover hover:text-body"}},negative:{bg:{solid:"bg-negative",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-negative",ghost:"text-negative"},border:{solid:"border-negative",outline:"border-negative",ghost:"border-transparent"},hover:{solid:"hover:bg-negative-hover hover:border-negative-hover",outline:"hover:border-negative-hover hover:text-negative-hover",ghost:"hover:bg-negative-hover hover:text-body"}}},Vy=(r,i,n,a)=>{const s=vp[r],l=jy[n],u=G("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!a},s.container);return a?G(u,"text-inactive-text",{"border-panel":i!=="ghost"&&i==="solid","border-panel-subtle":i==="outline","bg-panel":i==="solid","bg-transparent ":i==="outline"||i==="ghost","border-transparent":i==="ghost"}):G(u,l.bg[i],l.text[i],l.hover[i],l.border[i])},$y=r=>G("flex items-center justify-center gap-1",vp[r].text),Ky=x.forwardRef(({size:r="md",variant:i="solid",color:n="primary",className:a,children:s,disabled:l,...u},d)=>E.jsx("button",{"data-qui":"Button",ref:d,type:"button",className:G(Vy(r,i,n,l),$y(r),a),disabled:l,...u,children:s}));Ky.displayName="Button";const bp=x.createContext(null),bo=()=>{const r=x.useContext(bp);if(!r)throw new Error("Input components must be used within Input.Root");return r},Ln={sm:{group:"h-5 min-h-fit",input:"text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{group:"h-6 min-h-fit",input:"text-xs",message:"text-xs p-2",icon:"text-base"},lg:{group:"h-7 min-h-fit",input:"text-s",message:"text-s p-2.5",icon:"text-lg"}},Nr={primary:{border:"border border-input-border focus-within:border-input-focus-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-focus-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-input-message-text",messageBackground:"bg-input-message-bg",icon:"text-input-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},positive:{border:"border border-input-border focus-within:border-positive",borderInvalid:"ring-input-error-border",borderMessage:"ring-positive",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-positive-dark",messageBackground:"bg-positive-light",icon:"text-positive-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},warning:{border:"border border-input-border focus-within:border-input-warning-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-warning-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-warning-dark",messageBackground:"bg-input-warning-bg",icon:"text-warning-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},negative:{border:"border border-input-border focus-within:border-input-error-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-error-border",text:"text-negative",placeholder:"placeholder:text-input-placeholder",messageText:"text-negative-dark",messageBackground:"bg-input-error-bg",icon:"text-negative",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"}},Uy=()=>G("flex flex-col relative"),qy=({size:r,color:i,isDisabled:n,isReadOnly:a,hasMessage:s,hasArea:l,isInvalid:u})=>{const d=Nr[u?"negative":i];return G("bg-input-bg flex gap-1 relative px-1 transition-all duration-200 ease-in-out only:rounded first:rounded-t last:rounded-b",d.text,s?d.borderMessage:!a&&d.border,Ln[r].group,{"ring-1":s,"opacity-60":n,"items-center":!l})},Gy=({size:r,color:i})=>G("bg-transparent ring-0 w-full","focus:outline-hidden",[Ln[r].input],Nr[i].placeholder),sd=({size:r,color:i})=>G("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",Ln[r].input,Nr[i].placeholder),Yy=({size:r,color:i,isDisabled:n,isAction:a})=>G("transition-colors duration-200 rounded max-h-full h-fit",Ln[r].icon,r==="sm"?"m-px":"m-0.5",n?"text-muted opacity-60 pointer-events-none":a?Nr[i].action:Nr[i].icon,{"cursor-pointer p-0.5":a&&!n,[Nr[i].actionHover]:a&&!n,"pointer-events-none":!a}),Xy=({size:r,color:i,isDisabled:n})=>G("absolute left-0 right-0 z-10","flex items-start gap-x-2 ring-1","first:bottom-full first:rounded-t first:ring-b-0","last:top-full last:rounded-b last:ring-t-0","only:top-full only:rounded only:ring-1",n?"text-muted":Nr[i].messageText,Nr[i].borderMessage,Nr[i].messageBackground,Ln[r].message,{"opacity-60":n}),Zy=({size:r})=>G(Ln[r].icon);function Di(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}var Jy=typeof global=="object"&&global&&global.Object===Object&&global,Qy=typeof self=="object"&&self&&self.Object===Object&&self,mp=Jy||Qy||Function("return this")(),ss=function(){return mp.Date.now()},e1=/\s/;function t1(r){for(var i=r.length;i--&&e1.test(r.charAt(i)););return i}var r1=/^\s+/;function n1(r){return r&&r.slice(0,t1(r)+1).replace(r1,"")}var zi=mp.Symbol,wp=Object.prototype,o1=wp.hasOwnProperty,i1=wp.toString,no=zi?zi.toStringTag:void 0;function a1(r){var i=o1.call(r,no),n=r[no];try{r[no]=void 0;var a=!0}catch{}var s=i1.call(r);return a&&(i?r[no]=n:delete r[no]),s}var s1=Object.prototype,l1=s1.toString;function c1(r){return l1.call(r)}var u1="[object Null]",d1="[object Undefined]",ld=zi?zi.toStringTag:void 0;function p1(r){return r==null?r===void 0?d1:u1:ld&&ld in Object(r)?a1(r):c1(r)}function f1(r){return r!=null&&typeof r=="object"}var h1="[object Symbol]";function g1(r){return typeof r=="symbol"||f1(r)&&p1(r)==h1}var cd=NaN,v1=/^[-+]0x[0-9a-f]+$/i,b1=/^0b[01]+$/i,m1=/^0o[0-7]+$/i,w1=parseInt;function ud(r){if(typeof r=="number")return r;if(g1(r))return cd;if(Di(r)){var i=typeof r.valueOf=="function"?r.valueOf():r;r=Di(i)?i+"":i}if(typeof r!="string")return r===0?r:+r;r=n1(r);var n=b1.test(r);return n||m1.test(r)?w1(r.slice(2),n?2:8):v1.test(r)?cd:+r}var x1="Expected a function",y1=Math.max,_1=Math.min;function _i(r,i,n){var a,s,l,u,d,f,v=0,b=!1,w=!1,D=!0;if(typeof r!="function")throw new TypeError(x1);i=ud(i)||0,Di(n)&&(b=!!n.leading,w="maxWait"in n,l=w?y1(ud(n.maxWait)||0,i):l,D="trailing"in n?!!n.trailing:D);function T(j){var re=a,A=s;return a=s=void 0,v=j,u=r.apply(A,re),u}function q(j){return v=j,d=setTimeout(B,i),b?T(j):u}function z(j){var re=j-f,A=j-v,Q=i-re;return w?_1(Q,l-A):Q}function S(j){var re=j-f,A=j-v;return f===void 0||re>=i||re<0||w&&A>=l}function B(){var j=ss();if(S(j))return y(j);d=setTimeout(B,z(j))}function y(j){return d=void 0,D&&a?T(j):(a=s=void 0,u)}function k(){d!==void 0&&clearTimeout(d),v=0,a=f=s=d=void 0}function N(){return d===void 0?u:y(ss())}function O(){var j=ss(),re=S(j);if(a=arguments,s=this,f=j,re){if(d===void 0)return q(f);if(w)return clearTimeout(d),d=setTimeout(B,i),T(f)}return d===void 0&&(d=setTimeout(B,i)),u}return O.cancel=k,O.flush=N,O}var I1="Expected a function";function k1(r,i,n){var a=!0,s=!0;if(typeof r!="function")throw new TypeError(I1);return Di(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),_i(r,i,{leading:a,maxWait:i,trailing:s})}var Rn=function(){return Rn=Object.assign||function(r){for(var i,n=1,a=arguments.length;n<a;n++){i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}return r},Rn.apply(this,arguments)};function xp(r){return!r||!r.ownerDocument||!r.ownerDocument.defaultView?window:r.ownerDocument.defaultView}function yp(r){return!r||!r.ownerDocument?document:r.ownerDocument}var _p=function(r){var i={},n=Array.prototype.reduce.call(r,function(a,s){var l=s.name.match(/data-simplebar-(.+)/);if(l){var u=l[1].replace(/\W+(.)/g,function(d,f){return f.toUpperCase()});switch(s.value){case"true":a[u]=!0;break;case"false":a[u]=!1;break;case void 0:a[u]=!0;break;default:a[u]=s.value}}return a},i);return n};function Ip(r,i){var n;r&&(n=r.classList).add.apply(n,i.split(" "))}function kp(r,i){r&&i.split(" ").forEach(function(n){r.classList.remove(n)})}function Ep(r){return".".concat(r.split(" ").join("."))}var Rs=!!(typeof window<"u"&&window.document&&window.document.createElement),E1=Object.freeze({__proto__:null,addClasses:Ip,canUseDOM:Rs,classNamesToQuery:Ep,getElementDocument:yp,getElementWindow:xp,getOptions:_p,removeClasses:kp}),Cn=null,dd=null;Rs&&window.addEventListener("resize",function(){dd!==window.devicePixelRatio&&(dd=window.devicePixelRatio,Cn=null)});function pd(){if(Cn===null){if(typeof document>"u")return Cn=0,Cn;var r=document.body,i=document.createElement("div");i.classList.add("simplebar-hide-scrollbar"),r.appendChild(i);var n=i.getBoundingClientRect().right;r.removeChild(i),Cn=n}return Cn}var Wr=xp,ls=yp,S1=_p,Hr=Ip,jr=kp,Bt=Ep,oo=(function(){function r(i,n){n===void 0&&(n={});var a=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var s=Wr(a.el);a.scrollXTicking||(s.requestAnimationFrame(a.scrollX),a.scrollXTicking=!0),a.scrollYTicking||(s.requestAnimationFrame(a.scrollY),a.scrollYTicking=!0),a.isScrolling||(a.isScrolling=!0,Hr(a.el,a.classNames.scrolling)),a.showScrollbar("x"),a.showScrollbar("y"),a.onStopScrolling()},this.scrollX=function(){a.axis.x.isOverflowing&&a.positionScrollbar("x"),a.scrollXTicking=!1},this.scrollY=function(){a.axis.y.isOverflowing&&a.positionScrollbar("y"),a.scrollYTicking=!1},this._onStopScrolling=function(){jr(a.el,a.classNames.scrolling),a.options.autoHide&&(a.hideScrollbar("x"),a.hideScrollbar("y")),a.isScrolling=!1},this.onMouseEnter=function(){a.isMouseEntering||(Hr(a.el,a.classNames.mouseEntered),a.showScrollbar("x"),a.showScrollbar("y"),a.isMouseEntering=!0),a.onMouseEntered()},this._onMouseEntered=function(){jr(a.el,a.classNames.mouseEntered),a.options.autoHide&&(a.hideScrollbar("x"),a.hideScrollbar("y")),a.isMouseEntering=!1},this._onMouseMove=function(s){a.mouseX=s.clientX,a.mouseY=s.clientY,(a.axis.x.isOverflowing||a.axis.x.forceVisible)&&a.onMouseMoveForAxis("x"),(a.axis.y.isOverflowing||a.axis.y.forceVisible)&&a.onMouseMoveForAxis("y")},this.onMouseLeave=function(){a.onMouseMove.cancel(),(a.axis.x.isOverflowing||a.axis.x.forceVisible)&&a.onMouseLeaveForAxis("x"),(a.axis.y.isOverflowing||a.axis.y.forceVisible)&&a.onMouseLeaveForAxis("y"),a.mouseX=-1,a.mouseY=-1},this._onWindowResize=function(){a.scrollbarWidth=a.getScrollbarWidth(),a.hideNativeScrollbar()},this.onPointerEvent=function(s){if(!(!a.axis.x.track.el||!a.axis.y.track.el||!a.axis.x.scrollbar.el||!a.axis.y.scrollbar.el)){var l,u;a.axis.x.track.rect=a.axis.x.track.el.getBoundingClientRect(),a.axis.y.track.rect=a.axis.y.track.el.getBoundingClientRect(),(a.axis.x.isOverflowing||a.axis.x.forceVisible)&&(l=a.isWithinBounds(a.axis.x.track.rect)),(a.axis.y.isOverflowing||a.axis.y.forceVisible)&&(u=a.isWithinBounds(a.axis.y.track.rect)),(l||u)&&(s.stopPropagation(),s.type==="pointerdown"&&s.pointerType!=="touch"&&(l&&(a.axis.x.scrollbar.rect=a.axis.x.scrollbar.el.getBoundingClientRect(),a.isWithinBounds(a.axis.x.scrollbar.rect)?a.onDragStart(s,"x"):a.onTrackClick(s,"x")),u&&(a.axis.y.scrollbar.rect=a.axis.y.scrollbar.el.getBoundingClientRect(),a.isWithinBounds(a.axis.y.scrollbar.rect)?a.onDragStart(s,"y"):a.onTrackClick(s,"y"))))}},this.drag=function(s){var l,u,d,f,v,b,w,D,T,q,z;if(!(!a.draggedAxis||!a.contentWrapperEl)){var S,B=a.axis[a.draggedAxis].track,y=(u=(l=B.rect)===null||l===void 0?void 0:l[a.axis[a.draggedAxis].sizeAttr])!==null&&u!==void 0?u:0,k=a.axis[a.draggedAxis].scrollbar,N=(f=(d=a.contentWrapperEl)===null||d===void 0?void 0:d[a.axis[a.draggedAxis].scrollSizeAttr])!==null&&f!==void 0?f:0,O=parseInt((b=(v=a.elStyles)===null||v===void 0?void 0:v[a.axis[a.draggedAxis].sizeAttr])!==null&&b!==void 0?b:"0px",10);s.preventDefault(),s.stopPropagation(),a.draggedAxis==="y"?S=s.pageY:S=s.pageX;var j=S-((D=(w=B.rect)===null||w===void 0?void 0:w[a.axis[a.draggedAxis].offsetAttr])!==null&&D!==void 0?D:0)-a.axis[a.draggedAxis].dragOffset;j=a.draggedAxis==="x"&&a.isRtl?((q=(T=B.rect)===null||T===void 0?void 0:T[a.axis[a.draggedAxis].sizeAttr])!==null&&q!==void 0?q:0)-k.size-j:j;var re=j/(y-k.size),A=re*(N-O);a.draggedAxis==="x"&&a.isRtl&&(A=!((z=r.getRtlHelpers())===null||z===void 0)&&z.isScrollingToNegative?-A:A),a.contentWrapperEl[a.axis[a.draggedAxis].scrollOffsetAttr]=A}},this.onEndDrag=function(s){a.isDragging=!1;var l=ls(a.el),u=Wr(a.el);s.preventDefault(),s.stopPropagation(),jr(a.el,a.classNames.dragging),a.onStopScrolling(),l.removeEventListener("mousemove",a.drag,!0),l.removeEventListener("mouseup",a.onEndDrag,!0),a.removePreventClickId=u.setTimeout(function(){l.removeEventListener("click",a.preventClick,!0),l.removeEventListener("dblclick",a.preventClick,!0),a.removePreventClickId=null})},this.preventClick=function(s){s.preventDefault(),s.stopPropagation()},this.el=i,this.options=Rn(Rn({},r.defaultOptions),n),this.classNames=Rn(Rn({},r.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=k1(this._onMouseMove,64),this.onWindowResize=_i(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=_i(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=_i(this._onMouseEntered,this.stopScrollDelay),this.init()}return r.getRtlHelpers=function(){if(r.rtlHelpers)return r.rtlHelpers;var i=document.createElement("div");i.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=i.firstElementChild,a=n==null?void 0:n.firstElementChild;if(!a)return null;document.body.appendChild(n),n.scrollLeft=0;var s=r.getOffset(n),l=r.getOffset(a);n.scrollLeft=-999;var u=r.getOffset(a);return document.body.removeChild(n),r.rtlHelpers={isScrollOriginAtZero:s.left!==l.left,isScrollingToNegative:l.left!==u.left},r.rtlHelpers},r.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:pd()}catch{return pd()}},r.getOffset=function(i){var n=i.getBoundingClientRect(),a=ls(i),s=Wr(i);return{top:n.top+(s.pageYOffset||a.documentElement.scrollTop),left:n.left+(s.pageXOffset||a.documentElement.scrollLeft)}},r.prototype.init=function(){Rs&&(this.initDOM(),this.rtlHelpers=r.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},r.prototype.initDOM=function(){var i,n;this.wrapperEl=this.el.querySelector(Bt(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Bt(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Bt(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Bt(this.classNames.offset)),this.maskEl=this.el.querySelector(Bt(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Bt(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Bt(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Bt(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Bt(this.classNames.track)).concat(Bt(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Bt(this.classNames.track)).concat(Bt(this.classNames.vertical))),this.axis.x.scrollbar.el=((i=this.axis.x.track.el)===null||i===void 0?void 0:i.querySelector(Bt(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Bt(this.classNames.scrollbar)))||null,this.options.autoHide||(Hr(this.axis.x.scrollbar.el,this.classNames.visible),Hr(this.axis.y.scrollbar.el,this.classNames.visible))},r.prototype.initListeners=function(){var i=this,n,a=Wr(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),a.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var s=!1,l=a.ResizeObserver||ResizeObserver;this.resizeObserver=new l(function(){s&&a.requestAnimationFrame(function(){i.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),a.requestAnimationFrame(function(){s=!0})}this.mutationObserver=new a.MutationObserver(function(){a.requestAnimationFrame(function(){i.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},r.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var i=Wr(this.el);this.elStyles=i.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,a=this.heightAutoObserverEl.offsetHeight<=1,s=this.heightAutoObserverEl.offsetWidth<=1||n>0,l=this.contentWrapperEl.offsetWidth,u=this.elStyles.overflowX,d=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var f=this.contentEl.scrollHeight,v=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=a?"auto":"100%",this.placeholderEl.style.width=s?"".concat(n||v,"px"):"auto",this.placeholderEl.style.height="".concat(f,"px");var b=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&v>n,this.axis.y.isOverflowing=f>b,this.axis.x.isOverflowing=u==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=d==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var w=this.axis.x.isOverflowing?this.scrollbarWidth:0,D=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&v>l-D,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&f>b-w,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},r.prototype.getScrollbarSize=function(i){var n,a;if(i===void 0&&(i="y"),!this.axis[i].isOverflowing||!this.contentEl)return 0;var s=this.contentEl[this.axis[i].scrollSizeAttr],l=(a=(n=this.axis[i].track.el)===null||n===void 0?void 0:n[this.axis[i].offsetSizeAttr])!==null&&a!==void 0?a:0,u=l/s,d;return d=Math.max(~~(u*l),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(d=Math.min(d,this.options.scrollbarMaxSize)),d},r.prototype.positionScrollbar=function(i){var n,a,s;i===void 0&&(i="y");var l=this.axis[i].scrollbar;if(!(!this.axis[i].isOverflowing||!this.contentWrapperEl||!l.el||!this.elStyles)){var u=this.contentWrapperEl[this.axis[i].scrollSizeAttr],d=((n=this.axis[i].track.el)===null||n===void 0?void 0:n[this.axis[i].offsetSizeAttr])||0,f=parseInt(this.elStyles[this.axis[i].sizeAttr],10),v=this.contentWrapperEl[this.axis[i].scrollOffsetAttr];v=i==="x"&&this.isRtl&&!((a=r.getRtlHelpers())===null||a===void 0)&&a.isScrollOriginAtZero?-v:v,i==="x"&&this.isRtl&&(v=!((s=r.getRtlHelpers())===null||s===void 0)&&s.isScrollingToNegative?v:-v);var b=v/(u-f),w=~~((d-l.size)*b);w=i==="x"&&this.isRtl?-w+(d-l.size):w,l.el.style.transform=i==="x"?"translate3d(".concat(w,"px, 0, 0)"):"translate3d(0, ".concat(w,"px, 0)")}},r.prototype.toggleTrackVisibility=function(i){i===void 0&&(i="y");var n=this.axis[i].track.el,a=this.axis[i].scrollbar.el;!n||!a||!this.contentWrapperEl||(this.axis[i].isOverflowing||this.axis[i].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[i].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(i))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[i].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(i))),this.axis[i].isOverflowing?a.style.display="block":a.style.display="none")},r.prototype.showScrollbar=function(i){i===void 0&&(i="y"),this.axis[i].isOverflowing&&!this.axis[i].scrollbar.isVisible&&(Hr(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!0)},r.prototype.hideScrollbar=function(i){i===void 0&&(i="y"),!this.isDragging&&this.axis[i].isOverflowing&&this.axis[i].scrollbar.isVisible&&(jr(this.axis[i].scrollbar.el,this.classNames.visible),this.axis[i].scrollbar.isVisible=!1)},r.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},r.prototype.onMouseMoveForAxis=function(i){i===void 0&&(i="y");var n=this.axis[i];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(i),Hr(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Hr(n.scrollbar.el,this.classNames.hover):jr(n.scrollbar.el,this.classNames.hover)):(jr(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)))},r.prototype.onMouseLeaveForAxis=function(i){i===void 0&&(i="y"),jr(this.axis[i].track.el,this.classNames.hover),jr(this.axis[i].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(i)},r.prototype.onDragStart=function(i,n){var a;n===void 0&&(n="y"),this.isDragging=!0;var s=ls(this.el),l=Wr(this.el),u=this.axis[n].scrollbar,d=n==="y"?i.pageY:i.pageX;this.axis[n].dragOffset=d-(((a=u.rect)===null||a===void 0?void 0:a[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Hr(this.el,this.classNames.dragging),s.addEventListener("mousemove",this.drag,!0),s.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(s.addEventListener("click",this.preventClick,!0),s.addEventListener("dblclick",this.preventClick,!0)):(l.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},r.prototype.onTrackClick=function(i,n){var a=this,s,l,u,d;n===void 0&&(n="y");var f=this.axis[n];if(!(!this.options.clickOnTrack||!f.scrollbar.el||!this.contentWrapperEl)){i.preventDefault();var v=Wr(this.el);this.axis[n].scrollbar.rect=f.scrollbar.el.getBoundingClientRect();var b=this.axis[n].scrollbar,w=(l=(s=b.rect)===null||s===void 0?void 0:s[this.axis[n].offsetAttr])!==null&&l!==void 0?l:0,D=parseInt((d=(u=this.elStyles)===null||u===void 0?void 0:u[this.axis[n].sizeAttr])!==null&&d!==void 0?d:"0px",10),T=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],q=n==="y"?this.mouseY-w:this.mouseX-w,z=q<0?-1:1,S=z===-1?T-D:T+D,B=40,y=function(){a.contentWrapperEl&&(z===-1?T>S&&(T-=B,a.contentWrapperEl[a.axis[n].scrollOffsetAttr]=T,v.requestAnimationFrame(y)):T<S&&(T+=B,a.contentWrapperEl[a.axis[n].scrollOffsetAttr]=T,v.requestAnimationFrame(y)))};y()}},r.prototype.getContentElement=function(){return this.contentEl},r.prototype.getScrollElement=function(){return this.contentWrapperEl},r.prototype.removeListeners=function(){var i=Wr(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),i.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},r.prototype.unMount=function(){this.removeListeners()},r.prototype.isWithinBounds=function(i){return this.mouseX>=i.left&&this.mouseX<=i.left+i.width&&this.mouseY>=i.top&&this.mouseY<=i.top+i.height},r.prototype.findChild=function(i,n){var a=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector;return Array.prototype.filter.call(i.children,function(s){return a.call(s,n)})[0]},r.rtlHelpers=null,r.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},r.getOptions=S1,r.helpers=E1,r})(),Kt=function(){return Kt=Object.assign||function(r){for(var i,n=1,a=arguments.length;n<a;n++){i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}return r},Kt.apply(this,arguments)};function O1(r,i){var n={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&i.indexOf(a)<0&&(n[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(r);s<a.length;s++)i.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(r,a[s])&&(n[a[s]]=r[a[s]]);return n}var Ds=gt.forwardRef(function(r,i){var n=r.children,a=r.scrollableNodeProps,s=a===void 0?{}:a,l=O1(r,["children","scrollableNodeProps"]),u=gt.useRef(),d=gt.useRef(),f=gt.useRef(),v={},b={};Object.keys(l).forEach(function(T){Object.prototype.hasOwnProperty.call(oo.defaultOptions,T)?v[T]=l[T]:b[T]=l[T]});var w=Kt(Kt({},oo.defaultOptions.classNames),v.classNames),D=Kt(Kt({},s),{className:"".concat(w.contentWrapper).concat(s.className?" ".concat(s.className):""),tabIndex:v.tabIndex||oo.defaultOptions.tabIndex,role:"region","aria-label":v.ariaLabel||oo.defaultOptions.ariaLabel});return gt.useEffect(function(){var T;return d.current=D.ref?D.ref.current:d.current,u.current&&(T=new oo(u.current,Kt(Kt(Kt({},v),d.current&&{scrollableNode:d.current}),f.current&&{contentNode:f.current})),typeof i=="function"?i(T):i&&(i.current=T)),function(){T==null||T.unMount(),T=null,typeof i=="function"&&i(null)}},[]),gt.createElement("div",Kt({"data-simplebar":"init",ref:u},b),gt.createElement("div",{className:w.wrapper},gt.createElement("div",{className:w.heightAutoObserverWrapperEl},gt.createElement("div",{className:w.heightAutoObserverEl})),gt.createElement("div",{className:w.mask},gt.createElement("div",{className:w.offset},typeof n=="function"?n({scrollableNodeRef:d,scrollableNodeProps:Kt(Kt({},D),{ref:d}),contentNodeRef:f,contentNodeProps:{className:w.contentEl,ref:f}}):gt.createElement("div",Kt({},D),gt.createElement("div",{className:w.contentEl},n)))),gt.createElement("div",{className:w.placeholder})),gt.createElement("div",{className:"".concat(w.track," ").concat(w.horizontal)},gt.createElement("div",{className:w.scrollbar})),gt.createElement("div",{className:"".concat(w.track," ").concat(w.vertical)},gt.createElement("div",{className:w.scrollbar})))});Ds.displayName="SimpleBar";const Sp=x.forwardRef(({size:r="md",color:i="primary",isInvalid:n=!1,isDisabled:a=!1,isReadOnly:s=!1,className:l,children:u,...d},f)=>{const[v,b]=x.useState(!1),[w,D]=x.useState(!1),T={size:r,color:n?"negative":i,isInvalid:n,isDisabled:a,isReadOnly:s,hasMessage:v,setHasMessage:b,hasArea:w,setHasArea:D};return E.jsx(bp.Provider,{value:T,children:E.jsx("div",{ref:f,"data-qui":"Input",className:G(Uy(),l),...d,children:u})})}),Op=x.forwardRef(({className:r,children:i,...n},a)=>{const{size:s,color:l,isDisabled:u,isReadOnly:d,hasMessage:f,hasArea:v,isInvalid:b}=bo();return E.jsx("div",{ref:a,"data-qui":"InputGroup",className:G(qy({size:s,color:l,isDisabled:u,isReadOnly:d,hasMessage:f,hasArea:v,isInvalid:b}),r),...n,children:i})}),Np=x.forwardRef(({className:r,...i},n)=>{const{size:a,color:s,isInvalid:l,isDisabled:u,isReadOnly:d}=bo(),{isDisabled:f,isReadOnly:v,...b}=i;return E.jsx("input",{ref:n,disabled:u||f,readOnly:v||d||!1,"aria-invalid":l,className:G(Gy({size:a,color:s}),r),...b})}),N1=x.forwardRef(({className:r,autoHeight:i,...n},a)=>{const{size:s,color:l,isInvalid:u,isDisabled:d,setHasArea:f}=bo(),v=x.useRef(null),b=a||v,w=x.useRef(null);x.useEffect(()=>(f(!0),()=>{f(!1)}),[f]);const D=x.useCallback(()=>{if(v.current){const y=v.current;y.style.height="auto",y.style.height=`${y.scrollHeight}px`}},[]),T=y=>{var k;D(),(k=n.onInput)==null||k.call(n,y)};x.useEffect(()=>{D()},[D,n.value]),x.useEffect(()=>{i&&w.current&&w.current.style.removeProperty("height")},[i]);const q=y=>{y.preventDefault();const k=w.current;if(!k)return;const N=y.clientY,O=k.offsetHeight,j=A=>{const Q=O+(A.clientY-N);Q>30&&(k.style.height=Q+"px")},re=()=>{document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",re)};document.addEventListener("mousemove",j),document.addEventListener("mouseup",re)},{isDisabled:z,isReadOnly:S,...B}=n;return E.jsxs("div",{ref:w,className:G("w-full relative",!i&&"h-[120px]"),children:[i?E.jsx("textarea",{ref:b,rows:1,className:G(sd({size:s,color:l}),r),disabled:d||z,onInput:T,readOnly:S||!1,"aria-invalid":u,style:{overflow:"hidden"},...B}):E.jsx(Ds,{style:{height:"100%"},children:E.jsx("textarea",{ref:b,rows:1,className:G(sd({size:s,color:l}),r),disabled:d||z,onInput:T,readOnly:S||!1,"aria-invalid":u,style:{height:"auto",overflow:"hidden",width:"100%"},...B})}),!i&&E.jsx("div",{className:"absolute right-0 bottom-0 -translate-x-full -translate-y-full size-1.75 text-sm cursor-se-resize z-10",onMouseDown:q,children:E.jsx(Mx,{})})]})}),Cp=x.forwardRef(({isAction:r=!1,className:i,isDisabled:n=!1,style:a,children:s,...l},u)=>{const{size:d,color:f,isDisabled:v}=bo(),b=n||v,w=Yy({size:d,color:f,isDisabled:b,isAction:r});return E.jsx("div",{ref:u,"data-qui":"InputIcon",className:G(w,i),style:a,role:r||l.onClick?"button":void 0,tabIndex:(r||l.onClick)&&!b?0:void 0,"aria-disabled":b,...l,children:s})}),C1=x.forwardRef(({icon:r,className:i,children:n,...a},s)=>{const{size:l,color:u,setHasMessage:d,isDisabled:f}=bo();return x.useEffect(()=>(d(!0),()=>{d(!1)}),[d]),E.jsxs("div",{ref:s,"data-qui":"InputMessage",role:"alert",className:G(Xy({size:l,color:u,isDisabled:f}),i),...a,children:[r!==void 0&&E.jsx("div",{className:G(Zy({size:l}),i),children:r}),E.jsx("p",{children:n})]})});Sp.displayName="InputRoot";Op.displayName="InputGroup";Np.displayName="InputField";N1.displayName="InputArea";Cp.displayName="InputIcon";C1.displayName="InputMessage";const io={Root:Sp,Group:Op,Field:Np,Icon:Cp},uo={primary:{container:"bg-primary-light",text:"text-primary-dark",icon:"text-primary-dark",button:"hover:bg-primary-hover hover:text-body"},positive:{container:"bg-positive-light",text:"text-positive-dark",icon:"text-positive-dark",button:"hover:bg-positive hover:text-body"},negative:{container:"bg-negative-light",text:"text-negative-dark",icon:"text-negative-dark",button:"hover:bg-negative hover:text-body"},warning:{container:"bg-warning-light",text:"text-warning-dark",icon:"text-warning-dark",button:"hover:bg-warning hover:text-body"}},R1=({color:r})=>G("min-h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",uo[r].container,uo[r].icon),D1=({color:r})=>G("text-xs font-medium leading-3",uo[r].text),z1=({color:r})=>G("p-0.5 rounded cursor-pointer",uo[r].button,uo[r].icon),M1=({label:r,color:i="primary",position:n="up",showCloseButton:a=!1,icon:s,children:l,delay:u=0,trigger:d="hover",className:f,container:v,isHidden:b=!1})=>{const[w,D]=x.useState(!1),[T,q]=x.useState(!1),[z,S]=x.useState({position:n,transform:""}),B=x.useRef(null),y=x.useRef(null),k=x.useRef(null);x.useEffect(()=>{b&&w&&(D(!1),k.current&&clearTimeout(k.current))},[b,w]);const N=x.useCallback(()=>{if(!B.current||!y.current)return;const V=B.current.getBoundingClientRect(),ee=y.current.getBoundingClientRect(),se=window.innerWidth,ve=window.innerHeight,we=window.scrollX,me=window.scrollY,Y=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,se),Ne=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,ve),I=4;let F=n,Z={position:F,transform:""};const ne=L=>{const{top:oe,left:ue,width:le,height:fe}=V,$=oe+me,xe=ue+we;switch(L){case"up":return{top:`${$-ee.height-I}px`,left:`${xe+le/2}px`,transform:"translateX(-50%)"};case"up-start":return{top:`${$-ee.height-I}px`,left:`${xe}px`,transform:"translateX(0)"};case"up-end":return{top:`${$-ee.height-I}px`,left:`${xe+le-ee.width}px`,transform:"translateX(0)"};case"down":return{top:`${$+fe+I}px`,left:`${xe+le/2}px`,transform:"translateX(-50%)"};case"down-start":return{top:`${$+fe+I}px`,left:`${xe}px`,transform:"translateX(0)"};case"down-end":return{top:`${$+fe+I}px`,left:`${xe+le-ee.width}px`,transform:"translateX(0)"};case"left":return{top:`${$+fe/2}px`,left:`${xe-ee.width-I}px`,transform:"translateY(-50%)"};case"left-start":return{top:`${$}px`,left:`${xe-ee.width-I}px`,transform:"translateY(0)"};case"left-end":return{top:`${$+fe-ee.height}px`,left:`${xe-ee.width-I}px`,transform:"translateY(0)"};case"right":return{top:`${$+fe/2}px`,left:`${xe+le+I}px`,transform:"translateY(-50%)"};case"right-start":return{top:`${$}px`,left:`${xe+le+I}px`,transform:"translateY(0)"};case"right-end":return{top:`${$+fe-ee.height}px`,left:`${xe+le+I}px`,transform:"translateY(0)"};default:return{}}},W={up:{fits:V.top-ee.height-I>=0},"up-start":{fits:V.top-ee.height-I>=0&&V.left+ee.width<=se},"up-end":{fits:V.top-ee.height-I>=0&&V.right-ee.width>=0},down:{fits:V.bottom+ee.height+I<=ve&&V.bottom+ee.height+I<=Ne},"down-start":{fits:V.bottom+ee.height+I<=ve&&V.bottom+ee.height+I<=Ne&&V.left+ee.width<=se},"down-end":{fits:V.bottom+ee.height+I<=ve&&V.bottom+ee.height+I<=Ne&&V.right-ee.width>=0},left:{fits:V.left-ee.width-I>=0},"left-start":{fits:V.left-ee.width-I>=0&&V.top+ee.height<=ve},"left-end":{fits:V.left-ee.width-I>=0&&V.bottom-ee.height>=0},right:{fits:V.right+ee.width+I<=se&&V.right+ee.width+I<=Y},"right-start":{fits:V.right+ee.width+I<=se&&V.right+ee.width+I<=Y&&V.top+ee.height<=ve},"right-end":{fits:V.right+ee.width+I<=se&&V.right+ee.width+I<=Y&&V.bottom-ee.height>=0}},J=V.left+V.width/2-ee.width/2,M=V.left+V.width/2+ee.width/2;if((n==="up"||n==="down")&&(J<0||M>se)&&(W[n].fits=!1),W[n].fits){const L=ne(n);Z={position:n,...L,transform:L.transform||""}}else{const L=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(oe=>W[oe].fits);if(L){F=L;const oe=ne(L);Z={position:F,...oe,transform:oe.transform||""}}else{const oe={up:V.top,"up-start":V.top,"up-end":V.top,down:Math.min(ve-V.bottom,Ne-V.bottom),"down-start":Math.min(ve-V.bottom,Ne-V.bottom),"down-end":Math.min(ve-V.bottom,Ne-V.bottom),left:V.left,"left-start":V.left,"left-end":V.left,right:Math.min(se-V.right,Y-V.right),"right-start":Math.min(se-V.right,Y-V.right),"right-end":Math.min(se-V.right,Y-V.right)},ue=Object.entries(oe).reduce((fe,[$,xe])=>xe>fe.space?{position:$,space:xe}:fe,{position:"up",space:0}).position;F=ue;const le=ne(ue);Z={position:F,...le,transform:le.transform||""}}}S(Z)},[n]),O=()=>{d!=="click"||b||(D(!0),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{T||D(!1)},u))},j=V=>{V.stopPropagation(),D(!1),k.current&&clearTimeout(k.current)},re=()=>{q(!0),k.current&&clearTimeout(k.current)},A=()=>{q(!1),w&&(k.current=setTimeout(()=>{D(!1)},u))},Q=()=>{d==="hover"&&!b&&(D(!0),k.current&&clearTimeout(k.current))},ae=()=>{d==="hover"&&(k.current=setTimeout(()=>{D(!1)},u))};x.useEffect(()=>{if(w){const V=requestAnimationFrame(()=>{N()});return()=>cancelAnimationFrame(V)}},[w,r,N]),x.useEffect(()=>{if(w){const V=setTimeout(()=>N(),0);return()=>clearTimeout(V)}},[w,N]),x.useEffect(()=>{const V=()=>{w&&N()},ee=()=>{w&&N()};return window.addEventListener("resize",V),window.addEventListener("scroll",ee,!0),()=>{window.removeEventListener("resize",V),window.removeEventListener("scroll",ee,!0),k.current&&clearTimeout(k.current)}},[w,N]);const ce=v||(typeof document<"u"?document.body:null);return ce?E.jsxs(E.Fragment,{children:[E.jsx("div",{"data-qui":"Tooltip",ref:B,onClick:O,onMouseEnter:Q,onMouseLeave:ae,className:G("relative inline-flex items-center",f),children:l}),w&&!!r&&Ns.createPortal(E.jsxs("div",{ref:y,role:"tooltip",className:R1({color:i}),style:{position:"absolute",left:z.left??0,top:z.top??0,transform:z.transform,zIndex:1e3,visibility:z.left?"visible":"hidden"},onMouseEnter:re,onMouseLeave:A,children:[s&&E.jsx("span",{"data-testid":"tooltip-icon",children:s}),E.jsx("div",{className:D1({color:i}),children:r}),a&&E.jsx("div",{onClick:j,className:z1({color:i}),role:"button",children:E.jsx(Wi,{})})]}),ce)]}):null};var fd;(function(r){r.DragStart="dragStart",r.DragMove="dragMove",r.DragEnd="dragEnd",r.DragCancel="dragCancel",r.DragOver="dragOver",r.RegisterDroppable="registerDroppable",r.SetDroppableDisabled="setDroppableDisabled",r.UnregisterDroppable="unregisterDroppable"})(fd||(fd={}));const T1=Object.freeze({x:0,y:0});var Dn;(function(r){r[r.Forward=1]="Forward",r[r.Backward=-1]="Backward"})(Dn||(Dn={}));var hd;(function(r){r.Click="click",r.DragStart="dragstart",r.Keydown="keydown",r.ContextMenu="contextmenu",r.Resize="resize",r.SelectionChange="selectionchange",r.VisibilityChange="visibilitychange"})(hd||(hd={}));var rr;(function(r){r.Space="Space",r.Down="ArrowDown",r.Right="ArrowRight",r.Left="ArrowLeft",r.Up="ArrowUp",r.Esc="Escape",r.Enter="Enter",r.Tab="Tab"})(rr||(rr={}));rr.Space,rr.Enter,rr.Esc,rr.Space,rr.Enter,rr.Tab;var gd;(function(r){r[r.RightClick=2]="RightClick"})(gd||(gd={}));var vd;(function(r){r[r.Pointer=0]="Pointer",r[r.DraggableRect=1]="DraggableRect"})(vd||(vd={}));var bd;(function(r){r[r.TreeOrder=0]="TreeOrder",r[r.ReversedTreeOrder=1]="ReversedTreeOrder"})(bd||(bd={}));Dn.Backward+"",Dn.Forward+"",Dn.Backward+"",Dn.Forward+"";var ys;(function(r){r[r.Always=0]="Always",r[r.BeforeDragging=1]="BeforeDragging",r[r.WhileDragging=2]="WhileDragging"})(ys||(ys={}));var _s;(function(r){r.Optimized="optimized"})(_s||(_s={}));ys.WhileDragging,_s.Optimized;({...T1});var md;(function(r){r[r.Uninitialized=0]="Uninitialized",r[r.Initializing=1]="Initializing",r[r.Initialized=2]="Initialized"})(md||(md={}));rr.Down,rr.Right,rr.Up,rr.Left;const Rp={sm:{padding:"px-4 py-0.5",text:"text-xxs",icon:"w-3 h-3",gap:"gap-0.5",badge:"min-w-3.5 h-3.5 text-2"},md:{padding:"px-6 py-1",text:"text-s",icon:"w-4 h-4",gap:"gap-1",badge:"min-w-4.5 h-4.5 text-xxs"},lg:{padding:"px-8 py-1.5",text:"text-base",icon:"w-5 h-5",gap:"gap-1.5",badge:"min-w-5 h-5 text-xs"}},A1={primary:{active:{bg:"bg-primary",text:"text-button-text",border:"border-primary"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-primary-hover",text:"hover:text-button-text"}},positive:{active:{bg:"bg-positive",text:"text-button-text",border:"border-positive"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-positive-hover",text:"hover:text-body"}},warning:{active:{bg:"bg-warning",text:"text-warning-text",border:"border-warning"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-warning-hover",text:"hover:text-body"}},negative:{active:{bg:"bg-negative",text:"text-button-text",border:"border-negative"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-negative-hover",text:"hover:text-body"}}},P1=(r,i,n,a)=>{const s=A1[r],l=Rp[i],u="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return a?G(u,l.padding,l.text,l.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):n?G(u,l.padding,l.text,l.gap,s.active.bg,s.active.text,"shadow-xs"):G(u,l.padding,l.text,l.gap,s.inactive.bg,s.inactive.text,s.hover.bg,s.hover.text)},L1=(r,i)=>G("flex items-center justify-center",Rp[r].icon,{"opacity-50":i}),B1=()=>G("whitespace-nowrap"),Dp=(r,i)=>{const n=G("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return r&&!i?G(n,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):i&&!r?G(n,"border border-transparent bg-tab-inactive-bg text-inactive-text"):G(n,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},F1=x.createContext(void 0),W1=x.forwardRef(({value:r,label:i,icon:n,disabled:a,children:s,className:l,onClick:u,active:d,content:f,...v},b)=>{const w=x.useContext(F1);if(!w)return null;const{activeTab:D,onTabChange:T,variant:q,color:z,size:S,showIcons:B,disabled:y}=w,k=d!==void 0?d:D===r,N=a||y,O=j=>{N||(T(r),u==null||u(j))};return q==="file"?E.jsx("div",{"data-qui":"FileTabItem",className:G(Dp(k,!1),"cursor-pointer",l),onClick:j=>!N&&O(j),children:s||E.jsx(E.Fragment,{children:E.jsxs("span",{className:"flex items-center gap-2",children:[n,E.jsx("span",{children:i})]})})}):E.jsxs("button",{ref:b,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":k,"aria-disabled":N,className:G(P1(z,S,k,N||!1),l),onClick:O,disabled:N,...v,children:[B&&n&&E.jsx("span",{className:L1(S,N||!1),children:n}),E.jsx("span",{className:B1(),children:s||i})]})});W1.displayName="TabItem";const H1=x.forwardRef(({isActive:r=!1,isDesactive:i=!1,children:n,...a},s)=>E.jsx("div",{"data-qui":"TabNavContainer",className:Dp(r,i),ref:s,...a,children:n}));H1.displayName="TabNavContainer";var ct=function(){return ct=Object.assign||function(r){for(var i,n=1,a=arguments.length;n<a;n++){i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}return r},ct.apply(this,arguments)},wd={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},xd={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},pi={width:"20px",height:"20px",position:"absolute",zIndex:1},j1={top:ct(ct({},wd),{top:"-5px"}),right:ct(ct({},xd),{left:void 0,right:"-5px"}),bottom:ct(ct({},wd),{top:void 0,bottom:"-5px"}),left:ct(ct({},xd),{left:"-5px"}),topRight:ct(ct({},pi),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:ct(ct({},pi),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:ct(ct({},pi),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:ct(ct({},pi),{left:"-10px",top:"-10px",cursor:"nw-resize"})},V1=x.memo(function(r){var i=r.onResizeStart,n=r.direction,a=r.children,s=r.replaceStyles,l=r.className,u=x.useCallback(function(v){i(v,n)},[i,n]),d=x.useCallback(function(v){i(v,n)},[i,n]),f=x.useMemo(function(){return ct(ct({position:"absolute",userSelect:"none"},j1[n]),s??{})},[s,n]);return E.jsx("div",{className:l||void 0,style:f,onMouseDown:u,onTouchStart:d,children:a})}),$1=(function(){var r=function(i,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(a[l]=s[l])},r(i,n)};return function(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(i,n);function a(){this.constructor=i}i.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}})(),fr=function(){return fr=Object.assign||function(r){for(var i,n=1,a=arguments.length;n<a;n++){i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}return r},fr.apply(this,arguments)},K1={width:"auto",height:"auto"},fi=function(r,i,n){return Math.max(Math.min(r,n),i)},yd=function(r,i,n){var a=Math.round(r/i);return a*i+n*(a-1)},On=function(r,i){return new RegExp(r,"i").test(i)},hi=function(r){return!!(r.touches&&r.touches.length)},U1=function(r){return!!((r.clientX||r.clientX===0)&&(r.clientY||r.clientY===0))},_d=function(r,i,n){n===void 0&&(n=0);var a=i.reduce(function(l,u,d){return Math.abs(u-r)<Math.abs(i[l]-r)?d:l},0),s=Math.abs(i[a]-r);return n===0||s<n?i[a]:r},cs=function(r){return r=r.toString(),r==="auto"||r.endsWith("px")||r.endsWith("%")||r.endsWith("vh")||r.endsWith("vw")||r.endsWith("vmax")||r.endsWith("vmin")?r:"".concat(r,"px")},gi=function(r,i,n,a){if(r&&typeof r=="string"){if(r.endsWith("px"))return Number(r.replace("px",""));if(r.endsWith("%")){var s=Number(r.replace("%",""))/100;return i*s}if(r.endsWith("vw")){var s=Number(r.replace("vw",""))/100;return n*s}if(r.endsWith("vh")){var s=Number(r.replace("vh",""))/100;return a*s}}return r},q1=function(r,i,n,a,s,l,u){return a=gi(a,r.width,i,n),s=gi(s,r.height,i,n),l=gi(l,r.width,i,n),u=gi(u,r.height,i,n),{maxWidth:typeof a>"u"?void 0:Number(a),maxHeight:typeof s>"u"?void 0:Number(s),minWidth:typeof l>"u"?void 0:Number(l),minHeight:typeof u>"u"?void 0:Number(u)}},G1=function(r){return Array.isArray(r)?r:[r,r]},Y1=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Id="__resizable_base__",X1=(function(r){$1(i,r);function i(n){var a,s,l,u,d=r.call(this,n)||this;return d.ratio=1,d.resizable=null,d.parentLeft=0,d.parentTop=0,d.resizableLeft=0,d.resizableRight=0,d.resizableTop=0,d.resizableBottom=0,d.targetLeft=0,d.targetTop=0,d.delta={width:0,height:0},d.appendBase=function(){if(!d.resizable||!d.window)return null;var f=d.parentNode;if(!f)return null;var v=d.window.document.createElement("div");return v.style.width="100%",v.style.height="100%",v.style.position="absolute",v.style.transform="scale(0, 0)",v.style.left="0",v.style.flex="0 0 100%",v.classList?v.classList.add(Id):v.className+=Id,f.appendChild(v),v},d.removeBase=function(f){var v=d.parentNode;v&&v.removeChild(f)},d.state={isResizing:!1,width:(s=(a=d.propsSize)===null||a===void 0?void 0:a.width)!==null&&s!==void 0?s:"auto",height:(u=(l=d.propsSize)===null||l===void 0?void 0:l.height)!==null&&u!==void 0?u:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},d.onResizeStart=d.onResizeStart.bind(d),d.onMouseMove=d.onMouseMove.bind(d),d.onMouseUp=d.onMouseUp.bind(d),d}return Object.defineProperty(i.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||K1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"size",{get:function(){var n=0,a=0;if(this.resizable&&this.window){var s=this.resizable.offsetWidth,l=this.resizable.offsetHeight,u=this.resizable.style.position;u!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:s,a=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:l,this.resizable.style.position=u}return{width:n,height:a}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"sizeStyle",{get:function(){var n=this,a=this.props.size,s=function(d){var f;if(typeof n.state[d]>"u"||n.state[d]==="auto")return"auto";if(n.propsSize&&n.propsSize[d]&&!((f=n.propsSize[d])===null||f===void 0)&&f.toString().endsWith("%")){if(n.state[d].toString().endsWith("%"))return n.state[d].toString();var v=n.getParentSize(),b=Number(n.state[d].toString().replace("px","")),w=b/v[d]*100;return"".concat(w,"%")}return cs(n.state[d])},l=a&&typeof a.width<"u"&&!this.state.isResizing?cs(a.width):s("width"),u=a&&typeof a.height<"u"&&!this.state.isResizing?cs(a.height):s("height");return{width:l,height:u}},enumerable:!1,configurable:!0}),i.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var a=!1,s=this.parentNode.style.flexWrap;s!=="wrap"&&(a=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var l={width:n.offsetWidth,height:n.offsetHeight};return a&&(this.parentNode.style.flexWrap=s),this.removeBase(n),l},i.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},i.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},i.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},i.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},i.prototype.createSizeForCssProperty=function(n,a){var s=this.propsSize&&this.propsSize[a];return this.state[a]==="auto"&&this.state.original[a]===n&&(typeof s>"u"||s==="auto")?"auto":n},i.prototype.calculateNewMaxFromBoundary=function(n,a){var s=this.props.boundsByDirection,l=this.state.direction,u=s&&On("left",l),d=s&&On("top",l),f,v;if(this.props.bounds==="parent"){var b=this.parentNode;b&&(f=u?this.resizableRight-this.parentLeft:b.offsetWidth+(this.parentLeft-this.resizableLeft),v=d?this.resizableBottom-this.parentTop:b.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(f=u?this.resizableRight:this.window.innerWidth-this.resizableLeft,v=d?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(f=u?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),v=d?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return f&&Number.isFinite(f)&&(n=n&&n<f?n:f),v&&Number.isFinite(v)&&(a=a&&a<v?a:v),{maxWidth:n,maxHeight:a}},i.prototype.calculateNewSizeFromDirection=function(n,a){var s=this.props.scale||1,l=G1(this.props.resizeRatio||1),u=l[0],d=l[1],f=this.state,v=f.direction,b=f.original,w=this.props,D=w.lockAspectRatio,T=w.lockAspectRatioExtraHeight,q=w.lockAspectRatioExtraWidth,z=b.width,S=b.height,B=T||0,y=q||0;return On("right",v)&&(z=b.width+(n-b.x)*u/s,D&&(S=(z-y)/this.ratio+B)),On("left",v)&&(z=b.width-(n-b.x)*u/s,D&&(S=(z-y)/this.ratio+B)),On("bottom",v)&&(S=b.height+(a-b.y)*d/s,D&&(z=(S-B)*this.ratio+y)),On("top",v)&&(S=b.height-(a-b.y)*d/s,D&&(z=(S-B)*this.ratio+y)),{newWidth:z,newHeight:S}},i.prototype.calculateNewSizeFromAspectRatio=function(n,a,s,l){var u=this.props,d=u.lockAspectRatio,f=u.lockAspectRatioExtraHeight,v=u.lockAspectRatioExtraWidth,b=typeof l.width>"u"?10:l.width,w=typeof s.width>"u"||s.width<0?n:s.width,D=typeof l.height>"u"?10:l.height,T=typeof s.height>"u"||s.height<0?a:s.height,q=f||0,z=v||0;if(d){var S=(D-q)*this.ratio+z,B=(T-q)*this.ratio+z,y=(b-z)/this.ratio+q,k=(w-z)/this.ratio+q,N=Math.max(b,S),O=Math.min(w,B),j=Math.max(D,y),re=Math.min(T,k);n=fi(n,N,O),a=fi(a,j,re)}else n=fi(n,b,w),a=fi(a,D,T);return{newWidth:n,newHeight:a}},i.prototype.setBoundingClientRect=function(){var n=1/(this.props.scale||1);if(this.props.bounds==="parent"){var a=this.parentNode;if(a){var s=a.getBoundingClientRect();this.parentLeft=s.left*n,this.parentTop=s.top*n}}if(this.props.bounds&&typeof this.props.bounds!="string"){var l=this.props.bounds.getBoundingClientRect();this.targetLeft=l.left*n,this.targetTop=l.top*n}if(this.resizable){var u=this.resizable.getBoundingClientRect(),d=u.left,f=u.top,v=u.right,b=u.bottom;this.resizableLeft=d*n,this.resizableRight=v*n,this.resizableTop=f*n,this.resizableBottom=b*n}},i.prototype.onResizeStart=function(n,a){if(!(!this.resizable||!this.window)){var s=0,l=0;if(n.nativeEvent&&U1(n.nativeEvent)?(s=n.nativeEvent.clientX,l=n.nativeEvent.clientY):n.nativeEvent&&hi(n.nativeEvent)&&(s=n.nativeEvent.touches[0].clientX,l=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var u=this.props.onResizeStart(n,a,this.resizable);if(u===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var d,f=this.window.getComputedStyle(this.resizable);if(f.flexBasis!=="auto"){var v=this.parentNode;if(v){var b=this.window.getComputedStyle(v).flexDirection;this.flexDir=b.startsWith("row")?"row":"column",d=f.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var w={original:{x:s,y:l,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:fr(fr({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:a,flexBasis:d};this.setState(w)}},i.prototype.onMouseMove=function(n){var a=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&hi(n))try{n.preventDefault(),n.stopPropagation()}catch{}var s=this.props,l=s.maxWidth,u=s.maxHeight,d=s.minWidth,f=s.minHeight,v=hi(n)?n.touches[0].clientX:n.clientX,b=hi(n)?n.touches[0].clientY:n.clientY,w=this.state,D=w.direction,T=w.original,q=w.width,z=w.height,S=this.getParentSize(),B=q1(S,this.window.innerWidth,this.window.innerHeight,l,u,d,f);l=B.maxWidth,u=B.maxHeight,d=B.minWidth,f=B.minHeight;var y=this.calculateNewSizeFromDirection(v,b),k=y.newHeight,N=y.newWidth,O=this.calculateNewMaxFromBoundary(l,u);this.props.snap&&this.props.snap.x&&(N=_d(N,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(k=_d(k,this.props.snap.y,this.props.snapGap));var j=this.calculateNewSizeFromAspectRatio(N,k,{width:O.maxWidth,height:O.maxHeight},{width:d,height:f});if(N=j.newWidth,k=j.newHeight,this.props.grid){var re=yd(N,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),A=yd(k,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),Q=this.props.snapGap||0,ae=Q===0||Math.abs(re-N)<=Q?re:N,ce=Q===0||Math.abs(A-k)<=Q?A:k;N=ae,k=ce}var V={width:N-T.width,height:k-T.height};if(this.delta=V,q&&typeof q=="string"){if(q.endsWith("%")){var ee=N/S.width*100;N="".concat(ee,"%")}else if(q.endsWith("vw")){var se=N/this.window.innerWidth*100;N="".concat(se,"vw")}else if(q.endsWith("vh")){var ve=N/this.window.innerHeight*100;N="".concat(ve,"vh")}}if(z&&typeof z=="string"){if(z.endsWith("%")){var ee=k/S.height*100;k="".concat(ee,"%")}else if(z.endsWith("vw")){var se=k/this.window.innerWidth*100;k="".concat(se,"vw")}else if(z.endsWith("vh")){var ve=k/this.window.innerHeight*100;k="".concat(ve,"vh")}}var we={width:this.createSizeForCssProperty(N,"width"),height:this.createSizeForCssProperty(k,"height")};this.flexDir==="row"?we.flexBasis=we.width:this.flexDir==="column"&&(we.flexBasis=we.height);var me=this.state.width!==we.width,Y=this.state.height!==we.height,Ne=this.state.flexBasis!==we.flexBasis,I=me||Y||Ne;I&&Ns.flushSync(function(){a.setState(we)}),this.props.onResize&&I&&this.props.onResize(n,D,this.resizable,V)}},i.prototype.onMouseUp=function(n){var a,s,l=this.state,u=l.isResizing,d=l.direction;l.original,!(!u||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(n,d,this.resizable,this.delta),this.props.size&&this.setState({width:(a=this.props.size.width)!==null&&a!==void 0?a:"auto",height:(s=this.props.size.height)!==null&&s!==void 0?s:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:fr(fr({},this.state.backgroundStyle),{cursor:"auto"})}))},i.prototype.updateSize=function(n){var a,s;this.setState({width:(a=n.width)!==null&&a!==void 0?a:"auto",height:(s=n.height)!==null&&s!==void 0?s:"auto"})},i.prototype.renderResizer=function(){var n=this,a=this.props,s=a.enable,l=a.handleStyles,u=a.handleClasses,d=a.handleWrapperStyle,f=a.handleWrapperClass,v=a.handleComponent;if(!s)return null;var b=Object.keys(s).map(function(w){return s[w]!==!1?E.jsx(V1,{direction:w,onResizeStart:n.onResizeStart,replaceStyles:l&&l[w],className:u&&u[w],children:v&&v[w]?v[w]:null},w):null});return E.jsx("div",{className:f,style:d,children:b})},i.prototype.render=function(){var n=this,a=Object.keys(this.props).reduce(function(u,d){return Y1.indexOf(d)!==-1||(u[d]=n.props[d]),u},{}),s=fr(fr(fr({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(s.flexBasis=this.state.flexBasis);var l=this.props.as||"div";return E.jsxs(l,fr({style:s,className:this.props.className},a,{ref:function(u){u&&(n.resizable=u)},children:[this.state.isResizing&&E.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},i.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},i})(x.PureComponent);const Z1={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},J1={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},zp=({depth:r=0,className:i,borderType:n,disabled:a})=>G("transition-colors duration-200",{"text-body":!a,"text-inactive-text":a},n?J1[n]:"border-panel-border",Z1[r],i),Q1=r=>{if(!r)return{};const i={},n=r.match(/min-w-\[(\d+)px\]/);n&&(i.minWidth=parseInt(n[1],10));const a=r.match(/max-w-\[(\d+)px\]/);a&&(i.maxWidth=parseInt(a[1],10));const s=r.match(/min-h-\[(\d+)px\]/);s&&(i.minHeight=parseInt(s[1],10));const l=r.match(/max-h-\[(\d+)px\]/);return l&&(i.maxHeight=parseInt(l[1],10)),i},e_=x.forwardRef(({children:r,width:i,height:n,minWidth:a=10,minHeight:s=10,maxWidth:l,maxHeight:u,defaultWidth:d,defaultHeight:f,defaultSize:v,size:b,grid:w,snap:D,lockAspectRatio:T=!1,enable:q,handleStyles:z={},handleClasses:S={},handleComponent:B={},style:y={},className:k,onResizeStart:N,onResize:O,onResizeStop:j,scale:re=1,bounds:A,snapGap:Q,as:ae="div",depth:ce,disabled:V},ee)=>{const se=zp({depth:ce,className:k,disabled:V}),ve=Q1(k),we=b?{size:b}:i!==void 0||n!==void 0?{size:{width:i??"auto",height:n??"auto"}}:{},me=v?{defaultSize:v}:d!==void 0||f!==void 0?{defaultSize:{width:d??"auto",height:f??"auto"}}:{},Y=x.useRef(null);return x.useImperativeHandle(ee,()=>{var Ne;return(Ne=Y.current)==null?void 0:Ne.resizable}),E.jsx(X1,{"data-qui":"Resizable",ref:Y,...we,...me,minWidth:a??ve.minWidth,minHeight:s??ve.minHeight,maxWidth:l??ve.maxWidth,maxHeight:u??ve.maxHeight,grid:w,snap:D,lockAspectRatio:T,enable:q,handleStyles:z,handleClasses:S,handleComponent:B,style:y,className:G("relative box-border",se),onResizeStart:N,onResize:O,onResizeStop:j,scale:re,bounds:A,snapGap:Q,as:ae,children:r})});e_.displayName="Resizable";const Nn={sm:{track:"h-4 w-7",thumb:"size-3",thumbUnchecked:"left-0.5",thumbChecked:"left-3.5",label:"text-xs",gap:"gap-2"},md:{track:"h-5 w-9",thumb:"size-4",thumbUnchecked:"left-0.5",thumbChecked:"left-4.5",label:"text-sm",gap:"gap-2.5"},lg:{track:"h-6 w-11",thumb:"size-5",thumbUnchecked:"left-0.5",thumbChecked:"left-5.5",label:"text-base",gap:"gap-3"}},vi={primary:{bg:"bg-primary",thumb:"group-hover:bg-primary-light",icon:"text-primary"},positive:{bg:"bg-positive",thumb:"group-hover:bg-positive-light",icon:"text-positive"},warning:{bg:"bg-warning",thumb:"group-hover:bg-warning-light",icon:"text-warning"},negative:{bg:"bg-negative",thumb:"group-hover:bg-negative-light",icon:"text-negative"}},t_=(r,i,n,a,s,l)=>({container:G("inline-flex items-center",Nn[r].gap,l),track:G("relative inline-flex items-center shrink-0 group","transition-colors duration-200 ease-in-out","focus:outline-hidden focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2","border border-input-border rounded-full justify-between px-0.5",Nn[r].track,{[vi[i].bg]:n&&!a&&!s,"bg-input-bg":!n&&!a||s,"bg-panel cursor-not-allowed":a,"cursor-pointer":!a}),thumb:G("bg-input-text pointer-events-none inline-flex items-center justify-center shadow-xs","transition-all duration-200 ease-in-out","rounded-full absolute",Nn[r].thumb,n?Nn[r].thumbChecked:Nn[r].thumbUnchecked,{[vi[i].thumb]:!a,"bg-canvas-subtle":a}),iconLeft:G("flex items-center justify-center z-10 w-1/2 p-0.5",{[vi[i].icon]:!n&&!a,"text-panel-subtle":a||n}),iconRight:G("flex items-center justify-center z-10 w-1/2 p-0.5",{[vi[i].icon]:n&&!a,"text-panel-subtle":a||!n}),label:G("font-medium text-body",Nn[r].label,{"cursor-pointer":!a,"cursor-not-allowed text-muted":a})}),Mp=x.forwardRef(({label:r,checked:i,defaultChecked:n=!1,disabled:a=!1,size:s="md",color:l="primary",icons:u,onChange:d,className:f,id:v,name:b,...w},D)=>{const[T,q]=x.useState(n),z=i!==void 0,S=z?i:T,B=()=>{const k=!S;z||q(k),d==null||d(k)},y=t_(s,l,S,a,!!u,f);return E.jsxs("div",{"data-qui":"Toggle",className:y.container,children:[r&&E.jsx("label",{htmlFor:v,className:y.label,children:r}),E.jsxs("button",{ref:D,...w,type:"button",role:"switch","aria-checked":S,"aria-label":r,disabled:a,onClick:B,name:b,id:v,className:y.track,children:[u&&E.jsx("span",{className:y.iconLeft,children:u.unchecked}),E.jsx("span",{className:y.thumb,"aria-hidden":"true"}),u&&E.jsx("span",{className:y.iconRight,children:u.checked})]})]})});Mp.displayName="Toggle";x.createContext(null);const Is=x.forwardRef(({depth:r=0,className:i,children:n,borderType:a,disabled:s,...l},u)=>{const d=zp({depth:r,className:i,borderType:a,disabled:s});return E.jsx("div",{"data-qui":"Panel",ref:u,className:d,"aria-disabled":s,...l,children:n})});Is.displayName="Panel";const po={sm:{container:"h-5 px-0.5 gap-1 rounded",text:"text-xxs leading-3",icon:"text-s",iconButton:"text-s p-0.5 cursor-pointer"},md:{container:"h-5.5 px-1 gap-1 rounded",text:"text-xs leading-4",icon:"text-sm",iconButton:" text-sm p-0.5 cursor-pointer"},lg:{container:"h-6 px-1.5 gap-1.5 rounded",text:"text-s leading-none",icon:"text-base",iconButton:"text-base p-0.5 cursor-pointer"}},Ii={primary:{bg:"bg-primary",text:"text-button-text",border:"border-primary",buttonHover:"hover:bg-primary-hover"},white:{bg:"bg-canvas-default",text:"text-primary",border:"border-canvas-default",buttonHover:"hover:bg-primary-hover hover:text-button-text"},positive:{bg:"bg-positive",text:"text-button-text",border:"border-positive",buttonHover:"hover:bg-positive-hover"},warning:{bg:"bg-warning",text:"text-button-text",border:"border-warning",buttonHover:"hover:bg-warning-hover"},negative:{bg:"bg-negative",text:"text-button-text",border:"border-negative",buttonHover:"hover:bg-negative-hover"},dark:{bg:"bg-input-bg",text:"text-input-text",border:"border-input-border",buttonHover:"hover:bg-primary-hover hover:text-button-text"}},r_=(r,i,n,a)=>G("inline-flex items-center justify-center font-medium border",po[r].container,Ii[i].bg,Ii[i].text,Ii[i].border,po[r].text,{"opacity-60 pointer-events-none":n,"cursor-pointer hover:bg-opacity-90 transition-opacity":a&&!n}),n_=(r,i,n)=>G({[po[r].icon]:!n,"bg-canvas-default outline-canvas-default text-primary":n&&i!=="white"||n,"bg-primary outline-primary text-button-text":n&&i==="white"&&!n,"outline-solid outline-1 h-full py-0.5 grid place-items-center -my-1 only:-mx-0.5 first:-ml-1.5 last:-mr-1.5 only:rounded first:rounded-l last:rounded-r":n||n}),o_=r=>G(po[r].text),Tp=(r,i,n)=>G("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",po[r].iconButton,Ii[i].buttonHover,{"pointer-events-none":n}),Ap=x.createContext(null),Hi=()=>{const r=x.useContext(Ap);if(!r)throw new Error("Pill components must be used within a Pill.Root");return r},zs=x.forwardRef(({size:r="md",color:i="primary",className:n,children:a,disabled:s=!1,onClick:l,...u},d)=>{const f={size:r,color:i,disabled:s},v=!!l;return E.jsx(Ap.Provider,{value:f,children:E.jsx("div",{"data-qui":"Pill",ref:d,onClick:l,className:G(r_(r,i,s,v),n),...u,children:a})})});zs.displayName="Pill.Root";const Ms=x.forwardRef(({className:r,children:i,...n},a)=>{const{size:s}=Hi();return E.jsx("span",{ref:a,className:G(o_(s),r),...n,children:i})});Ms.displayName="Pill.Text";const Ts=x.forwardRef(({className:r,children:i,label:n,position:a,...s},l)=>{const{size:u,color:d,disabled:f}=Hi(),v=!!n,b=E.jsx("span",{ref:l,className:G(n_(u,d,v),r,{"opacity-60":f}),...s,children:i});return v&&!f?E.jsx(M1,{label:n||"",position:a||"up",children:b}):b});Ts.displayName="Pill.Icon";const Pp=x.forwardRef(({className:r,children:i,...n},a)=>{const{size:s,color:l,disabled:u}=Hi();return E.jsx("button",{ref:a,type:"button",disabled:u,className:G(Tp(s,l,u),r),...n,children:i})});Pp.displayName="Pill.Button";const As=x.forwardRef(({className:r,onClose:i,"aria-label":n="Remove pill",children:a,...s},l)=>{const{size:u,color:d,disabled:f}=Hi();return E.jsx("button",{ref:l,type:"button",disabled:f,className:G(Tp(u,d,f),r),onClick:i,"aria-label":n,...s,children:a||E.jsx(Wi,{})})});As.displayName="Pill.Close";const Lp=x.forwardRef(({size:r="md",color:i="primary",label:n,icon:a,onClose:s,closable:l=!1,className:u,children:d,disabled:f=!1,...v},b)=>E.jsxs(zs,{ref:b,size:r,color:i,className:u,disabled:f,...v,children:[a&&E.jsx(Ts,{children:a}),d||n&&E.jsx(Ms,{children:n}),l&&E.jsx(As,{onClose:s})]}));Lp.displayName="Pill";Object.assign(Lp,{Root:zs,Text:Ms,Icon:Ts,Button:Pp,Close:As});const Bp=x.createContext(null),Et=()=>{const r=x.useContext(Bp);if(!r)throw new Error("Select compound components must be used within Select.Root");return r},bt={sm:{trigger:"h-5 min-h-fit",control:"min-h-5 p-0.5 gap-1",input:"text-xs h-3.5",placeholder:"placeholder:text-xs text-xs",singleValue:"text-xs",multiValue:"h-3.5 px-0.5 gap-1 text-xxs",multiValueLabel:"text-xxs",multiValueRemove:"w-3 h-3",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-3",dropdownIndicator:"p-0.5 size-3",indicatorSeparator:"h-3",loadingIndicator:"w-3 h-3",menu:"m-0",menuList:"py-1",option:"px-1 py-0.5 text-xs",group:"pt-1",groupHeading:"px-2 py-0.5 text-xxs",noOptionsMessage:"px-2 py-1 text-xxs",loadingMessage:"px-2 py-1 text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{trigger:"h-6 min-h-fit",control:"min-h-6 p-1 gap-1.5",input:"text-s h-4",placeholder:"placeholder:text-s text-s",singleValue:"text-s",multiValue:"h-4 p-1 gap-1 text-xs",multiValueLabel:"text-xs",multiValueRemove:"w-3.5 h-3.5",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-4",dropdownIndicator:"p-0.5 size-4",indicatorSeparator:"h-4",loadingIndicator:"w-4 h-4",menu:"m-0",menuList:"py-1",option:"px-2 py-1 text-s",group:"pt-1.5",groupHeading:"px-3 py-1 text-xs",noOptionsMessage:"px-2 py-1.5 text-xs",loadingMessage:"px-3 py-1.5 text-xs",message:"text-xs p-2",icon:"text-base"},lg:{trigger:"h-7 min-h-fit",control:"min-h-7 p-1.5 gap-2",input:"text-sm h-5",placeholder:"placeholder:text-sm text-sm",singleValue:"text-sm",multiValue:"h-5 px-1.5 gap-1.5 text-s",multiValueLabel:"text-xs",multiValueRemove:"w-4 h-4",indicatorsContainer:"gap-1.5",clearIndicator:"p-0.5 size-5",dropdownIndicator:"p-1 size-5",indicatorSeparator:"h-5",loadingIndicator:"w-5 h-5",menu:"m-0",menuList:"py-1.5",option:"px-3 py-2 text-sm",group:"pt-2",groupHeading:"px-4 py-1.5 text-s",noOptionsMessage:"px-4 py-2 text-s",loadingMessage:"px-4 py-2 text-s",message:"text-s p-2.5",icon:"text-lg"}},nt={primary:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-focus-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-primary",menu:"bg-select-list-bg border-input-focus-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-primary-dark",messageBackground:"bg-input-message-bg",messageBorder:"ring-input-info-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},positive:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-positive",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-positive",menu:"bg-select-list-bg border-positive shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-positive-dark",messageBackground:"bg-positive-light",messageBorder:"ring-positive",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},warning:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-warning-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-warning",menu:"bg-select-list-bg border-input-warning-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-warning-dark",messageBackground:"bg-input-warning-bg",messageBorder:"ring-input-warning-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},negative:{control:"cursor-pointer bg-input-bg text-negative",controlFocused:"border-input-error-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-negative",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-negative",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-negative",menu:"bg-select-list-bg border-input-error-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-negative-dark",messageBackground:"bg-input-error-bg",messageBorder:"ring-input-error-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"}},i_=()=>G("flex flex-col relative"),a_=({size:r,color:i,isDisabled:n,isFocused:a,isInvalid:s,hasMessage:l})=>{const u=nt[s?"negative":i];return G("flex items-center justify-between only:rounded first:rounded-t last:rounded-b",bt[r].control,u.control,l?["ring-1",u.messageBorder]:["border",n?"border-input-border":a?u.controlFocused:`border-select-border
|
|
41
|
+
focus-within:${u.controlFocused}`],{[u.controlDisabled]:n})},s_=({isMulti:r})=>G("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":r,"px-0.5":!r}),l_=({size:r,color:i})=>G("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 px-1 text-input-text",bt[r].input,nt[i].placeholder),c_=({size:r,color:i})=>G("select-none truncate",bt[r].placeholder,nt[i].placeholder),u_=({size:r,color:i,isDisabled:n})=>G("truncate",bt[r].singleValue,n?nt[i].singleValueDisabled:nt[i].singleValue),d_=({size:r,color:i,isDisabled:n,isFocused:a})=>G("inline-flex items-center rounded-xs",bt[r].multiValue,n?nt[i].multiValueDisabled:nt[i].multiValue,{"border border-white":a&&!n}),p_=({size:r})=>G("truncate",bt[r].multiValueLabel),f_=({size:r,color:i,isDisabled:n})=>G("flex items-center justify-center cursor-pointer transition-colors",bt[r].multiValueRemove,nt[i].multiValueRemove),Fp=({size:r,color:i,isDisabled:n})=>G("flex items-center justify-center transition-colors rounded",bt[r].clearIndicator,n?"hidden":[nt[i].clearIndicator,nt[i].clearIndicatorHover]),h_=({size:r,color:i,isDisabled:n})=>G("flex items-center justify-center transition-colors rounded",bt[r].dropdownIndicator,n?"text-grey-200":[nt[i].dropdownIndicator,nt[i].dropdownIndicatorHover]),g_=({size:r,placement:i,hasMessage:n,color:a})=>{const s={auto:"top-full rounded-t-none",bottom:"top-full rounded-t-none",top:"bottom-full rounded-b-none"};return G("absolute w-full z-50 rounded overflow-hidden border border-t-0",nt[a].menu,{[nt[a].messageBorder]:n},s[i||"auto"],bt[r].menu)},v_=({size:r})=>G("overflow-y-auto",bt[r].menuList,nt.primary.menuList),b_=({size:r,color:i,isDisabled:n,isFocused:a,isSelected:s})=>G("transition-colors duration-150 cursor-pointer mx-1 rounded flex items-center gap-2",bt[r].option,{[nt[i].optionDisabled]:n,[nt[i].optionSelected]:s&&!n,[nt[i].optionFocused]:a&&!s&&!n,[nt[i].option]:!s&&!a&&!n}),m_=({size:r})=>G(bt[r].group),w_=({size:r,color:i})=>G(bt[r].groupHeading,nt[i].groupHeading),x_=({size:r})=>G("text-grey-100",bt[r].loadingMessage),y_=({size:r})=>G(bt[r].noOptionsMessage,nt.primary.noOptionsMessage),__=({size:r,color:i,isInvalid:n})=>{const a=nt[n?"negative":i];return G("absolute left-0 right-0 z-10","flex items-start gap-x-2 ring-1","first:bottom-full first:rounded-t first:ring-b-0","last:top-full last:rounded-b last:ring-t-0","only:top-full only:rounded only:ring-1",bt[r].message,a.message,a.messageBackground,a.messageBorder)},I_=({size:r})=>G(bt[r].icon),Wp=r=>{const i=r[0];return r.length>0&&typeof i=="object"&&i!==null&&"options"in i&&Array.isArray(i.options)},k_=r=>Wp(r)?r.reduce((i,n)=>[...i,...n.options],[]):r;function Dt(r,i){if(r==null)return{};var n={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(i.indexOf(a)!==-1)continue;n[a]=r[a]}return n}function _e(){return _e=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var n=arguments[i];for(var a in n)({}).hasOwnProperty.call(n,a)&&(r[a]=n[a])}return r},_e.apply(null,arguments)}function ks(r,i){return ks=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},ks(r,i)}function E_(r,i){r.prototype=Object.create(i.prototype),r.prototype.constructor=r,ks(r,i)}var bi={exports:{}},us={exports:{}},He={};/** @license React v16.13.1
|
|
35
42
|
* react-is.production.min.js
|
|
36
43
|
*
|
|
37
44
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
38
45
|
*
|
|
39
46
|
* This source code is licensed under the MIT license found in the
|
|
40
47
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var
|
|
48
|
+
*/var kd;function S_(){if(kd)return He;kd=1;var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,d=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,v=r?Symbol.for("react.concurrent_mode"):60111,b=r?Symbol.for("react.forward_ref"):60112,w=r?Symbol.for("react.suspense"):60113,D=r?Symbol.for("react.suspense_list"):60120,T=r?Symbol.for("react.memo"):60115,q=r?Symbol.for("react.lazy"):60116,z=r?Symbol.for("react.block"):60121,S=r?Symbol.for("react.fundamental"):60117,B=r?Symbol.for("react.responder"):60118,y=r?Symbol.for("react.scope"):60119;function k(O){if(typeof O=="object"&&O!==null){var j=O.$$typeof;switch(j){case i:switch(O=O.type,O){case f:case v:case a:case l:case s:case w:return O;default:switch(O=O&&O.$$typeof,O){case d:case b:case q:case T:case u:return O;default:return j}}case n:return j}}}function N(O){return k(O)===v}return He.AsyncMode=f,He.ConcurrentMode=v,He.ContextConsumer=d,He.ContextProvider=u,He.Element=i,He.ForwardRef=b,He.Fragment=a,He.Lazy=q,He.Memo=T,He.Portal=n,He.Profiler=l,He.StrictMode=s,He.Suspense=w,He.isAsyncMode=function(O){return N(O)||k(O)===f},He.isConcurrentMode=N,He.isContextConsumer=function(O){return k(O)===d},He.isContextProvider=function(O){return k(O)===u},He.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===i},He.isForwardRef=function(O){return k(O)===b},He.isFragment=function(O){return k(O)===a},He.isLazy=function(O){return k(O)===q},He.isMemo=function(O){return k(O)===T},He.isPortal=function(O){return k(O)===n},He.isProfiler=function(O){return k(O)===l},He.isStrictMode=function(O){return k(O)===s},He.isSuspense=function(O){return k(O)===w},He.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===a||O===v||O===l||O===s||O===w||O===D||typeof O=="object"&&O!==null&&(O.$$typeof===q||O.$$typeof===T||O.$$typeof===u||O.$$typeof===d||O.$$typeof===b||O.$$typeof===S||O.$$typeof===B||O.$$typeof===y||O.$$typeof===z)},He.typeOf=k,He}var $e={};/** @license React v16.13.1
|
|
42
49
|
* react-is.development.js
|
|
43
50
|
*
|
|
44
51
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
45
52
|
*
|
|
46
53
|
* This source code is licensed under the MIT license found in the
|
|
47
54
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var
|
|
49
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ue(i,r){return zm(i)||km(i,r)||Ul(i,r)||Um()}function jm(i,r){if(i==null)return{};var u={};for(var s in i)if({}.hasOwnProperty.call(i,s)){if(r.indexOf(s)!==-1)continue;u[s]=i[s]}return u}function Xn(i,r){if(i==null)return{};var u,s,o=jm(i,r);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);for(s=0;s<c.length;s++)u=c[s],r.indexOf(u)===-1&&{}.propertyIsEnumerable.call(i,u)&&(o[u]=i[u])}return o}function Qm(i,r){return r||(r=i.slice(0)),Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(r)}}))}const $m=Math.min,Km=Math.max,Ai=Math.round,fi=Math.floor,xi=i=>({x:i,y:i});function qm(i){const{x:r,y:u,width:s,height:o}=i;return{width:s,height:o,top:u,left:r,right:r+s,bottom:u+o,x:r,y:u}}function Ti(){return typeof window<"u"}function oc(i){return sc(i)?(i.nodeName||"").toLowerCase():"#document"}function rt(i){var r;return(i==null||(r=i.ownerDocument)==null?void 0:r.defaultView)||window}function ac(i){var r;return(r=(sc(i)?i.ownerDocument:i.document)||window.document)==null?void 0:r.documentElement}function sc(i){return Ti()?i instanceof Node||i instanceof rt(i).Node:!1}function eI(i){return Ti()?i instanceof Element||i instanceof rt(i).Element:!1}function So(i){return Ti()?i instanceof HTMLElement||i instanceof rt(i).HTMLElement:!1}function Al(i){return!Ti()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof rt(i).ShadowRoot}const nI=new Set(["inline","contents"]);function lc(i){const{overflow:r,overflowX:u,overflowY:s,display:o}=wo(i);return/auto|scroll|overlay|hidden|clip/.test(r+s+u)&&!nI.has(o)}function tI(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const rI=new Set(["html","body","#document"]);function iI(i){return rI.has(oc(i))}function wo(i){return rt(i).getComputedStyle(i)}function uI(i){if(oc(i)==="html")return i;const r=i.assignedSlot||i.parentNode||Al(i)&&i.host||ac(i);return Al(r)?r.host:r}function cc(i){const r=uI(i);return iI(r)?i.ownerDocument?i.ownerDocument.body:i.body:So(r)&&lc(r)?r:cc(r)}function yi(i,r,u){var s;r===void 0&&(r=[]),u===void 0&&(u=!0);const o=cc(i),c=o===((s=i.ownerDocument)==null?void 0:s.body),d=rt(o);if(c){const b=vo(d);return r.concat(d,d.visualViewport||[],lc(o)?o:[],b&&u?yi(b):[])}return r.concat(o,yi(o,[],u))}function vo(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function oI(i){const r=wo(i);let u=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const o=So(i),c=o?i.offsetWidth:u,d=o?i.offsetHeight:s,b=Ai(u)!==c||Ai(s)!==d;return b&&(u=c,s=d),{width:u,height:s,$:b}}function Go(i){return eI(i)?i:i.contextElement}function xl(i){const r=Go(i);if(!So(r))return xi(1);const u=r.getBoundingClientRect(),{width:s,height:o,$:c}=oI(r);let d=(c?Ai(u.width):u.width)/s,b=(c?Ai(u.height):u.height)/o;return(!d||!Number.isFinite(d))&&(d=1),(!b||!Number.isFinite(b))&&(b=1),{x:d,y:b}}const aI=xi(0);function sI(i){const r=rt(i);return!tI()||!r.visualViewport?aI:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function lI(i,r,u){return!1}function yl(i,r,u,s){r===void 0&&(r=!1);const o=i.getBoundingClientRect(),c=Go(i);let d=xi(1);r&&(d=xl(i));const b=lI()?sI(c):xi(0);let g=(o.left+b.x)/d.x,h=(o.top+b.y)/d.y,m=o.width/d.x,A=o.height/d.y;if(c){const B=rt(c),E=s;let F=B,G=vo(F);for(;G&&s&&E!==F;){const S=xl(G),T=G.getBoundingClientRect(),X=wo(G),N=T.left+(G.clientLeft+parseFloat(X.paddingLeft))*S.x,W=T.top+(G.clientTop+parseFloat(X.paddingTop))*S.y;g*=S.x,h*=S.y,m*=S.x,A*=S.y,g+=N,h+=W,F=rt(G),G=vo(F)}}return qm({width:m,height:A,x:g,y:h})}function fc(i,r){return i.x===r.x&&i.y===r.y&&i.width===r.width&&i.height===r.height}function cI(i,r){let u=null,s;const o=ac(i);function c(){var b;clearTimeout(s),(b=u)==null||b.disconnect(),u=null}function d(b,g){b===void 0&&(b=!1),g===void 0&&(g=1),c();const h=i.getBoundingClientRect(),{left:m,top:A,width:B,height:E}=h;if(b||r(),!B||!E)return;const F=fi(A),G=fi(o.clientWidth-(m+B)),S=fi(o.clientHeight-(A+E)),T=fi(m),N={rootMargin:-F+"px "+-G+"px "+-S+"px "+-T+"px",threshold:Km(0,$m(1,g))||1};let W=!0;function w(D){const M=D[0].intersectionRatio;if(M!==g){if(!W)return d();M?d(!1,M):s=setTimeout(()=>{d(!1,1e-7)},1e3)}M===1&&!fc(h,i.getBoundingClientRect())&&d(),W=!1}try{u=new IntersectionObserver(w,{...N,root:o.ownerDocument})}catch{u=new IntersectionObserver(w,N)}u.observe(i)}return d(!0),c}function fI(i,r,u,s){s===void 0&&(s={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:b=typeof IntersectionObserver=="function",animationFrame:g=!1}=s,h=Go(i),m=o||c?[...h?yi(h):[],...yi(r)]:[];m.forEach(T=>{o&&T.addEventListener("scroll",u,{passive:!0}),c&&T.addEventListener("resize",u)});const A=h&&b?cI(h,u):null;let B=-1,E=null;d&&(E=new ResizeObserver(T=>{let[X]=T;X&&X.target===h&&E&&(E.unobserve(r),cancelAnimationFrame(B),B=requestAnimationFrame(()=>{var N;(N=E)==null||N.observe(r)})),u()}),h&&!g&&E.observe(h),E.observe(r));let F,G=g?yl(i):null;g&&S();function S(){const T=yl(i);G&&!fc(G,T)&&u(),G=T,F=requestAnimationFrame(S)}return u(),()=>{var T;m.forEach(X=>{o&&X.removeEventListener("scroll",u),c&&X.removeEventListener("resize",u)}),A==null||A(),(T=E)==null||T.disconnect(),E=null,g&&cancelAnimationFrame(F)}}var mo=_.useLayoutEffect,dI=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ei=function(){};function gI(i,r){return r?r[0]==="-"?i+r:i+"__"+r:i}function pI(i,r){for(var u=arguments.length,s=new Array(u>2?u-2:0),o=2;o<u;o++)s[o-2]=arguments[o];var c=[].concat(s);if(r&&i)for(var d in r)r.hasOwnProperty(d)&&r[d]&&c.push("".concat(gI(i,d)));return c.filter(function(b){return b}).map(function(b){return String(b).trim()}).join(" ")}var Si=function(r){return EI(r)?r.filter(Boolean):St(r)==="object"&&r!==null?[r]:[]},dc=function(r){r.className,r.clearValue,r.cx,r.getStyles,r.getClassNames,r.getValue,r.hasValue,r.isMulti,r.isRtl,r.options,r.selectOption,r.selectProps,r.setValue,r.theme;var u=Xn(r,dI);return z({},u)},Te=function(r,u,s){var o=r.cx,c=r.getStyles,d=r.getClassNames,b=r.className;return{css:c(u,r),className:o(s??{},d(u,r),b)}};function hI(i,r,u){if(u){var s=u(i,r);if(typeof s=="string")return s}return i}function Oi(i){return[document.documentElement,document.body,window].indexOf(i)>-1}function bI(i){return Oi(i)?window.innerHeight:i.clientHeight}function gc(i){return Oi(i)?window.pageYOffset:i.scrollTop}function wi(i,r){if(Oi(i)){window.scrollTo(0,r);return}i.scrollTop=r}function vI(i){var r=getComputedStyle(i),u=r.position==="absolute",s=/(auto|scroll)/;if(r.position==="fixed")return document.documentElement;for(var o=i;o=o.parentElement;)if(r=getComputedStyle(o),!(u&&r.position==="static")&&s.test(r.overflow+r.overflowY+r.overflowX))return o;return document.documentElement}function mI(i,r,u,s){return u*((i=i/s-1)*i*i+1)+r}function di(i,r){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ei,o=gc(i),c=r-o,d=10,b=0;function g(){b+=d;var h=mI(b,o,c,u);wi(i,h),b<u?window.requestAnimationFrame(g):s(i)}g()}function El(i,r){var u=i.getBoundingClientRect(),s=r.getBoundingClientRect(),o=r.offsetHeight/3;s.bottom+o>u.bottom?wi(i,Math.min(r.offsetTop+r.clientHeight-i.offsetHeight+o,i.scrollHeight)):s.top-o<u.top&&wi(i,Math.max(r.offsetTop-o,0))}function II(i){var r=i.getBoundingClientRect();return{bottom:r.bottom,height:r.height,left:r.left,right:r.right,top:r.top,width:r.width}}function Sl(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function CI(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var pc=!1,AI={get passive(){return pc=!0}},gi=typeof window<"u"?window:{};gi.addEventListener&&gi.removeEventListener&&(gi.addEventListener("p",Ei,AI),gi.removeEventListener("p",Ei,!1));var xI=pc;function yI(i){return i!=null}function EI(i){return Array.isArray(i)}function pr(i,r,u){return i?r:u}var SI=function(r){for(var u=arguments.length,s=new Array(u>1?u-1:0),o=1;o<u;o++)s[o-1]=arguments[o];var c=Object.entries(r).filter(function(d){var b=Ue(d,1),g=b[0];return!s.includes(g)});return c.reduce(function(d,b){var g=Ue(b,2),h=g[0],m=g[1];return d[h]=m,d},{})},wI=["children","innerProps"],GI=["children","innerProps"];function RI(i){var r=i.maxHeight,u=i.menuEl,s=i.minHeight,o=i.placement,c=i.shouldScroll,d=i.isFixedPosition,b=i.controlHeight,g=vI(u),h={placement:"bottom",maxHeight:r};if(!u||!u.offsetParent)return h;var m=g.getBoundingClientRect(),A=m.height,B=u.getBoundingClientRect(),E=B.bottom,F=B.height,G=B.top,S=u.offsetParent.getBoundingClientRect(),T=S.top,X=d?window.innerHeight:bI(g),N=gc(g),W=parseInt(getComputedStyle(u).marginBottom,10),w=parseInt(getComputedStyle(u).marginTop,10),D=T-w,M=X-G,J=D+N,ue=A-N-G,ve=E-X+N+W,Re=N+G-w,he=160;switch(o){case"auto":case"bottom":if(M>=F)return{placement:"bottom",maxHeight:r};if(ue>=F&&!d)return c&&di(g,ve,he),{placement:"bottom",maxHeight:r};if(!d&&ue>=s||d&&M>=s){c&&di(g,ve,he);var Oe=d?M-W:ue-W;return{placement:"bottom",maxHeight:Oe}}if(o==="auto"||d){var Pe=r,me=d?D:J;return me>=s&&(Pe=Math.min(me-W-b,r)),{placement:"top",maxHeight:Pe}}if(o==="bottom")return c&&wi(g,ve),{placement:"bottom",maxHeight:r};break;case"top":if(D>=F)return{placement:"top",maxHeight:r};if(J>=F&&!d)return c&&di(g,Re,he),{placement:"top",maxHeight:r};if(!d&&J>=s||d&&D>=s){var Ie=r;return(!d&&J>=s||d&&D>=s)&&(Ie=d?D-w:J-w),c&&di(g,Re,he),{placement:"top",maxHeight:Ie}}return{placement:"bottom",maxHeight:r};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return h}function FI(i){var r={bottom:"top",top:"bottom"};return i?r[i]:"bottom"}var hc=function(r){return r==="auto"?"bottom":r},BI=function(r,u){var s,o=r.placement,c=r.theme,d=c.borderRadius,b=c.spacing,g=c.colors;return z((s={label:"menu"},Zt(s,FI(o),"100%"),Zt(s,"position","absolute"),Zt(s,"width","100%"),Zt(s,"zIndex",1),s),u?{}:{backgroundColor:g.neutral0,borderRadius:d,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:b.menuGutter,marginTop:b.menuGutter})},bc=_.createContext(null),TI=function(r){var u=r.children,s=r.minMenuHeight,o=r.maxMenuHeight,c=r.menuPlacement,d=r.menuPosition,b=r.menuShouldScrollIntoView,g=r.theme,h=_.useContext(bc)||{},m=h.setPortalPlacement,A=_.useRef(null),B=_.useState(o),E=Ue(B,2),F=E[0],G=E[1],S=_.useState(null),T=Ue(S,2),X=T[0],N=T[1],W=g.spacing.controlHeight;return mo(function(){var w=A.current;if(w){var D=d==="fixed",M=b&&!D,J=RI({maxHeight:o,menuEl:w,minHeight:s,placement:c,shouldScroll:M,isFixedPosition:D,controlHeight:W});G(J.maxHeight),N(J.placement),m==null||m(J.placement)}},[o,c,d,b,s,m,W]),u({ref:A,placerProps:z(z({},r),{},{placement:X||hc(c),maxHeight:F})})},OI=function(r){var u=r.children,s=r.innerRef,o=r.innerProps;return k("div",K({},Te(r,"menu",{menu:!0}),{ref:s},o),u)},PI=OI,_I=function(r,u){var s=r.maxHeight,o=r.theme.spacing.baseUnit;return z({maxHeight:s,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},u?{}:{paddingBottom:o,paddingTop:o})},VI=function(r){var u=r.children,s=r.innerProps,o=r.innerRef,c=r.isMulti;return k("div",K({},Te(r,"menuList",{"menu-list":!0,"menu-list--is-multi":c}),{ref:o},s),u)},vc=function(r,u){var s=r.theme,o=s.spacing.baseUnit,c=s.colors;return z({textAlign:"center"},u?{}:{color:c.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},NI=vc,WI=vc,MI=function(r){var u=r.children,s=u===void 0?"No options":u,o=r.innerProps,c=Xn(r,wI);return k("div",K({},Te(z(z({},c),{},{children:s,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),s)},XI=function(r){var u=r.children,s=u===void 0?"Loading...":u,o=r.innerProps,c=Xn(r,GI);return k("div",K({},Te(z(z({},c),{},{children:s,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),s)},LI=function(r){var u=r.rect,s=r.offset,o=r.position;return{left:u.left,position:o,top:s,width:u.width,zIndex:1}},DI=function(r){var u=r.appendTo,s=r.children,o=r.controlElement,c=r.innerProps,d=r.menuPlacement,b=r.menuPosition,g=_.useRef(null),h=_.useRef(null),m=_.useState(hc(d)),A=Ue(m,2),B=A[0],E=A[1],F=_.useMemo(function(){return{setPortalPlacement:E}},[]),G=_.useState(null),S=Ue(G,2),T=S[0],X=S[1],N=_.useCallback(function(){if(o){var M=II(o),J=b==="fixed"?0:window.pageYOffset,ue=M[B]+J;(ue!==(T==null?void 0:T.offset)||M.left!==(T==null?void 0:T.rect.left)||M.width!==(T==null?void 0:T.rect.width))&&X({offset:ue,rect:M})}},[o,b,B,T==null?void 0:T.offset,T==null?void 0:T.rect.left,T==null?void 0:T.rect.width]);mo(function(){N()},[N]);var W=_.useCallback(function(){typeof h.current=="function"&&(h.current(),h.current=null),o&&g.current&&(h.current=fI(o,g.current,N,{elementResize:"ResizeObserver"in window}))},[o,N]);mo(function(){W()},[W]);var w=_.useCallback(function(M){g.current=M,W()},[W]);if(!u&&b!=="fixed"||!T)return null;var D=k("div",K({ref:w},Te(z(z({},r),{},{offset:T.offset,position:b,rect:T.rect}),"menuPortal",{"menu-portal":!0}),c),s);return k(bc.Provider,{value:F},u?Iv.createPortal(D,u):D)},ZI=function(r){var u=r.isDisabled,s=r.isRtl;return{label:"container",direction:s?"rtl":void 0,pointerEvents:u?"none":void 0,position:"relative"}},HI=function(r){var u=r.children,s=r.innerProps,o=r.isDisabled,c=r.isRtl;return k("div",K({},Te(r,"container",{"--is-disabled":o,"--is-rtl":c}),s),u)},YI=function(r,u){var s=r.theme.spacing,o=r.isMulti,c=r.hasValue,d=r.selectProps.controlShouldRenderValue;return z({alignItems:"center",display:o&&c&&d?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},u?{}:{padding:"".concat(s.baseUnit/2,"px ").concat(s.baseUnit*2,"px")})},JI=function(r){var u=r.children,s=r.innerProps,o=r.isMulti,c=r.hasValue;return k("div",K({},Te(r,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":c}),s),u)},zI=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},kI=function(r){var u=r.children,s=r.innerProps;return k("div",K({},Te(r,"indicatorsContainer",{indicators:!0}),s),u)},wl,UI=["size"],jI=["innerProps","isRtl","size"];function QI(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var $I=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:QI},mc=function(r){var u=r.size,s=Xn(r,UI);return k("svg",K({height:u,width:u,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:$I},s))},Ro=function(r){return k(mc,K({size:20},r),k("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ic=function(r){return k(mc,K({size:20},r),k("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Cc=function(r,u){var s=r.isFocused,o=r.theme,c=o.spacing.baseUnit,d=o.colors;return z({label:"indicatorContainer",display:"flex",transition:"color 150ms"},u?{}:{color:s?d.neutral60:d.neutral20,padding:c*2,":hover":{color:s?d.neutral80:d.neutral40}})},KI=Cc,qI=function(r){var u=r.children,s=r.innerProps;return k("div",K({},Te(r,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),s),u||k(Ic,null))},e1=Cc,n1=function(r){var u=r.children,s=r.innerProps;return k("div",K({},Te(r,"clearIndicator",{indicator:!0,"clear-indicator":!0}),s),u||k(Ro,null))},t1=function(r,u){var s=r.isDisabled,o=r.theme,c=o.spacing.baseUnit,d=o.colors;return z({label:"indicatorSeparator",alignSelf:"stretch",width:1},u?{}:{backgroundColor:s?d.neutral10:d.neutral20,marginBottom:c*2,marginTop:c*2})},r1=function(r){var u=r.innerProps;return k("span",K({},u,Te(r,"indicatorSeparator",{"indicator-separator":!0})))},i1=Jm(wl||(wl=Qm([`
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
`]))),u1=function(r,u){var s=r.isFocused,o=r.size,c=r.theme,d=c.colors,b=c.spacing.baseUnit;return z({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},u?{}:{color:s?d.neutral60:d.neutral20,padding:b*2})},io=function(r){var u=r.delay,s=r.offset;return k("span",{css:Eo({animation:"".concat(i1," 1s ease-in-out ").concat(u,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:s?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},o1=function(r){var u=r.innerProps,s=r.isRtl,o=r.size,c=o===void 0?4:o,d=Xn(r,jI);return k("div",K({},Te(z(z({},d),{},{innerProps:u,isRtl:s,size:c}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),u),k(io,{delay:0,offset:s}),k(io,{delay:160,offset:!0}),k(io,{delay:320,offset:!s}))},a1=function(r,u){var s=r.isDisabled,o=r.isFocused,c=r.theme,d=c.colors,b=c.borderRadius,g=c.spacing;return z({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:g.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},u?{}:{backgroundColor:s?d.neutral5:d.neutral0,borderColor:s?d.neutral10:o?d.primary:d.neutral20,borderRadius:b,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(d.primary):void 0,"&:hover":{borderColor:o?d.primary:d.neutral30}})},s1=function(r){var u=r.children,s=r.isDisabled,o=r.isFocused,c=r.innerRef,d=r.innerProps,b=r.menuIsOpen;return k("div",K({ref:c},Te(r,"control",{control:!0,"control--is-disabled":s,"control--is-focused":o,"control--menu-is-open":b}),d,{"aria-disabled":s||void 0}),u)},l1=s1,c1=["data"],f1=function(r,u){var s=r.theme.spacing;return u?{}:{paddingBottom:s.baseUnit*2,paddingTop:s.baseUnit*2}},d1=function(r){var u=r.children,s=r.cx,o=r.getStyles,c=r.getClassNames,d=r.Heading,b=r.headingProps,g=r.innerProps,h=r.label,m=r.theme,A=r.selectProps;return k("div",K({},Te(r,"group",{group:!0}),g),k(d,K({},b,{selectProps:A,theme:m,getStyles:o,getClassNames:c,cx:s}),h),k("div",null,u))},g1=function(r,u){var s=r.theme,o=s.colors,c=s.spacing;return z({label:"group",cursor:"default",display:"block"},u?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:c.baseUnit*3,paddingRight:c.baseUnit*3,textTransform:"uppercase"})},p1=function(r){var u=dc(r);u.data;var s=Xn(u,c1);return k("div",K({},Te(r,"groupHeading",{"group-heading":!0}),s))},h1=d1,b1=["innerRef","isDisabled","isHidden","inputClassName"],v1=function(r,u){var s=r.isDisabled,o=r.value,c=r.theme,d=c.spacing,b=c.colors;return z(z({visibility:s?"hidden":"visible",transform:o?"translateZ(0)":""},m1),u?{}:{margin:d.baseUnit/2,paddingBottom:d.baseUnit/2,paddingTop:d.baseUnit/2,color:b.neutral80})},Ac={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},m1={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":z({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ac)},I1=function(r){return z({label:"input",color:"inherit",background:0,opacity:r?0:1,width:"100%"},Ac)},C1=function(r){var u=r.cx,s=r.value,o=dc(r),c=o.innerRef,d=o.isDisabled,b=o.isHidden,g=o.inputClassName,h=Xn(o,b1);return k("div",K({},Te(r,"input",{"input-container":!0}),{"data-value":s||""}),k("input",K({className:u({input:!0},g),ref:c,style:I1(b),disabled:d},h)))},A1=C1,x1=function(r,u){var s=r.theme,o=s.spacing,c=s.borderRadius,d=s.colors;return z({label:"multiValue",display:"flex",minWidth:0},u?{}:{backgroundColor:d.neutral10,borderRadius:c/2,margin:o.baseUnit/2})},y1=function(r,u){var s=r.theme,o=s.borderRadius,c=s.colors,d=r.cropWithEllipsis;return z({overflow:"hidden",textOverflow:d||d===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},u?{}:{borderRadius:o/2,color:c.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},E1=function(r,u){var s=r.theme,o=s.spacing,c=s.borderRadius,d=s.colors,b=r.isFocused;return z({alignItems:"center",display:"flex"},u?{}:{borderRadius:c/2,backgroundColor:b?d.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:d.dangerLight,color:d.danger}})},xc=function(r){var u=r.children,s=r.innerProps;return k("div",s,u)},S1=xc,w1=xc;function G1(i){var r=i.children,u=i.innerProps;return k("div",K({role:"button"},u),r||k(Ro,{size:14}))}var R1=function(r){var u=r.children,s=r.components,o=r.data,c=r.innerProps,d=r.isDisabled,b=r.removeProps,g=r.selectProps,h=s.Container,m=s.Label,A=s.Remove;return k(h,{data:o,innerProps:z(z({},Te(r,"multiValue",{"multi-value":!0,"multi-value--is-disabled":d})),c),selectProps:g},k(m,{data:o,innerProps:z({},Te(r,"multiValueLabel",{"multi-value__label":!0})),selectProps:g},u),k(A,{data:o,innerProps:z(z({},Te(r,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(u||"option")},b),selectProps:g}))},F1=R1,B1=function(r,u){var s=r.isDisabled,o=r.isFocused,c=r.isSelected,d=r.theme,b=d.spacing,g=d.colors;return z({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},u?{}:{backgroundColor:c?g.primary:o?g.primary25:"transparent",color:s?g.neutral20:c?g.neutral0:"inherit",padding:"".concat(b.baseUnit*2,"px ").concat(b.baseUnit*3,"px"),":active":{backgroundColor:s?void 0:c?g.primary:g.primary50}})},T1=function(r){var u=r.children,s=r.isDisabled,o=r.isFocused,c=r.isSelected,d=r.innerRef,b=r.innerProps;return k("div",K({},Te(r,"option",{option:!0,"option--is-disabled":s,"option--is-focused":o,"option--is-selected":c}),{ref:d,"aria-disabled":s},b),u)},O1=T1,P1=function(r,u){var s=r.theme,o=s.spacing,c=s.colors;return z({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},u?{}:{color:c.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},_1=function(r){var u=r.children,s=r.innerProps;return k("div",K({},Te(r,"placeholder",{placeholder:!0}),s),u)},V1=_1,N1=function(r,u){var s=r.isDisabled,o=r.theme,c=o.spacing,d=o.colors;return z({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},u?{}:{color:s?d.neutral40:d.neutral80,marginLeft:c.baseUnit/2,marginRight:c.baseUnit/2})},W1=function(r){var u=r.children,s=r.isDisabled,o=r.innerProps;return k("div",K({},Te(r,"singleValue",{"single-value":!0,"single-value--is-disabled":s}),o),u)},M1=W1,X1={ClearIndicator:n1,Control:l1,DropdownIndicator:qI,DownChevron:Ic,CrossIcon:Ro,Group:h1,GroupHeading:p1,IndicatorsContainer:kI,IndicatorSeparator:r1,Input:A1,LoadingIndicator:o1,Menu:PI,MenuList:VI,MenuPortal:DI,LoadingMessage:XI,NoOptionsMessage:MI,MultiValue:F1,MultiValueContainer:S1,MultiValueLabel:w1,MultiValueRemove:G1,Option:O1,Placeholder:V1,SelectContainer:HI,SingleValue:M1,ValueContainer:JI},L1=function(r){return z(z({},X1),r.components)},Gl=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function D1(i,r){return!!(i===r||Gl(i)&&Gl(r))}function Z1(i,r){if(i.length!==r.length)return!1;for(var u=0;u<i.length;u++)if(!D1(i[u],r[u]))return!1;return!0}function H1(i,r){r===void 0&&(r=Z1);var u=null;function s(){for(var o=[],c=0;c<arguments.length;c++)o[c]=arguments[c];if(u&&u.lastThis===this&&r(o,u.lastArgs))return u.lastResult;var d=i.apply(this,o);return u={lastResult:d,lastArgs:o,lastThis:this},d}return s.clear=function(){u=null},s}function Y1(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var J1=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:Y1},z1=function(r){return k("span",K({css:J1},r))},Rl=z1,k1={guidance:function(r){var u=r.isSearchable,s=r.isMulti,o=r.tabSelectsValue,c=r.context,d=r.isInitialFocus;switch(c){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return d?"".concat(r["aria-label"]||"Select"," is focused ").concat(u?",type to refine list":"",", press Down to open the menu, ").concat(s?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(r){var u=r.action,s=r.label,o=s===void 0?"":s,c=r.labels,d=r.isDisabled;switch(u){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(c.length>1?"s":""," ").concat(c.join(","),", selected.");case"select-option":return d?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(r){var u=r.context,s=r.focused,o=r.options,c=r.label,d=c===void 0?"":c,b=r.selectValue,g=r.isDisabled,h=r.isSelected,m=r.isAppleDevice,A=function(G,S){return G&&G.length?"".concat(G.indexOf(S)+1," of ").concat(G.length):""};if(u==="value"&&b)return"value ".concat(d," focused, ").concat(A(b,s),".");if(u==="menu"&&m){var B=g?" disabled":"",E="".concat(h?" selected":"").concat(B);return"".concat(d).concat(E,", ").concat(A(o,s),".")}return""},onFilter:function(r){var u=r.inputValue,s=r.resultsMessage;return"".concat(s).concat(u?" for search term "+u:"",".")}},U1=function(r){var u=r.ariaSelection,s=r.focusedOption,o=r.focusedValue,c=r.focusableOptions,d=r.isFocused,b=r.selectValue,g=r.selectProps,h=r.id,m=r.isAppleDevice,A=g.ariaLiveMessages,B=g.getOptionLabel,E=g.inputValue,F=g.isMulti,G=g.isOptionDisabled,S=g.isSearchable,T=g.menuIsOpen,X=g.options,N=g.screenReaderStatus,W=g.tabSelectsValue,w=g.isLoading,D=g["aria-label"],M=g["aria-live"],J=_.useMemo(function(){return z(z({},k1),A||{})},[A]),ue=_.useMemo(function(){var me="";if(u&&J.onChange){var Ie=u.option,Fe=u.options,Ce=u.removedValue,an=u.removedValues,De=u.value,Ze=function(Me){return Array.isArray(Me)?null:Me},Ae=Ce||Ie||Ze(De),He=Ae?B(Ae):"",Ke=Fe||an||void 0,we=Ke?Ke.map(B):[],_e=z({isDisabled:Ae&&G(Ae,b),label:He,labels:we},u);me=J.onChange(_e)}return me},[u,J,G,b,B]),ve=_.useMemo(function(){var me="",Ie=s||o,Fe=!!(s&&b&&b.includes(s));if(Ie&&J.onFocus){var Ce={focused:Ie,label:B(Ie),isDisabled:G(Ie,b),isSelected:Fe,options:c,context:Ie===s?"menu":"value",selectValue:b,isAppleDevice:m};me=J.onFocus(Ce)}return me},[s,o,B,G,J,c,b,m]),Re=_.useMemo(function(){var me="";if(T&&X.length&&!w&&J.onFilter){var Ie=N({count:c.length});me=J.onFilter({inputValue:E,resultsMessage:Ie})}return me},[c,E,T,J,X,N,w]),he=(u==null?void 0:u.action)==="initial-input-focus",Oe=_.useMemo(function(){var me="";if(J.guidance){var Ie=o?"value":T?"menu":"input";me=J.guidance({"aria-label":D,context:Ie,isDisabled:s&&G(s,b),isMulti:F,isSearchable:S,tabSelectsValue:W,isInitialFocus:he})}return me},[D,s,o,F,G,S,T,J,b,W,he]),Pe=k(_.Fragment,null,k("span",{id:"aria-selection"},ue),k("span",{id:"aria-focused"},ve),k("span",{id:"aria-results"},Re),k("span",{id:"aria-guidance"},Oe));return k(_.Fragment,null,k(Rl,{id:h},he&&Pe),k(Rl,{"aria-live":M,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},d&&!he&&Pe))},j1=U1,Io=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Q1=new RegExp("["+Io.map(function(i){return i.letters}).join("")+"]","g"),yc={};for(var uo=0;uo<Io.length;uo++)for(var oo=Io[uo],ao=0;ao<oo.letters.length;ao++)yc[oo.letters[ao]]=oo.base;var Ec=function(r){return r.replace(Q1,function(u){return yc[u]})},$1=H1(Ec),Fl=function(r){return r.replace(/^\s+|\s+$/g,"")},K1=function(r){return"".concat(r.label," ").concat(r.value)},q1=function(r){return function(u,s){if(u.data.__isNew__)return!0;var o=z({ignoreCase:!0,ignoreAccents:!0,stringify:K1,trim:!0,matchFrom:"any"},r),c=o.ignoreCase,d=o.ignoreAccents,b=o.stringify,g=o.trim,h=o.matchFrom,m=g?Fl(s):s,A=g?Fl(b(u)):b(u);return c&&(m=m.toLowerCase(),A=A.toLowerCase()),d&&(m=$1(m),A=Ec(A)),h==="start"?A.substr(0,m.length)===m:A.indexOf(m)>-1}},eC=["innerRef"];function nC(i){var r=i.innerRef,u=Xn(i,eC),s=SI(u,"onExited","in","enter","exit","appear");return k("input",K({ref:r},s,{css:Eo({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var tC=function(r){r.cancelable&&r.preventDefault(),r.stopPropagation()};function rC(i){var r=i.isEnabled,u=i.onBottomArrive,s=i.onBottomLeave,o=i.onTopArrive,c=i.onTopLeave,d=_.useRef(!1),b=_.useRef(!1),g=_.useRef(0),h=_.useRef(null),m=_.useCallback(function(S,T){if(h.current!==null){var X=h.current,N=X.scrollTop,W=X.scrollHeight,w=X.clientHeight,D=h.current,M=T>0,J=W-w-N,ue=!1;J>T&&d.current&&(s&&s(S),d.current=!1),M&&b.current&&(c&&c(S),b.current=!1),M&&T>J?(u&&!d.current&&u(S),D.scrollTop=W,ue=!0,d.current=!0):!M&&-T>N&&(o&&!b.current&&o(S),D.scrollTop=0,ue=!0,b.current=!0),ue&&tC(S)}},[u,s,o,c]),A=_.useCallback(function(S){m(S,S.deltaY)},[m]),B=_.useCallback(function(S){g.current=S.changedTouches[0].clientY},[]),E=_.useCallback(function(S){var T=g.current-S.changedTouches[0].clientY;m(S,T)},[m]),F=_.useCallback(function(S){if(S){var T=xI?{passive:!1}:!1;S.addEventListener("wheel",A,T),S.addEventListener("touchstart",B,T),S.addEventListener("touchmove",E,T)}},[E,B,A]),G=_.useCallback(function(S){S&&(S.removeEventListener("wheel",A,!1),S.removeEventListener("touchstart",B,!1),S.removeEventListener("touchmove",E,!1))},[E,B,A]);return _.useEffect(function(){if(r){var S=h.current;return F(S),function(){G(S)}}},[r,F,G]),function(S){h.current=S}}var Bl=["boxSizing","height","overflow","paddingRight","position"],Tl={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ol(i){i.cancelable&&i.preventDefault()}function Pl(i){i.stopPropagation()}function _l(){var i=this.scrollTop,r=this.scrollHeight,u=i+this.offsetHeight;i===0?this.scrollTop=1:u===r&&(this.scrollTop=i-1)}function Vl(){return"ontouchstart"in window||navigator.maxTouchPoints}var Nl=!!(typeof window<"u"&&window.document&&window.document.createElement),dr=0,Dt={capture:!1,passive:!1};function iC(i){var r=i.isEnabled,u=i.accountForScrollbars,s=u===void 0?!0:u,o=_.useRef({}),c=_.useRef(null),d=_.useCallback(function(g){if(Nl){var h=document.body,m=h&&h.style;if(s&&Bl.forEach(function(F){var G=m&&m[F];o.current[F]=G}),s&&dr<1){var A=parseInt(o.current.paddingRight,10)||0,B=document.body?document.body.clientWidth:0,E=window.innerWidth-B+A||0;Object.keys(Tl).forEach(function(F){var G=Tl[F];m&&(m[F]=G)}),m&&(m.paddingRight="".concat(E,"px"))}h&&Vl()&&(h.addEventListener("touchmove",Ol,Dt),g&&(g.addEventListener("touchstart",_l,Dt),g.addEventListener("touchmove",Pl,Dt))),dr+=1}},[s]),b=_.useCallback(function(g){if(Nl){var h=document.body,m=h&&h.style;dr=Math.max(dr-1,0),s&&dr<1&&Bl.forEach(function(A){var B=o.current[A];m&&(m[A]=B)}),h&&Vl()&&(h.removeEventListener("touchmove",Ol,Dt),g&&(g.removeEventListener("touchstart",_l,Dt),g.removeEventListener("touchmove",Pl,Dt)))}},[s]);return _.useEffect(function(){if(r){var g=c.current;return d(g),function(){b(g)}}},[r,d,b]),function(g){c.current=g}}function uC(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var oC=function(r){var u=r.target;return u.ownerDocument.activeElement&&u.ownerDocument.activeElement.blur()},aC=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:uC};function sC(i){var r=i.children,u=i.lockEnabled,s=i.captureEnabled,o=s===void 0?!0:s,c=i.onBottomArrive,d=i.onBottomLeave,b=i.onTopArrive,g=i.onTopLeave,h=rC({isEnabled:o,onBottomArrive:c,onBottomLeave:d,onTopArrive:b,onTopLeave:g}),m=iC({isEnabled:u}),A=function(E){h(E),m(E)};return k(_.Fragment,null,u&&k("div",{onClick:oC,css:aC}),r(A))}function lC(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var cC=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:lC},fC=function(r){var u=r.name,s=r.onFocus;return k("input",{required:!0,name:u,tabIndex:-1,"aria-hidden":"true",onFocus:s,css:cC,value:"",onChange:function(){}})},dC=fC;function Fo(i){var r;return typeof window<"u"&&window.navigator!=null?i.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function gC(){return Fo(/^iPhone/i)}function Sc(){return Fo(/^Mac/i)}function pC(){return Fo(/^iPad/i)||Sc()&&navigator.maxTouchPoints>1}function hC(){return gC()||pC()}function bC(){return Sc()||hC()}var vC=function(r){return r.label},wc=function(r){return r.label},Gc=function(r){return r.value},mC=function(r){return!!r.isDisabled},IC={clearIndicator:e1,container:ZI,control:a1,dropdownIndicator:KI,group:f1,groupHeading:g1,indicatorsContainer:zI,indicatorSeparator:t1,input:v1,loadingIndicator:u1,loadingMessage:WI,menu:BI,menuList:_I,menuPortal:LI,multiValue:x1,multiValueLabel:y1,multiValueRemove:E1,noOptionsMessage:NI,option:B1,placeholder:P1,singleValue:N1,valueContainer:YI},CC={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},AC=4,Rc=4,xC=38,yC=Rc*2,EC={baseUnit:Rc,controlHeight:xC,menuGutter:yC},so={borderRadius:AC,colors:CC,spacing:EC},SC={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Sl(),captureMenuScroll:!Sl(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:q1(),formatGroupLabel:vC,getOptionLabel:wc,getOptionValue:Gc,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:mC,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!CI(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(r){var u=r.count;return"".concat(u," result").concat(u!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Wl(i,r,u,s){var o=Tc(i,r,u),c=Oc(i,r,u),d=Bc(i,r),b=Gi(i,r);return{type:"option",data:r,isDisabled:o,isSelected:c,label:d,value:b,index:s}}function mi(i,r){return i.options.map(function(u,s){if("options"in u){var o=u.options.map(function(d,b){return Wl(i,d,r,b)}).filter(function(d){return Xl(i,d)});return o.length>0?{type:"group",data:u,options:o,index:s}:void 0}var c=Wl(i,u,r,s);return Xl(i,c)?c:void 0}).filter(yI)}function Fc(i){return i.reduce(function(r,u){return u.type==="group"?r.push.apply(r,Ht(u.options.map(function(s){return s.data}))):r.push(u.data),r},[])}function Ml(i,r){return i.reduce(function(u,s){return s.type==="group"?u.push.apply(u,Ht(s.options.map(function(o){return{data:o.data,id:"".concat(r,"-").concat(s.index,"-").concat(o.index)}}))):u.push({data:s.data,id:"".concat(r,"-").concat(s.index)}),u},[])}function wC(i,r){return Fc(mi(i,r))}function Xl(i,r){var u=i.inputValue,s=u===void 0?"":u,o=r.data,c=r.isSelected,d=r.label,b=r.value;return(!_c(i)||!c)&&Pc(i,{label:d,value:b,data:o},s)}function GC(i,r){var u=i.focusedValue,s=i.selectValue,o=s.indexOf(u);if(o>-1){var c=r.indexOf(u);if(c>-1)return u;if(o<r.length)return r[o]}return null}function RC(i,r){var u=i.focusedOption;return u&&r.indexOf(u)>-1?u:r[0]}var lo=function(r,u){var s,o=(s=r.find(function(c){return c.data===u}))===null||s===void 0?void 0:s.id;return o||null},Bc=function(r,u){return r.getOptionLabel(u)},Gi=function(r,u){return r.getOptionValue(u)};function Tc(i,r,u){return typeof i.isOptionDisabled=="function"?i.isOptionDisabled(r,u):!1}function Oc(i,r,u){if(u.indexOf(r)>-1)return!0;if(typeof i.isOptionSelected=="function")return i.isOptionSelected(r,u);var s=Gi(i,r);return u.some(function(o){return Gi(i,o)===s})}function Pc(i,r,u){return i.filterOption?i.filterOption(r,u):!0}var _c=function(r){var u=r.hideSelectedOptions,s=r.isMulti;return u===void 0?s:u},FC=1,Vc=(function(i){Dv(u,i);var r=Yv(u);function u(s){var o;if(Xv(this,u),o=r.call(this,s),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(g){o.controlRef=g},o.focusedOptionRef=null,o.getFocusedOptionRef=function(g){o.focusedOptionRef=g},o.menuListRef=null,o.getMenuListRef=function(g){o.menuListRef=g},o.inputRef=null,o.getInputRef=function(g){o.inputRef=g},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(g,h){var m=o.props,A=m.onChange,B=m.name;h.name=B,o.ariaOnChange(g,h),A(g,h)},o.setValue=function(g,h,m){var A=o.props,B=A.closeMenuOnSelect,E=A.isMulti,F=A.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:F}),B&&(o.setState({inputIsHiddenAfterUpdate:!E}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(g,{action:h,option:m})},o.selectOption=function(g){var h=o.props,m=h.blurInputOnSelect,A=h.isMulti,B=h.name,E=o.state.selectValue,F=A&&o.isOptionSelected(g,E),G=o.isOptionDisabled(g,E);if(F){var S=o.getOptionValue(g);o.setValue(E.filter(function(T){return o.getOptionValue(T)!==S}),"deselect-option",g)}else if(!G)A?o.setValue([].concat(Ht(E),[g]),"select-option",g):o.setValue(g,"select-option");else{o.ariaOnChange(g,{action:"select-option",option:g,name:B});return}m&&o.blurInput()},o.removeValue=function(g){var h=o.props.isMulti,m=o.state.selectValue,A=o.getOptionValue(g),B=m.filter(function(F){return o.getOptionValue(F)!==A}),E=pr(h,B,B[0]||null);o.onChange(E,{action:"remove-value",removedValue:g}),o.focusInput()},o.clearValue=function(){var g=o.state.selectValue;o.onChange(pr(o.props.isMulti,[],null),{action:"clear",removedValues:g})},o.popValue=function(){var g=o.props.isMulti,h=o.state.selectValue,m=h[h.length-1],A=h.slice(0,h.length-1),B=pr(g,A,A[0]||null);m&&o.onChange(B,{action:"pop-value",removedValue:m})},o.getFocusedOptionId=function(g){return lo(o.state.focusableOptionsWithIds,g)},o.getFocusableOptionsWithIds=function(){return Ml(mi(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var g=arguments.length,h=new Array(g),m=0;m<g;m++)h[m]=arguments[m];return pI.apply(void 0,[o.props.classNamePrefix].concat(h))},o.getOptionLabel=function(g){return Bc(o.props,g)},o.getOptionValue=function(g){return Gi(o.props,g)},o.getStyles=function(g,h){var m=o.props.unstyled,A=IC[g](h,m);A.boxSizing="border-box";var B=o.props.styles[g];return B?B(A,h):A},o.getClassNames=function(g,h){var m,A;return(m=(A=o.props.classNames)[g])===null||m===void 0?void 0:m.call(A,h)},o.getElementId=function(g){return"".concat(o.state.instancePrefix,"-").concat(g)},o.getComponents=function(){return L1(o.props)},o.buildCategorizedOptions=function(){return mi(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return Fc(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(g,h){o.setState({ariaSelection:z({value:g},h)})},o.onMenuMouseDown=function(g){g.button===0&&(g.stopPropagation(),g.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(g){o.blockOptionHover=!1},o.onControlMouseDown=function(g){if(!g.defaultPrevented){var h=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?g.target.tagName!=="INPUT"&&g.target.tagName!=="TEXTAREA"&&o.onMenuClose():h&&o.openMenu("first"):(h&&(o.openAfterFocus=!0),o.focusInput()),g.target.tagName!=="INPUT"&&g.target.tagName!=="TEXTAREA"&&g.preventDefault()}},o.onDropdownIndicatorMouseDown=function(g){if(!(g&&g.type==="mousedown"&&g.button!==0)&&!o.props.isDisabled){var h=o.props,m=h.isMulti,A=h.menuIsOpen;o.focusInput(),A?(o.setState({inputIsHiddenAfterUpdate:!m}),o.onMenuClose()):o.openMenu("first"),g.preventDefault()}},o.onClearIndicatorMouseDown=function(g){g&&g.type==="mousedown"&&g.button!==0||(o.clearValue(),g.preventDefault(),o.openAfterFocus=!1,g.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(g){typeof o.props.closeMenuOnScroll=="boolean"?g.target instanceof HTMLElement&&Oi(g.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(g)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(g){var h=g.touches,m=h&&h.item(0);m&&(o.initialTouchX=m.clientX,o.initialTouchY=m.clientY,o.userIsDragging=!1)},o.onTouchMove=function(g){var h=g.touches,m=h&&h.item(0);if(m){var A=Math.abs(m.clientX-o.initialTouchX),B=Math.abs(m.clientY-o.initialTouchY),E=5;o.userIsDragging=A>E||B>E}},o.onTouchEnd=function(g){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(g.target)&&o.menuListRef&&!o.menuListRef.contains(g.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(g){o.userIsDragging||o.onControlMouseDown(g)},o.onClearIndicatorTouchEnd=function(g){o.userIsDragging||o.onClearIndicatorMouseDown(g)},o.onDropdownIndicatorTouchEnd=function(g){o.userIsDragging||o.onDropdownIndicatorMouseDown(g)},o.handleInputChange=function(g){var h=o.props.inputValue,m=g.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(m,{action:"input-change",prevInputValue:h}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(g){o.props.onFocus&&o.props.onFocus(g),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(g){var h=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(g),o.onInputChange("",{action:"input-blur",prevInputValue:h}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(g){if(!(o.blockOptionHover||o.state.focusedOption===g)){var h=o.getFocusableOptions(),m=h.indexOf(g);o.setState({focusedOption:g,focusedOptionId:m>-1?o.getFocusedOptionId(g):null})}},o.shouldHideSelectedOptions=function(){return _c(o.props)},o.onValueInputFocus=function(g){g.preventDefault(),g.stopPropagation(),o.focus()},o.onKeyDown=function(g){var h=o.props,m=h.isMulti,A=h.backspaceRemovesValue,B=h.escapeClearsValue,E=h.inputValue,F=h.isClearable,G=h.isDisabled,S=h.menuIsOpen,T=h.onKeyDown,X=h.tabSelectsValue,N=h.openMenuOnFocus,W=o.state,w=W.focusedOption,D=W.focusedValue,M=W.selectValue;if(!G&&!(typeof T=="function"&&(T(g),g.defaultPrevented))){switch(o.blockOptionHover=!0,g.key){case"ArrowLeft":if(!m||E)return;o.focusValue("previous");break;case"ArrowRight":if(!m||E)return;o.focusValue("next");break;case"Delete":case"Backspace":if(E)return;if(D)o.removeValue(D);else{if(!A)return;m?o.popValue():F&&o.clearValue()}break;case"Tab":if(o.isComposing||g.shiftKey||!S||!X||!w||N&&o.isOptionSelected(w,M))return;o.selectOption(w);break;case"Enter":if(g.keyCode===229)break;if(S){if(!w||o.isComposing)return;o.selectOption(w);break}return;case"Escape":S?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:E}),o.onMenuClose()):F&&B&&o.clearValue();break;case" ":if(E)return;if(!S){o.openMenu("first");break}if(!w)return;o.selectOption(w);break;case"ArrowUp":S?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":S?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!S)return;o.focusOption("pageup");break;case"PageDown":if(!S)return;o.focusOption("pagedown");break;case"Home":if(!S)return;o.focusOption("first");break;case"End":if(!S)return;o.focusOption("last");break;default:return}g.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++FC),o.state.selectValue=Si(s.value),s.menuIsOpen&&o.state.selectValue.length){var c=o.getFocusableOptionsWithIds(),d=o.buildFocusableOptions(),b=d.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=c,o.state.focusedOption=d[b],o.state.focusedOptionId=lo(c,d[b])}return o}return Lv(u,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&El(this.menuListRef,this.focusedOptionRef),bC()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var c=this.props,d=c.isDisabled,b=c.menuIsOpen,g=this.state.isFocused;(g&&!d&&o.isDisabled||g&&b&&!o.menuIsOpen)&&this.focusInput(),g&&d&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!g&&!d&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(El(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,c){this.props.onInputChange(o,c)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var c=this,d=this.state,b=d.selectValue,g=d.isFocused,h=this.buildFocusableOptions(),m=o==="first"?0:h.length-1;if(!this.props.isMulti){var A=h.indexOf(b[0]);A>-1&&(m=A)}this.scrollToFocusedOptionOnUpdate=!(g&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:h[m],focusedOptionId:this.getFocusedOptionId(h[m])},function(){return c.onMenuOpen()})}},{key:"focusValue",value:function(o){var c=this.state,d=c.selectValue,b=c.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var g=d.indexOf(b);b||(g=-1);var h=d.length-1,m=-1;if(d.length){switch(o){case"previous":g===0?m=0:g===-1?m=h:m=g-1;break;case"next":g>-1&&g<h&&(m=g+1);break}this.setState({inputIsHidden:m!==-1,focusedValue:d[m]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",c=this.props.pageSize,d=this.state.focusedOption,b=this.getFocusableOptions();if(b.length){var g=0,h=b.indexOf(d);d||(h=-1),o==="up"?g=h>0?h-1:b.length-1:o==="down"?g=(h+1)%b.length:o==="pageup"?(g=h-c,g<0&&(g=0)):o==="pagedown"?(g=h+c,g>b.length-1&&(g=b.length-1)):o==="last"&&(g=b.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:b[g],focusedValue:null,focusedOptionId:this.getFocusedOptionId(b[g])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(so):z(z({},so),this.props.theme):so}},{key:"getCommonProps",value:function(){var o=this.clearValue,c=this.cx,d=this.getStyles,b=this.getClassNames,g=this.getValue,h=this.selectOption,m=this.setValue,A=this.props,B=A.isMulti,E=A.isRtl,F=A.options,G=this.hasValue();return{clearValue:o,cx:c,getStyles:d,getClassNames:b,getValue:g,hasValue:G,isMulti:B,isRtl:E,options:F,selectOption:h,selectProps:A,setValue:m,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,c=o.isClearable,d=o.isMulti;return c===void 0?d:c}},{key:"isOptionDisabled",value:function(o,c){return Tc(this.props,o,c)}},{key:"isOptionSelected",value:function(o,c){return Oc(this.props,o,c)}},{key:"filterOption",value:function(o,c){return Pc(this.props,o,c)}},{key:"formatOptionLabel",value:function(o,c){if(typeof this.props.formatOptionLabel=="function"){var d=this.props.inputValue,b=this.state.selectValue;return this.props.formatOptionLabel(o,{context:c,inputValue:d,selectValue:b})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,c=o.isDisabled,d=o.isSearchable,b=o.inputId,g=o.inputValue,h=o.tabIndex,m=o.form,A=o.menuIsOpen,B=o.required,E=this.getComponents(),F=E.Input,G=this.state,S=G.inputIsHidden,T=G.ariaSelection,X=this.commonProps,N=b||this.getElementId("input"),W=z(z(z({"aria-autocomplete":"list","aria-expanded":A,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":B,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},A&&{"aria-controls":this.getElementId("listbox")}),!d&&{"aria-readonly":!0}),this.hasValue()?(T==null?void 0:T.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return d?te.createElement(F,K({},X,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:N,innerRef:this.getInputRef,isDisabled:c,isHidden:S,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:h,form:m,type:"text",value:g},W)):te.createElement(nC,K({id:N,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ei,onFocus:this.onInputFocus,disabled:c,tabIndex:h,inputMode:"none",form:m,value:""},W))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,c=this.getComponents(),d=c.MultiValue,b=c.MultiValueContainer,g=c.MultiValueLabel,h=c.MultiValueRemove,m=c.SingleValue,A=c.Placeholder,B=this.commonProps,E=this.props,F=E.controlShouldRenderValue,G=E.isDisabled,S=E.isMulti,T=E.inputValue,X=E.placeholder,N=this.state,W=N.selectValue,w=N.focusedValue,D=N.isFocused;if(!this.hasValue()||!F)return T?null:te.createElement(A,K({},B,{key:"placeholder",isDisabled:G,isFocused:D,innerProps:{id:this.getElementId("placeholder")}}),X);if(S)return W.map(function(J,ue){var ve=J===w,Re="".concat(o.getOptionLabel(J),"-").concat(o.getOptionValue(J));return te.createElement(d,K({},B,{components:{Container:b,Label:g,Remove:h},isFocused:ve,isDisabled:G,key:Re,index:ue,removeProps:{onClick:function(){return o.removeValue(J)},onTouchEnd:function(){return o.removeValue(J)},onMouseDown:function(Oe){Oe.preventDefault()}},data:J}),o.formatOptionLabel(J,"value"))});if(T)return null;var M=W[0];return te.createElement(m,K({},B,{data:M,isDisabled:G}),this.formatOptionLabel(M,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),c=o.ClearIndicator,d=this.commonProps,b=this.props,g=b.isDisabled,h=b.isLoading,m=this.state.isFocused;if(!this.isClearable()||!c||g||!this.hasValue()||h)return null;var A={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return te.createElement(c,K({},d,{innerProps:A,isFocused:m}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),c=o.LoadingIndicator,d=this.commonProps,b=this.props,g=b.isDisabled,h=b.isLoading,m=this.state.isFocused;if(!c||!h)return null;var A={"aria-hidden":"true"};return te.createElement(c,K({},d,{innerProps:A,isDisabled:g,isFocused:m}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),c=o.DropdownIndicator,d=o.IndicatorSeparator;if(!c||!d)return null;var b=this.commonProps,g=this.props.isDisabled,h=this.state.isFocused;return te.createElement(d,K({},b,{isDisabled:g,isFocused:h}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),c=o.DropdownIndicator;if(!c)return null;var d=this.commonProps,b=this.props.isDisabled,g=this.state.isFocused,h={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return te.createElement(c,K({},d,{innerProps:h,isDisabled:b,isFocused:g}))}},{key:"renderMenu",value:function(){var o=this,c=this.getComponents(),d=c.Group,b=c.GroupHeading,g=c.Menu,h=c.MenuList,m=c.MenuPortal,A=c.LoadingMessage,B=c.NoOptionsMessage,E=c.Option,F=this.commonProps,G=this.state.focusedOption,S=this.props,T=S.captureMenuScroll,X=S.inputValue,N=S.isLoading,W=S.loadingMessage,w=S.minMenuHeight,D=S.maxMenuHeight,M=S.menuIsOpen,J=S.menuPlacement,ue=S.menuPosition,ve=S.menuPortalTarget,Re=S.menuShouldBlockScroll,he=S.menuShouldScrollIntoView,Oe=S.noOptionsMessage,Pe=S.onMenuScrollToTop,me=S.onMenuScrollToBottom;if(!M)return null;var Ie=function(He,Ke){var we=He.type,_e=He.data,sn=He.isDisabled,Me=He.isSelected,ln=He.label,ht=He.value,Pn=G===_e,H=sn?void 0:function(){return o.onOptionHover(_e)},Ln=sn?void 0:function(){return o.selectOption(_e)},Ve="".concat(o.getElementId("option"),"-").concat(Ke),cn={id:Ve,onClick:Ln,onMouseMove:H,onMouseOver:H,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:Me};return te.createElement(E,K({},F,{innerProps:cn,data:_e,isDisabled:sn,isSelected:Me,key:Ve,label:ln,type:we,value:ht,isFocused:Pn,innerRef:Pn?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(He.data,"menu"))},Fe;if(this.hasOptions())Fe=this.getCategorizedOptions().map(function(Ae){if(Ae.type==="group"){var He=Ae.data,Ke=Ae.options,we=Ae.index,_e="".concat(o.getElementId("group"),"-").concat(we),sn="".concat(_e,"-heading");return te.createElement(d,K({},F,{key:_e,data:He,options:Ke,Heading:b,headingProps:{id:sn,data:Ae.data},label:o.formatGroupLabel(Ae.data)}),Ae.options.map(function(Me){return Ie(Me,"".concat(we,"-").concat(Me.index))}))}else if(Ae.type==="option")return Ie(Ae,"".concat(Ae.index))});else if(N){var Ce=W({inputValue:X});if(Ce===null)return null;Fe=te.createElement(A,F,Ce)}else{var an=Oe({inputValue:X});if(an===null)return null;Fe=te.createElement(B,F,an)}var De={minMenuHeight:w,maxMenuHeight:D,menuPlacement:J,menuPosition:ue,menuShouldScrollIntoView:he},Ze=te.createElement(TI,K({},F,De),function(Ae){var He=Ae.ref,Ke=Ae.placerProps,we=Ke.placement,_e=Ke.maxHeight;return te.createElement(g,K({},F,De,{innerRef:He,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:N,placement:we}),te.createElement(sC,{captureEnabled:T,onTopArrive:Pe,onBottomArrive:me,lockEnabled:Re},function(sn){return te.createElement(h,K({},F,{innerRef:function(ln){o.getMenuListRef(ln),sn(ln)},innerProps:{role:"listbox","aria-multiselectable":F.isMulti,id:o.getElementId("listbox")},isLoading:N,maxHeight:_e,focusedOption:G}),Fe)}))});return ve||ue==="fixed"?te.createElement(m,K({},F,{appendTo:ve,controlElement:this.controlRef,menuPlacement:J,menuPosition:ue}),Ze):Ze}},{key:"renderFormField",value:function(){var o=this,c=this.props,d=c.delimiter,b=c.isDisabled,g=c.isMulti,h=c.name,m=c.required,A=this.state.selectValue;if(m&&!this.hasValue()&&!b)return te.createElement(dC,{name:h,onFocus:this.onValueInputFocus});if(!(!h||b))if(g)if(d){var B=A.map(function(G){return o.getOptionValue(G)}).join(d);return te.createElement("input",{name:h,type:"hidden",value:B})}else{var E=A.length>0?A.map(function(G,S){return te.createElement("input",{key:"i-".concat(S),name:h,type:"hidden",value:o.getOptionValue(G)})}):te.createElement("input",{name:h,type:"hidden",value:""});return te.createElement("div",null,E)}else{var F=A[0]?this.getOptionValue(A[0]):"";return te.createElement("input",{name:h,type:"hidden",value:F})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,c=this.state,d=c.ariaSelection,b=c.focusedOption,g=c.focusedValue,h=c.isFocused,m=c.selectValue,A=this.getFocusableOptions();return te.createElement(j1,K({},o,{id:this.getElementId("live-region"),ariaSelection:d,focusedOption:b,focusedValue:g,isFocused:h,selectValue:m,focusableOptions:A,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),c=o.Control,d=o.IndicatorsContainer,b=o.SelectContainer,g=o.ValueContainer,h=this.props,m=h.className,A=h.id,B=h.isDisabled,E=h.menuIsOpen,F=this.state.isFocused,G=this.commonProps=this.getCommonProps();return te.createElement(b,K({},G,{className:m,innerProps:{id:A,onKeyDown:this.onKeyDown},isDisabled:B,isFocused:F}),this.renderLiveRegion(),te.createElement(c,K({},G,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:B,isFocused:F,menuIsOpen:E}),te.createElement(g,K({},G,{isDisabled:B}),this.renderPlaceholderOrValue(),this.renderInput()),te.createElement(d,K({},G,{isDisabled:B}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,c){var d=c.prevProps,b=c.clearFocusValueOnUpdate,g=c.inputIsHiddenAfterUpdate,h=c.ariaSelection,m=c.isFocused,A=c.prevWasFocused,B=c.instancePrefix,E=o.options,F=o.value,G=o.menuIsOpen,S=o.inputValue,T=o.isMulti,X=Si(F),N={};if(d&&(F!==d.value||E!==d.options||G!==d.menuIsOpen||S!==d.inputValue)){var W=G?wC(o,X):[],w=G?Ml(mi(o,X),"".concat(B,"-option")):[],D=b?GC(c,X):null,M=RC(c,W),J=lo(w,M);N={selectValue:X,focusedOption:M,focusedOptionId:J,focusableOptionsWithIds:w,focusedValue:D,clearFocusValueOnUpdate:!1}}var ue=g!=null&&o!==d?{inputIsHidden:g,inputIsHiddenAfterUpdate:void 0}:{},ve=h,Re=m&&A;return m&&!Re&&(ve={value:pr(T,X,X[0]||null),options:X,action:"initial-input-focus"},Re=!A),(h==null?void 0:h.action)==="initial-input-focus"&&(ve=null),z(z(z({},N),ue),{},{prevProps:o,ariaSelection:ve,prevWasFocused:Re})}}]),u})(_.Component);Vc.defaultProps=SC;var BC=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function TC(i){var r=i.defaultOptions,u=r===void 0?!1:r,s=i.cacheOptions,o=s===void 0?!1:s,c=i.loadOptions;i.options;var d=i.isLoading,b=d===void 0?!1:d,g=i.onInputChange,h=i.filterOption,m=h===void 0?null:h,A=Xn(i,BC),B=A.inputValue,E=_.useRef(void 0),F=_.useRef(!1),G=_.useState(Array.isArray(u)?u:void 0),S=Ue(G,2),T=S[0],X=S[1],N=_.useState(typeof B<"u"?B:""),W=Ue(N,2),w=W[0],D=W[1],M=_.useState(u===!0),J=Ue(M,2),ue=J[0],ve=J[1],Re=_.useState(void 0),he=Ue(Re,2),Oe=he[0],Pe=he[1],me=_.useState([]),Ie=Ue(me,2),Fe=Ie[0],Ce=Ie[1],an=_.useState(!1),De=Ue(an,2),Ze=De[0],Ae=De[1],He=_.useState({}),Ke=Ue(He,2),we=Ke[0],_e=Ke[1],sn=_.useState(void 0),Me=Ue(sn,2),ln=Me[0],ht=Me[1],Pn=_.useState(void 0),H=Ue(Pn,2),Ln=H[0],Ve=H[1];o!==Ln&&(_e({}),Ve(o)),u!==ln&&(X(Array.isArray(u)?u:void 0),ht(u)),_.useEffect(function(){return F.current=!0,function(){F.current=!1}},[]);var cn=_.useCallback(function(it,ut){if(!c)return ut();var Ye=c(it,ut);Ye&&typeof Ye.then=="function"&&Ye.then(ut,function(){return ut()})},[c]);_.useEffect(function(){u===!0&&cn(w,function(it){F.current&&(X(it||[]),ve(!!E.current))})},[]);var Pi=_.useCallback(function(it,ut){var Ye=hI(it,ut,g);if(!Ye){E.current=void 0,D(""),Pe(""),Ce([]),ve(!1),Ae(!1);return}if(o&&we[Ye])D(Ye),Pe(Ye),Ce(we[Ye]),ve(!1),Ae(!1);else{var bn=E.current={};D(Ye),ve(!0),Ae(!Oe),cn(Ye,function(kn){F&&bn===E.current&&(E.current=void 0,ve(!1),Pe(Ye),Ce(kn||[]),Ae(!1),_e(kn?z(z({},we),{},Zt({},Ye,kn)):we))})}},[o,cn,Oe,we,g]),_n=Ze?[]:w&&Oe?Fe:T||[];return z(z({},A),{},{options:_n,isLoading:ue||b,onInputChange:Pi,filterOption:m})}var OC=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function PC(i){var r=i.defaultInputValue,u=r===void 0?"":r,s=i.defaultMenuIsOpen,o=s===void 0?!1:s,c=i.defaultValue,d=c===void 0?null:c,b=i.inputValue,g=i.menuIsOpen,h=i.onChange,m=i.onInputChange,A=i.onMenuClose,B=i.onMenuOpen,E=i.value,F=Xn(i,OC),G=_.useState(b!==void 0?b:u),S=Ue(G,2),T=S[0],X=S[1],N=_.useState(g!==void 0?g:o),W=Ue(N,2),w=W[0],D=W[1],M=_.useState(E!==void 0?E:d),J=Ue(M,2),ue=J[0],ve=J[1],Re=_.useCallback(function(Ce,an){typeof h=="function"&&h(Ce,an),ve(Ce)},[h]),he=_.useCallback(function(Ce,an){var De;typeof m=="function"&&(De=m(Ce,an)),X(De!==void 0?De:Ce)},[m]),Oe=_.useCallback(function(){typeof B=="function"&&B(),D(!0)},[B]),Pe=_.useCallback(function(){typeof A=="function"&&A(),D(!1)},[A]),me=b!==void 0?b:T,Ie=g!==void 0?g:w,Fe=E!==void 0?E:ue;return z(z({},F),{},{inputValue:me,menuIsOpen:Ie,onChange:Re,onInputChange:he,onMenuClose:Pe,onMenuOpen:Oe,value:Fe})}var _C=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Ll=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",u=arguments.length>1?arguments[1]:void 0,s=arguments.length>2?arguments[2]:void 0,o=String(r).toLowerCase(),c=String(s.getOptionValue(u)).toLowerCase(),d=String(s.getOptionLabel(u)).toLowerCase();return c===o||d===o},co={formatCreateLabel:function(r){return'Create "'.concat(r,'"')},isValidNewOption:function(r,u,s,o){return!(!r||u.some(function(c){return Ll(r,c,o)})||s.some(function(c){return Ll(r,c,o)}))},getNewOptionData:function(r,u){return{label:u,value:r,__isNew__:!0}}};function VC(i){var r=i.allowCreateWhileLoading,u=r===void 0?!1:r,s=i.createOptionPosition,o=s===void 0?"last":s,c=i.formatCreateLabel,d=c===void 0?co.formatCreateLabel:c,b=i.isValidNewOption,g=b===void 0?co.isValidNewOption:b,h=i.getNewOptionData,m=h===void 0?co.getNewOptionData:h,A=i.onCreateOption,B=i.options,E=B===void 0?[]:B,F=i.onChange,G=Xn(i,_C),S=G.getOptionValue,T=S===void 0?Gc:S,X=G.getOptionLabel,N=X===void 0?wc:X,W=G.inputValue,w=G.isLoading,D=G.isMulti,M=G.value,J=G.name,ue=_.useMemo(function(){return g(W,Si(M),E,{getOptionValue:T,getOptionLabel:N})?m(W,d(W)):void 0},[d,m,N,T,W,g,E,M]),ve=_.useMemo(function(){return(u||!w)&&ue?o==="first"?[ue].concat(Ht(E)):[].concat(Ht(E),[ue]):E},[u,o,w,ue,E]),Re=_.useCallback(function(he,Oe){if(Oe.action!=="select-option")return F(he,Oe);var Pe=Array.isArray(he)?he:[he];if(Pe[Pe.length-1]===ue){if(A)A(W);else{var me=m(W,W),Ie={action:"create-option",name:J,option:me};F(pr(D,[].concat(Ht(Si(M)),[me]),me),Ie)}return}F(he,Oe)},[m,W,D,J,ue,A,F,M]);return z(z({},G),{},{options:ve,onChange:Re})}var NC=_.forwardRef(function(i,r){var u=TC(i),s=PC(u),o=VC(s);return te.createElement(Vc,K({ref:r},o))}),WC=NC;function MC({innerProps:i,label:r,isFocused:u,innerRef:s}){return U.jsxs("div",{...i,ref:s,className:Jl(["flex w-fit min-w-full cursor-pointer items-center p-1 text-sm",{"text-grey-50":!u,"bg-grey-900":!u,"bg-primary-hover":u}]),children:[typeof r=="object"?null:U.jsx(tn.FdWebform,{className:"mr-2 h-4 w-4"}),r]})}const XC=({icon:i,label:r,path:u,settingsKey:s})=>{const[o,c]=_.useState(null),d=zt(),b=d.getQodly(),g=d.getWebForms(),h=d.getPreferences()[u][s],m=async A=>{if(!g.length)return await d.actions.fetchFolderContentWithoutExpanding(On.FolderRootPath.WEBFORMS),[];if(A==="")return g.map(({name:E})=>({label:E,value:E})).sort((E,F)=>E.label.localeCompare(F.label));const B=g.map(({name:E})=>({label:E,value:E})).filter(E=>A&&E.label.toLowerCase().includes(A.toLowerCase()));return pi.sortBy(B,[({label:E})=>E==null?void 0:E.toLowerCase()])};return U.jsx("div",{"data-cy":"settings-tooltip-behavior-cy",className:"select-none space-y-4 rounded-md p-4 hover:bg-primary-hover",children:U.jsxs("div",{className:"flex items-center",children:[U.jsx("span",{className:"mr-3 flex h-6 w-6 items-center justify-center",children:_.createElement(i,{className:"w-full h-full"})}),U.jsx("div",{className:"text-sm",children:r}),U.jsx("span",{className:"ml-auto",children:U.jsx("div",{className:"flex min-w-0 items-center",children:U.jsxs("div",{className:"relative min-w-0",children:[U.jsx(WC,{className:Jl("flex h-6 min-w-0 text-sm",{"focus:ring-primary-dark":!o,"focus:ring-red-500":o}),onChange:async(A,B)=>{c(null);const E=B.action==="clear"?"":(A==null?void 0:A.value)??"";if(B.action==="create-option"){if(!A)return;const F=d.findNodeByPath(On.FolderRootPath.WEBFORMS),G=E.trim();try{On.validateName(G)}catch(S){c({message:S.message});return}d.actions.createNewFileAndOpen({fileName:A.value,path:On.FolderRootPath.WEBFORMS,type:On.FileFolderType.WEBFORMS,parentNode:F,qodly:b})}d.actions.setSetting({path:u,settingsKey:s,value:E})},isClearable:!0,defaultOptions:!0,loadOptions:m,styles:Vv,components:{Option:MC},placeholder:"Page",value:h?{label:h,value:h}:null,onBlur:()=>{c(null)}},g.length),o&&U.jsx("div",{className:"absolute inset-x-0 top-full bg-red-300 px-1 text-xs text-red-600",children:o.message})]})})})]})})},LC={switch:_v,"icon-select":Ov,number:Pv,"weform-selector":XC},Dl=(i,r="session")=>Object.entries(i[r]).map(([u,s],o)=>{const c=LC[s.field];return _.createElement(c,{...s,key:o,settingsKey:u,path:r})}),DC=({currentTab:i})=>{const u=zt().getQodly(),s={session:{"webforms.renderer.showPopOver":{label:"Show Renderer Pop Over",icon:tn.FdInfoBold,field:"switch"},"webforms.renderer.showUnsavedPopOver":{label:"Show Unsaved Files Pop Over",icon:tn.FdInfoBold,field:"switch"},"webforms.tooltip.behavior":{label:"Tooltip Behavior",icon:tn.FdTooltip,field:"icon-select",options:[{icon:tn.FdEye,value:Xe.ETooltipBehavior.SHOW_AFTER_TIMEOUT,tooltip:"Show after timeout"},{icon:tn.FdHidden,value:Xe.ETooltipBehavior.HIDE_AFTER_TIMEOUT,tooltip:"Hide after timeout"}]},"webforms.tooltip.timeout":{label:"Tooltip timeout (in seconds)",icon:tn.FdTime,field:"number"},"studio.tips":{label:"Enable Helper Tips",icon:tn.FdMagic,field:"switch"},...u?{"welcometour.active":{label:"Activate Welcome Tour",icon:tn.FdMagic,field:"switch"}}:{},"studio.enablePreview":{label:"Activate tabs preview mode",icon:tn.FdSameLoaderTab,field:"switch"}},project:{"webforms.renderer.indexPage":{label:"Start page",icon:tn.FdPlaySettings,field:"weform-selector"},"webforms.display-mode":{label:"Default Display Mode",icon:tn.FdWebform,field:"icon-select",options:[{icon:tn.FdCompact,value:Xe.EDisplayMode.COMPACT,tooltip:"Neutral"},{icon:tn.FdAiry,value:Xe.EDisplayMode.AIRY,tooltip:"Airy"}]}}};return U.jsx("div",{className:"mx-auto mt-12 max-w-2xl flex-1",children:i==="session"?Dl(s,"session"):Dl(s,"project")})},ZC=({path:i})=>{const r=zt(),u=r.getTabPath(),s=r.getPreferences()[i],{inited:o,lastError:c,reload:d}=ul.useLSP();return u==null||u===""?U.jsx("div",{className:"flex h-full items-center justify-center text-grey-400",children:"Select a file to edit settings as JSON."}):U.jsx(ul.CodeEditor,{path:u,options:{readOnly:!1},initialValue:JSON.stringify(s,null,2),onChange:b=>{r.actions.setSettingsAsText({settings:JSON.parse(b),path:i})},language:"json",lspProps:{inited:o,lastError:c,reload:d}})},HC=()=>{const[i,r]=_.useState("session"),[u]=_.useState("gui");return U.jsx("div",{className:"h-full bg-grey-800 text-white",children:U.jsxs("div",{className:"flex h-full",children:[U.jsx("div",{className:"w-56 border-r border-grey-900 bg-grey-800 py-4",children:U.jsxs("ul",{className:"space-y-1 text-sm",children:[U.jsxs("li",{"data-cy":"settings-user-li-cy",onClick:()=>r("session"),className:`flex cursor-pointer items-center p-2 ${i!=="session"?"text-grey-200 hover:bg-primary-hover hover:text-grey-50":"bg-primary-dark text-grey-50"}`,children:[U.jsx(tn.FdUser,{className:"mr-2 h-5 w-5"})," User"]}),U.jsxs("li",{"data-cy":"settings-application-li-cy",onClick:()=>r("project"),className:`flex cursor-pointer items-center p-2 ${i!=="project"?"text-grey-200 hover:bg-primary-hover hover:text-grey-50":"bg-primary-dark text-grey-50"}`,children:[U.jsx(tn.FdDatabase,{className:"mr-2 h-5 w-5"})," Application"]})]})}),U.jsx("div",{className:"h-full w-full",children:u==="gui"?U.jsx(DC,{currentTab:i}):U.jsx(ZC,{path:i})})]})})};exports.EditorStateAdapterProvider=xv;exports.ReducerAdapterProvider=Fv;exports.SettingsEditor=HC;exports.useReducerAdapter=Bv;exports.useReduxAdapter=Av;
|
|
55
|
+
*/var Ed;function O_(){return Ed||(Ed=1,process.env.NODE_ENV!=="production"&&(function(){var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,d=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,v=r?Symbol.for("react.concurrent_mode"):60111,b=r?Symbol.for("react.forward_ref"):60112,w=r?Symbol.for("react.suspense"):60113,D=r?Symbol.for("react.suspense_list"):60120,T=r?Symbol.for("react.memo"):60115,q=r?Symbol.for("react.lazy"):60116,z=r?Symbol.for("react.block"):60121,S=r?Symbol.for("react.fundamental"):60117,B=r?Symbol.for("react.responder"):60118,y=r?Symbol.for("react.scope"):60119;function k($){return typeof $=="string"||typeof $=="function"||$===a||$===v||$===l||$===s||$===w||$===D||typeof $=="object"&&$!==null&&($.$$typeof===q||$.$$typeof===T||$.$$typeof===u||$.$$typeof===d||$.$$typeof===b||$.$$typeof===S||$.$$typeof===B||$.$$typeof===y||$.$$typeof===z)}function N($){if(typeof $=="object"&&$!==null){var xe=$.$$typeof;switch(xe){case i:var ie=$.type;switch(ie){case f:case v:case a:case l:case s:case w:return ie;default:var Ue=ie&&ie.$$typeof;switch(Ue){case d:case b:case q:case T:case u:return Ue;default:return xe}}case n:return xe}}}var O=f,j=v,re=d,A=u,Q=i,ae=b,ce=a,V=q,ee=T,se=n,ve=l,we=s,me=w,Y=!1;function Ne($){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I($)||N($)===f}function I($){return N($)===v}function F($){return N($)===d}function Z($){return N($)===u}function ne($){return typeof $=="object"&&$!==null&&$.$$typeof===i}function W($){return N($)===b}function J($){return N($)===a}function M($){return N($)===q}function L($){return N($)===T}function oe($){return N($)===n}function ue($){return N($)===l}function le($){return N($)===s}function fe($){return N($)===w}$e.AsyncMode=O,$e.ConcurrentMode=j,$e.ContextConsumer=re,$e.ContextProvider=A,$e.Element=Q,$e.ForwardRef=ae,$e.Fragment=ce,$e.Lazy=V,$e.Memo=ee,$e.Portal=se,$e.Profiler=ve,$e.StrictMode=we,$e.Suspense=me,$e.isAsyncMode=Ne,$e.isConcurrentMode=I,$e.isContextConsumer=F,$e.isContextProvider=Z,$e.isElement=ne,$e.isForwardRef=W,$e.isFragment=J,$e.isLazy=M,$e.isMemo=L,$e.isPortal=oe,$e.isProfiler=ue,$e.isStrictMode=le,$e.isSuspense=fe,$e.isValidElementType=k,$e.typeOf=N})()),$e}var Sd;function Hp(){return Sd||(Sd=1,process.env.NODE_ENV==="production"?us.exports=S_():us.exports=O_()),us.exports}/*
|
|
56
|
+
object-assign
|
|
57
|
+
(c) Sindre Sorhus
|
|
58
|
+
@license MIT
|
|
59
|
+
*/var ds,Od;function N_(){if(Od)return ds;Od=1;var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function a(l){if(l==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(l)}function s(){try{if(!Object.assign)return!1;var l=new String("abc");if(l[5]="de",Object.getOwnPropertyNames(l)[0]==="5")return!1;for(var u={},d=0;d<10;d++)u["_"+String.fromCharCode(d)]=d;var f=Object.getOwnPropertyNames(u).map(function(b){return u[b]});if(f.join("")!=="0123456789")return!1;var v={};return"abcdefghijklmnopqrst".split("").forEach(function(b){v[b]=b}),Object.keys(Object.assign({},v)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ds=s()?Object.assign:function(l,u){for(var d,f=a(l),v,b=1;b<arguments.length;b++){d=Object(arguments[b]);for(var w in d)i.call(d,w)&&(f[w]=d[w]);if(r){v=r(d);for(var D=0;D<v.length;D++)n.call(d,v[D])&&(f[v[D]]=d[v[D]])}}return f},ds}var ps,Nd;function Ps(){if(Nd)return ps;Nd=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ps=r,ps}var Cd,Rd;function jp(){return Rd||(Rd=1,Cd=Function.call.bind(Object.prototype.hasOwnProperty)),Cd}var fs,Dd;function C_(){if(Dd)return fs;Dd=1;var r=function(){};if(process.env.NODE_ENV!=="production"){var i=Ps(),n={},a=jp();r=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function s(l,u,d,f,v){if(process.env.NODE_ENV!=="production"){for(var b in l)if(a(l,b)){var w;try{if(typeof l[b]!="function"){var D=Error((f||"React class")+": "+d+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw D.name="Invariant Violation",D}w=l[b](u,b,f,d,null,i)}catch(q){w=q}if(w&&!(w instanceof Error)&&r((f||"React class")+": type specification of "+d+" `"+b+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof w+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),w instanceof Error&&!(w.message in n)){n[w.message]=!0;var T=v?v():"";r("Failed "+d+" type: "+w.message+(T??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},fs=s,fs}var hs,zd;function R_(){if(zd)return hs;zd=1;var r=Hp(),i=N_(),n=Ps(),a=jp(),s=C_(),l=function(){};process.env.NODE_ENV!=="production"&&(l=function(d){var f="Warning: "+d;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function u(){return null}return hs=function(d,f){var v=typeof Symbol=="function"&&Symbol.iterator,b="@@iterator";function w(I){var F=I&&(v&&I[v]||I[b]);if(typeof F=="function")return F}var D="<<anonymous>>",T={array:B("array"),bigint:B("bigint"),bool:B("boolean"),func:B("function"),number:B("number"),object:B("object"),string:B("string"),symbol:B("symbol"),any:y(),arrayOf:k,element:N(),elementType:O(),instanceOf:j,node:ae(),objectOf:A,oneOf:re,oneOfType:Q,shape:V,exact:ee};function q(I,F){return I===F?I!==0||1/I===1/F:I!==I&&F!==F}function z(I,F){this.message=I,this.data=F&&typeof F=="object"?F:{},this.stack=""}z.prototype=Error.prototype;function S(I){if(process.env.NODE_ENV!=="production")var F={},Z=0;function ne(J,M,L,oe,ue,le,fe){if(oe=oe||D,le=le||L,fe!==n){if(f){var $=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw $.name="Invariant Violation",$}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var xe=oe+":"+L;!F[xe]&&Z<3&&(l("You are manually calling a React.PropTypes validation function for the `"+le+"` prop on `"+oe+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),F[xe]=!0,Z++)}}return M[L]==null?J?M[L]===null?new z("The "+ue+" `"+le+"` is marked as required "+("in `"+oe+"`, but its value is `null`.")):new z("The "+ue+" `"+le+"` is marked as required in "+("`"+oe+"`, but its value is `undefined`.")):null:I(M,L,oe,ue,le)}var W=ne.bind(null,!1);return W.isRequired=ne.bind(null,!0),W}function B(I){function F(Z,ne,W,J,M,L){var oe=Z[ne],ue=we(oe);if(ue!==I){var le=me(oe);return new z("Invalid "+J+" `"+M+"` of type "+("`"+le+"` supplied to `"+W+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return S(F)}function y(){return S(u)}function k(I){function F(Z,ne,W,J,M){if(typeof I!="function")return new z("Property `"+M+"` of component `"+W+"` has invalid PropType notation inside arrayOf.");var L=Z[ne];if(!Array.isArray(L)){var oe=we(L);return new z("Invalid "+J+" `"+M+"` of type "+("`"+oe+"` supplied to `"+W+"`, expected an array."))}for(var ue=0;ue<L.length;ue++){var le=I(L,ue,W,J,M+"["+ue+"]",n);if(le instanceof Error)return le}return null}return S(F)}function N(){function I(F,Z,ne,W,J){var M=F[Z];if(!d(M)){var L=we(M);return new z("Invalid "+W+" `"+J+"` of type "+("`"+L+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return S(I)}function O(){function I(F,Z,ne,W,J){var M=F[Z];if(!r.isValidElementType(M)){var L=we(M);return new z("Invalid "+W+" `"+J+"` of type "+("`"+L+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return S(I)}function j(I){function F(Z,ne,W,J,M){if(!(Z[ne]instanceof I)){var L=I.name||D,oe=Ne(Z[ne]);return new z("Invalid "+J+" `"+M+"` of type "+("`"+oe+"` supplied to `"+W+"`, expected ")+("instance of `"+L+"`."))}return null}return S(F)}function re(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?l("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):l("Invalid argument supplied to oneOf, expected an array.")),u;function F(Z,ne,W,J,M){for(var L=Z[ne],oe=0;oe<I.length;oe++)if(q(L,I[oe]))return null;var ue=JSON.stringify(I,function(le,fe){var $=me(fe);return $==="symbol"?String(fe):fe});return new z("Invalid "+J+" `"+M+"` of value `"+String(L)+"` "+("supplied to `"+W+"`, expected one of "+ue+"."))}return S(F)}function A(I){function F(Z,ne,W,J,M){if(typeof I!="function")return new z("Property `"+M+"` of component `"+W+"` has invalid PropType notation inside objectOf.");var L=Z[ne],oe=we(L);if(oe!=="object")return new z("Invalid "+J+" `"+M+"` of type "+("`"+oe+"` supplied to `"+W+"`, expected an object."));for(var ue in L)if(a(L,ue)){var le=I(L,ue,W,J,M+"."+ue,n);if(le instanceof Error)return le}return null}return S(F)}function Q(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&l("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var F=0;F<I.length;F++){var Z=I[F];if(typeof Z!="function")return l("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(Z)+" at index "+F+"."),u}function ne(W,J,M,L,oe){for(var ue=[],le=0;le<I.length;le++){var fe=I[le],$=fe(W,J,M,L,oe,n);if($==null)return null;$.data&&a($.data,"expectedType")&&ue.push($.data.expectedType)}var xe=ue.length>0?", expected one of type ["+ue.join(", ")+"]":"";return new z("Invalid "+L+" `"+oe+"` supplied to "+("`"+M+"`"+xe+"."))}return S(ne)}function ae(){function I(F,Z,ne,W,J){return se(F[Z])?null:new z("Invalid "+W+" `"+J+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return S(I)}function ce(I,F,Z,ne,W){return new z((I||"React class")+": "+F+" type `"+Z+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+W+"`.")}function V(I){function F(Z,ne,W,J,M){var L=Z[ne],oe=we(L);if(oe!=="object")return new z("Invalid "+J+" `"+M+"` of type `"+oe+"` "+("supplied to `"+W+"`, expected `object`."));for(var ue in I){var le=I[ue];if(typeof le!="function")return ce(W,J,M,ue,me(le));var fe=le(L,ue,W,J,M+"."+ue,n);if(fe)return fe}return null}return S(F)}function ee(I){function F(Z,ne,W,J,M){var L=Z[ne],oe=we(L);if(oe!=="object")return new z("Invalid "+J+" `"+M+"` of type `"+oe+"` "+("supplied to `"+W+"`, expected `object`."));var ue=i({},Z[ne],I);for(var le in ue){var fe=I[le];if(a(I,le)&&typeof fe!="function")return ce(W,J,M,le,me(fe));if(!fe)return new z("Invalid "+J+" `"+M+"` key `"+le+"` supplied to `"+W+"`.\nBad object: "+JSON.stringify(Z[ne],null," ")+`
|
|
60
|
+
Valid keys: `+JSON.stringify(Object.keys(I),null," "));var $=fe(L,le,W,J,M+"."+le,n);if($)return $}return null}return S(F)}function se(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(se);if(I===null||d(I))return!0;var F=w(I);if(F){var Z=F.call(I),ne;if(F!==I.entries){for(;!(ne=Z.next()).done;)if(!se(ne.value))return!1}else for(;!(ne=Z.next()).done;){var W=ne.value;if(W&&!se(W[1]))return!1}}else return!1;return!0;default:return!1}}function ve(I,F){return I==="symbol"?!0:F?F["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&F instanceof Symbol:!1}function we(I){var F=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":ve(F,I)?"symbol":F}function me(I){if(typeof I>"u"||I===null)return""+I;var F=we(I);if(F==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return F}function Y(I){var F=me(I);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function Ne(I){return!I.constructor||!I.constructor.name?D:I.constructor.name}return T.checkPropTypes=s,T.resetWarningCache=s.resetWarningCache,T.PropTypes=T,T},hs}var gs,Md;function D_(){if(Md)return gs;Md=1;var r=Ps();function i(){}function n(){}return n.resetWarningCache=i,gs=function(){function a(u,d,f,v,b,w){if(w!==r){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}}a.isRequired=a;function s(){return a}var l={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:i};return l.PropTypes=l,l},gs}var Td;function z_(){if(Td)return bi.exports;if(Td=1,process.env.NODE_ENV!=="production"){var r=Hp(),i=!0;bi.exports=R_()(r.isElement,i)}else bi.exports=D_()();return bi.exports}var M_=z_();const te=gp(M_);var vs={exports:{}},je={};/**
|
|
61
|
+
* @license React
|
|
62
|
+
* react-is.production.min.js
|
|
63
|
+
*
|
|
64
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the MIT license found in the
|
|
67
|
+
* LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/var Ad;function T_(){if(Ad)return je;Ad=1;var r=Symbol.for("react.element"),i=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),q;q=Symbol.for("react.module.reference");function z(S){if(typeof S=="object"&&S!==null){var B=S.$$typeof;switch(B){case r:switch(S=S.type,S){case n:case s:case a:case v:case b:return S;default:switch(S=S&&S.$$typeof,S){case d:case u:case f:case D:case w:case l:return S;default:return B}}case i:return B}}}return je.ContextConsumer=u,je.ContextProvider=l,je.Element=r,je.ForwardRef=f,je.Fragment=n,je.Lazy=D,je.Memo=w,je.Portal=i,je.Profiler=s,je.StrictMode=a,je.Suspense=v,je.SuspenseList=b,je.isAsyncMode=function(){return!1},je.isConcurrentMode=function(){return!1},je.isContextConsumer=function(S){return z(S)===u},je.isContextProvider=function(S){return z(S)===l},je.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===r},je.isForwardRef=function(S){return z(S)===f},je.isFragment=function(S){return z(S)===n},je.isLazy=function(S){return z(S)===D},je.isMemo=function(S){return z(S)===w},je.isPortal=function(S){return z(S)===i},je.isProfiler=function(S){return z(S)===s},je.isStrictMode=function(S){return z(S)===a},je.isSuspense=function(S){return z(S)===v},je.isSuspenseList=function(S){return z(S)===b},je.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===s||S===a||S===v||S===b||S===T||typeof S=="object"&&S!==null&&(S.$$typeof===D||S.$$typeof===w||S.$$typeof===l||S.$$typeof===u||S.$$typeof===f||S.$$typeof===q||S.getModuleId!==void 0)},je.typeOf=z,je}var Ke={};/**
|
|
69
|
+
* @license React
|
|
70
|
+
* react-is.development.js
|
|
71
|
+
*
|
|
72
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the MIT license found in the
|
|
75
|
+
* LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/var Pd;function A_(){return Pd||(Pd=1,process.env.NODE_ENV!=="production"&&(function(){var r=Symbol.for("react.element"),i=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),q=!1,z=!1,S=!1,B=!1,y=!1,k;k=Symbol.for("react.module.reference");function N(ie){return!!(typeof ie=="string"||typeof ie=="function"||ie===n||ie===s||y||ie===a||ie===v||ie===b||B||ie===T||q||z||S||typeof ie=="object"&&ie!==null&&(ie.$$typeof===D||ie.$$typeof===w||ie.$$typeof===l||ie.$$typeof===u||ie.$$typeof===f||ie.$$typeof===k||ie.getModuleId!==void 0))}function O(ie){if(typeof ie=="object"&&ie!==null){var Ue=ie.$$typeof;switch(Ue){case r:var Fe=ie.type;switch(Fe){case n:case s:case a:case v:case b:return Fe;default:var Qe=Fe&&Fe.$$typeof;switch(Qe){case d:case u:case f:case D:case w:case l:return Qe;default:return Ue}}case i:return Ue}}}var j=u,re=l,A=r,Q=f,ae=n,ce=D,V=w,ee=i,se=s,ve=a,we=v,me=b,Y=!1,Ne=!1;function I(ie){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function F(ie){return Ne||(Ne=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Z(ie){return O(ie)===u}function ne(ie){return O(ie)===l}function W(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===r}function J(ie){return O(ie)===f}function M(ie){return O(ie)===n}function L(ie){return O(ie)===D}function oe(ie){return O(ie)===w}function ue(ie){return O(ie)===i}function le(ie){return O(ie)===s}function fe(ie){return O(ie)===a}function $(ie){return O(ie)===v}function xe(ie){return O(ie)===b}Ke.ContextConsumer=j,Ke.ContextProvider=re,Ke.Element=A,Ke.ForwardRef=Q,Ke.Fragment=ae,Ke.Lazy=ce,Ke.Memo=V,Ke.Portal=ee,Ke.Profiler=se,Ke.StrictMode=ve,Ke.Suspense=we,Ke.SuspenseList=me,Ke.isAsyncMode=I,Ke.isConcurrentMode=F,Ke.isContextConsumer=Z,Ke.isContextProvider=ne,Ke.isElement=W,Ke.isForwardRef=J,Ke.isFragment=M,Ke.isLazy=L,Ke.isMemo=oe,Ke.isPortal=ue,Ke.isProfiler=le,Ke.isStrictMode=fe,Ke.isSuspense=$,Ke.isSuspenseList=xe,Ke.isValidElementType=N,Ke.typeOf=O})()),Ke}var Ld;function P_(){return Ld||(Ld=1,process.env.NODE_ENV==="production"?vs.exports=T_():vs.exports=A_()),vs.exports}var Bd=P_();const Fd=r=>typeof r=="object"&&r!=null&&r.nodeType===1,Wd=(r,i)=>(!i||r!=="hidden")&&r!=="visible"&&r!=="clip",mi=(r,i)=>{if(r.clientHeight<r.scrollHeight||r.clientWidth<r.scrollWidth){const n=getComputedStyle(r,null);return Wd(n.overflowY,i)||Wd(n.overflowX,i)||(a=>{const s=(l=>{if(!l.ownerDocument||!l.ownerDocument.defaultView)return null;try{return l.ownerDocument.defaultView.frameElement}catch{return null}})(a);return!!s&&(s.clientHeight<a.scrollHeight||s.clientWidth<a.scrollWidth)})(r)}return!1},wi=(r,i,n,a,s,l,u,d)=>l<r&&u>i||l>r&&u<i?0:l<=r&&d<=n||u>=i&&d>=n?l-r-a:u>i&&d<n||l<r&&d>n?u-i+s:0,L_=r=>r.parentElement??(r.getRootNode().host||null),B_=(r,i)=>{var n,a,s,l;if(typeof document>"u")return[];const{inline:u,boundary:d,skipOverflowHiddenElements:f}=i,v=typeof d=="function"?d:ee=>ee!==d;if(!Fd(r))throw new TypeError("Invalid target");const b=document.scrollingElement||document.documentElement,w=[];let D=r;for(;Fd(D)&&v(D);){if(D=L_(D),D===b){w.push(D);break}D!=null&&D===document.body&&mi(D)&&!mi(document.documentElement)||D!=null&&mi(D,f)&&w.push(D)}const T=(a=(n=window.visualViewport)==null?void 0:n.width)!=null?a:innerWidth,q=(l=(s=window.visualViewport)==null?void 0:s.height)!=null?l:innerHeight,{scrollX:z,scrollY:S}=window,{height:B,width:y,top:k,right:N,bottom:O,left:j}=r.getBoundingClientRect(),{top:re,right:A,left:Q}=(ee=>{const se=window.getComputedStyle(ee);return{top:parseFloat(se.scrollMarginTop)||0,right:parseFloat(se.scrollMarginRight)||0,bottom:parseFloat(se.scrollMarginBottom)||0,left:parseFloat(se.scrollMarginLeft)||0}})(r);let ae=k-re,ce=u==="center"?j+y/2-Q+A:u==="end"?N+A:j-Q;const V=[];for(let ee=0;ee<w.length;ee++){const se=w[ee],{height:ve,width:we,top:me,right:Y,bottom:Ne,left:I}=se.getBoundingClientRect();if(k>=0&&j>=0&&O<=q&&N<=T&&(se===b&&!mi(se)||k>=me&&O<=Ne&&j>=I&&N<=Y))return V;const F=getComputedStyle(se),Z=parseInt(F.borderLeftWidth,10),ne=parseInt(F.borderTopWidth,10),W=parseInt(F.borderRightWidth,10),J=parseInt(F.borderBottomWidth,10);let M=0,L=0;const oe="offsetWidth"in se?se.offsetWidth-se.clientWidth-Z-W:0,ue="offsetHeight"in se?se.offsetHeight-se.clientHeight-ne-J:0,le="offsetWidth"in se?se.offsetWidth===0?0:we/se.offsetWidth:0,fe="offsetHeight"in se?se.offsetHeight===0?0:ve/se.offsetHeight:0;if(b===se)M=wi(S,S+q,q,ne,J,S+ae,S+ae+B,B),L=u==="start"?ce:u==="center"?ce-T/2:u==="end"?ce-T:wi(z,z+T,T,Z,W,z+ce,z+ce+y,y),M=Math.max(0,M+S),L=Math.max(0,L+z);else{M=wi(me,Ne,ve,ne,J+ue,ae,ae+B,B),L=u==="start"?ce-I-Z:u==="center"?ce-(I+we/2)+oe/2:u==="end"?ce-Y+W+oe:wi(I,Y,we,Z,W+oe,ce,ce+y,y);const{scrollLeft:$,scrollTop:xe}=se;M=fe===0?0:Math.max(0,Math.min(xe+M/fe,se.scrollHeight-ve/fe+ue)),L=le===0?0:Math.max(0,Math.min($+L/le,se.scrollWidth-we/le+oe)),ae+=xe-M,ce+=$-L}V.push({el:se,top:M,left:L})}return V};var Mn=function(){return Mn=Object.assign||function(r){for(var i,n=1,a=arguments.length;n<a;n++){i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}return r},Mn.apply(this,arguments)},F_=0;function Hd(r){return typeof r=="function"?r:Ct}function Ct(){}function Vp(r,i){if(r){var n=B_(r,{boundary:i});n.forEach(function(a){var s=a.el,l=a.top,u=a.left;s.scrollTop=l,s.scrollLeft=u})}}function jd(r,i,n){var a=r===i||i instanceof n.Node&&r.contains&&r.contains(i);return a}function ji(r,i){var n;function a(){n&&clearTimeout(n)}function s(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];a(),n=setTimeout(function(){n=null,r.apply(void 0,u)},i)}return s.cancel=a,s}function Be(){for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];return function(a){for(var s=arguments.length,l=new Array(s>1?s-1:0),u=1;u<s;u++)l[u-1]=arguments[u];return i.some(function(d){return d&&d.apply(void 0,[a].concat(l)),a.preventDownshiftDefault||a.hasOwnProperty("nativeEvent")&&a.nativeEvent.preventDownshiftDefault})}}function sr(){for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];return function(a){i.forEach(function(s){typeof s=="function"?s(a):s&&(s.current=a)})}}function $p(){return String(F_++)}function W_(r){var i=r.isOpen,n=r.resultCount,a=r.previousResultCount;return i?n?n!==a?n+" result"+(n===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function Vd(r,i){return r=Array.isArray(r)?r[0]:r,!r&&i?i:r}function Kp(r){return typeof r.type=="string"}function Up(r){return r.props}function H_(r,i){console.error('The property "'+i+'" is required in "'+r+'"')}var j_=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function xi(r){r===void 0&&(r={});var i={};return j_.forEach(function(n){r.hasOwnProperty(n)&&(i[n]=r[n])}),i}function fo(r,i){return!r||!i?r:Object.keys(r).reduce(function(n,a){return n[a]=Mi(i,a)?i[a]:r[a],n},{})}function Mi(r,i){return r[i]!==void 0}function Tn(r){var i=r.key,n=r.keyCode;return n>=37&&n<=40&&i.indexOf("Arrow")!==0?"Arrow"+i:i}function V_(r){return Object.prototype.toString.call(r)==="[object Object]"}function lr(r,i,n,a,s){s===void 0&&(s=!1);var l=n.length;if(l===0)return-1;var u=l-1;(typeof r!="number"||r<0||r>u)&&(r=i>0?-1:u+1);var d=r+i;d<0?d=s?u:0:d>u&&(d=s?0:u);var f=Vr(d,i<0,n,a,s);return f===-1?r>=l?-1:r:f}function Vr(r,i,n,a,s){s===void 0&&(s=!1);var l=n.length;if(i){for(var u=r;u>=0;u--)if(!a(n[u],u))return u}else for(var d=r;d<l;d++)if(!a(n[d],d))return d;return s?Vr(i?l-1:0,i,n,a):-1}function Ti(r,i,n,a){return a===void 0&&(a=!0),n&&i.some(function(s){return s&&(jd(s,r,n)||a&&jd(s,n.document.activeElement,n))})}var Ls=Ct;process.env.NODE_ENV!=="production"&&(Ls=function(r,i,n){var a="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(r).forEach(function(s){i[s]!==void 0&&n[s]===void 0?console.error('downshift: A component has changed the controlled prop "'+s+'" to be uncontrolled. '+a):i[s]===void 0&&n[s]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+s+'" to be controlled. '+a)})});var $_=ji(function(r){qp(r).textContent=""},500);function qp(r){var i=r.getElementById("a11y-status-message");return i||(i=r.createElement("div"),i.setAttribute("id","a11y-status-message"),i.setAttribute("role","status"),i.setAttribute("aria-live","polite"),i.setAttribute("aria-relevant","additions text"),Object.assign(i.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),r.body.appendChild(i),i)}function Gp(r,i){if(!(!r||!i)){var n=qp(i);n.textContent=r,$_(i)}}function K_(r){var i=r==null?void 0:r.getElementById("a11y-status-message");i&&i.remove()}var Yp=process.env.NODE_ENV!=="production"?"__autocomplete_unknown__":0,Xp=process.env.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,Zp=process.env.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,ki=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,Ei=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,Jp=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,Qp=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,ef=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,tf=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,rf=process.env.NODE_ENV!=="production"?"__autocomplete_click_item__":9,nf=process.env.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,of=process.env.NODE_ENV!=="production"?"__autocomplete_change_input__":11,af=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,Es=process.env.NODE_ENV!=="production"?"__autocomplete_click_button__":13,sf=process.env.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,lf=process.env.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,cf=process.env.NODE_ENV!=="production"?"__autocomplete_touchend__":16,U_=Object.freeze({__proto__:null,blurButton:sf,blurInput:nf,changeInput:of,clickButton:Es,clickItem:rf,controlledPropUpdatedSelectedItem:lf,itemMouseEnter:Zp,keyDownArrowDown:Ei,keyDownArrowUp:ki,keyDownEnd:tf,keyDownEnter:Qp,keyDownEscape:Jp,keyDownHome:ef,keyDownSpaceButton:af,mouseUp:Xp,touchEnd:cf,unknown:Yp}),q_=["refKey","ref"],G_=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],Y_=["onKeyDown","onBlur","onChange","onInput","onChangeText"],X_=["refKey","ref"],Z_=["onMouseMove","onMouseDown","onClick","onPress","index","item"],J_=(function(){var r=(function(i){function n(s){var l;l=i.call(this,s)||this,l.id=l.props.id||"downshift-"+$p(),l.menuId=l.props.menuId||l.id+"-menu",l.labelId=l.props.labelId||l.id+"-label",l.inputId=l.props.inputId||l.id+"-input",l.getItemId=l.props.getItemId||function(y){return l.id+"-item-"+y},l.items=[],l.itemCount=null,l.previousResultCount=0,l.timeoutIds=[],l.internalSetTimeout=function(y,k){var N=setTimeout(function(){l.timeoutIds=l.timeoutIds.filter(function(O){return O!==N}),y()},k);l.timeoutIds.push(N)},l.setItemCount=function(y){l.itemCount=y},l.unsetItemCount=function(){l.itemCount=null},l.isItemDisabled=function(y,k){var N=l.getItemNodeFromIndex(k);return N&&N.hasAttribute("disabled")},l.setHighlightedIndex=function(y,k){y===void 0&&(y=l.props.defaultHighlightedIndex),k===void 0&&(k={}),k=xi(k),l.internalSetState(_e({highlightedIndex:y},k))},l.clearSelection=function(y){l.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:l.props.defaultHighlightedIndex,isOpen:l.props.defaultIsOpen},y)},l.selectItem=function(y,k,N){k=xi(k),l.internalSetState(_e({isOpen:l.props.defaultIsOpen,highlightedIndex:l.props.defaultHighlightedIndex,selectedItem:y,inputValue:l.props.itemToString(y)},k),N)},l.selectItemAtIndex=function(y,k,N){var O=l.items[y];O!=null&&l.selectItem(O,k,N)},l.selectHighlightedItem=function(y,k){return l.selectItemAtIndex(l.getState().highlightedIndex,y,k)},l.internalSetState=function(y,k){var N,O,j={},re=typeof y=="function";return!re&&y.hasOwnProperty("inputValue")&&l.props.onInputValueChange(y.inputValue,_e({},l.getStateAndHelpers(),y)),l.setState(function(A){var Q;A=l.getState(A);var ae=re?y(A):y;ae=l.props.stateReducer(A,ae),N=ae.hasOwnProperty("selectedItem");var ce={};return N&&ae.selectedItem!==A.selectedItem&&(O=ae.selectedItem),(Q=ae).type||(Q.type=Yp),Object.keys(ae).forEach(function(V){A[V]!==ae[V]&&(j[V]=ae[V]),V!=="type"&&(ae[V],Mi(l.props,V)||(ce[V]=ae[V]))}),re&&ae.hasOwnProperty("inputValue")&&l.props.onInputValueChange(ae.inputValue,_e({},l.getStateAndHelpers(),ae)),ce},function(){Hd(k)();var A=Object.keys(j).length>1;A&&l.props.onStateChange(j,l.getStateAndHelpers()),N&&l.props.onSelect(y.selectedItem,l.getStateAndHelpers()),O!==void 0&&l.props.onChange(O,l.getStateAndHelpers()),l.props.onUserAction(j,l.getStateAndHelpers())})},l.rootRef=function(y){return l._rootNode=y},l.getRootProps=function(y,k){var N,O=y===void 0?{}:y,j=O.refKey,re=j===void 0?"ref":j,A=O.ref,Q=Dt(O,q_),ae=k===void 0?{}:k,ce=ae.suppressRefError,V=ce===void 0?!1:ce;l.getRootProps.called=!0,l.getRootProps.refKey=re,l.getRootProps.suppressRefError=V;var ee=l.getState(),se=ee.isOpen;return _e((N={},N[re]=sr(A,l.rootRef),N.role="combobox",N["aria-expanded"]=se,N["aria-haspopup"]="listbox",N["aria-owns"]=se?l.menuId:void 0,N["aria-labelledby"]=l.labelId,N),Q)},l.keyDownHandlers={ArrowDown:function(y){var k=this;if(y.preventDefault(),this.getState().isOpen){var N=y.shiftKey?5:1;this.moveHighlightedIndex(N,{type:Ei})}else this.internalSetState({isOpen:!0,type:Ei},function(){var O=k.getItemCount();if(O>0){var j=k.getState(),re=j.highlightedIndex,A=lr(re,1,{length:O},k.isItemDisabled,!0);k.setHighlightedIndex(A,{type:Ei})}})},ArrowUp:function(y){var k=this;if(y.preventDefault(),this.getState().isOpen){var N=y.shiftKey?-5:-1;this.moveHighlightedIndex(N,{type:ki})}else this.internalSetState({isOpen:!0,type:ki},function(){var O=k.getItemCount();if(O>0){var j=k.getState(),re=j.highlightedIndex,A=lr(re,-1,{length:O},k.isItemDisabled,!0);k.setHighlightedIndex(A,{type:ki})}})},Enter:function(y){if(y.which!==229){var k=this.getState(),N=k.isOpen,O=k.highlightedIndex;if(N&&O!=null){y.preventDefault();var j=this.items[O],re=this.getItemNodeFromIndex(O);if(j==null||re&&re.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Qp})}}},Escape:function(y){y.preventDefault(),this.reset(_e({type:Jp},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},l.buttonKeyDownHandlers=_e({},l.keyDownHandlers,{" ":function(y){y.preventDefault(),this.toggleMenu({type:af})}}),l.inputKeyDownHandlers=_e({},l.keyDownHandlers,{Home:function(y){var k=this.getState(),N=k.isOpen;if(N){y.preventDefault();var O=this.getItemCount();if(!(O<=0||!N)){var j=Vr(0,!1,{length:O},this.isItemDisabled);this.setHighlightedIndex(j,{type:ef})}}},End:function(y){var k=this.getState(),N=k.isOpen;if(N){y.preventDefault();var O=this.getItemCount();if(!(O<=0||!N)){var j=Vr(O-1,!0,{length:O},this.isItemDisabled);this.setHighlightedIndex(j,{type:tf})}}}}),l.getToggleButtonProps=function(y){var k=y===void 0?{}:y,N=k.onClick;k.onPress;var O=k.onKeyDown,j=k.onKeyUp,re=k.onBlur,A=Dt(k,G_),Q=l.getState(),ae=Q.isOpen,ce={onClick:Be(N,l.buttonHandleClick),onKeyDown:Be(O,l.buttonHandleKeyDown),onKeyUp:Be(j,l.buttonHandleKeyUp),onBlur:Be(re,l.buttonHandleBlur)},V=A.disabled?{}:ce;return _e({type:"button",role:"button","aria-label":ae?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},V,A)},l.buttonHandleKeyUp=function(y){y.preventDefault()},l.buttonHandleKeyDown=function(y){var k=Tn(y);l.buttonKeyDownHandlers[k]&&l.buttonKeyDownHandlers[k].call(l,y)},l.buttonHandleClick=function(y){if(y.preventDefault(),l.props.environment){var k=l.props.environment.document,N=k.body,O=k.activeElement;N&&N===O&&y.target.focus()}process.env.NODE_ENV==="test"?l.toggleMenu({type:Es}):l.internalSetTimeout(function(){return l.toggleMenu({type:Es})})},l.buttonHandleBlur=function(y){var k=y.target;l.internalSetTimeout(function(){if(!(l.isMouseDown||!l.props.environment)){var N=l.props.environment.document.activeElement;(N==null||N.id!==l.inputId)&&N!==k&&l.reset({type:sf})}})},l.getLabelProps=function(y){return _e({htmlFor:l.inputId,id:l.labelId},y)},l.getInputProps=function(y){var k=y===void 0?{}:y,N=k.onKeyDown,O=k.onBlur,j=k.onChange,re=k.onInput;k.onChangeText;var A=Dt(k,Y_),Q,ae={};Q="onChange";var ce=l.getState(),V=ce.inputValue,ee=ce.isOpen,se=ce.highlightedIndex;if(!A.disabled){var ve;ae=(ve={},ve[Q]=Be(j,re,l.inputHandleChange),ve.onKeyDown=Be(N,l.inputHandleKeyDown),ve.onBlur=Be(O,l.inputHandleBlur),ve)}return _e({"aria-autocomplete":"list","aria-activedescendant":ee&&typeof se=="number"&&se>=0?l.getItemId(se):void 0,"aria-controls":ee?l.menuId:void 0,"aria-labelledby":A&&A["aria-label"]?void 0:l.labelId,autoComplete:"off",value:V,id:l.inputId},ae,A)},l.inputHandleKeyDown=function(y){var k=Tn(y);k&&l.inputKeyDownHandlers[k]&&l.inputKeyDownHandlers[k].call(l,y)},l.inputHandleChange=function(y){l.internalSetState({type:of,isOpen:!0,inputValue:y.target.value,highlightedIndex:l.props.defaultHighlightedIndex})},l.inputHandleBlur=function(){l.internalSetTimeout(function(){var y;if(!(l.isMouseDown||!l.props.environment)){var k=l.props.environment.document.activeElement,N=(k==null||(y=k.dataset)==null?void 0:y.toggle)&&l._rootNode&&l._rootNode.contains(k);N||l.reset({type:nf})}})},l.menuRef=function(y){l._menuNode=y},l.getMenuProps=function(y,k){var N,O=y===void 0?{}:y,j=O.refKey,re=j===void 0?"ref":j,A=O.ref,Q=Dt(O,X_),ae=k===void 0?{}:k,ce=ae.suppressRefError,V=ce===void 0?!1:ce;return l.getMenuProps.called=!0,l.getMenuProps.refKey=re,l.getMenuProps.suppressRefError=V,_e((N={},N[re]=sr(A,l.menuRef),N.role="listbox",N["aria-labelledby"]=Q&&Q["aria-label"]?void 0:l.labelId,N.id=l.menuId,N),Q)},l.getItemProps=function(y){var k,N=y===void 0?{}:y,O=N.onMouseMove,j=N.onMouseDown,re=N.onClick;N.onPress;var A=N.index,Q=N.item,ae=Q===void 0?process.env.NODE_ENV==="production"?void 0:H_("getItemProps","item"):Q,ce=Dt(N,Z_);A===void 0?(l.items.push(ae),A=l.items.indexOf(ae)):l.items[A]=ae;var V="onClick",ee=re,se=(k={onMouseMove:Be(O,function(){A!==l.getState().highlightedIndex&&(l.setHighlightedIndex(A,{type:Zp}),l.avoidScrolling=!0,l.internalSetTimeout(function(){return l.avoidScrolling=!1},250))}),onMouseDown:Be(j,function(we){we.preventDefault()})},k[V]=Be(ee,function(){l.selectItemAtIndex(A,{type:rf})}),k),ve=ce.disabled?{onMouseDown:se.onMouseDown}:se;return _e({id:l.getItemId(A),role:"option","aria-selected":l.getState().highlightedIndex===A},ve,ce)},l.clearItems=function(){l.items=[]},l.reset=function(y,k){y===void 0&&(y={}),y=xi(y),l.internalSetState(function(N){var O=N.selectedItem;return _e({isOpen:l.props.defaultIsOpen,highlightedIndex:l.props.defaultHighlightedIndex,inputValue:l.props.itemToString(O)},y)},k)},l.toggleMenu=function(y,k){y===void 0&&(y={}),y=xi(y),l.internalSetState(function(N){var O=N.isOpen;return _e({isOpen:!O},O&&{highlightedIndex:l.props.defaultHighlightedIndex},y)},function(){var N=l.getState(),O=N.isOpen,j=N.highlightedIndex;O&&l.getItemCount()>0&&typeof j=="number"&&l.setHighlightedIndex(j,y),Hd(k)()})},l.openMenu=function(y){l.internalSetState({isOpen:!0},y)},l.closeMenu=function(y){l.internalSetState({isOpen:!1},y)},l.updateStatus=ji(function(){var y;if((y=l.props)!=null&&(y=y.environment)!=null&&y.document){var k=l.getState(),N=l.items[k.highlightedIndex],O=l.getItemCount(),j=l.props.getA11yStatusMessage(_e({itemToString:l.props.itemToString,previousResultCount:l.previousResultCount,resultCount:O,highlightedItem:N},k));l.previousResultCount=O,Gp(j,l.props.environment.document)}},200);var u=l.props,d=u.defaultHighlightedIndex,f=u.initialHighlightedIndex,v=f===void 0?d:f,b=u.defaultIsOpen,w=u.initialIsOpen,D=w===void 0?b:w,T=u.initialInputValue,q=T===void 0?"":T,z=u.initialSelectedItem,S=z===void 0?null:z,B=l.getState({highlightedIndex:v,isOpen:D,inputValue:q,selectedItem:S});return B.selectedItem!=null&&l.props.initialInputValue===void 0&&(B.inputValue=l.props.itemToString(B.selectedItem)),l.state=B,l}E_(n,i);var a=n.prototype;return a.internalClearTimeouts=function(){this.timeoutIds.forEach(function(s){clearTimeout(s)}),this.timeoutIds=[]},a.getState=function(s){return s===void 0&&(s=this.state),fo(s,this.props)},a.getItemCount=function(){var s=this.items.length;return this.itemCount!=null?s=this.itemCount:this.props.itemCount!==void 0&&(s=this.props.itemCount),s},a.getItemNodeFromIndex=function(s){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(s)):null},a.scrollHighlightedItemIntoView=function(){{var s=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(s,this._menuNode)}},a.moveHighlightedIndex=function(s,l){var u=this.getItemCount(),d=this.getState(),f=d.highlightedIndex;if(u>0){var v=lr(f,s,{length:u},this.isItemDisabled,!0);this.setHighlightedIndex(v,l)}},a.getStateAndHelpers=function(){var s=this.getState(),l=s.highlightedIndex,u=s.inputValue,d=s.selectedItem,f=s.isOpen,v=this.props.itemToString,b=this.id,w=this.getRootProps,D=this.getToggleButtonProps,T=this.getLabelProps,q=this.getMenuProps,z=this.getInputProps,S=this.getItemProps,B=this.openMenu,y=this.closeMenu,k=this.toggleMenu,N=this.selectItem,O=this.selectItemAtIndex,j=this.selectHighlightedItem,re=this.setHighlightedIndex,A=this.clearSelection,Q=this.clearItems,ae=this.reset,ce=this.setItemCount,V=this.unsetItemCount,ee=this.internalSetState;return{getRootProps:w,getToggleButtonProps:D,getLabelProps:T,getMenuProps:q,getInputProps:z,getItemProps:S,reset:ae,openMenu:B,closeMenu:y,toggleMenu:k,selectItem:N,selectItemAtIndex:O,selectHighlightedItem:j,setHighlightedIndex:re,clearSelection:A,clearItems:Q,setItemCount:ce,unsetItemCount:V,setState:ee,itemToString:v,id:b,highlightedIndex:l,inputValue:u,isOpen:f,selectedItem:d}},a.componentDidMount=function(){var s=this;if(process.env.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&$d(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){s.internalClearTimeouts()};else{var l=function(){s.isMouseDown=!0},u=function(w){s.isMouseDown=!1;var D=Ti(w.target,[s._rootNode,s._menuNode],s.props.environment);!D&&s.getState().isOpen&&s.reset({type:Xp},function(){return s.props.onOuterClick(s.getStateAndHelpers())})},d=function(){s.isTouchMove=!1},f=function(){s.isTouchMove=!0},v=function(w){var D=Ti(w.target,[s._rootNode,s._menuNode],s.props.environment,!1);!s.isTouchMove&&!D&&s.getState().isOpen&&s.reset({type:cf},function(){return s.props.onOuterClick(s.getStateAndHelpers())})},b=this.props.environment;b.addEventListener("mousedown",l),b.addEventListener("mouseup",u),b.addEventListener("touchstart",d),b.addEventListener("touchmove",f),b.addEventListener("touchend",v),this.cleanup=function(){s.internalClearTimeouts(),s.updateStatus.cancel(),b.removeEventListener("mousedown",l),b.removeEventListener("mouseup",u),b.removeEventListener("touchstart",d),b.removeEventListener("touchmove",f),b.removeEventListener("touchend",v)}}},a.shouldScroll=function(s,l){var u=this.props.highlightedIndex===void 0?this.getState():this.props,d=u.highlightedIndex,f=l.highlightedIndex===void 0?s:l,v=f.highlightedIndex,b=d&&this.getState().isOpen&&!s.isOpen,w=d!==v;return b||w},a.componentDidUpdate=function(s,l){process.env.NODE_ENV!=="production"&&(Ls(this.state,s,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&$d(this._menuNode,this.getMenuProps)),Mi(this.props,"selectedItem")&&this.props.selectedItemChanged(s.selectedItem,this.props.selectedItem)&&this.internalSetState({type:lf,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(l,s)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},a.componentWillUnmount=function(){this.cleanup()},a.render=function(){var s=Vd(this.props.children,Ct);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var l=Vd(s(this.getStateAndHelpers()));if(!l)return null;if(this.getRootProps.called||this.props.suppressRefError)return process.env.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&Q_(l,this.getRootProps),l;if(Kp(l))return x.cloneElement(l,this.getRootProps(Up(l)));if(process.env.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},n})(x.Component);return r.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:W_,itemToString:function(i){return i==null?"":(process.env.NODE_ENV!=="production"&&V_(i)&&!i.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",i),String(i))},onStateChange:Ct,onInputValueChange:Ct,onUserAction:Ct,onChange:Ct,onSelect:Ct,onOuterClick:Ct,selectedItemChanged:function(i,n){return i!==n},environment:typeof window>"u"?void 0:window,stateReducer:function(i,n){return n},suppressRefError:!1,scrollIntoView:Vp},r.stateChangeTypes=U_,r})();process.env.NODE_ENV!=="production"&&(J_.propTypes={children:te.func,defaultHighlightedIndex:te.number,defaultIsOpen:te.bool,initialHighlightedIndex:te.number,initialSelectedItem:te.any,initialInputValue:te.string,initialIsOpen:te.bool,getA11yStatusMessage:te.func,itemToString:te.func,onChange:te.func,onSelect:te.func,onStateChange:te.func,onInputValueChange:te.func,onUserAction:te.func,onOuterClick:te.func,selectedItemChanged:te.func,stateReducer:te.func,itemCount:te.number,id:te.string,environment:te.shape({addEventListener:te.func.isRequired,removeEventListener:te.func.isRequired,document:te.shape({createElement:te.func.isRequired,getElementById:te.func.isRequired,activeElement:te.any.isRequired,body:te.any.isRequired}).isRequired,Node:te.func.isRequired}),suppressRefError:te.bool,scrollIntoView:te.func,selectedItem:te.any,isOpen:te.bool,inputValue:te.string,highlightedIndex:te.number,labelId:te.string,inputId:te.string,menuId:te.string,getItemId:te.func});function $d(r,i){var n=i.refKey;r||console.error('downshift: The ref prop "'+n+'" from getMenuProps was not applied correctly on your menu element.')}function Q_(r,i){var n=i.refKey,a=n!=="ref",s=!Kp(r);s&&!a&&!Bd.isForwardRef(r)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!s&&a&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+n+'"'),!Bd.isForwardRef(r)&&!Up(r)[n]&&console.error('downshift: You must apply the ref prop "'+n+'" from getRootProps onto your root element.')}var uf={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function eI(r,i,n){var a=r.props,s=r.type,l={};Object.keys(i).forEach(function(u){tI(u,r,i,n),n[u]!==i[u]&&(l[u]=n[u])}),a.onStateChange&&Object.keys(l).length&&a.onStateChange(_e({type:s},l))}function tI(r,i,n,a){var s=i.props,l=i.type,u="on"+Fs(r)+"Change";s[u]&&a[r]!==void 0&&a[r]!==n[r]&&s[u](_e({type:l},a))}function rI(r,i){return i.changes}var Kd=ji(function(r,i){Gp(r,i)},200),nI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?x.useLayoutEffect:x.useEffect,df="useId"in x?function(r){var i=r.id,n=r.labelId,a=r.menuId,s=r.getItemId,l=r.toggleButtonId,u=r.inputId,d="downshift-"+x.useId();i||(i=d);var f=x.useMemo(function(){return{labelId:n||i+"-label",menuId:a||i+"-menu",getItemId:s||function(v){return i+"-item-"+v},toggleButtonId:l||i+"-toggle-button",inputId:u||i+"-input"}},[s,i,u,n,a,l]);return f}:function(r){var i=r.id,n=i===void 0?"downshift-"+$p():i,a=r.labelId,s=r.menuId,l=r.getItemId,u=r.toggleButtonId,d=r.inputId,f=x.useMemo(function(){return{labelId:a||n+"-label",menuId:s||n+"-menu",getItemId:l||function(v){return n+"-item-"+v},toggleButtonId:u||n+"-toggle-button",inputId:d||n+"-input"}},[l,n,d,a,s,u]);return f};function Bs(r,i,n,a){var s,l;if(r===void 0){if(i===void 0)throw new Error(a);s=n[i],l=i}else l=i===void 0?n.indexOf(r):i,s=r;return[s,l]}function oI(r){return/^\S{1}$/.test(r)}function Fs(r){return""+r.slice(0,1).toUpperCase()+r.slice(1)}function Vi(r){var i=x.useRef(r);return i.current=r,i}function pf(r,i,n,a){var s=x.useRef(),l=x.useRef(),u=x.useCallback(function(T,q){l.current=q,T=fo(T,q.props);var z=r(T,q),S=q.props.stateReducer(T,_e({},q,{changes:z}));return S},[r]),d=x.useReducer(u,i,n),f=d[0],v=d[1],b=Vi(i),w=x.useCallback(function(T){return v(_e({props:b.current},T))},[b]),D=l.current;return x.useEffect(function(){var T=fo(s.current,D==null?void 0:D.props),q=D&&s.current&&!a(T,f);q&&eI(D,T,f),s.current=f},[f,D,a]),[f,w]}function ff(r,i,n,a){var s=pf(r,i,n,a),l=s[0],u=s[1];return[fo(l,i),u]}var lo={itemToString:function(r){return r?String(r):""},itemToKey:function(r){return r},stateReducer:rI,scrollIntoView:Vp,environment:typeof window>"u"?void 0:window};function hr(r,i,n){n===void 0&&(n=uf);var a=r["default"+Fs(i)];return a!==void 0?a:n[i]}function nn(r,i,n){n===void 0&&(n=uf);var a=r[i];if(a!==void 0)return a;var s=r["initial"+Fs(i)];return s!==void 0?s:hr(r,i,n)}function hf(r){var i=nn(r,"selectedItem"),n=nn(r,"isOpen"),a=iI(r),s=nn(r,"inputValue");return{highlightedIndex:a<0&&i&&n?r.items.findIndex(function(l){return r.itemToKey(l)===r.itemToKey(i)}):a,isOpen:n,selectedItem:i,inputValue:s}}function on(r,i,n){var a=r.items,s=r.initialHighlightedIndex,l=r.defaultHighlightedIndex,u=r.isItemDisabled,d=r.itemToKey,f=i.selectedItem,v=i.highlightedIndex;return a.length===0?-1:s!==void 0&&v===s&&!u(a[s],s)?s:l!==void 0&&!u(a[l],l)?l:f?a.findIndex(function(b){return d(f)===d(b)}):n<0&&!u(a[a.length-1],a.length-1)?a.length-1:n>0&&!u(a[0],0)?0:-1}function gf(r,i,n){var a=x.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1}),s=x.useCallback(function(){return n.map(function(l){return l.current})},[n]);return x.useEffect(function(){if(!r)return Ct;function l(){a.current.isTouchEnd=!1,a.current.isMouseDown=!0}function u(b){a.current.isMouseDown=!1,Ti(b.target,s(),r)||i()}function d(){a.current.isTouchEnd=!1,a.current.isTouchMove=!1}function f(){a.current.isTouchMove=!0}function v(b){a.current.isTouchEnd=!0,!a.current.isTouchMove&&!Ti(b.target,s(),r,!1)&&i()}return r.addEventListener("mousedown",l),r.addEventListener("mouseup",u),r.addEventListener("touchstart",d),r.addEventListener("touchmove",f),r.addEventListener("touchend",v),function(){r.removeEventListener("mousedown",l),r.removeEventListener("mouseup",u),r.removeEventListener("touchstart",d),r.removeEventListener("touchmove",f),r.removeEventListener("touchend",v)}},[r,s,i]),a.current}var $i=function(){return Ct};process.env.NODE_ENV!=="production"&&($i=function(){for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];var a=x.useRef(i.reduce(function(l,u){return l[u]={},l},{}));x.useEffect(function(){Object.keys(a.current).forEach(function(l){var u=a.current[l];if(!Object.keys(u).length){console.error("downshift: You forgot to call the "+l+" getter function on your component / element.");return}var d=u.suppressRefError,f=u.refKey,v=u.elementRef;d||v!=null&&v.current||console.error('downshift: The ref prop "'+f+'" from '+l+" was not applied correctly on your element.")})},[]);var s=x.useCallback(function(l,u,d,f){a.current[l]={suppressRefError:u,refKey:d,elementRef:f}},[]);return s});function Ws(r,i,n,a){a===void 0&&(a={});var s=a.document,l=mo();x.useEffect(function(){if(!(!r||l||!s)){var u=r(i);Kd(u,s)}},n),x.useEffect(function(){return function(){Kd.cancel(),K_(s)}},[s])}function vf(r){var i=r.highlightedIndex,n=r.isOpen,a=r.itemRefs,s=r.getItemNodeFromIndex,l=r.menuElement,u=r.scrollIntoView,d=x.useRef(!0);return nI(function(){i<0||!n||!Object.keys(a.current).length||(d.current===!1?d.current=!0:u(s(i),l))},[i]),d}var Ki=Ct;process.env.NODE_ENV!=="production"&&(Ki=function(r){var i=r.props,n=r.state,a=x.useRef(i),s=mo();x.useEffect(function(){s||(Ls(n,a.current,i),a.current=i)},[n,i,s])});function Ai(r,i,n){var a;n===void 0&&(n=!0);var s=((a=r.items)==null?void 0:a.length)&&i>=0;return _e({isOpen:!1,highlightedIndex:-1},s&&_e({selectedItem:r.items[i],isOpen:hr(r,"isOpen"),highlightedIndex:hr(r,"highlightedIndex")},n&&{inputValue:r.itemToString(r.items[i])}))}function bf(r,i){return r.isOpen===i.isOpen&&r.inputValue===i.inputValue&&r.highlightedIndex===i.highlightedIndex&&r.selectedItem===i.selectedItem}function mo(){var r=x.useRef(!0);return x.useEffect(function(){return r.current=!1,function(){r.current=!0}},[]),r.current}function Pi(r){var i=hr(r,"highlightedIndex");return i>-1&&r.isItemDisabled(r.items[i],i)?-1:i}function iI(r){var i=nn(r,"highlightedIndex");return i>-1&&r.isItemDisabled(r.items[i],i)?-1:i}var Si={environment:te.shape({addEventListener:te.func.isRequired,removeEventListener:te.func.isRequired,document:te.shape({createElement:te.func.isRequired,getElementById:te.func.isRequired,activeElement:te.any.isRequired,body:te.any.isRequired}).isRequired,Node:te.func.isRequired}),itemToString:te.func,itemToKey:te.func,stateReducer:te.func},mf=_e({},Si,{getA11yStatusMessage:te.func,highlightedIndex:te.number,defaultHighlightedIndex:te.number,initialHighlightedIndex:te.number,isOpen:te.bool,defaultIsOpen:te.bool,initialIsOpen:te.bool,selectedItem:te.any,initialSelectedItem:te.any,defaultSelectedItem:te.any,id:te.string,labelId:te.string,menuId:te.string,getItemId:te.func,toggleButtonId:te.string,onSelectedItemChange:te.func,onHighlightedIndexChange:te.func,onStateChange:te.func,onIsOpenChange:te.func,scrollIntoView:te.func});function wf(r,i,n){var a=i.type,s=i.props,l;switch(a){case n.ItemMouseMove:l={highlightedIndex:i.disabled?-1:i.index};break;case n.MenuMouseLeave:l={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:l={isOpen:!r.isOpen,highlightedIndex:r.isOpen?-1:on(s,r,0)};break;case n.FunctionOpenMenu:l={isOpen:!0,highlightedIndex:on(s,r,0)};break;case n.FunctionCloseMenu:l={isOpen:!1};break;case n.FunctionSetHighlightedIndex:l={highlightedIndex:s.isItemDisabled(s.items[i.highlightedIndex],i.highlightedIndex)?-1:i.highlightedIndex};break;case n.FunctionSetInputValue:l={inputValue:i.inputValue};break;case n.FunctionReset:l={highlightedIndex:Pi(s),isOpen:hr(s,"isOpen"),selectedItem:hr(s,"selectedItem"),inputValue:hr(s,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return _e({},r,l)}function aI(r){for(var i=r.keysSoFar,n=r.highlightedIndex,a=r.items,s=r.itemToString,l=r.isItemDisabled,u=i.toLowerCase(),d=0;d<a.length;d++){var f=(d+n+(i.length<2?1:0))%a.length,v=a[f];if(v!==void 0&&s(v).toLowerCase().startsWith(u)&&!l(v,f))return f}return n}var sI=Mn(Mn({},mf),{items:te.array.isRequired,isItemDisabled:te.func}),lI=Mn(Mn({},lo),{isItemDisabled:function(){return!1}}),xf=Ct;process.env.NODE_ENV!=="production"&&(xf=function(r,i){te.checkPropTypes(sI,r,"prop",i.name)});var Oi=process.env.NODE_ENV!=="production"?"__togglebutton_click__":0,Hs=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_down__":1,js=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_arrow_up__":2,Li=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_character__":3,Vs=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_escape__":4,$s=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_home__":5,Ks=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_end__":6,Us=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_enter__":7,qs=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_space_button__":8,Gs=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_page_up__":9,Ys=process.env.NODE_ENV!=="production"?"__togglebutton_keydown_page_down__":10,Bi=process.env.NODE_ENV!=="production"?"__togglebutton_blur__":11,yf=process.env.NODE_ENV!=="production"?"__menu_mouse_leave__":12,_f=process.env.NODE_ENV!=="production"?"__item_mouse_move__":13,Xs=process.env.NODE_ENV!=="production"?"__item_click__":14,If=process.env.NODE_ENV!=="production"?"__function_toggle_menu__":15,kf=process.env.NODE_ENV!=="production"?"__function_open_menu__":16,Ef=process.env.NODE_ENV!=="production"?"__function_close_menu__":17,Sf=process.env.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,Zs=process.env.NODE_ENV!=="production"?"__function_select_item__":19,Ss=process.env.NODE_ENV!=="production"?"__function_set_input_value__":20,Of=process.env.NODE_ENV!=="production"?"__function_reset__":21,Nf=Object.freeze({__proto__:null,FunctionCloseMenu:Ef,FunctionOpenMenu:kf,FunctionReset:Of,FunctionSelectItem:Zs,FunctionSetHighlightedIndex:Sf,FunctionSetInputValue:Ss,FunctionToggleMenu:If,ItemClick:Xs,ItemMouseMove:_f,MenuMouseLeave:yf,ToggleButtonBlur:Bi,ToggleButtonClick:Oi,ToggleButtonKeyDownArrowDown:Hs,ToggleButtonKeyDownArrowUp:js,ToggleButtonKeyDownCharacter:Li,ToggleButtonKeyDownEnd:Ks,ToggleButtonKeyDownEnter:Us,ToggleButtonKeyDownEscape:Vs,ToggleButtonKeyDownHome:$s,ToggleButtonKeyDownPageDown:Ys,ToggleButtonKeyDownPageUp:Gs,ToggleButtonKeyDownSpaceButton:qs});function cI(r,i){var n,a=i.type,s=i.props,l=i.altKey,u;switch(a){case Xs:u={isOpen:hr(s,"isOpen"),highlightedIndex:Pi(s),selectedItem:s.items[i.index]};break;case Li:{var d=i.key,f=""+r.inputValue+d,v=!r.isOpen&&r.selectedItem?s.items.findIndex(function(T){return s.itemToKey(T)===s.itemToKey(r.selectedItem)}):r.highlightedIndex,b=aI({keysSoFar:f,highlightedIndex:v,items:s.items,itemToString:s.itemToString,isItemDisabled:s.isItemDisabled});u={inputValue:f,highlightedIndex:b,isOpen:!0}}break;case Hs:{var w=r.isOpen?lr(r.highlightedIndex,1,s.items,s.isItemDisabled):l&&r.selectedItem==null?-1:on(s,r,1);u={highlightedIndex:w,isOpen:!0}}break;case js:if(r.isOpen&&l)u=Ai(s,r.highlightedIndex,!1);else{var D=r.isOpen?lr(r.highlightedIndex,-1,s.items,s.isItemDisabled):on(s,r,-1);u={highlightedIndex:D,isOpen:!0}}break;case Us:case qs:u=Ai(s,r.highlightedIndex,!1);break;case $s:u={highlightedIndex:Vr(0,!1,s.items,s.isItemDisabled),isOpen:!0};break;case Ks:u={highlightedIndex:Vr(s.items.length-1,!0,s.items,s.isItemDisabled),isOpen:!0};break;case Gs:u={highlightedIndex:lr(r.highlightedIndex,-10,s.items,s.isItemDisabled)};break;case Ys:u={highlightedIndex:lr(r.highlightedIndex,10,s.items,s.isItemDisabled)};break;case Vs:u={isOpen:!1,highlightedIndex:-1};break;case Bi:u=_e({isOpen:!1,highlightedIndex:-1},r.highlightedIndex>=0&&((n=s.items)==null?void 0:n.length)&&{selectedItem:s.items[r.highlightedIndex]});break;case Zs:u={selectedItem:i.selectedItem};break;default:return wf(r,i,Nf)}return _e({},r,u)}var uI=["onClick"],dI=["onMouseLeave","refKey","ref"],pI=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],fI=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];zn.stateChangeTypes=Nf;function zn(r){r===void 0&&(r={}),xf(r,zn);var i=_e({},lI,r),n=i.scrollIntoView,a=i.environment,s=i.getA11yStatusMessage,l=ff(cI,i,hf,bf),u=l[0],d=l[1],f=u.isOpen,v=u.highlightedIndex,b=u.selectedItem,w=u.inputValue,D=x.useRef(null),T=x.useRef(null),q=x.useRef({}),z=x.useRef(null),S=df(i),B=Vi({state:u,props:i}),y=x.useCallback(function(I){return q.current[S.getItemId(I)]},[S]);Ws(s,u,[f,v,b,w],a);var k=vf({menuElement:T.current,highlightedIndex:v,isOpen:f,itemRefs:q,scrollIntoView:n,getItemNodeFromIndex:y});x.useEffect(function(){return z.current=ji(function(I){I({type:Ss,inputValue:""})},500),function(){z.current.cancel()}},[]),x.useEffect(function(){w&&z.current(d)},[d,w]),Ki({props:i,state:u}),x.useEffect(function(){var I=nn(i,"isOpen");I&&D.current&&D.current.focus()},[]);var N=x.useCallback(function(){B.current.state.isOpen&&d({type:Bi})},[d,B]),O=x.useMemo(function(){return[T,D]},[]),j=gf(a,N,O),re=$i("getMenuProps","getToggleButtonProps");x.useEffect(function(){f||(q.current={})},[f]);var A=x.useMemo(function(){return{ArrowDown:function(I){I.preventDefault(),d({type:Hs,altKey:I.altKey})},ArrowUp:function(I){I.preventDefault(),d({type:js,altKey:I.altKey})},Home:function(I){I.preventDefault(),d({type:$s})},End:function(I){I.preventDefault(),d({type:Ks})},Escape:function(){B.current.state.isOpen&&d({type:Vs})},Enter:function(I){I.preventDefault(),d({type:B.current.state.isOpen?Us:Oi})},PageUp:function(I){B.current.state.isOpen&&(I.preventDefault(),d({type:Gs}))},PageDown:function(I){B.current.state.isOpen&&(I.preventDefault(),d({type:Ys}))}," ":function(I){I.preventDefault();var F=B.current.state;if(!F.isOpen){d({type:Oi});return}F.inputValue?d({type:Li,key:" "}):d({type:qs})}}},[d,B]),Q=x.useCallback(function(){d({type:If})},[d]),ae=x.useCallback(function(){d({type:Ef})},[d]),ce=x.useCallback(function(){d({type:kf})},[d]),V=x.useCallback(function(I){d({type:Sf,highlightedIndex:I})},[d]),ee=x.useCallback(function(I){d({type:Zs,selectedItem:I})},[d]),se=x.useCallback(function(){d({type:Of})},[d]),ve=x.useCallback(function(I){d({type:Ss,inputValue:I})},[d]),we=x.useCallback(function(I){var F=I===void 0?{}:I,Z=F.onClick,ne=Dt(F,uI),W=function(){var J;(J=D.current)==null||J.focus()};return _e({id:S.labelId,htmlFor:S.toggleButtonId,onClick:Be(Z,W)},ne)},[S]),me=x.useCallback(function(I,F){var Z,ne=I===void 0?{}:I,W=ne.onMouseLeave,J=ne.refKey,M=J===void 0?"ref":J,L=ne.ref,oe=Dt(ne,dI),ue=F===void 0?{}:F,le=ue.suppressRefError,fe=le===void 0?!1:le,$=function(){d({type:yf})};return re("getMenuProps",fe,M,T),_e((Z={},Z[M]=sr(L,function(xe){T.current=xe}),Z.id=S.menuId,Z.role="listbox",Z["aria-labelledby"]=oe&&oe["aria-label"]?void 0:""+S.labelId,Z.onMouseLeave=Be(W,$),Z),oe)},[d,re,S]),Y=x.useCallback(function(I,F){var Z,ne=I===void 0?{}:I,W=ne.onBlur,J=ne.onClick;ne.onPress;var M=ne.onKeyDown,L=ne.refKey,oe=L===void 0?"ref":L,ue=ne.ref,le=Dt(ne,pI),fe=F===void 0?{}:F,$=fe.suppressRefError,xe=$===void 0?!1:$,ie=B.current.state,Ue=function(){d({type:Oi})},Fe=function(){ie.isOpen&&!j.isMouseDown&&d({type:Bi})},Qe=function(Xe){var qe=Tn(Xe);qe&&A[qe]?A[qe](Xe):oI(qe)&&d({type:Li,key:qe})},ot=_e((Z={},Z[oe]=sr(ue,function(Xe){D.current=Xe}),Z["aria-activedescendant"]=ie.isOpen&&ie.highlightedIndex>-1?S.getItemId(ie.highlightedIndex):"",Z["aria-controls"]=S.menuId,Z["aria-expanded"]=B.current.state.isOpen,Z["aria-haspopup"]="listbox",Z["aria-labelledby"]=le&&le["aria-label"]?void 0:""+S.labelId,Z.id=S.toggleButtonId,Z.role="combobox",Z.tabIndex=0,Z.onBlur=Be(W,Fe),Z),le);return le.disabled||(ot.onClick=Be(J,Ue),ot.onKeyDown=Be(M,Qe)),re("getToggleButtonProps",xe,oe,D),ot},[d,S,B,j,re,A]),Ne=x.useCallback(function(I){var F,Z=I===void 0?{}:I,ne=Z.item,W=Z.index,J=Z.onMouseMove,M=Z.onClick,L=Z.onMouseDown;Z.onPress;var oe=Z.refKey,ue=oe===void 0?"ref":oe,le=Z.disabled,fe=Z.ref,$=Dt(Z,fI);le!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var xe=B.current,ie=xe.state,Ue=xe.props,Fe=Bs(ne,W,Ue.items,"Pass either item or index to getItemProps!"),Qe=Fe[0],ot=Fe[1],Xe=Ue.isItemDisabled(Qe,ot),qe=function(){j.isTouchEnd||ot===ie.highlightedIndex||(k.current=!1,d({type:_f,index:ot,disabled:Xe}))},st=function(){d({type:Xs,index:ot})},zt=function(Mt){return Mt.preventDefault()},tt=_e((F={},F[ue]=sr(fe,function(Mt){Mt&&(q.current[S.getItemId(ot)]=Mt)}),F["aria-disabled"]=Xe,F["aria-selected"]=Qe===ie.selectedItem,F.id=S.getItemId(ot),F.role="option",F),$);return Xe||(tt.onClick=Be(M,st)),tt.onMouseMove=Be(J,qe),tt.onMouseDown=Be(L,zt),tt},[B,S,j,k,d]);return{getToggleButtonProps:Y,getLabelProps:we,getMenuProps:me,getItemProps:Ne,toggleMenu:Q,openMenu:ce,closeMenu:ae,setHighlightedIndex:V,selectItem:ee,reset:se,setInputValue:ve,highlightedIndex:v,isOpen:f,selectedItem:b,inputValue:w}}var Js=process.env.NODE_ENV!=="production"?"__input_keydown_arrow_down__":0,Qs=process.env.NODE_ENV!=="production"?"__input_keydown_arrow_up__":1,el=process.env.NODE_ENV!=="production"?"__input_keydown_escape__":2,tl=process.env.NODE_ENV!=="production"?"__input_keydown_home__":3,rl=process.env.NODE_ENV!=="production"?"__input_keydown_end__":4,nl=process.env.NODE_ENV!=="production"?"__input_keydown_page_up__":5,ol=process.env.NODE_ENV!=="production"?"__input_keydown_page_down__":6,il=process.env.NODE_ENV!=="production"?"__input_keydown_enter__":7,al=process.env.NODE_ENV!=="production"?"__input_change__":8,Fi=process.env.NODE_ENV!=="production"?"__input_blur__":9,sl=process.env.NODE_ENV!=="production"?"__input_click__":10,Cf=process.env.NODE_ENV!=="production"?"__menu_mouse_leave__":11,Rf=process.env.NODE_ENV!=="production"?"__item_mouse_move__":12,ll=process.env.NODE_ENV!=="production"?"__item_click__":13,Df=process.env.NODE_ENV!=="production"?"__togglebutton_click__":14,zf=process.env.NODE_ENV!=="production"?"__function_toggle_menu__":15,Mf=process.env.NODE_ENV!=="production"?"__function_open_menu__":16,Tf=process.env.NODE_ENV!=="production"?"__function_close_menu__":17,Af=process.env.NODE_ENV!=="production"?"__function_set_highlighted_index__":18,cl=process.env.NODE_ENV!=="production"?"__function_select_item__":19,Pf=process.env.NODE_ENV!=="production"?"__function_set_input_value__":20,Lf=process.env.NODE_ENV!=="production"?"__function_reset__":21,ul=process.env.NODE_ENV!=="production"?"__controlled_prop_updated_selected_item__":22,Bf=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:ul,FunctionCloseMenu:Tf,FunctionOpenMenu:Mf,FunctionReset:Lf,FunctionSelectItem:cl,FunctionSetHighlightedIndex:Af,FunctionSetInputValue:Pf,FunctionToggleMenu:zf,InputBlur:Fi,InputChange:al,InputClick:sl,InputKeyDownArrowDown:Js,InputKeyDownArrowUp:Qs,InputKeyDownEnd:rl,InputKeyDownEnter:il,InputKeyDownEscape:el,InputKeyDownHome:tl,InputKeyDownPageDown:ol,InputKeyDownPageUp:nl,ItemClick:ll,ItemMouseMove:Rf,MenuMouseLeave:Cf,ToggleButtonClick:Df});function hI(r){var i=hf(r),n=i.selectedItem,a=i.inputValue;return a===""&&n&&r.defaultInputValue===void 0&&r.initialInputValue===void 0&&r.inputValue===void 0&&(a=r.itemToString(n)),_e({},i,{inputValue:a})}var gI=_e({},mf,{items:te.array.isRequired,isItemDisabled:te.func,inputValue:te.string,defaultInputValue:te.string,initialInputValue:te.string,inputId:te.string,onInputValueChange:te.func});function vI(r,i,n,a){var s=x.useRef(),l=pf(r,i,n,a),u=l[0],d=l[1],f=mo();return x.useEffect(function(){if(Mi(i,"selectedItem")){if(!f){var v=i.itemToKey(i.selectedItem)!==i.itemToKey(s.current);v&&d({type:ul,inputValue:i.itemToString(i.selectedItem)})}s.current=u.selectedItem===s.current?i.selectedItem:u.selectedItem}},[u.selectedItem,i.selectedItem]),[fo(u,i),d]}var Ff=Ct;process.env.NODE_ENV!=="production"&&(Ff=function(r,i){te.checkPropTypes(gI,r,"prop",i.name)});var bI=_e({},lo,{isItemDisabled:function(){return!1}});function mI(r,i){var n,a=i.type,s=i.props,l=i.altKey,u;switch(a){case ll:u={isOpen:hr(s,"isOpen"),highlightedIndex:Pi(s),selectedItem:s.items[i.index],inputValue:s.itemToString(s.items[i.index])};break;case Js:r.isOpen?u={highlightedIndex:lr(r.highlightedIndex,1,s.items,s.isItemDisabled,!0)}:u={highlightedIndex:l&&r.selectedItem==null?-1:on(s,r,1),isOpen:s.items.length>=0};break;case Qs:r.isOpen?l?u=Ai(s,r.highlightedIndex):u={highlightedIndex:lr(r.highlightedIndex,-1,s.items,s.isItemDisabled,!0)}:u={highlightedIndex:on(s,r,-1),isOpen:s.items.length>=0};break;case il:u=Ai(s,r.highlightedIndex);break;case el:u=_e({isOpen:!1,highlightedIndex:-1},!r.isOpen&&{selectedItem:null,inputValue:""});break;case nl:u={highlightedIndex:lr(r.highlightedIndex,-10,s.items,s.isItemDisabled,!0)};break;case ol:u={highlightedIndex:lr(r.highlightedIndex,10,s.items,s.isItemDisabled,!0)};break;case tl:u={highlightedIndex:Vr(0,!1,s.items,s.isItemDisabled)};break;case rl:u={highlightedIndex:Vr(s.items.length-1,!0,s.items,s.isItemDisabled)};break;case Fi:u=_e({isOpen:!1,highlightedIndex:-1},r.highlightedIndex>=0&&((n=s.items)==null?void 0:n.length)&&i.selectItem&&{selectedItem:s.items[r.highlightedIndex],inputValue:s.itemToString(s.items[r.highlightedIndex])});break;case al:u={isOpen:!0,highlightedIndex:Pi(s),inputValue:i.inputValue};break;case sl:u={isOpen:!r.isOpen,highlightedIndex:r.isOpen?-1:on(s,r,0)};break;case cl:u={selectedItem:i.selectedItem,inputValue:s.itemToString(i.selectedItem)};break;case ul:u={inputValue:i.inputValue};break;default:return wf(r,i,Bf)}return _e({},r,u)}var wI=["onMouseLeave","refKey","ref"],xI=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],yI=["onClick","onPress","refKey","ref"],_I=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];Or.stateChangeTypes=Bf;function Or(r){r===void 0&&(r={}),Ff(r,Or);var i=_e({},bI,r),n=i.items,a=i.scrollIntoView,s=i.environment,l=i.getA11yStatusMessage,u=vI(mI,i,hI,bf),d=u[0],f=u[1],v=d.isOpen,b=d.highlightedIndex,w=d.selectedItem,D=d.inputValue,T=x.useRef(null),q=x.useRef({}),z=x.useRef(null),S=x.useRef(null),B=mo(),y=df(i),k=x.useRef(),N=Vi({state:d,props:i}),O=x.useCallback(function(W){return q.current[y.getItemId(W)]},[y]);Ws(l,d,[v,b,w,D],s);var j=vf({menuElement:T.current,highlightedIndex:b,isOpen:v,itemRefs:q,scrollIntoView:a,getItemNodeFromIndex:O});Ki({props:i,state:d}),x.useEffect(function(){var W=nn(i,"isOpen");W&&z.current&&z.current.focus()},[]),x.useEffect(function(){B||(k.current=n.length)});var re=x.useCallback(function(){N.current.state.isOpen&&f({type:Fi})},[f,N]),A=x.useMemo(function(){return[T,S,z]},[]),Q=gf(s,re,A),ae=$i("getInputProps","getMenuProps");x.useEffect(function(){v||(q.current={})},[v]),x.useEffect(function(){var W;!v||!(s!=null&&s.document)||!(z!=null&&(W=z.current)!=null&&W.focus)||s.document.activeElement!==z.current&&z.current.focus()},[v,s]);var ce=x.useMemo(function(){return{ArrowDown:function(W){W.preventDefault(),f({type:Js,altKey:W.altKey})},ArrowUp:function(W){W.preventDefault(),f({type:Qs,altKey:W.altKey})},Home:function(W){N.current.state.isOpen&&(W.preventDefault(),f({type:tl}))},End:function(W){N.current.state.isOpen&&(W.preventDefault(),f({type:rl}))},Escape:function(W){var J=N.current.state;(J.isOpen||J.inputValue||J.selectedItem||J.highlightedIndex>-1)&&(W.preventDefault(),f({type:el}))},Enter:function(W){var J=N.current.state;!J.isOpen||W.which===229||(W.preventDefault(),f({type:il}))},PageUp:function(W){N.current.state.isOpen&&(W.preventDefault(),f({type:nl}))},PageDown:function(W){N.current.state.isOpen&&(W.preventDefault(),f({type:ol}))}}},[f,N]),V=x.useCallback(function(W){return _e({id:y.labelId,htmlFor:y.inputId},W)},[y]),ee=x.useCallback(function(W,J){var M,L=W===void 0?{}:W,oe=L.onMouseLeave,ue=L.refKey,le=ue===void 0?"ref":ue,fe=L.ref,$=Dt(L,wI),xe=J===void 0?{}:J,ie=xe.suppressRefError,Ue=ie===void 0?!1:ie;return ae("getMenuProps",Ue,le,T),_e((M={},M[le]=sr(fe,function(Fe){T.current=Fe}),M.id=y.menuId,M.role="listbox",M["aria-labelledby"]=$&&$["aria-label"]?void 0:""+y.labelId,M.onMouseLeave=Be(oe,function(){f({type:Cf})}),M),$)},[f,ae,y]),se=x.useCallback(function(W){var J,M,L=W===void 0?{}:W,oe=L.item,ue=L.index,le=L.refKey,fe=le===void 0?"ref":le,$=L.ref,xe=L.onMouseMove,ie=L.onMouseDown,Ue=L.onClick;L.onPress;var Fe=L.disabled,Qe=Dt(L,xI);Fe!==void 0&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var ot=N.current,Xe=ot.props,qe=ot.state,st=Bs(oe,ue,Xe.items,"Pass either item or index to getItemProps!"),zt=st[0],tt=st[1],Mt=Xe.isItemDisabled(zt,tt),Ut="onClick",gr=Ue,mt=function(){Q.isTouchEnd||tt===qe.highlightedIndex||(j.current=!1,f({type:Rf,index:tt,disabled:Mt}))},lt=function(){f({type:ll,index:tt})},wt=function(cr){return cr.preventDefault()};return _e((J={},J[fe]=sr($,function(cr){cr&&(q.current[y.getItemId(tt)]=cr)}),J["aria-disabled"]=Mt,J["aria-selected"]=tt===qe.highlightedIndex,J.id=y.getItemId(tt),J.role="option",J),!Mt&&(M={},M[Ut]=Be(gr,lt),M),{onMouseMove:Be(xe,mt),onMouseDown:Be(ie,wt)},Qe)},[f,y,N,Q,j]),ve=x.useCallback(function(W){var J,M=W===void 0?{}:W,L=M.onClick;M.onPress;var oe=M.refKey,ue=oe===void 0?"ref":oe,le=M.ref,fe=Dt(M,yI),$=N.current.state,xe=function(){f({type:Df})};return _e((J={},J[ue]=sr(le,function(ie){S.current=ie}),J["aria-controls"]=y.menuId,J["aria-expanded"]=$.isOpen,J.id=y.toggleButtonId,J.tabIndex=-1,J),!fe.disabled&&_e({},{onClick:Be(L,xe)}),fe)},[f,N,y]),we=x.useCallback(function(W,J){var M,L=W===void 0?{}:W,oe=L.onKeyDown,ue=L.onChange,le=L.onInput,fe=L.onBlur;L.onChangeText;var $=L.onClick,xe=L.refKey,ie=xe===void 0?"ref":xe,Ue=L.ref,Fe=Dt(L,_I),Qe=J===void 0?{}:J,ot=Qe.suppressRefError,Xe=ot===void 0?!1:ot;ae("getInputProps",Xe,ie,z);var qe=N.current.state,st=function(lt){var wt=Tn(lt);wt&&ce[wt]&&ce[wt](lt)},zt=function(lt){f({type:al,inputValue:lt.target.value})},tt=function(lt){if(s!=null&&s.document&&qe.isOpen&&!Q.isMouseDown){var wt=lt.relatedTarget===null&&s.document.activeElement!==s.document.body;f({type:Fi,selectItem:!wt})}},Mt=function(){f({type:sl})},Ut="onChange",gr={};if(!Fe.disabled){var mt;gr=(mt={},mt[Ut]=Be(ue,le,zt),mt.onKeyDown=Be(oe,st),mt.onBlur=Be(fe,tt),mt.onClick=Be($,Mt),mt)}return _e((M={},M[ie]=sr(Ue,function(lt){z.current=lt}),M["aria-activedescendant"]=qe.isOpen&&qe.highlightedIndex>-1?y.getItemId(qe.highlightedIndex):"",M["aria-autocomplete"]="list",M["aria-controls"]=y.menuId,M["aria-expanded"]=qe.isOpen,M["aria-labelledby"]=Fe&&Fe["aria-label"]?void 0:y.labelId,M.autoComplete="off",M.id=y.inputId,M.role="combobox",M.value=qe.inputValue,M),gr,Fe)},[f,y,s,ce,N,Q,ae]),me=x.useCallback(function(){f({type:zf})},[f]),Y=x.useCallback(function(){f({type:Tf})},[f]),Ne=x.useCallback(function(){f({type:Mf})},[f]),I=x.useCallback(function(W){f({type:Af,highlightedIndex:W})},[f]),F=x.useCallback(function(W){f({type:cl,selectedItem:W})},[f]),Z=x.useCallback(function(W){f({type:Pf,inputValue:W})},[f]),ne=x.useCallback(function(){f({type:Lf})},[f]);return{getItemProps:se,getLabelProps:V,getMenuProps:ee,getInputProps:we,getToggleButtonProps:ve,toggleMenu:me,openMenu:Ne,closeMenu:Y,setHighlightedIndex:I,setInputValue:Z,selectItem:F,reset:ne,highlightedIndex:b,isOpen:v,selectedItem:w,inputValue:D}}var Wf={activeIndex:-1,selectedItems:[]};function Ud(r,i){return nn(r,i,Wf)}function qd(r,i){return hr(r,i,Wf)}function II(r){var i=Ud(r,"activeIndex"),n=Ud(r,"selectedItems");return{activeIndex:i,selectedItems:n}}function Gd(r){if(r.shiftKey||r.metaKey||r.ctrlKey||r.altKey)return!1;var i=r.target;return!(i instanceof HTMLInputElement&&i.value!==""&&(i.selectionStart!==0||i.selectionEnd!==0))}function kI(r,i){return r.selectedItems===i.selectedItems&&r.activeIndex===i.activeIndex}var EI={stateReducer:Si.stateReducer,itemToKey:Si.itemToKey,environment:Si.environment,selectedItems:te.array,initialSelectedItems:te.array,defaultSelectedItems:te.array,getA11yStatusMessage:te.func,activeIndex:te.number,initialActiveIndex:te.number,defaultActiveIndex:te.number,onActiveIndexChange:te.func,onSelectedItemsChange:te.func,keyNavigationNext:te.string,keyNavigationPrevious:te.string},SI={itemToKey:lo.itemToKey,stateReducer:lo.stateReducer,environment:lo.environment,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},Hf=Ct;process.env.NODE_ENV!=="production"&&(Hf=function(r,i){te.checkPropTypes(EI,r,"prop",i.name)});var dl=process.env.NODE_ENV!=="production"?"__selected_item_click__":0,pl=process.env.NODE_ENV!=="production"?"__selected_item_keydown_delete__":1,fl=process.env.NODE_ENV!=="production"?"__selected_item_keydown_backspace__":2,hl=process.env.NODE_ENV!=="production"?"__selected_item_keydown_navigation_next__":3,gl=process.env.NODE_ENV!=="production"?"__selected_item_keydown_navigation_previous__":4,vl=process.env.NODE_ENV!=="production"?"__dropdown_keydown_navigation_previous__":5,bl=process.env.NODE_ENV!=="production"?"__dropdown_keydown_backspace__":6,ml=process.env.NODE_ENV!=="production"?"__dropdown_click__":7,wl=process.env.NODE_ENV!=="production"?"__function_add_selected_item__":8,xl=process.env.NODE_ENV!=="production"?"__function_remove_selected_item__":9,yl=process.env.NODE_ENV!=="production"?"__function_set_selected_items__":10,_l=process.env.NODE_ENV!=="production"?"__function_set_active_index__":11,Il=process.env.NODE_ENV!=="production"?"__function_reset__":12,OI=Object.freeze({__proto__:null,DropdownClick:ml,DropdownKeyDownBackspace:bl,DropdownKeyDownNavigationPrevious:vl,FunctionAddSelectedItem:wl,FunctionRemoveSelectedItem:xl,FunctionReset:Il,FunctionSetActiveIndex:_l,FunctionSetSelectedItems:yl,SelectedItemClick:dl,SelectedItemKeyDownBackspace:fl,SelectedItemKeyDownDelete:pl,SelectedItemKeyDownNavigationNext:hl,SelectedItemKeyDownNavigationPrevious:gl});function NI(r,i){var n=i.type,a=i.index,s=i.props,l=i.selectedItem,u=r.activeIndex,d=r.selectedItems,f;switch(n){case dl:f={activeIndex:a};break;case gl:f={activeIndex:u-1<0?0:u-1};break;case hl:f={activeIndex:u+1>=d.length?-1:u+1};break;case fl:case pl:{if(u<0)break;var v=u;d.length===1?v=-1:u===d.length-1&&(v=d.length-2),f=_e({selectedItems:[].concat(d.slice(0,u),d.slice(u+1))},{activeIndex:v});break}case vl:f={activeIndex:d.length-1};break;case bl:f={selectedItems:d.slice(0,d.length-1)};break;case wl:f={selectedItems:[].concat(d,[l])};break;case ml:f={activeIndex:-1};break;case xl:{var b=u,w=d.findIndex(function(q){return s.itemToKey(q)===s.itemToKey(l)});if(w<0)break;d.length===1?b=-1:w===d.length-1&&(b=d.length-2),f={selectedItems:[].concat(d.slice(0,w),d.slice(w+1)),activeIndex:b};break}case yl:{var D=i.selectedItems;f={selectedItems:D};break}case _l:{var T=i.activeIndex;f={activeIndex:T};break}case Il:f={activeIndex:qd(s,"activeIndex"),selectedItems:qd(s,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return _e({},r,f)}var CI=["refKey","ref","onClick","onKeyDown","selectedItem","index"],RI=["refKey","ref","onKeyDown","onClick","preventKeyAction"];kl.stateChangeTypes=OI;function kl(r){r===void 0&&(r={}),Hf(r,kl);var i=_e({},SI,r),n=i.getA11yStatusMessage,a=i.environment,s=i.keyNavigationNext,l=i.keyNavigationPrevious,u=ff(NI,i,II,kI),d=u[0],f=u[1],v=d.activeIndex,b=d.selectedItems,w=mo(),D=x.useRef(null),T=x.useRef();T.current=[];var q=Vi({state:d,props:i});Ws(n,d,[v,b],a),x.useEffect(function(){w||(v===-1&&D.current?D.current.focus():T.current[v]&&T.current[v].focus())},[v]),Ki({props:i,state:d});var z=$i("getDropdownProps"),S=x.useMemo(function(){var Q;return Q={},Q[l]=function(){f({type:gl})},Q[s]=function(){f({type:hl})},Q.Delete=function(){f({type:pl})},Q.Backspace=function(){f({type:fl})},Q},[f,s,l]),B=x.useMemo(function(){var Q;return Q={},Q[l]=function(ae){Gd(ae)&&f({type:vl})},Q.Backspace=function(ae){Gd(ae)&&f({type:bl})},Q},[f,l]),y=x.useCallback(function(Q){var ae,ce=Q===void 0?{}:Q,V=ce.refKey,ee=V===void 0?"ref":V,se=ce.ref,ve=ce.onClick,we=ce.onKeyDown,me=ce.selectedItem,Y=ce.index,Ne=Dt(ce,CI),I=q.current.state,F=Bs(me,Y,I.selectedItems,"Pass either item or index to getSelectedItemProps!"),Z=F[1],ne=Z>-1&&Z===I.activeIndex,W=function(){f({type:dl,index:Z})},J=function(M){var L=Tn(M);L&&S[L]&&S[L](M)};return _e((ae={},ae[ee]=sr(se,function(M){M&&T.current.push(M)}),ae.tabIndex=ne?0:-1,ae.onClick=Be(ve,W),ae.onKeyDown=Be(we,J),ae),Ne)},[f,q,S]),k=x.useCallback(function(Q,ae){var ce,V=Q===void 0?{}:Q,ee=V.refKey,se=ee===void 0?"ref":ee,ve=V.ref,we=V.onKeyDown,me=V.onClick,Y=V.preventKeyAction,Ne=Y===void 0?!1:Y,I=Dt(V,RI),F=ae===void 0?{}:ae,Z=F.suppressRefError,ne=Z===void 0?!1:Z;z("getDropdownProps",ne,se,D);var W=function(M){var L=Tn(M);L&&B[L]&&B[L](M)},J=function(){f({type:ml})};return _e((ce={},ce[se]=sr(ve,function(M){M&&(D.current=M)}),ce),!Ne&&{onKeyDown:Be(we,W),onClick:Be(me,J)},I)},[f,B,z]),N=x.useCallback(function(Q){f({type:wl,selectedItem:Q})},[f]),O=x.useCallback(function(Q){f({type:xl,selectedItem:Q})},[f]),j=x.useCallback(function(Q){f({type:yl,selectedItems:Q})},[f]),re=x.useCallback(function(Q){f({type:_l,activeIndex:Q})},[f]),A=x.useCallback(function(){f({type:Il})},[f]);return{getSelectedItemProps:y,getDropdownProps:k,addSelectedItem:N,removeSelectedItem:O,setSelectedItems:j,setActiveIndex:re,reset:A,selectedItems:b,activeIndex:v}}const DI=r=>{const{items:i=[],isMulti:n=!1,isSearchable:a=!1,value:s,defaultValue:l,inputValue:u,onChange:d,onInputChange:f,getOptionLabel:v=M=>(M==null?void 0:M.label)||"",getOptionValue:b=M=>(M==null?void 0:M.value)||"",isOpen:w,onOpenChange:D,customOptionGenerator:T,disableInternalFiltering:q=!1,stateReducer:z,isDisabled:S=!1}=r,B=x.useCallback(M=>{const L=v(M);if(typeof L=="string")return L;if(typeof L=="number")return String(L);const oe=M;if(typeof oe=="object"&&oe!==null){if(typeof oe.label=="string")return oe.label;if(typeof oe.name=="string")return oe.name}return String(b(M))},[v,b]),y=M=>M?Array.isArray(M)?M:[M]:[],k=l!==void 0?l:s!==void 0?s:null,[N,O]=x.useState(()=>y(k)),[j,re]=x.useState(u||""),[A,Q]=x.useState(()=>w!==void 0?w:!1),ae=s!==void 0?y(s):N,ce=u!==void 0?u:j,V=w!==void 0?w:A,ee=x.useCallback(M=>{w===void 0&&Q(M),D==null||D(M)},[w,D]),se=x.useCallback(M=>{s===void 0&&O(M);const L=n?M:M[0]||null;d==null||d(L)},[s,n,d]),ve=x.useCallback(M=>{u===void 0&&re(M),f==null||f(M)},[u,f]),we=x.useMemo(()=>T?T(ce,i):q||!a||!ce?i:i.filter(M=>B(M).toLowerCase().includes(ce.toLowerCase())),[i,ce,T,q,a,B]),me=kl({selectedItems:ae,onSelectedItemsChange:M=>{const L=M.selectedItems||[];se(L)}}),Y={items:we,itemToString:M=>M?B(M):"",isOpen:V,onIsOpenChange:({isOpen:M})=>{M!==void 0&&ee(M)},selectedItem:n?null:ae[0]||null,onSelectedItemChange:M=>{!n&&M.selectedItem&&se([M.selectedItem])}},Ne=M=>(L,oe)=>{const ue=(()=>{const{changes:le,type:fe}=oe;return n&&le.selectedItem&&(M===Or?[Or.stateChangeTypes.InputKeyDownEnter,Or.stateChangeTypes.ItemClick]:[zn.stateChangeTypes.ToggleButtonKeyDownEnter,zn.stateChangeTypes.ItemClick]).includes(fe)?(!ae.some($=>b($)===b(le.selectedItem))&&le.selectedItem&&me.addSelectedItem(le.selectedItem),{...le,isOpen:!0,highlightedIndex:L.highlightedIndex,...a&&{inputValue:""}}):fe===Or.stateChangeTypes.InputBlur&&!n&&ae.length>0?{...le,inputValue:B(ae[0])}:le})();return z?z(L,{...oe,changes:ue}):ue},I=a?Or({...Y,inputValue:ce,onInputValueChange:({inputValue:M,type:L})=>{!M&&L===Or.stateChangeTypes.InputChange&&se([]),ve(M||"")},stateReducer:Ne(Or),initialIsOpen:w!==void 0?w:!1,defaultIsOpen:!1}):zn({...Y,stateReducer:Ne(zn),initialIsOpen:w!==void 0?w:!1,defaultIsOpen:!1}),F=()=>{S||(ee(!V),"toggleMenu"in I&&I.toggleMenu())},Z=x.useCallback(()=>{S||(ee(!0),"openMenu"in I&&I.openMenu())},[ee,I,S]),ne=x.useCallback(()=>{ee(!1),"closeMenu"in I&&I.closeMenu()},[ee,I]),W=x.useCallback(()=>{se([]),ve(""),n&&me.reset()},[se,ve,n,me]),J=x.useCallback(M=>{n&&me.removeSelectedItem(M)},[n,me]);return{isOpen:I.isOpen,selectedItem:I.selectedItem,highlightedIndex:I.highlightedIndex,inputValue:ce,getToggleButtonProps:I.getToggleButtonProps,getMenuProps:I.getMenuProps,getItemProps:I.getItemProps,getInputProps:"getInputProps"in I?I.getInputProps:void 0,selectedItems:ae,filteredItems:we,setInputValue:ve,setIsOpen:ee,toggleMenu:F,openMenu:Z,closeMenu:ne,clearSelection:W,removeItem:J,multipleSelection:me,isMulti:n,isSearchable:a}},jf=({size:r="md",color:i="primary",isInvalid:n=!1,isDisabled:a=!1,className:s,children:l,options:u=[],value:d,defaultValue:f,onChange:v,isMulti:b,inputValue:w,onInputChange:D,isSearchable:T,isOpen:q,onOpenChange:z,customOptionGenerator:S,disableInternalFiltering:B,getOptionLabel:y=A=>typeof A=="string"||typeof A=="number"?String(A):(A==null?void 0:A.label)||(A==null?void 0:A.name)||String(A),getOptionValue:k=A=>typeof A=="string"||typeof A=="number"?String(A):(A==null?void 0:A.value)||(A==null?void 0:A.id)||(A==null?void 0:A.name)||String(A),isOptionDisabled:N=A=>(A==null?void 0:A.isDisabled)||!1,formatOptionLabel:O,stateReducer:j,...re})=>{const[A,Q]=x.useState(!1),ae=x.useMemo(()=>k_(u),[u]),ce=DI({items:ae,value:d,defaultValue:f,onChange:v,isMulti:b,inputValue:w,onInputChange:D,isSearchable:T,isOpen:q,onOpenChange:z,getOptionLabel:y,getOptionValue:k,customOptionGenerator:S,disableInternalFiltering:B,stateReducer:j,isDisabled:a}),V={size:r,color:n?"negative":i,isInvalid:n,isDisabled:a,hasMessage:A,setHasMessage:Q,downshift:ce,options:u,getOptionLabel:y,getOptionValue:k,isOptionDisabled:N,formatOptionLabel:O};return E.jsx(Bp.Provider,{value:V,children:E.jsx("div",{"data-qui":"Select",className:G(i_(),s),...re,children:l})})},zI=x.forwardRef(({className:r,children:i,isFocused:n,isDisabled:a,...s},l)=>{const{size:u,color:d,isDisabled:f,hasMessage:v,downshift:b,isInvalid:w}=Et(),D=a??f,T=n??b.isOpen;return E.jsx("div",{ref:l,className:G(a_({size:u,color:d,isDisabled:D,isFocused:!!T,isInvalid:w&&!b.isOpen,hasMessage:v}),r),"aria-disabled":D,"aria-invalid":w,role:"combobox",tabIndex:D?-1:0,...s,children:i})}),MI=({className:r,children:i,isMulti:n})=>E.jsx("div",{className:G(s_({isMulti:n}),r),children:i}),Ni=x.forwardRef(({isHidden:r,inputClassName:i,...n},a)=>{const{size:s,color:l}=Et();return r?E.jsx("input",{ref:a,type:"text",style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...n}):E.jsx("input",{ref:a,type:"text",className:G(l_({size:s,color:l}),i),...n})}),TI=({className:r,children:i})=>{const{size:n,color:a}=Et();return E.jsx("div",{className:G(c_({size:n,color:a}),r),children:i})},AI=({className:r,children:i,data:n,isDisabled:a})=>{const{size:s,color:l,getOptionLabel:u,formatOptionLabel:d}=Et();return E.jsx("div",{className:G(u_({size:s,color:l,isDisabled:a}),r),children:i||(d?d(n):u(n))})},Vf=({className:r,children:i,data:n,isDisabled:a,isFocused:s,onRemove:l})=>{const{size:u,color:d,downshift:f,getOptionLabel:v,formatOptionLabel:b}=Et(),w=()=>{l?l(n):f.removeItem(n)};return E.jsxs("div",{className:G(d_({size:u,color:d,isDisabled:a,isFocused:s}),r),children:[E.jsx("div",{className:p_({size:u}),children:i||(b?b(n):v(n))}),!a&&E.jsx("div",{className:f_({size:u,color:d,isDisabled:!1}),onClick:w,children:E.jsx(Wi,{className:"w-3 h-3"})})]})},$f=({color:r,className:i,children:n,onClick:a,isDisabled:s,...l})=>{const{size:u,color:d,isDisabled:f,downshift:v}=Et(),b=s??f,w=v.selectedItems.length>0;if(b||!w)return null;const D=T=>{T.stopPropagation(),a?a(T):v.clearSelection()};return E.jsx("div",{className:G(Fp({size:u,color:r||d,isDisabled:b}),i),onClick:D,role:"button",tabIndex:0,"aria-label":"Clear selection",...l,children:n||E.jsx(Dx,{})})},PI=({className:r,children:i,onClick:n,isDisabled:a,...s})=>{const{size:l,color:u,isDisabled:d,downshift:f}=Et(),v=a??d,b=f.inputValue.length>0&&f.isSearchable;if(v||!b)return null;const w=D=>{D.stopPropagation(),n?n(D):f.setInputValue("")};return E.jsx("div",{className:G(Fp({size:l,color:u,isDisabled:v}),r),onClick:w,role:"button",tabIndex:0,"aria-label":"Clear selection",...s,children:i||E.jsx(Wi,{})})},Kf=({color:r,className:i,children:n,onClick:a,isDisabled:s,...l})=>{const{size:u,color:d,isDisabled:f,downshift:v}=Et(),b=s??f,w=v.isOpen,D=T=>{T.stopPropagation(),b||(a?a(T):v.toggleMenu())};return E.jsx("div",{className:G(h_({size:u,color:r||d,isDisabled:b}),"cursor-pointer",i),onClick:D,role:"button",tabIndex:b?-1:0,"aria-label":w?"Close menu":"Open menu","aria-expanded":w,"aria-disabled":b,onMouseDown:T=>{T.preventDefault()},...l,children:n||E.jsx(zx,{className:G("transition-transform duration-200",{"rotate-180":w})})})},LI=x.forwardRef(({className:r,children:i,placement:n,...a},s)=>{const{size:l,hasMessage:u,color:d}=Et();return E.jsx("div",{"data-qui":"SelectMenu",ref:s,className:G(g_({size:l,placement:n,hasMessage:u,color:d}),r),...a,children:i})}),BI=x.forwardRef(({className:r,children:i,maxHeight:n=300,...a},s)=>{const{size:l}=Et();return E.jsx(Ds,{scrollableNodeProps:{ref:s},className:G(v_({size:l}),r),style:{maxHeight:n},...a,children:i})}),Os=({className:r,children:i,data:n,isDisabled:a,isFocused:s,isSelected:l,innerProps:u,...d})=>{const{size:f,color:v,getOptionLabel:b,formatOptionLabel:w}=Et();return E.jsx("div",{"data-qui":"SelectOption",className:G(b_({size:f,color:v,isDisabled:a,isFocused:s,isSelected:l}),r),...u,...d,children:i||(w?w(n):b(n))})},FI=({className:r,children:i,data:n,label:a})=>{const{size:s}=Et();return E.jsxs("div",{"data-qui":"SelectGroup",className:G(m_({size:s}),r),children:[E.jsx(WI,{children:a||n.label}),i]})},WI=({className:r,children:i})=>{const{size:n,color:a}=Et();return E.jsx("div",{className:G(w_({size:n,color:a}),r),children:i})},bs=({className:r,children:i,inputValue:n})=>{const{size:a}=Et();return E.jsx("div",{className:G(y_({size:a}),r),children:i||`No options found${n?` for "${n}"`:""}`})},Uf=({icon:r,className:i,children:n,...a})=>{const{size:s,color:l,setHasMessage:u,isInvalid:d}=Et();return x.useEffect(()=>(u(!0),()=>u(!1)),[u]),E.jsxs("div",{role:"alert",className:G(__({size:s,color:l,isInvalid:d}),i),...a,children:[r&&E.jsx("div",{className:G(I_({size:s}),i),children:r}),E.jsx("p",{children:n})]})},HI=({isOpen:r,usePortal:i,controlRef:n,children:a})=>{const[s,l]=x.useState(null);return x.useLayoutEffect(()=>{if(i&&r&&n.current){const u=()=>{var d;const f=(d=n.current)==null?void 0:d.getBoundingClientRect();f&&l({top:f.top+window.scrollY,left:f.left+window.scrollX,width:f.width,height:f.height})};return u(),window.addEventListener("resize",u),window.addEventListener("scroll",u,!0),()=>{window.removeEventListener("resize",u),window.removeEventListener("scroll",u,!0)}}},[r,i,n]),r?i&&s?Ns.createPortal(E.jsx("div",{className:"absolute z-50",style:{top:s.top,left:s.left,width:s.width,height:s.height,pointerEvents:"none"},children:E.jsx("div",{className:"relative w-full h-full",children:E.jsx("div",{style:{pointerEvents:"auto"},children:a})})}),document.body):E.jsx(E.Fragment,{children:a}):null},ms=r=>i=>{r.forEach(n=>{typeof n=="function"?n(i):n!=null&&"current"in n&&(n.current=i)})},qf=x.forwardRef(({placeholder:r,noOptionsMessage:i="",hideNoOptions:n=!1,loadingMessage:a="Loading...",isClearable:s=!1,isSearchClearable:l=!1,isLoading:u=!1,isRequired:d=!1,hideIndicators:f=!1,hideDropdownIndicator:v=!1,searchPlacement:b="trigger",hideSelectedOptions:w=!1,onFocus:D,onBlur:T,renderMenuHeader:q,formatOptionLabel:z,displayFormattedOption:S=!1,renderMultiValue:B,renderOption:y,inputRef:k,controlShouldRenderValue:N=!0,name:O,id:j,onSelectionComplete:re,"aria-label":A,"aria-labelledby":Q,"aria-describedby":ae,children:ce,usePortal:V=!1,...ee},se)=>{const{size:ve,isInvalid:we,isDisabled:me,downshift:Y,options:Ne=[],getOptionLabel:I,getOptionValue:F,isOptionDisabled:Z}=Et(),ne=x.useRef(null),W=k||ne,J=x.useRef(null),{isOpen:M,openMenu:L,selectedItem:oe,inputValue:ue,highlightedIndex:le,getToggleButtonProps:fe,getMenuProps:$,getInputProps:xe,getItemProps:ie,isMulti:Ue,isSearchable:Fe,multipleSelection:Qe}=Y,{getDropdownProps:ot}=Qe,Xe=Ue?Y.selectedItems??[]:oe?[oe]:[],qe=Xe.length>0,st=l&&!me&&!f,zt=s&&qe&&!me&&!f,tt=!v&&!f,Mt=!qe&&(!Fe||!ue)||!N,Ut={},gr={};Object.entries(ee).forEach(([Ae,Pe])=>{Ae.startsWith("data-")||Ae.startsWith("aria-")||Ae==="role"?Ut[Ae]=Pe:gr[Ae]=Pe});const mt=x.useMemo(()=>ms([J,se]),[se]),lt=$({},{suppressRefError:!0}),wt=ot({preventKeyAction:M}),cr=(xe==null?void 0:xe({ref:W,disabled:me,required:d,name:O,id:j,"aria-label":A,"aria-labelledby":Q,"aria-describedby":ae,"aria-invalid":we,onFocus:D,onBlur:T,...gr,...wt}))??{},{ref:an,...$r}=cr,Kr=x.useMemo(()=>ms([an,wt.ref]),[an,wt.ref]),Bn=Ae=>Xe.some(Pe=>F(Pe)===F(Ae)),sn=Ae=>w?Ae.filter(Pe=>!Bn(Pe)):Ae,Fn=Ae=>w?Ae.map(Pe=>({...Pe,options:sn(Pe.options)})).filter(Pe=>Pe.options.length>0):Ae,ln=Ae=>{re==null||re(F(Ae),Ae)},Ui=Fe?{}:fe({disabled:me,...wt,ref:ms([mt,wt.ref])});return E.jsxs("div",{className:"relative",children:[E.jsxs(zI,{...Fe?{ref:mt}:Ui,...Ut,isFocused:M,isDisabled:me,onClick:Ae=>{Ae.stopPropagation(),Fe?L():Fe||Y.toggleMenu()},children:[ce||E.jsxs(MI,{isMulti:Ue,children:[Ue&&N&&Xe.map((Ae,Pe)=>B?B({data:Ae,index:Pe,isDisabled:me,onRemove:xt=>Y.removeItem(xt)}):E.jsx(Vf,{data:Ae,index:Pe,isDisabled:me},F(Ae))),!Ue&&qe&&N&&!Fe&&E.jsx("div",{className:"flex items-center gap-2",children:E.jsx(AI,{data:Xe[0],isDisabled:me,children:z&&S?z(Xe[0]):I(Xe[0])})}),Fe&&b==="trigger"?E.jsx(Ni,{ref:Kr,...$r,placeholder:r}):E.jsxs(E.Fragment,{children:[E.jsx(Ni,{ref:Kr,...$r,isHidden:!0,value:Xe.map(Ae=>F(Ae)).join(",")}),Mt&&E.jsx(TI,{children:r})]})]}),E.jsxs("div",{className:G("flex items-center size-fit gap-1",{hidden:!zt&&!tt}),children:[st&&E.jsx(PI,{}),zt&&E.jsx($f,{}),tt&&E.jsx(Kf,{...Fe?fe({disabled:me,"aria-label":M?"Close menu":"Open menu"}):{}})]})]}),E.jsx(HI,{isOpen:M,usePortal:V,controlRef:J,children:n&&Y.filteredItems.length===0?E.jsx("div",{...lt,style:{display:"none"},"aria-hidden":"true"}):E.jsxs(LI,{...lt,children:[q&&q(Y),Fe&&b==="menu"&&E.jsx("div",{className:"p-2",children:E.jsx(Ni,{ref:Kr,...$r,autoFocus:!0,placeholder:r,onClick:Ae=>Ae.stopPropagation()})}),E.jsx(BI,{children:u?E.jsx("div",{className:x_({size:ve}),children:a}):Y.filteredItems.length===0?E.jsx(bs,{inputValue:ue,children:typeof i=="function"?i(ue):i}):Wp(Ne)?(()=>{const Ae=Fn(Ne);return Ae.length===0?E.jsx(bs,{inputValue:ue,children:typeof i=="function"?i(ue):i}):Ae.map(Pe=>E.jsx(FI,{data:Pe,label:Pe.label,options:Pe.options,children:Pe.options.map(xt=>{const vr=F(xt),cn=Xe.some(Wn=>F(Wn)===vr),Ur=Y.filteredItems.findIndex(Wn=>F(Wn)===vr),un=le===Ur,dn=Z(xt),Cr=ie({item:xt,index:Ur,onClick:()=>ln(xt)});return E.jsx(Os,{...Cr,data:xt,isDisabled:dn,isFocused:un,isSelected:cn,children:z?z(xt):I(xt)},vr)})},Pe.label))})():(()=>{const Ae=sn(Y.filteredItems);return Ae.length===0?E.jsx(bs,{inputValue:ue,children:typeof i=="function"?i(ue):i}):Ae.map(Pe=>{const xt=F(Pe),vr=Xe.some(Cr=>F(Cr)===xt),cn=Y.filteredItems.findIndex(Cr=>F(Cr)===xt),Ur=le===cn,un=Z(Pe),dn=ie({item:Pe,index:cn,onClick:()=>ln(Pe)});return y?E.jsx(x.Fragment,{children:y({...dn,data:Pe,isDisabled:un,isFocused:Ur,isSelected:vr})},xt):E.jsx(Os,{...dn,data:Pe,isDisabled:un,isFocused:Ur,isSelected:vr,children:z?z(Pe):I(Pe)},xt)})})()})]})})]})});jf.displayName="Select.Root";Ni.displayName="Select.Input";Vf.displayName="Select.MultiValue";$f.displayName="Select.ClearIndicator";Kf.displayName="Select.DropdownIndicator";Os.displayName="Select.Option";Uf.displayName="Select.Message";const jI=qf;jI.displayName="Select.Field";const ws={Root:jf,Message:Uf,Field:qf};x.createContext(void 0);const VI=({active:r,disabled:i,error:n,isOpen:a,className:s})=>G("flex w-full items-center justify-between text-left leading-5 transition-colors duration-200",{"cursor-pointer":!i,"text-inactive-text":i,"bg-primary hover:bg-primary-hover text-body":r&&!i,"text-negative":n&&!r&&!i,"bg-primary text-grey-50":a&&!r&&!i,"text-muted":!r&&!i&&!n,"hover:bg-primary-hover hover:text-tab-active-fg":!i&&!r},s),$I=x.forwardRef(({active:r,disabled:i,error:n,isOpen:a,className:s,children:l,as:u="div",...d},f)=>{const v=VI({active:r,disabled:i,error:n,isOpen:a,className:s});return E.jsx(u,{"data-qui":"ListItem",ref:f,className:v,"aria-disabled":i,"aria-selected":r,"aria-invalid":n,"aria-expanded":a,role:d.onClick?"button":"listitem",...d,children:l})});$I.displayName="ListItem";const KI=({icon:r,label:i,path:n,settingsKey:a})=>{var u;const s=ho(),l=(u=s.getPreferences()[n])==null?void 0:u[a];return E.jsx("div",{className:"select-none space-y-4 rounded-md p-4 hover:bg-primary-hover",children:E.jsxs("div",{className:"flex items-center",children:[E.jsx("span",{className:"mr-3 flex h-6 w-6 items-center justify-center",children:x.createElement(r,{className:"w-full h-full"})}),E.jsx("div",{className:"text-sm",children:i}),E.jsx("span",{className:"ml-auto",children:E.jsx(Mp,{checked:l,onChange:d=>{s.actions.setSetting({path:n,settingsKey:a,value:d})}})})]})})},UI=({icon:r,label:i,path:n,settingsKey:a})=>{var q;const[s,l]=x.useState(null),[u,d]=x.useState(""),f=ho(),v=f.getQodly(),b=f.getWebForms(),w=(q=f.getPreferences()[n])==null?void 0:q[a];x.useEffect(()=>{b.length||f.actions.fetchFolderContentWithoutExpanding(Rt.FolderRootPath.WEBFORMS)},[b.length]);const D=x.useMemo(()=>{const z=b.filter(B=>B.name.toLowerCase().includes(u.toLowerCase())).map(({name:B})=>({label:B,value:B})),S=yi.sortBy(z,[B=>B.label.toLowerCase()]);if(u&&!b.find(B=>B.name.toLowerCase()===u.toLowerCase()))try{Rt.validateName(u),S.push({label:`Create "${u}"`,value:u,__isNew__:!0})}catch{}return S},[b,u]),T=async z=>{l(null);const S=(z==null?void 0:z.value)||"";if(z!=null&&z.__isNew__){const B=f.findNodeByPath(Rt.FolderRootPath.WEBFORMS),y=S.trim();try{Rt.validateName(y)}catch(k){l({message:k.message});return}f.actions.createNewFileAndOpen({fileName:S,path:Rt.FolderRootPath.WEBFORMS,type:Rt.FileFolderType.WEBFORMS,parentNode:B,qodly:v})}f.actions.setSetting({path:n,settingsKey:a,value:S})};return E.jsx("div",{"data-cy":"settings-tooltip-behavior-cy",className:"select-none space-y-4 rounded-md p-4 hover:bg-primary-hover",children:E.jsxs("div",{className:"flex items-center",children:[E.jsx("span",{className:"mr-3 flex h-6 w-6 items-center justify-center",children:x.createElement(r,{className:"w-full h-full"})}),E.jsx("div",{className:"text-sm",children:i}),E.jsxs(ws.Root,{color:s?"negative":"primary",className:"w-[208px] ml-auto",options:D,value:w?{label:w,value:w}:null,onChange:T,inputValue:u,onInputChange:d,isSearchable:!0,getOptionLabel:z=>z.label,children:[E.jsx(ws.Field,{placeholder:"Page",formatOptionLabel:z=>E.jsxs("div",{className:"flex items-center",children:[!z.__isNew__&&E.jsx(vt.FdWebform,{className:"mr-2 h-4 w-4"}),z.label]}),isClearable:!0,onBlur:()=>{l(null)}}),s&&E.jsx(ws.Message,{children:s.message})]})]})})},qI=({icon:r,label:i,path:n,settingsKey:a})=>{var f;const s=ho(),u=(((f=s.getPreferences()[n])==null?void 0:f[a])||0)/1e3,d=v=>{const b=Math.max(1,Math.min(60,v));s.actions.setSetting({path:n,settingsKey:a,value:b*1e3})};return E.jsx("div",{className:"select-none space-y-4 rounded p-4 hover:bg-primary-hover",children:E.jsxs("div",{className:"flex items-center",children:[E.jsx("span",{className:"mr-3 flex h-6 w-6 items-center justify-center",children:x.createElement(r,{className:"w-full h-full"})}),E.jsx("div",{className:"text-sm",children:i}),E.jsx("span",{className:"relative ml-auto",children:E.jsx(io.Root,{color:"primary",className:"w-12",children:E.jsxs(io.Group,{children:[E.jsx(io.Field,{value:u,onChange:v=>{const b=parseInt(v.target.value);isNaN(b)||d(b)}}),E.jsxs("div",{className:"flex flex-col",children:[E.jsx(io.Icon,{isAction:!0,onClick:()=>d(u+1),className:"grid place-content-center m-0 p-[1px]",children:E.jsx(vt.FdUp,{className:"size-2"})}),E.jsx(io.Icon,{isAction:!0,onClick:()=>d(u-1),className:"grid place-content-center m-0 p-[1px]",children:E.jsx(vt.FdDown,{className:"size-2"})})]})]})})})]})})},GI={switch:KI,"icon-select":Cx,number:qI,"weform-selector":UI},Yd=(r,i="session")=>Object.entries(r[i]).map(([n,a],s)=>{const l=GI[a.field];return x.createElement(l,{...a,key:s,settingsKey:n,path:i})}),YI=({currentTab:r})=>{const n=ho().getQodly(),a={session:{"webforms.renderer.showPopOver":{label:"Show Renderer Pop Over",icon:vt.FdInfoBold,field:"switch"},"webforms.renderer.showUnsavedPopOver":{label:"Show Unsaved Files Pop Over",icon:vt.FdInfoBold,field:"switch"},"webforms.tooltip.behavior":{label:"Tooltip Behavior",icon:vt.FdTooltip,field:"icon-select",options:[{icon:vt.FdEye,value:ut.ETooltipBehavior.SHOW_AFTER_TIMEOUT,tooltip:"Show after timeout"},{icon:vt.FdHidden,value:ut.ETooltipBehavior.HIDE_AFTER_TIMEOUT,tooltip:"Hide after timeout"}]},"webforms.tooltip.timeout":{label:"Tooltip timeout (in seconds)",icon:vt.FdTime,field:"number"},"studio.tips":{label:"Enable Helper Tips",icon:vt.FdMagic,field:"switch"},...n?{"welcometour.active":{label:"Activate Welcome Tour",icon:vt.FdMagic,field:"switch"}}:{},"studio.enablePreview":{label:"Activate tabs preview mode",icon:vt.FdSameLoaderTab,field:"switch"}},project:{"webforms.renderer.indexPage":{label:"Start page",icon:vt.FdPlaySettings,field:"weform-selector"},"webforms.display-mode":{label:"Default Display Mode",icon:vt.FdWebform,field:"icon-select",options:[{icon:vt.FdCompact,value:ut.EDisplayMode.COMPACT,tooltip:"Neutral"},{icon:vt.FdAiry,value:ut.EDisplayMode.AIRY,tooltip:"Airy"}]}}};return E.jsx("div",{className:"mx-auto mt-12 max-w-2xl flex-1",children:r==="session"?Yd(a,"session"):Yd(a,"project")})},Gf=({defaultActiveTab:r="session"})=>{const i=r,[n,a]=x.useState(i);return E.jsx(Is,{depth:1,className:"h-full",children:E.jsxs("div",{className:"flex h-full",children:[E.jsx(Is,{depth:1,className:"w-56 border-r py-4",children:E.jsxs("ul",{className:"space-y-1 text-sm",children:[E.jsxs("li",{"data-cy":"settings-user-li-cy",onClick:()=>a("session"),className:`flex cursor-pointer items-center p-2 ${n!=="session"?"text-inactive-text hover:bg-primary-hover hover:text-body":"bg-primary text-body"}`,children:[E.jsx(vt.FdUser,{className:"mr-2 h-5 w-5"})," User"]}),E.jsxs("li",{"data-cy":"settings-application-li-cy",onClick:()=>a("project"),className:`flex cursor-pointer items-center p-2 ${n!=="project"?"text-inactive-text hover:bg-primary-hover hover:text-body":"bg-primary text-body"}`,children:[E.jsx(vt.FdDatabase,{className:"mr-2 h-5 w-5"})," Application"]})]})}),E.jsx("div",{className:"h-full w-full",children:E.jsx(YI,{currentTab:n})})]})})},XI=({defaultActiveTab:r})=>E.jsx("div",{className:"relative h-screen bg-grey-800 z-10 overflow-hidden text-white",children:E.jsx(Gf,{defaultActiveTab:r})}),ZI=({path:r,defaultActiveTab:i})=>{const n=tp(r);return E.jsx(Zd,{adapter:n,children:E.jsx(XI,{defaultActiveTab:i})})},JI=({path:r=Rt.SETTINGS_TAB_PATH,initialValue:i,defaultActiveTab:n="session",webforms:a,onChange:s,onFetchFolderContentWithoutExpanding:l,onCreateNewFileAndOpen:u})=>E.jsx(ep,{tabPath:r,webforms:a,preferences:i,onChange:s,onFetchFolderContentWithoutExpanding:l,onCreateNewFileAndOpen:u,children:E.jsx(ZI,{path:r,defaultActiveTab:n})});exports.SETTINGS_EDITOR_SCOPE_CLASS=xx.SETTINGS_EDITOR_SCOPE_CLASS;exports.EditorStateAdapterProvider=Zd;exports.ReducerAdapterProvider=ep;exports.SettingsEditor=Gf;exports.Standalone=JI;exports.useReducerAdapter=tp;exports.useReduxAdapter=_x;
|
|
53
77
|
//# sourceMappingURL=index.cjs.js.map
|