diff --git a/core-packages/pr-previews/pr-71/assets/1p5tPTcKkMc5.js b/core-packages/pr-previews/pr-71/assets/1p5tPTcKkMc5.js deleted file mode 100644 index 8b0908a..0000000 --- a/core-packages/pr-previews/pr-71/assets/1p5tPTcKkMc5.js +++ /dev/null @@ -1,13 +0,0 @@ -var _t=pe=>{throw TypeError(pe)};var kt=(pe,le,Oe)=>le.has(pe)||_t("Cannot "+Oe);var St=(pe,le,Oe)=>(kt(pe,le,"read from private field"),Oe?Oe.call(pe):le.get(pe)),Ct=(pe,le,Oe)=>le.has(pe)?_t("Cannot add the same private member more than once"):le instanceof WeakSet?le.add(pe):le.set(pe,Oe),Ot=(pe,le,Oe,o)=>(kt(pe,le,"write to private field"),o?o.call(pe,Oe):le.set(pe,Oe),Oe);import{c as Dt,a as Rt,r as mt,a1 as Lt,a2 as Bt,j as Ze,O as ht,V as zt,b as Nt}from"./BNseSxaIihtT.js";import{H as Tt}from"./CoHNYkuyZj4U.js";import{u as qt}from"./DrpD1hfjkN6P.js";import{T as Vt}from"./GR5gr-89Qrme.js";const Kt="https://registry.npmjs.org/@open-pioneer/runtime";var lt;class Wt{constructor(le){Ct(this,lt);Ot(this,lt,le.references.http)}async fetchResource(){const le=await St(this,lt).fetch(Kt,{headers:{Accept:"application/json"}});if(!le.ok)throw new Error("Request failed: "+le.status);return await le.json()}}lt=new WeakMap;const Ht=Dt("http-app:ExampleInterceptor");class Ut{async beforeRequest(le){Ht.info("interceptor invoked with",le),le.target.searchParams.set("a","b")}}const Gt={"http-app":{name:"http-app",services:{HttpClient:{name:"HttpClient",clazz:Wt,provides:[{name:"http-app.HttpClient",qualifier:void 0}],references:{http:{name:"http.HttpService",qualifier:void 0,all:!1}}},ExampleInterceptor:{name:"ExampleInterceptor",clazz:Ut,provides:[{name:"http.Interceptor",qualifier:void 0}],references:{}}},ui:{references:[{name:"http-app.HttpClient",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:Tt,provides:[{name:"http.HttpService",qualifier:void 0}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},Jt="",$t=[];function Yt(pe){throw new Error(`Unsupported locale: '${pe}'`)}const Qt=Rt(Jt),Zt=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:Yt,locales:$t,packages:Gt,styles:Qt},Symbol.toStringTag,{value:"Module"})),Xt="http-app",ea=qt.bind(void 0,Xt);var wt={exports:{}};(function(pe,le){(function(Oe,o){pe.exports=o(mt)})(Lt,function(Oe){return function(o){var n={};function e(s){if(n[s])return n[s].exports;var u=n[s]={i:s,l:!1,exports:{}};return o[s].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=o,e.c=n,e.d=function(s,u,f){e.o(s,u)||Object.defineProperty(s,u,{enumerable:!0,get:f})},e.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},e.t=function(s,u){if(1&u&&(s=e(s)),8&u||4&u&&typeof s=="object"&&s&&s.__esModule)return s;var f=Object.create(null);if(e.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:s}),2&u&&typeof s!="string")for(var p in s)e.d(f,p,(function(d){return s[d]}).bind(null,p));return f},e.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return e.d(u,"a",u),u},e.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},e.p="",e(e.s=48)}([function(o,n){o.exports=Oe},function(o,n){var e=o.exports={version:"2.6.12"};typeof __e=="number"&&(__e=e)},function(o,n,e){var s=e(26)("wks"),u=e(17),f=e(3).Symbol,p=typeof f=="function";(o.exports=function(d){return s[d]||(s[d]=p&&f[d]||(p?f:u)("Symbol."+d))}).store=s},function(o,n){var e=o.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=e)},function(o,n,e){o.exports=!e(8)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(o,n){var e={}.hasOwnProperty;o.exports=function(s,u){return e.call(s,u)}},function(o,n,e){var s=e(7),u=e(16);o.exports=e(4)?function(f,p,d){return s.f(f,p,u(1,d))}:function(f,p,d){return f[p]=d,f}},function(o,n,e){var s=e(10),u=e(35),f=e(23),p=Object.defineProperty;n.f=e(4)?Object.defineProperty:function(d,b,E){if(s(d),b=f(b,!0),s(E),u)try{return p(d,b,E)}catch{}if("get"in E||"set"in E)throw TypeError("Accessors not supported!");return"value"in E&&(d[b]=E.value),d}},function(o,n){o.exports=function(e){try{return!!e()}catch{return!0}}},function(o,n,e){var s=e(40),u=e(22);o.exports=function(f){return s(u(f))}},function(o,n,e){var s=e(11);o.exports=function(u){if(!s(u))throw TypeError(u+" is not an object!");return u}},function(o,n){o.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}},function(o,n){o.exports={}},function(o,n,e){var s=e(39),u=e(27);o.exports=Object.keys||function(f){return s(f,u)}},function(o,n){o.exports=!0},function(o,n,e){var s=e(3),u=e(1),f=e(53),p=e(6),d=e(5),b=function(E,_,P){var I,V,Q,L=E&b.F,Z=E&b.G,t=E&b.S,F=E&b.P,R=E&b.B,B=E&b.W,z=Z?u:u[_]||(u[_]={}),j=z.prototype,C=Z?s:t?s[_]:(s[_]||{}).prototype;for(I in Z&&(P=_),P)(V=!L&&C&&C[I]!==void 0)&&d(z,I)||(Q=V?C[I]:P[I],z[I]=Z&&typeof C[I]!="function"?P[I]:R&&V?f(Q,s):B&&C[I]==Q?function(M){var N=function(y,J,K){if(this instanceof M){switch(arguments.length){case 0:return new M;case 1:return new M(y);case 2:return new M(y,J)}return new M(y,J,K)}return M.apply(this,arguments)};return N.prototype=M.prototype,N}(Q):F&&typeof Q=="function"?f(Function.call,Q):Q,F&&((z.virtual||(z.virtual={}))[I]=Q,E&b.R&&j&&!j[I]&&p(j,I,Q)))};b.F=1,b.G=2,b.S=4,b.P=8,b.B=16,b.W=32,b.U=64,b.R=128,o.exports=b},function(o,n){o.exports=function(e,s){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:s}}},function(o,n){var e=0,s=Math.random();o.exports=function(u){return"Symbol(".concat(u===void 0?"":u,")_",(++e+s).toString(36))}},function(o,n,e){var s=e(22);o.exports=function(u){return Object(s(u))}},function(o,n){n.f={}.propertyIsEnumerable},function(o,n,e){var s=e(52)(!0);e(34)(String,"String",function(u){this._t=String(u),this._i=0},function(){var u,f=this._t,p=this._i;return p>=f.length?{value:void 0,done:!0}:(u=s(f,p),this._i+=u.length,{value:u,done:!1})})},function(o,n){var e=Math.ceil,s=Math.floor;o.exports=function(u){return isNaN(u=+u)?0:(u>0?s:e)(u)}},function(o,n){o.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},function(o,n,e){var s=e(11);o.exports=function(u,f){if(!s(u))return u;var p,d;if(f&&typeof(p=u.toString)=="function"&&!s(d=p.call(u))||typeof(p=u.valueOf)=="function"&&!s(d=p.call(u))||!f&&typeof(p=u.toString)=="function"&&!s(d=p.call(u)))return d;throw TypeError("Can't convert object to primitive value")}},function(o,n){var e={}.toString;o.exports=function(s){return e.call(s).slice(8,-1)}},function(o,n,e){var s=e(26)("keys"),u=e(17);o.exports=function(f){return s[f]||(s[f]=u(f))}},function(o,n,e){var s=e(1),u=e(3),f=u["__core-js_shared__"]||(u["__core-js_shared__"]={});(o.exports=function(p,d){return f[p]||(f[p]=d!==void 0?d:{})})("versions",[]).push({version:s.version,mode:e(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(o,n){o.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(o,n,e){var s=e(7).f,u=e(5),f=e(2)("toStringTag");o.exports=function(p,d,b){p&&!u(p=b?p:p.prototype,f)&&s(p,f,{configurable:!0,value:d})}},function(o,n,e){e(62);for(var s=e(3),u=e(6),f=e(12),p=e(2)("toStringTag"),d="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),b=0;bdocument.F=Object<\/script>"),E.close(),b=E.F;P--;)delete b.prototype[f[P]];return b()};o.exports=Object.create||function(E,_){var P;return E!==null?(d.prototype=s(E),P=new d,d.prototype=null,P[p]=E):P=b(),_===void 0?P:u(P,_)}},function(o,n,e){var s=e(5),u=e(9),f=e(57)(!1),p=e(25)("IE_PROTO");o.exports=function(d,b){var E,_=u(d),P=0,I=[];for(E in _)E!=p&&s(_,E)&&I.push(E);for(;b.length>P;)s(_,E=b[P++])&&(~f(I,E)||I.push(E));return I}},function(o,n,e){var s=e(24);o.exports=Object("z").propertyIsEnumerable(0)?Object:function(u){return s(u)=="String"?u.split(""):Object(u)}},function(o,n,e){var s=e(39),u=e(27).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(f){return s(f,u)}},function(o,n,e){var s=e(24),u=e(2)("toStringTag"),f=s(function(){return arguments}())=="Arguments";o.exports=function(p){var d,b,E;return p===void 0?"Undefined":p===null?"Null":typeof(b=function(_,P){try{return _[P]}catch{}}(d=Object(p),u))=="string"?b:f?s(d):(E=s(d))=="Object"&&typeof d.callee=="function"?"Arguments":E}},function(o,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch{typeof window=="object"&&(e=window)}o.exports=e},function(o,n){var e=/-?\d+(\.\d+)?%?/g;o.exports=function(s){return s.match(e)}},function(o,n,e){Object.defineProperty(n,"__esModule",{value:!0}),n.getBase16Theme=n.createStyling=n.invertTheme=void 0;var s=V(e(49)),u=V(e(76)),f=V(e(81)),p=V(e(89)),d=V(e(93)),b=function(j){if(j&&j.__esModule)return j;var C={};if(j!=null)for(var M in j)Object.prototype.hasOwnProperty.call(j,M)&&(C[M]=j[M]);return C.default=j,C}(e(94)),E=V(e(132)),_=V(e(133)),P=V(e(138)),I=e(139);function V(j){return j&&j.__esModule?j:{default:j}}var Q=b.default,L=(0,p.default)(Q),Z=(0,P.default)(_.default,I.rgb2yuv,function(j){var C,M=(0,f.default)(j,3),N=M[0],y=M[1],J=M[2];return[(C=N,C<.25?1:C<.5?.9-C:1.1-C),y,J]},I.yuv2rgb,E.default),t=function(j){return function(C){return{className:[C.className,j.className].filter(Boolean).join(" "),style:(0,u.default)({},C.style||{},j.style||{})}}},F=function(j,C){var M=(0,p.default)(C);for(var N in j)M.indexOf(N)===-1&&M.push(N);return M.reduce(function(y,J){return y[J]=function(K,S){if(K===void 0)return S;if(S===void 0)return K;var U=K===void 0?"undefined":(0,s.default)(K),ue=S===void 0?"undefined":(0,s.default)(S);switch(U){case"string":switch(ue){case"string":return[S,K].filter(Boolean).join(" ");case"object":return t({className:K,style:S});case"function":return function(re){for(var W=arguments.length,ne=Array(W>1?W-1:0),G=1;G1?W-1:0),G=1;G1?W-1:0),G=1;G1?W-1:0),G=1;G1?W-1:0),G=1;G2?M-2:0),y=2;y3?C-3:0),N=3;N1&&arguments[1]!==void 0?arguments[1]:{},J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},K=y.defaultBase16,S=K===void 0?Q:K,U=y.base16Themes,ue=U===void 0?null:U,re=z(J,ue);re&&(J=(0,u.default)({},re,J));var W=L.reduce(function(be,we){return be[we]=J[we]||S[we],be},{}),ne=(0,p.default)(J).reduce(function(be,we){return L.indexOf(we)===-1&&(be[we]=J[we]),be},{}),G=j(W),fe=F(ne,G);return(0,d.default)(R,2).apply(void 0,[fe].concat(M))},3),n.getBase16Theme=function(j,C){if(j&&j.extend&&(j=j.extend),typeof j=="string"){var M=j.split(":"),N=(0,f.default)(M,2),y=N[0],J=N[1];j=(C||{})[y]||b[y],J==="inverted"&&(j=B(j))}return j&&j.hasOwnProperty("base00")?j:void 0})},function(o,n,e){var s,u=typeof Reflect=="object"?Reflect:null,f=u&&typeof u.apply=="function"?u.apply:function(t,F,R){return Function.prototype.apply.call(t,F,R)};s=u&&typeof u.ownKeys=="function"?u.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var p=Number.isNaN||function(t){return t!=t};function d(){d.init.call(this)}o.exports=d,o.exports.once=function(t,F){return new Promise(function(R,B){function z(){j!==void 0&&t.removeListener("error",j),R([].slice.call(arguments))}var j;F!=="error"&&(j=function(C){t.removeListener(F,z),B(C)},t.once("error",j)),t.once(F,z)})},d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var b=10;function E(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function _(t){return t._maxListeners===void 0?d.defaultMaxListeners:t._maxListeners}function P(t,F,R,B){var z,j,C,M;if(E(R),(j=t._events)===void 0?(j=t._events=Object.create(null),t._eventsCount=0):(j.newListener!==void 0&&(t.emit("newListener",F,R.listener?R.listener:R),j=t._events),C=j[F]),C===void 0)C=j[F]=R,++t._eventsCount;else if(typeof C=="function"?C=j[F]=B?[R,C]:[C,R]:B?C.unshift(R):C.push(R),(z=_(t))>0&&C.length>z&&!C.warned){C.warned=!0;var N=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(F)+" listeners added. Use emitter.setMaxListeners() to increase limit");N.name="MaxListenersExceededWarning",N.emitter=t,N.type=F,N.count=C.length,M=N,console&&console.warn&&console.warn(M)}return t}function I(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function V(t,F,R){var B={fired:!1,wrapFn:void 0,target:t,type:F,listener:R},z=I.bind(B);return z.listener=R,B.wrapFn=z,z}function Q(t,F,R){var B=t._events;if(B===void 0)return[];var z=B[F];return z===void 0?[]:typeof z=="function"?R?[z.listener||z]:[z]:R?function(j){for(var C=new Array(j.length),M=0;M0&&(j=F[0]),j instanceof Error)throw j;var C=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw C.context=j,C}var M=z[t];if(M===void 0)return!1;if(typeof M=="function")f(M,this,F);else{var N=M.length,y=Z(M,N);for(R=0;R=0;j--)if(R[j]===F||R[j].listener===F){C=R[j].listener,z=j;break}if(z<0)return this;z===0?R.shift():function(M,N){for(;N+1=0;B--)this.removeListener(t,F[B]);return this},d.prototype.listeners=function(t){return Q(this,t,!0)},d.prototype.rawListeners=function(t){return Q(this,t,!1)},d.listenerCount=function(t,F){return typeof t.listenerCount=="function"?t.listenerCount(F):L.call(t,F)},d.prototype.listenerCount=L,d.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},function(o,n,e){o.exports.Dispatcher=e(140)},function(o,n,e){o.exports=e(142)},function(o,n,e){n.__esModule=!0;var s=p(e(50)),u=p(e(65)),f=typeof u.default=="function"&&typeof s.default=="symbol"?function(d){return typeof d}:function(d){return d&&typeof u.default=="function"&&d.constructor===u.default&&d!==u.default.prototype?"symbol":typeof d};function p(d){return d&&d.__esModule?d:{default:d}}n.default=typeof u.default=="function"&&f(s.default)==="symbol"?function(d){return d===void 0?"undefined":f(d)}:function(d){return d&&typeof u.default=="function"&&d.constructor===u.default&&d!==u.default.prototype?"symbol":d===void 0?"undefined":f(d)}},function(o,n,e){o.exports={default:e(51),__esModule:!0}},function(o,n,e){e(20),e(29),o.exports=e(30).f("iterator")},function(o,n,e){var s=e(21),u=e(22);o.exports=function(f){return function(p,d){var b,E,_=String(u(p)),P=s(d),I=_.length;return P<0||P>=I?f?"":void 0:(b=_.charCodeAt(P))<55296||b>56319||P+1===I||(E=_.charCodeAt(P+1))<56320||E>57343?f?_.charAt(P):b:f?_.slice(P,P+2):E-56320+(b-55296<<10)+65536}}},function(o,n,e){var s=e(54);o.exports=function(u,f,p){if(s(u),f===void 0)return u;switch(p){case 1:return function(d){return u.call(f,d)};case 2:return function(d,b){return u.call(f,d,b)};case 3:return function(d,b,E){return u.call(f,d,b,E)}}return function(){return u.apply(f,arguments)}}},function(o,n){o.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(o,n,e){var s=e(38),u=e(16),f=e(28),p={};e(6)(p,e(2)("iterator"),function(){return this}),o.exports=function(d,b,E){d.prototype=s(p,{next:u(1,E)}),f(d,b+" Iterator")}},function(o,n,e){var s=e(7),u=e(10),f=e(13);o.exports=e(4)?Object.defineProperties:function(p,d){u(p);for(var b,E=f(d),_=E.length,P=0;_>P;)s.f(p,b=E[P++],d[b]);return p}},function(o,n,e){var s=e(9),u=e(58),f=e(59);o.exports=function(p){return function(d,b,E){var _,P=s(d),I=u(P.length),V=f(E,I);if(p&&b!=b){for(;I>V;)if((_=P[V++])!=_)return!0}else for(;I>V;V++)if((p||V in P)&&P[V]===b)return p||V||0;return!p&&-1}}},function(o,n,e){var s=e(21),u=Math.min;o.exports=function(f){return f>0?u(s(f),9007199254740991):0}},function(o,n,e){var s=e(21),u=Math.max,f=Math.min;o.exports=function(p,d){return(p=s(p))<0?u(p+d,0):f(p,d)}},function(o,n,e){var s=e(3).document;o.exports=s&&s.documentElement},function(o,n,e){var s=e(5),u=e(18),f=e(25)("IE_PROTO"),p=Object.prototype;o.exports=Object.getPrototypeOf||function(d){return d=u(d),s(d,f)?d[f]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?p:null}},function(o,n,e){var s=e(63),u=e(64),f=e(12),p=e(9);o.exports=e(34)(Array,"Array",function(d,b){this._t=p(d),this._i=0,this._k=b},function(){var d=this._t,b=this._k,E=this._i++;return!d||E>=d.length?(this._t=void 0,u(1)):u(0,b=="keys"?E:b=="values"?d[E]:[E,d[E]])},"values"),f.Arguments=f.Array,s("keys"),s("values"),s("entries")},function(o,n){o.exports=function(){}},function(o,n){o.exports=function(e,s){return{value:s,done:!!e}}},function(o,n,e){o.exports={default:e(66),__esModule:!0}},function(o,n,e){e(67),e(73),e(74),e(75),o.exports=e(1).Symbol},function(o,n,e){var s=e(3),u=e(5),f=e(4),p=e(15),d=e(37),b=e(68).KEY,E=e(8),_=e(26),P=e(28),I=e(17),V=e(2),Q=e(30),L=e(31),Z=e(69),t=e(70),F=e(10),R=e(11),B=e(18),z=e(9),j=e(23),C=e(16),M=e(38),N=e(71),y=e(72),J=e(32),K=e(7),S=e(13),U=y.f,ue=K.f,re=N.f,W=s.Symbol,ne=s.JSON,G=ne&&ne.stringify,fe=V("_hidden"),be=V("toPrimitive"),we={}.propertyIsEnumerable,ye=_("symbol-registry"),xe=_("symbols"),ce=_("op-symbols"),he=Object.prototype,Pe=typeof W=="function"&&!!J.f,qe=s.QObject,Ue=!qe||!qe.prototype||!qe.prototype.findChild,Ge=f&&E(function(){return M(ue({},"a",{get:function(){return ue(this,"a",{value:7}).a}})).a!=7})?function(g,w,D){var T=U(he,w);T&&delete he[w],ue(g,w,D),T&&g!==he&&ue(he,w,T)}:ue,Je=function(g){var w=xe[g]=M(W.prototype);return w._k=g,w},$e=Pe&&typeof W.iterator=="symbol"?function(g){return typeof g=="symbol"}:function(g){return g instanceof W},Ve=function(g,w,D){return g===he&&Ve(ce,w,D),F(g),w=j(w,!0),F(D),u(xe,w)?(D.enumerable?(u(g,fe)&&g[fe][w]&&(g[fe][w]=!1),D=M(D,{enumerable:C(0,!1)})):(u(g,fe)||ue(g,fe,C(1,{})),g[fe][w]=!0),Ge(g,w,D)):ue(g,w,D)},Xe=function(g,w){F(g);for(var D,T=Z(w=z(w)),X=0,$=T.length;$>X;)Ve(g,D=T[X++],w[D]);return g},et=function(g){var w=we.call(this,g=j(g,!0));return!(this===he&&u(xe,g)&&!u(ce,g))&&(!(w||!u(this,g)||!u(xe,g)||u(this,fe)&&this[fe][g])||w)},Ye=function(g,w){if(g=z(g),w=j(w,!0),g!==he||!u(xe,w)||u(ce,w)){var D=U(g,w);return!D||!u(xe,w)||u(g,fe)&&g[fe][w]||(D.enumerable=!0),D}},tt=function(g){for(var w,D=re(z(g)),T=[],X=0;D.length>X;)u(xe,w=D[X++])||w==fe||w==b||T.push(w);return T},Ke=function(g){for(var w,D=g===he,T=re(D?ce:z(g)),X=[],$=0;T.length>$;)!u(xe,w=T[$++])||D&&!u(he,w)||X.push(xe[w]);return X};Pe||(d((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor!");var g=I(arguments.length>0?arguments[0]:void 0),w=function(D){this===he&&w.call(ce,D),u(this,fe)&&u(this[fe],g)&&(this[fe][g]=!1),Ge(this,g,C(1,D))};return f&&Ue&&Ge(he,g,{configurable:!0,set:w}),Je(g)}).prototype,"toString",function(){return this._k}),y.f=Ye,K.f=Ve,e(41).f=N.f=tt,e(19).f=et,J.f=Ke,f&&!e(14)&&d(he,"propertyIsEnumerable",et,!0),Q.f=function(g){return Je(V(g))}),p(p.G+p.W+p.F*!Pe,{Symbol:W});for(var Re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),_e=0;Re.length>_e;)V(Re[_e++]);for(var Qe=S(V.store),O=0;Qe.length>O;)L(Qe[O++]);p(p.S+p.F*!Pe,"Symbol",{for:function(g){return u(ye,g+="")?ye[g]:ye[g]=W(g)},keyFor:function(g){if(!$e(g))throw TypeError(g+" is not a symbol!");for(var w in ye)if(ye[w]===g)return w},useSetter:function(){Ue=!0},useSimple:function(){Ue=!1}}),p(p.S+p.F*!Pe,"Object",{create:function(g,w){return w===void 0?M(g):Xe(M(g),w)},defineProperty:Ve,defineProperties:Xe,getOwnPropertyDescriptor:Ye,getOwnPropertyNames:tt,getOwnPropertySymbols:Ke});var v=E(function(){J.f(1)});p(p.S+p.F*v,"Object",{getOwnPropertySymbols:function(g){return J.f(B(g))}}),ne&&p(p.S+p.F*(!Pe||E(function(){var g=W();return G([g])!="[null]"||G({a:g})!="{}"||G(Object(g))!="{}"})),"JSON",{stringify:function(g){for(var w,D,T=[g],X=1;arguments.length>X;)T.push(arguments[X++]);if(D=w=T[1],(R(w)||g!==void 0)&&!$e(g))return t(w)||(w=function($,oe){if(typeof D=="function"&&(oe=D.call(this,$,oe)),!$e(oe))return oe}),T[1]=w,G.apply(ne,T)}}),W.prototype[be]||e(6)(W.prototype,be,W.prototype.valueOf),P(W,"Symbol"),P(Math,"Math",!0),P(s.JSON,"JSON",!0)},function(o,n,e){var s=e(17)("meta"),u=e(11),f=e(5),p=e(7).f,d=0,b=Object.isExtensible||function(){return!0},E=!e(8)(function(){return b(Object.preventExtensions({}))}),_=function(I){p(I,s,{value:{i:"O"+ ++d,w:{}}})},P=o.exports={KEY:s,NEED:!1,fastKey:function(I,V){if(!u(I))return typeof I=="symbol"?I:(typeof I=="string"?"S":"P")+I;if(!f(I,s)){if(!b(I))return"F";if(!V)return"E";_(I)}return I[s].i},getWeak:function(I,V){if(!f(I,s)){if(!b(I))return!0;if(!V)return!1;_(I)}return I[s].w},onFreeze:function(I){return E&&P.NEED&&b(I)&&!f(I,s)&&_(I),I}}},function(o,n,e){var s=e(13),u=e(32),f=e(19);o.exports=function(p){var d=s(p),b=u.f;if(b)for(var E,_=b(p),P=f.f,I=0;_.length>I;)P.call(p,E=_[I++])&&d.push(E);return d}},function(o,n,e){var s=e(24);o.exports=Array.isArray||function(u){return s(u)=="Array"}},function(o,n,e){var s=e(9),u=e(41).f,f={}.toString,p=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];o.exports.f=function(d){return p&&f.call(d)=="[object Window]"?function(b){try{return u(b)}catch{return p.slice()}}(d):u(s(d))}},function(o,n,e){var s=e(19),u=e(16),f=e(9),p=e(23),d=e(5),b=e(35),E=Object.getOwnPropertyDescriptor;n.f=e(4)?E:function(_,P){if(_=f(_),P=p(P,!0),b)try{return E(_,P)}catch{}if(d(_,P))return u(!s.f.call(_,P),_[P])}},function(o,n){},function(o,n,e){e(31)("asyncIterator")},function(o,n,e){e(31)("observable")},function(o,n,e){n.__esModule=!0;var s,u=e(77),f=(s=u)&&s.__esModule?s:{default:s};n.default=f.default||function(p){for(var d=1;dQ;)for(var t,F=b(arguments[Q++]),R=L?u(F).concat(L(F)):u(F),B=R.length,z=0;B>z;)t=R[z++],s&&!Z.call(F,t)||(I[t]=F[t]);return I}:E},function(o,n,e){n.__esModule=!0;var s=f(e(82)),u=f(e(85));function f(p){return p&&p.__esModule?p:{default:p}}n.default=function(p,d){if(Array.isArray(p))return p;if((0,s.default)(Object(p)))return function(b,E){var _=[],P=!0,I=!1,V=void 0;try{for(var Q,L=(0,u.default)(b);!(P=(Q=L.next()).done)&&(_.push(Q.value),!E||_.length!==E);P=!0);}catch(Z){I=!0,V=Z}finally{try{!P&&L.return&&L.return()}finally{if(I)throw V}}return _}(p,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(o,n,e){o.exports={default:e(83),__esModule:!0}},function(o,n,e){e(29),e(20),o.exports=e(84)},function(o,n,e){var s=e(42),u=e(2)("iterator"),f=e(12);o.exports=e(1).isIterable=function(p){var d=Object(p);return d[u]!==void 0||"@@iterator"in d||f.hasOwnProperty(s(d))}},function(o,n,e){o.exports={default:e(86),__esModule:!0}},function(o,n,e){e(29),e(20),o.exports=e(87)},function(o,n,e){var s=e(10),u=e(88);o.exports=e(1).getIterator=function(f){var p=u(f);if(typeof p!="function")throw TypeError(f+" is not iterable!");return s(p.call(f))}},function(o,n,e){var s=e(42),u=e(2)("iterator"),f=e(12);o.exports=e(1).getIteratorMethod=function(p){if(p!=null)return p[u]||p["@@iterator"]||f[s(p)]}},function(o,n,e){o.exports={default:e(90),__esModule:!0}},function(o,n,e){e(91),o.exports=e(1).Object.keys},function(o,n,e){var s=e(18),u=e(13);e(92)("keys",function(){return function(f){return u(s(f))}})},function(o,n,e){var s=e(15),u=e(1),f=e(8);o.exports=function(p,d){var b=(u.Object||{})[p]||Object[p],E={};E[p]=d(b),s(s.S+s.F*f(function(){b(1)}),"Object",E)}},function(o,n,e){(function(s){var u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],f=/^\s+|\s+$/g,p=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,d=/\{\n\/\* \[wrapped with (.+)\] \*/,b=/,? & /,E=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,P=/^\[object .+?Constructor\]$/,I=/^0o[0-7]+$/i,V=/^(?:0|[1-9]\d*)$/,Q=parseInt,L=typeof s=="object"&&s&&s.Object===Object&&s,Z=typeof self=="object"&&self&&self.Object===Object&&self,t=L||Z||Function("return this")();function F(O,v,g){switch(g.length){case 0:return O.call(v);case 1:return O.call(v,g[0]);case 2:return O.call(v,g[0],g[1]);case 3:return O.call(v,g[0],g[1],g[2])}return O.apply(v,g)}function R(O,v){return!!(O&&O.length)&&function(g,w,D){if(w!=w)return function($,oe,me,ve){for(var ke=$.length,de=me+-1;++de-1}function B(O){return O!=O}function z(O,v){for(var g=O.length,w=0;g--;)O[g]===v&&w++;return w}function j(O,v){for(var g=-1,w=O.length,D=0,T=[];++g2?M:void 0);function we(O){return Re(O)?ne(O):{}}function ye(O){return!(!Re(O)||function(v){return!!S&&S in v}(O))&&(function(v){var g=Re(v)?re.call(v):"";return g=="[object Function]"||g=="[object GeneratorFunction]"}(O)||function(v){var g=!1;if(v!=null&&typeof v.toString!="function")try{g=!!(v+"")}catch{}return g}(O)?W:P).test(function(v){if(v!=null){try{return U.call(v)}catch{}try{return v+""}catch{}}return""}(O))}function xe(O,v,g,w){for(var D=-1,T=O.length,X=g.length,$=-1,oe=v.length,me=G(T-X,0),ve=Array(oe+me),ke=!w;++$1&&te.reverse(),ve&&oe1?"& ":"")+v[w],v=v.join(g>2?", ":" "),O.replace(p,`{ -/* [wrapped with `+v+`] */ -`)}function Xe(O,v){return!!(v=v??9007199254740991)&&(typeof O=="number"||V.test(O))&&O>-1&&O%1==0&&O1&&f--,d=6*f<1?s+6*(u-s)*f:2*f<1?u:3*f<2?s+(u-s)*(2/3-f)*6:s,p[P]=255*d;return p}},function(o,n,e){(function(s){var u=typeof s=="object"&&s&&s.Object===Object&&s,f=typeof self=="object"&&self&&self.Object===Object&&self,p=u||f||Function("return this")();function d(j,C,M){switch(M.length){case 0:return j.call(C);case 1:return j.call(C,M[0]);case 2:return j.call(C,M[0],M[1]);case 3:return j.call(C,M[0],M[1],M[2])}return j.apply(C,M)}function b(j,C){for(var M=-1,N=C.length,y=j.length;++M-1&&y%1==0&&y<=9007199254740991}(N.length)&&!function(y){var J=function(K){var S=typeof K;return!!K&&(S=="object"||S=="function")}(y)?P.call(y):"";return J=="[object Function]"||J=="[object GeneratorFunction]"}(N)}(M)}(C)&&_.call(C,"callee")&&(!V.call(C,"callee")||P.call(C)=="[object Arguments]")}(j)||!!(Q&&j&&j[Q])}var t=Array.isArray,F,R,B,z=(R=function(j){var C=(j=function(y,J,K,S,U){var ue=-1,re=y.length;for(K||(K=Z),U||(U=[]);++ue2?f-2:0),d=2;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var a,r=P(c);if(l){var i=P(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return Q(this,a)}}e.r(n);var Z=e(0),t=e.n(Z);function F(){var c=this.constructor.getDerivedStateFromProps(this.props,this.state);c!=null&&this.setState(c)}function R(c){this.setState((function(l){var a=this.constructor.getDerivedStateFromProps(c,l);return a??null}).bind(this))}function B(c,l){try{var a=this.props,r=this.state;this.props=c,this.state=l,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(a,r)}finally{this.props=a,this.state=r}}function z(c){var l=c.prototype;if(!l||!l.isReactComponent)throw new Error("Can only polyfill class components");if(typeof c.getDerivedStateFromProps!="function"&&typeof l.getSnapshotBeforeUpdate!="function")return c;var a=null,r=null,i=null;if(typeof l.componentWillMount=="function"?a="componentWillMount":typeof l.UNSAFE_componentWillMount=="function"&&(a="UNSAFE_componentWillMount"),typeof l.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof l.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof l.componentWillUpdate=="function"?i="componentWillUpdate":typeof l.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),a!==null||r!==null||i!==null){var m=c.displayName||c.name,k=typeof c.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. - -`+m+" uses "+k+" but also contains the following legacy lifecycles:"+(a!==null?` - `+a:"")+(r!==null?` - `+r:"")+(i!==null?` - `+i:"")+` - -The above lifecycles should be removed. Learn more about this warning here: -https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof c.getDerivedStateFromProps=="function"&&(l.componentWillMount=F,l.componentWillReceiveProps=R),typeof l.getSnapshotBeforeUpdate=="function"){if(typeof l.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");l.componentWillUpdate=B;var x=l.componentDidUpdate;l.componentDidUpdate=function(h,A,q){var ee=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:q;x.call(this,h,A,ee)}}return c}function j(c,l){if(c==null)return{};var a,r,i=function(k,x){if(k==null)return{};var h,A,q={},ee=Object.keys(k);for(A=0;A=0||(q[h]=k[h]);return q}(c,l);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(c);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(c,a)&&(i[a]=c[a])}return i}function C(c){var l=function(a){return{}.toString.call(a).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(c);return l==="number"&&(l=isNaN(c)?"nan":(0|c)!=c?"float":"integer"),l}F.__suppressDeprecationWarning=!0,R.__suppressDeprecationWarning=!0,B.__suppressDeprecationWarning=!0;var M={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},N={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},y={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},J=e(45),K=function(c){var l=function(a){return{backgroundColor:a.base00,ellipsisColor:a.base09,braceColor:a.base07,expandedIcon:a.base0D,collapsedIcon:a.base0E,keyColor:a.base07,arrayKeyColor:a.base0C,objectSize:a.base04,copyToClipboard:a.base0F,copyToClipboardCheck:a.base0D,objectBorder:a.base02,dataTypes:{boolean:a.base0E,date:a.base0D,float:a.base0B,function:a.base0D,integer:a.base0F,string:a.base09,nan:a.base08,null:a.base0A,undefined:a.base05,regexp:a.base0A,background:a.base02},editVariable:{editIcon:a.base0E,cancelIcon:a.base09,removeIcon:a.base09,addIcon:a.base0E,checkIcon:a.base0E,background:a.base01,color:a.base0A,border:a.base07},addKeyModal:{background:a.base05,border:a.base04,color:a.base0A,labelColor:a.base01},validationFailure:{background:a.base09,iconColor:a.base01,fontColor:a.base01}}}(c);return{"app-container":{fontFamily:y.globalFontFamily,cursor:y.globalCursor,backgroundColor:l.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:l.ellipsisColor,fontSize:y.ellipsisFontSize,lineHeight:y.ellipsisLineHeight,cursor:y.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:y.braceCursor,fontWeight:y.braceFontWeight,color:l.braceColor},"expanded-icon":{color:l.expandedIcon},"collapsed-icon":{color:l.collapsedIcon},colon:{display:"inline-block",margin:y.keyMargin,color:l.keyColor,verticalAlign:"top"},objectKeyVal:function(a,r){return{style:f({paddingTop:y.keyValPaddingTop,paddingRight:y.keyValPaddingRight,paddingBottom:y.keyValPaddingBottom,borderLeft:y.keyValBorderLeft+" "+l.objectBorder,":hover":{paddingLeft:r.paddingLeft-1+"px",borderLeft:y.keyValBorderHover+" "+l.objectBorder}},r)}},"object-key-val-no-border":{padding:y.keyValPadding},"pushed-content":{marginLeft:y.pushedContentMarginLeft},variableValue:function(a,r){return{style:f({display:"inline-block",paddingRight:y.variableValuePaddingRight,position:"relative"},r)}},"object-name":{display:"inline-block",color:l.keyColor,letterSpacing:y.keyLetterSpacing,fontStyle:y.keyFontStyle,verticalAlign:y.keyVerticalAlign,opacity:y.keyOpacity,":hover":{opacity:y.keyOpacityHover}},"array-key":{display:"inline-block",color:l.arrayKeyColor,letterSpacing:y.keyLetterSpacing,fontStyle:y.keyFontStyle,verticalAlign:y.keyVerticalAlign,opacity:y.keyOpacity,":hover":{opacity:y.keyOpacityHover}},"object-size":{color:l.objectSize,borderRadius:y.objectSizeBorderRadius,fontStyle:y.objectSizeFontStyle,margin:y.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:y.dataTypeFontSize,marginRight:y.dataTypeMarginRight,opacity:y.datatypeOpacity},boolean:{display:"inline-block",color:l.dataTypes.boolean},date:{display:"inline-block",color:l.dataTypes.date},"date-value":{marginLeft:y.dateValueMarginLeft},float:{display:"inline-block",color:l.dataTypes.float},function:{display:"inline-block",color:l.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:l.dataTypes.integer},string:{display:"inline-block",color:l.dataTypes.string},nan:{display:"inline-block",color:l.dataTypes.nan,fontSize:y.nanFontSize,fontWeight:y.nanFontWeight,backgroundColor:l.dataTypes.background,padding:y.nanPadding,borderRadius:y.nanBorderRadius},null:{display:"inline-block",color:l.dataTypes.null,fontSize:y.nullFontSize,fontWeight:y.nullFontWeight,backgroundColor:l.dataTypes.background,padding:y.nullPadding,borderRadius:y.nullBorderRadius},undefined:{display:"inline-block",color:l.dataTypes.undefined,fontSize:y.undefinedFontSize,padding:y.undefinedPadding,borderRadius:y.undefinedBorderRadius,backgroundColor:l.dataTypes.background},regexp:{display:"inline-block",color:l.dataTypes.regexp},"copy-to-clipboard":{cursor:y.clipboardCursor},"copy-icon":{color:l.copyToClipboard,fontSize:y.iconFontSize,marginRight:y.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:l.copyToClipboardCheck,marginLeft:y.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:y.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:y.metaDataPadding},"icon-container":{display:"inline-block",width:y.iconContainerWidth},tooltip:{padding:y.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:l.editVariable.removeIcon,cursor:y.iconCursor,fontSize:y.iconFontSize,marginRight:y.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:l.editVariable.addIcon,cursor:y.iconCursor,fontSize:y.iconFontSize,marginRight:y.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:l.editVariable.editIcon,cursor:y.iconCursor,fontSize:y.iconFontSize,marginRight:y.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:y.iconCursor,color:l.editVariable.checkIcon,fontSize:y.iconFontSize,paddingRight:y.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:y.iconCursor,color:l.editVariable.cancelIcon,fontSize:y.iconFontSize,paddingRight:y.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:y.editInputMinWidth,borderRadius:y.editInputBorderRadius,backgroundColor:l.editVariable.background,color:l.editVariable.color,padding:y.editInputPadding,marginRight:y.editInputMarginRight,fontFamily:y.editInputFontFamily},"detected-row":{paddingTop:y.detectedRowPaddingTop},"key-modal-request":{position:y.addKeyCoverPosition,top:y.addKeyCoverPositionPx,left:y.addKeyCoverPositionPx,right:y.addKeyCoverPositionPx,bottom:y.addKeyCoverPositionPx,backgroundColor:y.addKeyCoverBackground},"key-modal":{width:y.addKeyModalWidth,backgroundColor:l.addKeyModal.background,marginLeft:y.addKeyModalMargin,marginRight:y.addKeyModalMargin,padding:y.addKeyModalPadding,borderRadius:y.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:l.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:l.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:l.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:l.addKeyModal.labelColor,fontSize:y.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:l.editVariable.addIcon,fontSize:y.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:l.ellipsisColor,fontSize:y.ellipsisFontSize,lineHeight:y.ellipsisLineHeight,cursor:y.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:l.validationFailure.fontColor,backgroundColor:l.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:l.validationFailure.iconColor,fontSize:y.iconFontSize,transform:"rotate(45deg)"}}};function S(c,l,a){return c||console.error("theme has not been set"),function(r){var i=M;return r!==!1&&r!=="none"||(i=N),Object(J.createStyling)(K,{defaultBase16:i})(r)}(c)(l,a)}var U=function(c){_(a,c);var l=L(a);function a(){return p(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=(r.rjvId,r.type_name),m=r.displayDataTypes,k=r.theme;return m?t.a.createElement("span",Object.assign({className:"data-type-label"},S(k,"data-type-label")),i):null}}]),a}(t.a.PureComponent),ue=function(c){_(a,c);var l=L(a);function a(){return p(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props;return t.a.createElement("div",S(r.theme,"boolean"),t.a.createElement(U,Object.assign({type_name:"bool"},r)),r.value?"true":"false")}}]),a}(t.a.PureComponent),re=function(c){_(a,c);var l=L(a);function a(){return p(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props;return t.a.createElement("div",S(r.theme,"date"),t.a.createElement(U,Object.assign({type_name:"date"},r)),t.a.createElement("span",Object.assign({className:"date-value"},S(r.theme,"date-value")),r.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),a}(t.a.PureComponent),W=function(c){_(a,c);var l=L(a);function a(){return p(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props;return t.a.createElement("div",S(r.theme,"float"),t.a.createElement(U,Object.assign({type_name:"float"},r)),this.props.value)}}]),a}(t.a.PureComponent);function ne(c,l){(l==null||l>c.length)&&(l=c.length);for(var a=0,r=new Array(l);a"u"||c[Symbol.iterator]==null){if(Array.isArray(c)||(a=G(c))||l){a&&(c=a);var r=0,i=function(){};return{s:i,n:function(){return r>=c.length?{done:!0}:{done:!1,value:c[r++]}},e:function(h){throw h},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m,k=!0,x=!1;return{s:function(){a=c[Symbol.iterator]()},n:function(){var h=a.next();return k=h.done,h},e:function(h){x=!0,m=h},f:function(){try{k||a.return==null||a.return()}finally{if(x)throw m}}}}function be(c){return function(l){if(Array.isArray(l))return ne(l)}(c)||function(l){if(typeof Symbol<"u"&&Symbol.iterator in Object(l))return Array.from(l)}(c)||G(c)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var we=e(46),ye=new(e(47)).Dispatcher,xe=new(function(c){_(a,c);var l=L(a);function a(){var r;p(this,a);for(var i=arguments.length,m=new Array(i),k=0;ki&&(x.style.cursor="pointer",this.state.collapsed&&(k=t.a.createElement("span",null,k.substring(0,i),t.a.createElement("span",S(m,"ellipsis")," ...")))),t.a.createElement("div",S(m,"string"),t.a.createElement(U,Object.assign({type_name:"string"},r)),t.a.createElement("span",Object.assign({className:"string-value"},x,{onClick:this.toggleCollapsed}),'"',k,'"'))}}]),a}(t.a.PureComponent),$e=function(c){_(a,c);var l=L(a);function a(){return p(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){return t.a.createElement("div",S(this.props.theme,"undefined"),"undefined")}}]),a}(t.a.PureComponent);function Ve(){return(Ve=Object.assign||function(c){for(var l=1;l=0||(ft[De]=H[De]);return ft}(c,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),q,ee=A.value!==void 0,ae=Object(Z.useRef)(null),ie=tt(ae,l),Y=Object(Z.useRef)(0),se=Object(Z.useRef)(),ge=function(){var H=ae.current,je=a&&se.current?se.current:function(He){var dt=window.getComputedStyle(He);if(dt===null)return null;var nt,Ce=(nt=dt,O.reduce(function(ct,ot){return ct[ot]=nt[ot],ct},{})),rt=Ce.boxSizing;return rt===""?null:(v&&rt==="border-box"&&(Ce.width=parseFloat(Ce.width)+parseFloat(Ce.borderRightWidth)+parseFloat(Ce.borderLeftWidth)+parseFloat(Ce.paddingRight)+parseFloat(Ce.paddingLeft)+"px"),{sizingStyle:Ce,paddingSize:parseFloat(Ce.paddingBottom)+parseFloat(Ce.paddingTop),borderSize:parseFloat(Ce.borderBottomWidth)+parseFloat(Ce.borderTopWidth)})}(H);if(je){se.current=je;var De=function(He,dt,nt,Ce){nt===void 0&&(nt=1),Ce===void 0&&(Ce=1/0),_e||((_e=document.createElement("textarea")).setAttribute("tab-index","-1"),_e.setAttribute("aria-hidden","true"),Re(_e)),_e.parentNode===null&&document.body.appendChild(_e);var rt=He.paddingSize,ct=He.borderSize,ot=He.sizingStyle,jt=ot.boxSizing;Object.keys(ot).forEach(function(Et){var it=Et;_e.style[it]=ot[it]}),Re(_e),_e.value=dt;var bt=function(Et,it){var xt=Et.scrollHeight;return it.sizingStyle.boxSizing==="border-box"?xt+it.borderSize:xt-it.paddingSize}(_e,He);_e.value="x";var vt=_e.scrollHeight-rt,gt=vt*nt;jt==="border-box"&&(gt=gt+rt+ct),bt=Math.max(gt,bt);var yt=vt*Ce;return jt==="border-box"&&(yt=yt+rt+ct),[bt=Math.min(yt,bt),vt]}(je,H.value||H.placeholder||"x",i,r),We=De[0],ft=De[1];Y.current!==We&&(Y.current=We,H.style.setProperty("height",We+"px","important"),h(We,{rowHeight:ft}))}};return Object(Z.useLayoutEffect)(ge),q=et(ge),Object(Z.useLayoutEffect)(function(){var H=function(je){q.current(je)};return window.addEventListener("resize",H),function(){window.removeEventListener("resize",H)}},[]),Object(Z.createElement)("textarea",Ve({},A,{onChange:function(H){ee||ge(),k(H)},ref:ie}))},w=Object(Z.forwardRef)(g);function D(c){c=c.trim();try{if((c=JSON.stringify(JSON.parse(c)))[0]==="[")return T("array",JSON.parse(c));if(c[0]==="{")return T("object",JSON.parse(c));if(c.match(/\-?\d+\.\d+/)&&c.match(/\-?\d+\.\d+/)[0]===c)return T("float",parseFloat(c));if(c.match(/\-?\d+e-\d+/)&&c.match(/\-?\d+e-\d+/)[0]===c)return T("float",Number(c));if(c.match(/\-?\d+/)&&c.match(/\-?\d+/)[0]===c)return T("integer",parseInt(c));if(c.match(/\-?\d+e\+\d+/)&&c.match(/\-?\d+e\+\d+/)[0]===c)return T("integer",Number(c))}catch{}switch(c=c.toLowerCase()){case"undefined":return T("undefined",void 0);case"nan":return T("nan",NaN);case"null":return T("null",null);case"true":return T("boolean",!0);case"false":return T("boolean",!1);default:if(c=Date.parse(c))return T("date",new Date(c))}return T(!1,null)}function T(c,l){return{type:c,value:l}}var X=function(c){_(a,c);var l=L(a);function a(){return p(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=j(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",Object.assign({},te(i),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),t.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),a}(t.a.PureComponent),$=function(c){_(a,c);var l=L(a);function a(){return p(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=j(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",Object.assign({},te(i),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),t.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),a}(t.a.PureComponent),oe=function(c){_(a,c);var l=L(a);function a(){return p(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=j(r,["style"]),k=te(i).style;return t.a.createElement("span",m,t.a.createElement("svg",{fill:k.color,width:k.height,height:k.width,style:k,viewBox:"0 0 1792 1792"},t.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),a}(t.a.PureComponent),me=function(c){_(a,c);var l=L(a);function a(){return p(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=j(r,["style"]),k=te(i).style;return t.a.createElement("span",m,t.a.createElement("svg",{fill:k.color,width:k.height,height:k.width,style:k,viewBox:"0 0 1792 1792"},t.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),a}(t.a.PureComponent),ve=function(c){_(a,c);var l=L(a);function a(){return p(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=j(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",{style:f(f({},te(i).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},t.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),a}(t.a.PureComponent),ke=function(c){_(a,c);var l=L(a);function a(){return p(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=j(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",{style:f(f({},te(i).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},t.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),a}(t.a.PureComponent),de=function(c){_(a,c);var l=L(a);function a(){return p(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=j(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",Object.assign({},te(i),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),t.a.createElement("g",null,t.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),a}(t.a.PureComponent),Me=function(c){_(a,c);var l=L(a);function a(){return p(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=j(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",Object.assign({},te(i),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),t.a.createElement("g",null,t.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),a}(t.a.PureComponent),Fe=function(c){_(a,c);var l=L(a);function a(){return p(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=j(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",Object.assign({},te(i),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),t.a.createElement("g",null,t.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),a}(t.a.PureComponent),Ne=function(c){_(a,c);var l=L(a);function a(){return p(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=j(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",Object.assign({},te(i),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),t.a.createElement("g",null,t.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),a}(t.a.PureComponent),Le=function(c){_(a,c);var l=L(a);function a(){return p(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=j(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",Object.assign({},te(i),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),t.a.createElement("g",null,t.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),a}(t.a.PureComponent),Ee=function(c){_(a,c);var l=L(a);function a(){return p(this,a),l.apply(this,arguments)}return b(a,[{key:"render",value:function(){var r=this.props,i=r.style,m=j(r,["style"]);return t.a.createElement("span",m,t.a.createElement("svg",Object.assign({},te(i),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),t.a.createElement("g",null,t.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),a}(t.a.PureComponent);function te(c){return c||(c={}),{style:f(f({verticalAlign:"middle"},c),{},{color:c.color?c.color:"#000000",height:"1em",width:"1em"})}}var Se=function(c){_(a,c);var l=L(a);function a(r){var i;return p(this,a),(i=l.call(this,r)).copiedTimer=null,i.handleCopy=function(){var m=document.createElement("textarea"),k=i.props,x=k.clickCallback,h=k.src,A=k.namespace;m.innerHTML=JSON.stringify(i.clipboardValue(h),null," "),document.body.appendChild(m),m.select(),document.execCommand("copy"),document.body.removeChild(m),i.copiedTimer=setTimeout(function(){i.setState({copied:!1})},5500),i.setState({copied:!0},function(){typeof x=="function"&&x({src:h,namespace:A,name:A[A.length-1]})})},i.getClippyIcon=function(){var m=i.props.theme;return i.state.copied?t.a.createElement("span",null,t.a.createElement(de,Object.assign({className:"copy-icon"},S(m,"copy-icon"))),t.a.createElement("span",S(m,"copy-icon-copied"),"✔")):t.a.createElement(de,Object.assign({className:"copy-icon"},S(m,"copy-icon")))},i.clipboardValue=function(m){switch(C(m)){case"function":case"regexp":return m.toString();default:return m}},i.state={copied:!1},i}return b(a,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var r=this.props,i=(r.src,r.theme),m=r.hidden,k=r.rowHovered,x=S(i,"copy-to-clipboard").style,h="inline";return m&&(h="none"),t.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:k?"inline-block":"none"}},t.a.createElement("span",{style:f(f({},x),{},{display:h}),onClick:this.handleCopy},this.getClippyIcon()))}}]),a}(t.a.PureComponent),Ae=function(c){_(a,c);var l=L(a);function a(r){var i;return p(this,a),(i=l.call(this,r)).getEditIcon=function(){var m=i.props,k=m.variable,x=m.theme;return t.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:i.state.hovered?"inline-block":"none"}},t.a.createElement(Le,Object.assign({className:"click-to-edit-icon"},S(x,"editVarIcon"),{onClick:function(){i.prepopInput(k)}})))},i.prepopInput=function(m){if(i.props.onEdit!==!1){var k=function(h){var A;switch(C(h)){case"undefined":A="undefined";break;case"nan":A="NaN";break;case"string":A=h;break;case"date":case"function":case"regexp":A=h.toString();break;default:try{A=JSON.stringify(h,null," ")}catch{A=""}}return A}(m.value),x=D(k);i.setState({editMode:!0,editValue:k,parsedInput:{type:x.type,value:x.value}})}},i.getRemoveIcon=function(){var m=i.props,k=m.variable,x=m.namespace,h=m.theme,A=m.rjvId;return t.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:i.state.hovered?"inline-block":"none"}},t.a.createElement(Me,Object.assign({className:"click-to-remove-icon"},S(h,"removeVarIcon"),{onClick:function(){ye.dispatch({name:"VARIABLE_REMOVED",rjvId:A,data:{name:k.name,namespace:x,existing_value:k.value,variable_removed:!0}})}})))},i.getValue=function(m,k){var x=!k&&m.type,h=V(i).props;switch(x){case!1:return i.getEditInput();case"string":return t.a.createElement(Je,Object.assign({value:m.value},h));case"integer":return t.a.createElement(Ue,Object.assign({value:m.value},h));case"float":return t.a.createElement(W,Object.assign({value:m.value},h));case"boolean":return t.a.createElement(ue,Object.assign({value:m.value},h));case"function":return t.a.createElement(he,Object.assign({value:m.value},h));case"null":return t.a.createElement(qe,h);case"nan":return t.a.createElement(Pe,h);case"undefined":return t.a.createElement($e,h);case"date":return t.a.createElement(re,Object.assign({value:m.value},h));case"regexp":return t.a.createElement(Ge,Object.assign({value:m.value},h));default:return t.a.createElement("div",{className:"object-value"},JSON.stringify(m.value))}},i.getEditInput=function(){var m=i.props.theme,k=i.state.editValue;return t.a.createElement("div",null,t.a.createElement(w,Object.assign({type:"text",inputRef:function(x){return x&&x.focus()},value:k,className:"variable-editor",onChange:function(x){var h=x.target.value,A=D(h);i.setState({editValue:h,parsedInput:{type:A.type,value:A.value}})},onKeyDown:function(x){switch(x.key){case"Escape":i.setState({editMode:!1,editValue:""});break;case"Enter":(x.ctrlKey||x.metaKey)&&i.submitEdit(!0)}x.stopPropagation()},placeholder:"update this value",minRows:2},S(m,"edit-input"))),t.a.createElement("div",S(m,"edit-icon-container"),t.a.createElement(Me,Object.assign({className:"edit-cancel"},S(m,"cancel-icon"),{onClick:function(){i.setState({editMode:!1,editValue:""})}})),t.a.createElement(Ee,Object.assign({className:"edit-check string-value"},S(m,"check-icon"),{onClick:function(){i.submitEdit()}})),t.a.createElement("div",null,i.showDetected())))},i.submitEdit=function(m){var k=i.props,x=k.variable,h=k.namespace,A=k.rjvId,q=i.state,ee=q.editValue,ae=q.parsedInput,ie=ee;m&&ae.type&&(ie=ae.value),i.setState({editMode:!1}),ye.dispatch({name:"VARIABLE_UPDATED",rjvId:A,data:{name:x.name,namespace:h,existing_value:x.value,new_value:ie,variable_removed:!1}})},i.showDetected=function(){var m=i.props,k=m.theme,x=(m.variable,m.namespace,m.rjvId,i.state.parsedInput),h=(x.type,x.value,i.getDetectedInput());if(h)return t.a.createElement("div",null,t.a.createElement("div",S(k,"detected-row"),h,t.a.createElement(Ee,{className:"edit-check detected",style:f({verticalAlign:"top",paddingLeft:"3px"},S(k,"check-icon").style),onClick:function(){i.submitEdit(!0)}})))},i.getDetectedInput=function(){var m=i.state.parsedInput,k=m.type,x=m.value,h=V(i).props,A=h.theme;if(k!==!1)switch(k.toLowerCase()){case"object":return t.a.createElement("span",null,t.a.createElement("span",{style:f(f({},S(A,"brace").style),{},{cursor:"default"})},"{"),t.a.createElement("span",{style:f(f({},S(A,"ellipsis").style),{},{cursor:"default"})},"..."),t.a.createElement("span",{style:f(f({},S(A,"brace").style),{},{cursor:"default"})},"}"));case"array":return t.a.createElement("span",null,t.a.createElement("span",{style:f(f({},S(A,"brace").style),{},{cursor:"default"})},"["),t.a.createElement("span",{style:f(f({},S(A,"ellipsis").style),{},{cursor:"default"})},"..."),t.a.createElement("span",{style:f(f({},S(A,"brace").style),{},{cursor:"default"})},"]"));case"string":return t.a.createElement(Je,Object.assign({value:x},h));case"integer":return t.a.createElement(Ue,Object.assign({value:x},h));case"float":return t.a.createElement(W,Object.assign({value:x},h));case"boolean":return t.a.createElement(ue,Object.assign({value:x},h));case"function":return t.a.createElement(he,Object.assign({value:x},h));case"null":return t.a.createElement(qe,h);case"nan":return t.a.createElement(Pe,h);case"undefined":return t.a.createElement($e,h);case"date":return t.a.createElement(re,Object.assign({value:new Date(x)},h))}},i.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},i}return b(a,[{key:"render",value:function(){var r=this,i=this.props,m=i.variable,k=i.singleIndent,x=i.type,h=i.theme,A=i.namespace,q=i.indentWidth,ee=i.enableClipboard,ae=i.onEdit,ie=i.onDelete,Y=i.onSelect,se=i.displayArrayKey,ge=i.quotesOnKeys,H=this.state.editMode;return t.a.createElement("div",Object.assign({},S(h,"objectKeyVal",{paddingLeft:q*k}),{onMouseEnter:function(){return r.setState(f(f({},r.state),{},{hovered:!0}))},onMouseLeave:function(){return r.setState(f(f({},r.state),{},{hovered:!1}))},className:"variable-row",key:m.name}),x=="array"?se?t.a.createElement("span",Object.assign({},S(h,"array-key"),{key:m.name+"_"+A}),m.name,t.a.createElement("div",S(h,"colon"),":")):null:t.a.createElement("span",null,t.a.createElement("span",Object.assign({},S(h,"object-name"),{className:"object-key",key:m.name+"_"+A}),!!ge&&t.a.createElement("span",{style:{verticalAlign:"top"}},'"'),t.a.createElement("span",{style:{display:"inline-block"}},m.name),!!ge&&t.a.createElement("span",{style:{verticalAlign:"top"}},'"')),t.a.createElement("span",S(h,"colon"),":")),t.a.createElement("div",Object.assign({className:"variable-value",onClick:Y===!1&&ae===!1?null:function(je){var De=be(A);(je.ctrlKey||je.metaKey)&&ae!==!1?r.prepopInput(m):Y!==!1&&(De.shift(),Y(f(f({},m),{},{namespace:De})))}},S(h,"variableValue",{cursor:Y===!1?"default":"pointer"})),this.getValue(m,H)),ee?t.a.createElement(Se,{rowHovered:this.state.hovered,hidden:H,src:m.value,clickCallback:ee,theme:h,namespace:[].concat(be(A),[m.name])}):null,ae!==!1&&H==0?this.getEditIcon():null,ie!==!1&&H==0?this.getRemoveIcon():null)}}]),a}(t.a.PureComponent),Te=function(c){_(a,c);var l=L(a);function a(){var r;p(this,a);for(var i=arguments.length,m=new Array(i),k=0;k0?ee:null,namespace:q.splice(0,q.length-1),existing_value:ae,variable_removed:!1,key_name:null};C(ae)==="object"?ye.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:ie,data:se}):ye.dispatch({name:"VARIABLE_ADDED",rjvId:ie,data:f(f({},se),{},{new_value:[].concat(be(ae),[null])})})}})))},r.getRemoveObject=function(x){var h=r.props,A=h.theme,q=(h.hover,h.namespace),ee=h.name,ae=h.src,ie=h.rjvId;if(q.length!==1)return t.a.createElement("span",{className:"click-to-remove",style:{display:x?"inline-block":"none"}},t.a.createElement(Me,Object.assign({className:"click-to-remove-icon"},S(A,"removeVarIcon"),{onClick:function(){ye.dispatch({name:"VARIABLE_REMOVED",rjvId:ie,data:{name:ee,namespace:q.splice(0,q.length-1),existing_value:ae,variable_removed:!0}})}})))},r.render=function(){var x=r.props,h=x.theme,A=x.onDelete,q=x.onAdd,ee=x.enableClipboard,ae=x.src,ie=x.namespace,Y=x.rowHovered;return t.a.createElement("div",Object.assign({},S(h,"object-meta-data"),{className:"object-meta-data",onClick:function(se){se.stopPropagation()}}),r.getObjectSize(),ee?t.a.createElement(Se,{rowHovered:Y,clickCallback:ee,src:ae,theme:h,namespace:ie}):null,q!==!1?r.getAddAttribute(Y):null,A!==!1?r.getRemoveObject(Y):null)},r}return a}(t.a.PureComponent);function Be(c){var l=c.parent_type,a=c.namespace,r=c.quotesOnKeys,i=c.theme,m=c.jsvRoot,k=c.name,x=c.displayArrayKey,h=c.name?c.name:"";return!m||k!==!1&&k!==null?l=="array"?x?t.a.createElement("span",Object.assign({},S(i,"array-key"),{key:a}),t.a.createElement("span",{className:"array-key"},h),t.a.createElement("span",S(i,"colon"),":")):t.a.createElement("span",null):t.a.createElement("span",Object.assign({},S(i,"object-name"),{key:a}),t.a.createElement("span",{className:"object-key"},r&&t.a.createElement("span",{style:{verticalAlign:"top"}},'"'),t.a.createElement("span",null,h),r&&t.a.createElement("span",{style:{verticalAlign:"top"}},'"')),t.a.createElement("span",S(i,"colon"),":")):t.a.createElement("span",null)}function Ie(c){var l=c.theme;switch(c.iconStyle){case"triangle":return t.a.createElement(ke,Object.assign({},S(l,"expanded-icon"),{className:"expanded-icon"}));case"square":return t.a.createElement(oe,Object.assign({},S(l,"expanded-icon"),{className:"expanded-icon"}));default:return t.a.createElement(X,Object.assign({},S(l,"expanded-icon"),{className:"expanded-icon"}))}}function ze(c){var l=c.theme;switch(c.iconStyle){case"triangle":return t.a.createElement(ve,Object.assign({},S(l,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return t.a.createElement(me,Object.assign({},S(l,"collapsed-icon"),{className:"collapsed-icon"}));default:return t.a.createElement($,Object.assign({},S(l,"collapsed-icon"),{className:"collapsed-icon"}))}}var at=function(c){_(a,c);var l=L(a);function a(r){var i;return p(this,a),(i=l.call(this,r)).toggleCollapsed=function(m){var k=[];for(var x in i.state.expanded)k.push(i.state.expanded[x]);k[m]=!k[m],i.setState({expanded:k})},i.state={expanded:[]},i}return b(a,[{key:"getExpandedIcon",value:function(r){var i=this.props,m=i.theme,k=i.iconStyle;return this.state.expanded[r]?t.a.createElement(Ie,{theme:m,iconStyle:k}):t.a.createElement(ze,{theme:m,iconStyle:k})}},{key:"render",value:function(){var r=this,i=this.props,m=i.src,k=i.groupArraysAfterLength,x=(i.depth,i.name),h=i.theme,A=i.jsvRoot,q=i.namespace,ee=(i.parent_type,j(i,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),ae=0,ie=5*this.props.indentWidth;A||(ae=5*this.props.indentWidth);var Y=k,se=Math.ceil(m.length/Y);return t.a.createElement("div",Object.assign({className:"object-key-val"},S(h,A?"jsv-root":"objectKeyVal",{paddingLeft:ae})),t.a.createElement(Be,this.props),t.a.createElement("span",null,t.a.createElement(Te,Object.assign({size:m.length},this.props))),be(Array(se)).map(function(ge,H){return t.a.createElement("div",Object.assign({key:H,className:"object-key-val array-group"},S(h,"objectKeyVal",{marginLeft:6,paddingLeft:ie})),t.a.createElement("span",S(h,"brace-row"),t.a.createElement("div",Object.assign({className:"icon-container"},S(h,"icon-container"),{onClick:function(je){r.toggleCollapsed(H)}}),r.getExpandedIcon(H)),r.state.expanded[H]?t.a.createElement(ut,Object.assign({key:x+H,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Y,index_offset:H*Y,src:m.slice(H*Y,H*Y+Y),namespace:q,type:"array",parent_type:"array_group",theme:h},ee)):t.a.createElement("span",Object.assign({},S(h,"brace"),{onClick:function(je){r.toggleCollapsed(H)},className:"array-group-brace"}),"[",t.a.createElement("div",Object.assign({},S(h,"array-group-meta-data"),{className:"array-group-meta-data"}),t.a.createElement("span",Object.assign({className:"object-size"},S(h,"object-size")),H*Y," - ",H*Y+Y>m.length?m.length:H*Y+Y)),"]")))}))}}]),a}(t.a.PureComponent),st=function(c){_(a,c);var l=L(a);function a(r){var i;p(this,a),(i=l.call(this,r)).toggleCollapsed=function(){i.setState({expanded:!i.state.expanded},function(){ce.set(i.props.rjvId,i.props.namespace,"expanded",i.state.expanded)})},i.getObjectContent=function(k,x,h){return t.a.createElement("div",{className:"pushed-content object-container"},t.a.createElement("div",Object.assign({className:"object-content"},S(i.props.theme,"pushed-content")),i.renderObjectContents(x,h)))},i.getEllipsis=function(){return i.state.size===0?null:t.a.createElement("div",Object.assign({},S(i.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:i.toggleCollapsed}),"...")},i.getObjectMetaData=function(k){var x=i.props,h=(x.rjvId,x.theme,i.state),A=h.size,q=h.hovered;return t.a.createElement(Te,Object.assign({rowHovered:q,size:A},i.props))},i.renderObjectContents=function(k,x){var h,A=i.props,q=A.depth,ee=A.parent_type,ae=A.index_offset,ie=A.groupArraysAfterLength,Y=A.namespace,se=i.state.object_type,ge=[],H=Object.keys(k||{});return i.props.sortKeys&&se!=="array"&&(H=H.sort()),H.forEach(function(je){if(h=new At(je,k[je]),ee==="array_group"&&ae&&(h.name=parseInt(h.name)+ae),k.hasOwnProperty(je))if(h.type==="object")ge.push(t.a.createElement(ut,Object.assign({key:h.name,depth:q+1,name:h.name,src:h.value,namespace:Y.concat(h.name),parent_type:se},x)));else if(h.type==="array"){var De=ut;ie&&h.value.length>ie&&(De=at),ge.push(t.a.createElement(De,Object.assign({key:h.name,depth:q+1,name:h.name,src:h.value,namespace:Y.concat(h.name),type:"array",parent_type:se},x)))}else ge.push(t.a.createElement(Ae,Object.assign({key:h.name+"_"+Y,variable:h,singleIndent:5,namespace:Y,type:i.props.type},x)))}),ge};var m=a.getState(r);return i.state=f(f({},m),{},{prevProps:{}}),i}return b(a,[{key:"getBraceStart",value:function(r,i){var m=this,k=this.props,x=k.src,h=k.theme,A=k.iconStyle;if(k.parent_type==="array_group")return t.a.createElement("span",null,t.a.createElement("span",S(h,"brace"),r==="array"?"[":"{"),i?this.getObjectMetaData(x):null);var q=i?Ie:ze;return t.a.createElement("span",null,t.a.createElement("span",Object.assign({onClick:function(ee){m.toggleCollapsed()}},S(h,"brace-row")),t.a.createElement("div",Object.assign({className:"icon-container"},S(h,"icon-container")),t.a.createElement(q,{theme:h,iconStyle:A})),t.a.createElement(Be,this.props),t.a.createElement("span",S(h,"brace"),r==="array"?"[":"{")),i?this.getObjectMetaData(x):null)}},{key:"render",value:function(){var r=this,i=this.props,m=i.depth,k=i.src,x=(i.namespace,i.name,i.type,i.parent_type),h=i.theme,A=i.jsvRoot,q=i.iconStyle,ee=j(i,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),ae=this.state,ie=ae.object_type,Y=ae.expanded,se={};return A||x==="array_group"?x==="array_group"&&(se.borderLeft=0,se.display="inline"):se.paddingLeft=5*this.props.indentWidth,t.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return r.setState(f(f({},r.state),{},{hovered:!0}))},onMouseLeave:function(){return r.setState(f(f({},r.state),{},{hovered:!1}))}},S(h,A?"jsv-root":"objectKeyVal",se)),this.getBraceStart(ie,Y),Y?this.getObjectContent(m,k,f({theme:h,iconStyle:q},ee)):this.getEllipsis(),t.a.createElement("span",{className:"brace-row"},t.a.createElement("span",{style:f(f({},S(h,"brace").style),{},{paddingLeft:Y?"3px":"0px"})},ie==="array"?"]":"}"),Y?null:this.getObjectMetaData(k)))}}],[{key:"getDerivedStateFromProps",value:function(r,i){var m=i.prevProps;return r.src!==m.src||r.collapsed!==m.collapsed||r.name!==m.name||r.namespace!==m.namespace||r.rjvId!==m.rjvId?f(f({},a.getState(r)),{},{prevProps:r}):null}}]),a}(t.a.PureComponent);st.getState=function(c){var l=Object.keys(c.src).length,a=(c.collapsed===!1||c.collapsed!==!0&&c.collapsed>c.depth)&&(!c.shouldCollapse||c.shouldCollapse({name:c.name,src:c.src,type:C(c.src),namespace:c.namespace})===!1)&&l!==0;return{expanded:ce.get(c.rjvId,c.namespace,"expanded",a),object_type:c.type==="array"?"array":"object",parent_type:c.type==="array"?"array":"object",size:l,hovered:!1}};var At=function c(l,a){p(this,c),this.name=l,this.value=a,this.type=C(a)};z(st);var ut=st,Mt=function(c){_(a,c);var l=L(a);function a(){var r;p(this,a);for(var i=arguments.length,m=new Array(i),k=0;kx.groupArraysAfterLength&&(A=at),t.a.createElement("div",{className:"pretty-json-container object-container"},t.a.createElement("div",{className:"object-content"},t.a.createElement(A,Object.assign({namespace:h,depth:0,jsvRoot:!0},x))))},r}return a}(t.a.PureComponent),Pt=function(c){_(a,c);var l=L(a);function a(r){var i;return p(this,a),(i=l.call(this,r)).closeModal=function(){ye.dispatch({rjvId:i.props.rjvId,name:"RESET"})},i.submit=function(){i.props.submit(i.state.input)},i.state={input:r.input?r.input:""},i}return b(a,[{key:"render",value:function(){var r=this,i=this.props,m=i.theme,k=i.rjvId,x=i.isValid,h=this.state.input,A=x(h);return t.a.createElement("div",Object.assign({className:"key-modal-request"},S(m,"key-modal-request"),{onClick:this.closeModal}),t.a.createElement("div",Object.assign({},S(m,"key-modal"),{onClick:function(q){q.stopPropagation()}}),t.a.createElement("div",S(m,"key-modal-label"),"Key Name:"),t.a.createElement("div",{style:{position:"relative"}},t.a.createElement("input",Object.assign({},S(m,"key-modal-input"),{className:"key-modal-input",ref:function(q){return q&&q.focus()},spellCheck:!1,value:h,placeholder:"...",onChange:function(q){r.setState({input:q.target.value})},onKeyPress:function(q){A&&q.key==="Enter"?r.submit():q.key==="Escape"&&r.closeModal()}})),A?t.a.createElement(Ee,Object.assign({},S(m,"key-modal-submit"),{className:"key-modal-submit",onClick:function(q){return r.submit()}})):null),t.a.createElement("span",S(m,"key-modal-cancel"),t.a.createElement(Ne,Object.assign({},S(m,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){ye.dispatch({rjvId:k,name:"RESET"})}})))))}}]),a}(t.a.PureComponent),Ft=function(c){_(a,c);var l=L(a);function a(){var r;p(this,a);for(var i=arguments.length,m=new Array(i),k=0;k{pe.fetchResource().then(e=>{Oe(e)}).catch(e=>{n(String(e))})},[pe]),o?Ze.jsxs(ht,{children:["Error: ",o]}):le?Ze.jsx(ht,{children:Ze.jsxs(zt,{children:[Ze.jsx(Vt,{children:"Fetched Metadata:"}),Ze.jsx(ht,{maxHeight:"700px",maxWidth:"100%",overflow:"scroll",backgroundColor:"#eeeeee",children:Ze.jsx(aa,{src:le})})]})}):Ze.jsx(ht,{children:"Loading..."})}const ra=Nt({component:na,appMetadata:Zt});customElements.define("http-app",ra); diff --git a/core-packages/pr-previews/pr-71/assets/5BaEhH7ejH5h.js b/core-packages/pr-previews/pr-71/assets/5BaEhH7ejH5h.js deleted file mode 100644 index 5b4682a..0000000 --- a/core-packages/pr-previews/pr-71/assets/5BaEhH7ejH5h.js +++ /dev/null @@ -1 +0,0 @@ -import{ag as n,J as l,ah as u,ai as d,aj as p,r as m}from"./BNseSxaIihtT.js";function g(r,a){const s=r??"bottom";return{"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[s]?.[a]??s}function f(r,a){const s=o=>({...a,...o,position:g(o?.position??a?.position,r)}),t=o=>{const e=s(o),i=u(e);return n.notify(i,e)};return t.update=(o,e)=>{n.update(o,s(e))},t.promise=(o,e)=>{const i=t({...e.loading,status:"loading",duration:null});o.then(c=>t.update(i,{status:"success",duration:5e3,...l(e.success,c)})).catch(c=>t.update(i,{status:"error",duration:5e3,...l(e.error,c)}))},t.closeAll=n.closeAll,t.close=n.close,t.isActive=n.isActive,t}function b(r){const{theme:a}=d(),s=p();return m.useMemo(()=>f(a.direction,{...s,...r}),[r,a.direction,s])}export{b as u}; diff --git a/core-packages/pr-previews/pr-71/assets/7DM-szicVgdJ.js b/core-packages/pr-previews/pr-71/assets/7DM-szicVgdJ.js deleted file mode 100644 index d1a6d52..0000000 --- a/core-packages/pr-previews/pr-71/assets/7DM-szicVgdJ.js +++ /dev/null @@ -1 +0,0 @@ -import{a4 as c,h as u,a5 as l,G as m,j as w,n as f,l as d}from"./BNseSxaIihtT.js";function v(n){return a(n)?.defaultView??window}function a(n){return c(n)?n.ownerDocument:document}function x(n){return n.view??window}function E(n){return a(n).activeElement}const g=u(function(e,s){const i=l("Link",e),{className:o,isExternal:t,...r}=m(e);return w.jsx(f.a,{target:t?"_blank":void 0,rel:t?"noopener":void 0,ref:s,className:d("chakra-link",o),...r,__css:i})});g.displayName="Link";export{g as L,E as a,x as b,v as g}; diff --git a/core-packages/pr-previews/pr-71/assets/B0CHZ8cDxVIB.js b/core-packages/pr-previews/pr-71/assets/B0CHZ8cDxVIB.js deleted file mode 100644 index 8a9854d..0000000 --- a/core-packages/pr-previews/pr-71/assets/B0CHZ8cDxVIB.js +++ /dev/null @@ -1,3 +0,0 @@ -import{j as e,a as r,b as o}from"./BNseSxaIihtT.js";function t(){return e.jsxs("div",{className:"sample-component-with-css",children:["The text in this div should be ",e.jsx("strong",{children:"RED"})," because it is styled using external css."]})}const i={"styling-app":{name:"styling-app",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"styling-sample-components":{name:"styling-sample-components",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},p=".sample-component-with-css{color:red;font-size:1.25em}",c=[];function a(s){throw new Error(`Unsupported locale: '${s}'`)}const n=r(p),l=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:a,locales:c,packages:i,styles:n},Symbol.toStringTag,{value:"Module"})),m=o({component:t,appMetadata:l});console.log(`CSS: - -${n.value}`);customElements.define("styling-app",m); diff --git a/core-packages/pr-previews/pr-71/assets/B9zdqh9PWE0a.js b/core-packages/pr-previews/pr-71/assets/B9zdqh9PWE0a.js deleted file mode 100644 index 3e8f283..0000000 --- a/core-packages/pr-previews/pr-71/assets/B9zdqh9PWE0a.js +++ /dev/null @@ -1 +0,0 @@ -import{x as g,h as y,F as I,G as h,l as x,ab as E,aa as G,r as i,j as p,n as S}from"./BNseSxaIihtT.js";const[v,_]=g({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),R=y(function(s,u){const a=I("Input",s),{children:d,className:l,...c}=h(s),m=x("chakra-input__group",l),n={},r=E(d),e=a.field;r.forEach(t=>{a&&(e&&t.type.id==="InputLeftElement"&&(n.paddingStart=e.height??e.h),e&&t.type.id==="InputRightElement"&&(n.paddingEnd=e.height??e.h),t.type.id==="InputRightAddon"&&(n.borderEndRadius=0),t.type.id==="InputLeftAddon"&&(n.borderStartRadius=0))});const f=r.map(t=>{const o=G({size:t.props?.size||s.size,variant:t.props?.variant||s.variant});return t.type.id!=="Input"?i.cloneElement(t,o):i.cloneElement(t,Object.assign(o,n,t.props))});return p.jsx(S.div,{className:m,ref:u,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...a.group},"data-group":!0,...c,children:p.jsx(v,{value:a,children:f})})});R.displayName="InputGroup";export{R as I,_ as u}; diff --git a/core-packages/pr-previews/pr-71/assets/BDHIly7xvlGb.js b/core-packages/pr-previews/pr-71/assets/BDHIly7xvlGb.js deleted file mode 100644 index 4066173..0000000 --- a/core-packages/pr-previews/pr-71/assets/BDHIly7xvlGb.js +++ /dev/null @@ -1 +0,0 @@ -import{h as c,j as p,n as d}from"./BNseSxaIihtT.js";const j=c(function(s,e){const{direction:i,align:r,justify:t,wrap:a,basis:n,grow:l,shrink:o,...x}=s,f={display:"flex",flexDirection:i,alignItems:r,justifyContent:t,flexWrap:a,flexBasis:n,flexGrow:l,flexShrink:o};return p.jsx(d.div,{ref:e,__css:f,...x})});j.displayName="Flex";export{j as F}; diff --git a/core-packages/pr-previews/pr-71/assets/BFlpemOfF64Q.js b/core-packages/pr-previews/pr-71/assets/BFlpemOfF64Q.js deleted file mode 100644 index 1d9f0d6..0000000 --- a/core-packages/pr-previews/pr-71/assets/BFlpemOfF64Q.js +++ /dev/null @@ -1 +0,0 @@ -import{f as M,r as a,j as t,a3 as De,d as $e,e as Je,u as Qe,D as se,o as y,x as Te,h as B,F as Ze,G as et,n as Z,l as Re,a as tt,H as R,S as ie,O as z,b as nt}from"./BNseSxaIihtT.js";import{_ as Ae}from"./CmsKOCeNyeyo.js";import{a as rt}from"./DrpD1hfjkN6P.js";import{I as le}from"./apwTDgsvPGCI.js";import{c as st,t as Fe,a as Me}from"./D-Zd7p0hx1Jn.js";import{a as ae,C as at}from"./jYicUDcJydKy.js";import{u as ot}from"./DE_cfL-UvDdR.js";import{T as N}from"./GR5gr-89Qrme.js";import{S as it}from"./C_rveq3oviC1.js";import{R as Oe,a as P}from"./_DT9ZMsk9pcc.js";import"./Bux-xGeHLEc6.js";function lt(e={}){const{onChange:r,precision:o,defaultValue:s,value:u,step:i=1,min:c=Number.MIN_SAFE_INTEGER,max:b=Number.MAX_SAFE_INTEGER,keepWithinRange:m=!0}=e,C=M(r),[_,k]=a.useState(()=>s==null?"":oe(s,i,o)??""),S=typeof u<"u",g=S?u:_,U=Ve(E(g),i),D=o??U,v=a.useCallback(d=>{d!==g&&(S||k(d.toString()),C?.(d.toString(),E(d)))},[C,S,g]),j=a.useCallback(d=>{let p=d;return m&&(p=st(p,c,b)),Fe(p,D)},[D,m,b,c]),K=a.useCallback((d=i)=>{let p;g===""?p=E(d):p=E(g)+d,p=j(p),v(p)},[j,i,v,g]),L=a.useCallback((d=i)=>{let p;g===""?p=E(-d):p=E(g)-d,p=j(p),v(p)},[j,i,v,g]),G=a.useCallback(()=>{let d;s==null?d="":d=oe(s,i,o)??c,v(d)},[s,o,i,v,c]),te=a.useCallback(d=>{const p=oe(d,i,D)??c;v(p)},[D,i,v,c]),A=E(g);return{isOutOfRange:A>b||A{let s=null;const u=()=>o();return r!==null&&(s=window.setInterval(u,r)),()=>{s&&window.clearInterval(s)}},[r,o])}const ct=e=>t.jsx(De,{viewBox:"0 0 24 24",...e,children:t.jsx("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),mt=e=>t.jsx(De,{viewBox:"0 0 24 24",...e,children:t.jsx("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function Pe(e,r,o,s){a.useEffect(()=>{if(!e.current||!s)return;const u=e.current.ownerDocument.defaultView??window,i=Array.isArray(r)?r:[r],c=new u.MutationObserver(b=>{for(const m of b)m.type==="attributes"&&m.attributeName&&i.includes(m.attributeName)&&o(m)});return c.observe(e.current,{attributes:!0,attributeFilter:i}),()=>c.disconnect()})}const dt=50,_e=300;function pt(e,r){const[o,s]=a.useState(!1),[u,i]=a.useState(null),[c,b]=a.useState(!0),m=a.useRef(null),C=()=>clearTimeout(m.current);ut(()=>{u==="increment"&&e(),u==="decrement"&&r()},o?dt:null);const _=a.useCallback(()=>{c&&e(),m.current=setTimeout(()=>{b(!1),s(!0),i("increment")},_e)},[e,c]),k=a.useCallback(()=>{c&&r(),m.current=setTimeout(()=>{b(!1),s(!0),i("decrement")},_e)},[r,c]),S=a.useCallback(()=>{b(!0),s(!1),C()},[]);return a.useEffect(()=>()=>C(),[]),{up:_,down:k,stop:S,isSpinning:o}}const ft=/^[Ee0-9+\-.]$/;function bt(e){return ft.test(e)}function ht(e,r){if(e.key==null)return!0;const o=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||o?!0:r(e.key)}function gt(e={}){const{focusInputOnChange:r=!0,clampValueOnBlur:o=!0,keepWithinRange:s=!0,min:u=Number.MIN_SAFE_INTEGER,max:i=Number.MAX_SAFE_INTEGER,step:c=1,isReadOnly:b,isDisabled:m,isRequired:C,isInvalid:_,pattern:k="[0-9]*(.[0-9]+)?",inputMode:S="decimal",allowMouseWheel:g,id:U,onChange:D,precision:v,name:j,"aria-describedby":K,"aria-label":L,"aria-labelledby":G,onFocus:te,onBlur:A,onInvalid:ce,getAriaValueText:me,isValidCharacter:de,format:d,parse:p,...We}=e,pe=M(te),fe=M(A),ne=M(ce),W=M(de??bt),be=M(me),l=lt(e),{update:O,increment:he,decrement:ge}=l,[He,re]=a.useState(!1),H=!(b||m),w=a.useRef(null),q=a.useRef(null),xe=a.useRef(null),ve=a.useRef(null),X=a.useCallback(n=>n.split("").filter(W).join(""),[W]),Y=a.useCallback(n=>p?.(n)??n,[p]),T=a.useCallback(n=>(d?.(n)??n).toString(),[d]);$e(()=>{(l.valueAsNumber>i||l.valueAsNumber{if(!w.current)return;if(w.current.value!=l.value){const f=Y(w.current.value);l.setValue(X(f))}},[Y,X]);const $=a.useCallback((n=c)=>{H&&he(n)},[he,H,c]),J=a.useCallback((n=c)=>{H&&ge(n)},[ge,H,c]),h=pt($,J);Pe(xe,"disabled",h.stop,h.isSpinning),Pe(ve,"disabled",h.stop,h.isSpinning);const ye=a.useCallback(n=>{if(n.nativeEvent.isComposing)return;const x=Y(n.currentTarget.value);O(X(x)),q.current={start:n.currentTarget.selectionStart,end:n.currentTarget.selectionEnd}},[O,X,Y]),Ne=a.useCallback(n=>{pe?.(n),q.current&&(n.currentTarget.selectionStart=q.current.start??n.currentTarget.value?.length,n.currentTarget.selectionEnd=q.current.end??n.currentTarget.selectionStart)},[pe]),Ce=a.useCallback(n=>{if(n.nativeEvent.isComposing)return;ht(n,W)||n.preventDefault();const f=Ie(n)*c,x=n.key,V={ArrowUp:()=>$(f),ArrowDown:()=>J(f),Home:()=>O(u),End:()=>O(i)}[x];V&&(n.preventDefault(),V(n))},[W,c,$,J,O,u,i]),Ie=n=>{let f=1;return(n.metaKey||n.ctrlKey)&&(f=.1),n.shiftKey&&(f=10),f},Se=a.useMemo(()=>{const n=be?.(l.value);if(n!=null)return n;const f=l.value.toString();return f||void 0},[l.value,be]),je=a.useCallback(()=>{let n=l.value;if(l.value==="")return;/^[eE]/.test(l.value.toString())?l.setValue(""):(l.valueAsNumberi&&(n=i),l.cast(n))},[l,i,u]),we=a.useCallback(()=>{re(!1),o&&je()},[o,re,je]),Q=a.useCallback(()=>{r&&requestAnimationFrame(()=>{w.current?.focus()})},[r]),Ee=a.useCallback(n=>{n.preventDefault(),h.up(),Q()},[Q,h]),ke=a.useCallback(n=>{n.preventDefault(),h.down(),Q()},[Q,h]);Qe(()=>w.current,"wheel",n=>{const x=(w.current?.ownerDocument??document).activeElement===w.current;if(!g||!x)return;n.preventDefault();const I=Ie(n)*c,V=Math.sign(n.deltaY);V===-1?$(I):V===1&&J(I)},{passive:!1});const qe=a.useCallback((n={},f=null)=>{const x=m||s&&l.isAtMax;return{...n,ref:se(f,xe),role:"button",tabIndex:-1,onPointerDown:y(n.onPointerDown,I=>{I.button!==0||x||Ee(I)}),onPointerLeave:y(n.onPointerLeave,h.stop),onPointerUp:y(n.onPointerUp,h.stop),disabled:x,"aria-disabled":ae(x)}},[l.isAtMax,s,Ee,h.stop,m]),Xe=a.useCallback((n={},f=null)=>{const x=m||s&&l.isAtMin;return{...n,ref:se(f,ve),role:"button",tabIndex:-1,onPointerDown:y(n.onPointerDown,I=>{I.button!==0||x||ke(I)}),onPointerLeave:y(n.onPointerLeave,h.stop),onPointerUp:y(n.onPointerUp,h.stop),disabled:x,"aria-disabled":ae(x)}},[l.isAtMin,s,ke,h.stop,m]),Ye=a.useCallback((n={},f=null)=>({name:j,inputMode:S,type:"text",pattern:k,"aria-labelledby":G,"aria-label":L,"aria-describedby":K,id:U,disabled:m,...n,readOnly:n.readOnly??b,"aria-readonly":n.readOnly??b,"aria-required":n.required??C,required:n.required??C,ref:se(w,f),value:T(l.value),role:"spinbutton","aria-valuemin":u,"aria-valuemax":i,"aria-valuenow":Number.isNaN(l.valueAsNumber)?void 0:l.valueAsNumber,"aria-invalid":ae(_??l.isOutOfRange),"aria-valuetext":Se,autoComplete:"off",autoCorrect:"off",onChange:y(n.onChange,ye),onKeyDown:y(n.onKeyDown,Ce),onFocus:y(n.onFocus,Ne,()=>re(!0)),onBlur:y(n.onBlur,fe,we)}),[j,S,k,G,L,T,K,U,m,C,b,_,l.value,l.valueAsNumber,l.isOutOfRange,u,i,Se,ye,Ce,Ne,fe,we]);return{value:T(l.value),valueAsNumber:l.valueAsNumber,isFocused:He,isDisabled:m,isReadOnly:b,getIncrementButtonProps:qe,getDecrementButtonProps:Xe,getInputProps:Ye,htmlProps:We}}const[xt,ee]=Te({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[vt,ue]=Te({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),ze=B(function(r,o){const s=Ze("NumberInput",r),u=et(r),i=ot(u),{htmlProps:c,...b}=gt(i),m=a.useMemo(()=>b,[b]);return t.jsx(vt,{value:m,children:t.jsx(xt,{value:s,children:t.jsx(Z.div,{...c,ref:o,className:Re("chakra-numberinput",r.className),__css:{position:"relative",zIndex:0,...s.root}})})})});ze.displayName="NumberInput";const Be=B(function(r,o){const s=ee();return t.jsx(Z.div,{"aria-hidden":!0,ref:o,...r,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...s.stepperGroup}})});Be.displayName="NumberInputStepper";const Ue=B(function(r,o){const{getInputProps:s}=ue(),u=s(r,o),i=ee();return t.jsx(Z.input,{...u,className:Re("chakra-numberinput__field",r.className),__css:{width:"100%",...i.field}})});Ue.displayName="NumberInputField";const Ke=Z("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),Le=B(function(r,o){const s=ee(),{getDecrementButtonProps:u}=ue(),i=u(r,o);return t.jsx(Ke,{...i,__css:s.stepper,children:r.children??t.jsx(ct,{})})});Le.displayName="NumberDecrementStepper";const Ge=B(function(r,o){const{getIncrementButtonProps:s}=ue(),u=s(r,o),i=ee();return t.jsx(Ke,{...u,__css:i.stepper,children:r.children??t.jsx(mt,{})})});Ge.displayName="NumberIncrementStepper";const yt={"i18n-howto-app":{name:"i18n-howto-app",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},Nt="",Ct=["de","en"];function It(e){switch(e){case"de":return Ae(()=>import("./BMGLgZQdGFiZ.js"),[],import.meta.url).then(r=>r.default);case"en":return Ae(()=>import("./DRvIJMpysLDi.js"),[],import.meta.url).then(r=>r.default)}throw new Error(`Unsupported locale: '${e}'`)}const St=tt(Nt),jt=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:It,locales:Ct,packages:yt,styles:St},Symbol.toStringTag,{value:"Module"})),wt="i18n-howto-app",F=rt.bind(void 0,wt);function Et(){const e=F();return t.jsxs(at,{children:[t.jsx(R,{as:"h1",size:"lg",children:e.formatMessage({id:"heading"})}),t.jsx(N,{children:e.formatMessage({id:"text"})}),t.jsx(kt,{})]})}function kt(){return t.jsxs(ie,{mb:5,mt:5,divider:t.jsx(it,{borderColor:"gray.200"}),spacing:"24px",align:"stretch",children:[t.jsx(z,{bg:"white",w:"100%",p:4,color:"black",borderWidth:"1px",borderColor:"black",children:t.jsx(At,{})}),t.jsx(z,{bg:"white",w:"100%",p:4,color:"black",borderWidth:"1px",borderColor:"black",children:t.jsx(Mt,{})}),t.jsx(z,{bg:"white",w:"100%",p:4,color:"black",borderWidth:"1px",borderColor:"black",children:t.jsx(Pt,{})}),t.jsx(z,{bg:"white",w:"100%",p:4,color:"black",borderWidth:"1px",borderColor:"black",children:t.jsx(_t,{})}),t.jsx(z,{bg:"white",w:"100%",p:4,color:"black",borderWidth:"1px",borderColor:"black",children:t.jsx(Dt,{})})]})}function At(){const e=F(),[r,o]=a.useState("");return t.jsxs(t.Fragment,{children:[t.jsx(R,{as:"h4",size:"md",children:e.formatMessage({id:"interpolation.heading"})}),t.jsx(le,{value:r,onChange:s=>o(s.target.value),placeholder:e.formatMessage({id:"interpolation.placeholder"}),size:"sm"}),t.jsx(N,{mb:"8px",children:e.formatMessage({id:"interpolation.value"},{name:r})})]})}function Mt(){const e=F(),[r,o]=a.useState("1");return t.jsxs(t.Fragment,{children:[t.jsx(R,{as:"h4",size:"md",children:e.formatMessage({id:"plurals.heading"})}),t.jsx(Oe,{onChange:o,value:r,children:t.jsxs(ie,{spacing:4,direction:"row",children:[t.jsx(P,{size:"md",value:"0",children:"0"}),t.jsx(P,{size:"md",value:"1",children:"1"}),t.jsx(P,{size:"md",value:"42",children:"42"}),t.jsx(P,{size:"md",value:"99",children:"99"})]})}),t.jsx(N,{mb:"8px",children:e.formatMessage({id:"plurals.value"},{n:r})})]})}function Pt(){const e=F(),[r,o]=a.useState(""),[s,u]=a.useState("male");return t.jsxs(t.Fragment,{children:[t.jsx(R,{as:"h4",size:"md",children:e.formatMessage({id:"selection.heading"})}),t.jsx(le,{value:r,onChange:i=>o(i.target.value),placeholder:e.formatMessage({id:"interpolation.placeholder"}),size:"sm"}),t.jsx(Oe,{onChange:u,value:s,children:t.jsxs(ie,{spacing:4,direction:"row",children:[t.jsx(P,{size:"md",value:"female",children:e.formatMessage({id:"selection.gender.female"})}),t.jsx(P,{size:"md",value:"male",children:e.formatMessage({id:"selection.gender.male"})}),t.jsx(P,{size:"md",value:"other",children:e.formatMessage({id:"selection.gender.other"})})]})}),t.jsx(N,{mb:"8px",children:e.formatMessage({id:"selection.value"},{name:r,gender:s})})]})}function _t(){const e=F(),[r,o]=a.useState("424224.24");return t.jsxs(t.Fragment,{children:[t.jsx(R,{as:"h4",size:"md",children:e.formatMessage({id:"numberformat.heading"})}),t.jsxs(ze,{onChange:s=>o(s),value:r,precision:2,step:.25,children:[t.jsx(Ue,{}),t.jsxs(Be,{children:[t.jsx(Ge,{}),t.jsx(Le,{})]})]}),t.jsxs(N,{mb:"8px",children:[e.formatMessage({id:"numberformat.example.currency1"}),e.formatNumber(+r,{style:"currency",currency:"EUR"})]}),t.jsxs(N,{mb:"8px",children:[e.formatMessage({id:"numberformat.example.currency2"}),e.formatNumber(+r,{style:"currency",currency:"EUR",currencyDisplay:"name"})]}),t.jsxs(N,{mb:"8px",children:[e.formatMessage({id:"numberformat.example.unit1"}),e.formatNumber(+r,{style:"unit",unit:"terabyte-per-second"})]}),t.jsxs(N,{mb:"8px",children:[e.formatMessage({id:"numberformat.example.unit2"}),e.formatNumber(+r,{style:"unit",unit:"terabyte-per-second",unitDisplay:"long"})]})]})}function Dt(){const e=F(),[r,o]=a.useState("2023-02-19T19:02");return t.jsxs(t.Fragment,{children:[t.jsx(R,{as:"h4",size:"md",children:e.formatMessage({id:"datetimeformat.heading"})}),t.jsx(le,{value:r,onChange:s=>o(s.target.value),size:"md",type:"datetime-local"}),t.jsxs(N,{mb:"8px",children:[e.formatMessage({id:"datetimeformat.timelabel"}),e.formatDate(r,{dateStyle:"full",timeStyle:"short"})]}),t.jsxs(N,{mb:"8px",children:[e.formatMessage({id:"datetimeformat.relativetimelabel"}),e.formatRelativeTime(Tt(r),"minute",{numeric:"auto",style:"long"})]})]})}function Tt(e){const r=new Date(e).getTime()-new Date().getTime();return Math.round(r/6e4)}const Rt=nt({component:Et,appMetadata:jt,async resolveConfig(e){const r=e.getAttribute("forced-locale");if(r)return{locale:r}}});customElements.define("i18n-howto",Rt);const Ft=document.getElementById("container");Ot();function Ot(){const e=window.location.search,o=new URLSearchParams(e).get("lang"),s=document.createElement("i18n-howto");o&&s.setAttribute("forced-locale",o),Ft.appendChild(s)} diff --git a/core-packages/pr-previews/pr-71/assets/BIKQjDEvEBz2.js b/core-packages/pr-previews/pr-71/assets/BIKQjDEvEBz2.js deleted file mode 100644 index 8a6fcec..0000000 --- a/core-packages/pr-previews/pr-71/assets/BIKQjDEvEBz2.js +++ /dev/null @@ -1 +0,0 @@ -import{n as m,h as g,j as e,a as x,H as j,V as v,b as _}from"./BNseSxaIihtT.js";import{_ as c}from"./CmsKOCeNyeyo.js";import{u as b,a as p}from"./DrpD1hfjkN6P.js";import{U as y,L as n}from"./F38okayrCIRl.js";import{D as C}from"./BNgto9rEK1t3.js";import{H as k}from"./Dg0FwUWAsyRP.js";import{C as M}from"./jYicUDcJydKy.js";import{T as l}from"./GR5gr-89Qrme.js";import{B as S}from"./CE6nEn_ZV1yL.js";const d=m("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});d.displayName="Center";const E={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};g(function(r,a){const{axis:o="both",...s}=r;return e.jsx(m.div,{ref:a,__css:E[o],...s,position:"absolute"})});const L={"i18n-app":{name:"i18n-app",services:{},ui:{references:[{name:"runtime.ApplicationContext",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"i18n-sample-package":{name:"i18n-sample-package",services:{},ui:{references:[]},properties:{}}},A="",P=["de","en","de-simple"];function T(t){switch(t){case"de":return c(()=>import("./CVEPn1OX0dMY.js"),[],import.meta.url).then(r=>r.default);case"en":return c(()=>import("./CpxcYkkJOozD.js"),[],import.meta.url).then(r=>r.default);case"de-simple":return c(()=>import("./D02xQxr8Ohom.js"),[],import.meta.url).then(r=>r.default)}throw new Error(`Unsupported locale: '${t}'`)}const I=x(A),R=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:T,locales:P,packages:L,styles:I},Symbol.toStringTag,{value:"Module"})),u="i18n-app",f=b.bind(void 0,u),h=p.bind(void 0,u),D="i18n-sample-package",w=p.bind(void 0,D);function G(){const t=w();return e.jsxs("div",{children:["Greeting: ",t.formatMessage({id:"greeting"})]})}function H(){const t=h(),r=f("runtime.ApplicationContext"),a=r.getLocale(),o=r.getSupportedLocales(),s="Müller",i=["Hans","Peter","Hape"];return e.jsxs(M,{children:[e.jsx(j,{size:"lg",mb:4,children:t.formatMessage({id:"content.header"})}),e.jsx(l,{mb:4,children:t.formatMessage({id:"content.description"})}),e.jsxs(y,{mb:4,children:[e.jsxs(n,{children:["Current locale: ",a]}),e.jsxs(n,{children:["Supported locales: ",o.join(", ")]}),e.jsxs(n,{children:["Current date and time:"," ",t.formatDate(new Date,{dateStyle:"full",timeStyle:"short"})]}),e.jsxs(n,{children:["Relative Time - 1:"," ",t.formatRelativeTime(1,"minute",{numeric:"auto",style:"long"})]}),e.jsxs(n,{children:["Relative Time - 15:"," ",t.formatRelativeTime(15,"minute",{numeric:"auto",style:"long"})]}),e.jsxs(n,{children:["Relative Time - 0:"," ",t.formatRelativeTime(0,"minute",{numeric:"auto",style:"long"})]}),e.jsxs(n,{children:["Large number (Currency):"," ",t.formatNumber(123456789e-2,{style:"currency",currency:"EUR"})]}),e.jsxs(n,{children:["Large number (Unit):"," ",t.formatNumber(123456789e-2,{style:"unit",unit:"kilogram-per-second"})]}),e.jsxs(n,{children:["Plural - Count 0: ",t.formatMessage({id:"content.testplural"},{n:0})]}),e.jsxs(n,{children:["Plural - Count 1: ",t.formatMessage({id:"content.testplural"},{n:1})]}),e.jsxs(n,{children:["Plural - Count 2: ",t.formatMessage({id:"content.testplural"},{n:2})]}),e.jsxs(n,{children:["List: ",t.formatList(i,{type:"conjunction"})]}),e.jsxs(n,{children:["Gender - female:"," ",t.formatMessage({id:"content.testgender"},{gender:"female",name:s})]}),e.jsxs(n,{children:["Gender - male:"," ",t.formatMessage({id:"content.testgender"},{gender:"male",name:s})]}),e.jsxs(n,{children:["Gender - other:"," ",t.formatMessage({id:"content.testgender"},{gender:"other",name:s})]})]}),e.jsx(d,{mb:4,children:e.jsx(U,{})}),e.jsx(C,{my:4}),e.jsxs(l,{mb:4,children:["This component is from another package which does ",e.jsx("em",{children:"not"})," support de-simple by itself:"]}),e.jsx(G,{})]})}function U(){const t=f("runtime.ApplicationContext"),r=h(),a=t.getSupportedLocales(),o=i=>e.jsx(S,{onClick:()=>t.setLocale(i),children:i??r.formatMessage({id:"picker.default"})},i??""),s=a.map(i=>o(i));return s.unshift(o(void 0)),e.jsxs(v,{children:[e.jsx(l,{children:r.formatMessage({id:"picker.choose"})}),e.jsx(k,{spacing:2,children:s})]})}const N=_({component:H,appMetadata:R});customElements.define("i18n-app",N); diff --git a/core-packages/pr-previews/pr-71/assets/BMGLgZQdGFiZ.js b/core-packages/pr-previews/pr-71/assets/BMGLgZQdGFiZ.js deleted file mode 100644 index e39d789..0000000 --- a/core-packages/pr-previews/pr-71/assets/BMGLgZQdGFiZ.js +++ /dev/null @@ -1 +0,0 @@ -const e=JSON.parse('{"i18n-howto-app":{"heading":"I18n HowTo","text":"Wie lässt sich I18n in Open Pioneer Trails Apps nutzen?","interpolation.heading":"Beispiel für Interpolation (dynamische Werte)","interpolation.value":"Hallo {name}","interpolation.placeholder":"Geben Sie Ihren Namen ein...","plurals.heading":"Beispiel für Plural","plurals.value":"Wir trinken {n, plural, =0 {kein Bier} one {ein Bier} other {# Biere} =99 {zu viele Biere}}","selection.heading":"Beispiel für Selektion","selection.value":"{gender, select, male {Herr} female {Frau} other {}} {name}","selection.gender.male":"männlich","selection.gender.female":"weiblich","selection.gender.other":"divers","numberformat.heading":"Beispiele für NumberFormat","numberformat.example.currency1":"Währung (Symbol): ","numberformat.example.currency2":"Währung (lang): ","numberformat.example.unit1":"Maßeinheiten (kurz): ","numberformat.example.unit2":"Maßeinheiten (lang): ","datetimeformat.heading":"Beispiel DateTimeFormat","datetimeformat.timelabel":"Der gewählte Zeitpunkt ist ","datetimeformat.relativetimelabel":"Relative Zeit zum gewählten Zeitpunkt: "}}');export{e as default}; diff --git a/core-packages/pr-previews/pr-71/assets/BNgto9rEK1t3.js b/core-packages/pr-previews/pr-71/assets/BNgto9rEK1t3.js deleted file mode 100644 index e4c569c..0000000 --- a/core-packages/pr-previews/pr-71/assets/BNgto9rEK1t3.js +++ /dev/null @@ -1 +0,0 @@ -import{h as v,a5 as x,G as W,j as p,n as y,l as D}from"./BNseSxaIihtT.js";const g=v(function(r,o){const{borderLeftWidth:e,borderBottomWidth:d,borderTopWidth:s,borderRightWidth:a,borderWidth:t,borderStyle:h,borderColor:n,...c}=x("Divider",r),{className:l,orientation:i="horizontal",__css:b,...m}=W(r),f={vertical:{borderLeftWidth:e||a||t||"1px",height:"100%"},horizontal:{borderBottomWidth:d||s||t||"1px",width:"100%"}};return p.jsx(y.hr,{ref:o,"aria-orientation":i,...m,__css:{...c,border:"0",borderColor:n,borderStyle:h,...f[i],...b},className:D("chakra-divider",l)})});g.displayName="Divider";export{g as D}; diff --git a/core-packages/pr-previews/pr-71/assets/BNseSxaIihtT.js b/core-packages/pr-previews/pr-71/assets/BNseSxaIihtT.js deleted file mode 100644 index c0af50e..0000000 --- a/core-packages/pr-previews/pr-71/assets/BNseSxaIihtT.js +++ /dev/null @@ -1,422 +0,0 @@ -var j0=e=>{throw TypeError(e)};var jf=(e,t,r)=>t.has(e)||j0("Cannot "+r);var Le=(e,t,r)=>(jf(e,t,"read from private field"),r?r.call(e):t.get(e)),qt=(e,t,r)=>t.has(e)?j0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),$t=(e,t,r,n)=>(jf(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),_l=(e,t,r)=>(jf(e,t,"access private method"),r);function vP(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var Al=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $9(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var B1={exports:{}},q={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var tl=Symbol.for("react.element"),yP=Symbol.for("react.portal"),bP=Symbol.for("react.fragment"),SP=Symbol.for("react.strict_mode"),xP=Symbol.for("react.profiler"),wP=Symbol.for("react.provider"),EP=Symbol.for("react.context"),kP=Symbol.for("react.forward_ref"),CP=Symbol.for("react.suspense"),TP=Symbol.for("react.memo"),PP=Symbol.for("react.lazy"),V0=Symbol.iterator;function _P(e){return e===null||typeof e!="object"?null:(e=V0&&e[V0]||e["@@iterator"],typeof e=="function"?e:null)}var z1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j1=Object.assign,V1={};function os(e,t,r){this.props=e,this.context=t,this.refs=V1,this.updater=r||z1}os.prototype.isReactComponent={};os.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};os.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function H1(){}H1.prototype=os.prototype;function Kp(e,t,r){this.props=e,this.context=t,this.refs=V1,this.updater=r||z1}var Qp=Kp.prototype=new H1;Qp.constructor=Kp;j1(Qp,os.prototype);Qp.isPureReactComponent=!0;var H0=Array.isArray,U1=Object.prototype.hasOwnProperty,Zp={current:null},W1={key:!0,ref:!0,__self:!0,__source:!0};function G1(e,t,r){var n,o={},i=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)U1.call(t,n)&&!W1.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(a===1)o.children=r;else if(1=this.enabledLogLevelNumber}}function BP(e){switch(e){case"DEBUG":return"debug";case"INFO":return"info";case"WARN":return"warn";case"ERROR":return"error"}}function G0(e){return DP[e]}function zP(e){switch(e){case"DEBUG":case"INFO":case"WARN":case"ERROR":return e;default:throw new Error(`invalid log level '${e}'; allowed levels are: DEBUG, INFO, WARN, ERROR`)}}function jP(e){return e instanceof Error?!0:!!(e&&typeof e=="object"&&typeof e.name=="string"&&typeof e.message=="string")}function VP(){let e,t;return{promise:new Promise((n,o)=>{e=n,t=o}),resolve:e,reject:t}}var H=(e=>(e.INVALID_METADATA="runtime:invalid-metadata",e.INVALID_PROPERTY_NAME="runtime:invalid-property-name",e.REQUIRED_PROPERTY="runtime:required-property",e.NOT_MOUNTED="runtime:element-not-mounted",e.UNSUPPORTED_LOCALE="runtime:unsupported-locale",e.CONFIG_RESOLUTION_FAILED="runtime:config-resolution-failed",e.INVALID_STATE="runtime:invalid-state",e.INTERFACE_NOT_FOUND="runtime:interface-not-found",e.AMBIGUOUS_DEPENDENCY="runtime:ambiguous-dependency",e.UNDECLARED_DEPENDENCY="runtime:undeclared-dependency",e.MISSING_PACKAGE="runtime:missing-package",e.SERVICE_CONSTRUCTION_FAILED="runtime:service-construction-failed",e.SERVICE_DESTRUCTION_FAILED="runtime:service-destruction-failed",e.DUPLICATE_INTERFACE="runtime:duplicate-interface",e.DEPENDENCY_CYCLE="runtime:dependency-cycle",e.DUPLICATE_API_METHODS="runtime:duplicate-api-methods",e.INTERNAL="runtime:internal-error",e))(H||{});function Dc({interfaceName:e,qualifier:t}){return`'${e}'`+(t?` (qualifier: '${t}')`:"")}function Q1(e){if(!e)throw new V(H.INVALID_METADATA,"Missing reference metadata.");if(e.all&&e.qualifier)throw new V(H.INVALID_METADATA,"References can't use 'qualifier' and 'all' properties at the same time.");return e.all?{all:!0,interfaceName:e.name}:{interfaceName:e.name,qualifier:e.qualifier}}function em(e){return!e.all}function HP(e){return e.all===!0}class wi{static create(t,r,n,o){const i=r.clazz,s=r.name,a=Object.entries(r.references??{}).map(([c,f])=>({referenceName:c,...Q1(f)})),l=r.provides?.map(c=>({interfaceName:c.name,qualifier:c.qualifier})),u={type:"class",clazz:i};return new wi({name:s,packageName:t,factory:u,intl:n,dependencies:a,interfaces:l,properties:o})}id;name;packageName;intl;properties;dependencies;interfaces;_useCount=0;factory;_state="not-constructed";_instance=void 0;constructor(t){const{name:r,packageName:n,factory:o,intl:i,dependencies:s=[],interfaces:a=[],properties:l={}}=t;if(!GP(r))throw new V(H.INTERNAL,`Invalid service name: '${r}'.`);this.id=`${n}::${r}`,this.name=r,this.packageName=n,this.factory=o,this.intl=i,this.dependencies=s,this.interfaces=a,this.properties=l}get instance(){return this._instance}get state(){return this._state}get useCount(){return this._useCount}getInstanceOrThrow(){const t=this._instance;if(!t)throw new V(H.INTERNAL,"Expected service instance to be present.");return t}beforeCreate(){if(this._state==="not-constructed")this._state="constructing";else throw new V(H.INTERNAL,"Inconsistent state: service is already under construction.")}create(t){if(this._state!=="constructing"||this.instance!==void 0)throw new V(H.INTERNAL,"Inconsistent state: service is not being constructed.");try{return this._instance=XP(this.factory,{...t,properties:this.properties,intl:this.intl}),this._state="constructed",this._useCount=1,this._instance}catch(r){throw new V(H.SERVICE_CONSTRUCTION_FAILED,`Failed to create service instance '${this.id}'.`,{cause:r})}}destroy(){if(this._instance)try{this._instance.destroy?.()}catch(t){throw new V(H.SERVICE_DESTRUCTION_FAILED,`Failed to destroy service instance '${this.id}'.`,{cause:t})}this._instance=void 0,this._state="destroyed"}addRef(){return this._useCount+=1}removeRef(){return this._useCount-=1}}function X0(e){return{type:"class",clazz:e}}function UP(e){return{type:"function",create:e}}const WP=/^[a-z0-9_-]+$/i;function GP(e){return WP.test(e)}function XP(e,t){switch(e.type){case"class":return new e.clazz(t);case"function":return e.create(t)}}class Fc{static create(t,r,n){const o=t.name,i=t.properties??{},s=YP(o,i,n),a=Object.entries(t.services??{}).map(([u,c])=>{if(u!==c.name)throw new V(H.INVALID_METADATA,"Invalid metadata: service name mismatch.");return wi.create(t.name,c,r,s)}),l=t.ui?.references?.map(u=>Q1(u))??[];return new Fc({name:o,services:a,uiReferences:l,properties:s,intl:r})}name;services;uiReferences;properties;intl;constructor(t){const r=t.name;if(!JP(r))throw new V(H.INTERNAL,`Invalid package name: '${r}'.`);this.name=r,this.services=t.services??[],this.uiReferences=t.uiReferences??[],this.properties=t.properties??{},this.intl=t.intl}}function qP(e,t,r){return Object.entries(e).map(([n,o])=>{if(n!==o.name)throw new V(H.INVALID_METADATA,"Invalid metadata: package name mismatch.");const i=t.createPackageI18n(n);return Fc.create(o,i,r?.[n])})}function YP(e,t,r={}){const n={},o=[];for(const[i,s]of Object.entries(t))n[i]=s.value,s.required&&o.push(i);for(const[i,s]of Object.entries(r)){if(!QP(n,i))throw new V(H.INVALID_PROPERTY_NAME,`Unexpected property name '${i}' for package '${e}': the property does not exist.`);n[i]=s}for(const i of o)if(n[i]==null)throw new V(H.REQUIRED_PROPERTY,`Package '${e}' requires the property '${i}' to be initialized to a non-null value.`);return n}const KP=Object.prototype.hasOwnProperty;function QP(e,t){return KP.call(e,t)}const ZP=/^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/;function JP(e){return ZP.test(e)}class e2{services=new Map;_count=0;get serviceCount(){return this._count}register(t,{interfaceName:r,qualifier:n}){if(!r)throw new V(H.INVALID_METADATA,`Service '${t.id}' provides invalid interface '${r}'.`);if(n!=null&&!n)throw new V(H.INVALID_METADATA,`Service '${t.id}' uses an invalid qualifier for interface '${r}': '${n}'.`);const o=this.ensureInterfaceEntry(r);if(!n){o.unqualified.push(t),++this._count;return}const i=o.byQualifier.get(n);if(i)throw new V(H.DUPLICATE_INTERFACE,`Cannot register '${t.id}' as interface '${r}' with qualifier '${n}'. The interface is already provided by service '${i.id}'. You can choose a different qualifier or remove the service to resolve the collision.`);o.byQualifier.set(n,t),++this._count}lookup(t){return em(t)?this.lookupOne(t):this.lookupAll(t.interfaceName)}lookupOne({interfaceName:t,qualifier:r}){if(!t)throw new V(H.INVALID_METADATA,`Invalid interface name during service lookup: '${t}'.`);if(r!=null&&!r)throw new V(H.INVALID_METADATA,`Invalid qualifier during service lookup of interface '${t}': '${r}'.`);const n=this.services.get(t);if(!n)return{type:"unimplemented"};if(!r){if(n.unqualified.length+n.byQualifier.size>1){const a=[];return a.push(...Array.from(n.byQualifier.entries()).map(([l,u])=>[u.id,l])),a.push(...n.unqualified.map(l=>[l.id,void 0])),{type:"ambiguous",choices:a}}const s=n.unqualified[0]??t2(n.byQualifier);return s?{type:"found",value:s}:{type:"unimplemented"}}const o=n.byQualifier.get(r);return o?{type:"found",value:o}:{type:"unimplemented"}}lookupAll(t){if(!t)throw new V(H.INVALID_METADATA,`Invalid interface name during service lookup: '${t}'.`);const r=this.services.get(t);if(!r)return{type:"found",value:[]};const n=new Set([...r.unqualified,...r.byQualifier.values()]);return{type:"found",value:Array.from(n)}}ensureInterfaceEntry(t){const r=this.services;let n=r.get(t);return n||(n={unqualified:[],byQualifier:new Map},r.set(t,n)),n}}function Z1(e,t=3){let r="",n=0;for(const[i,s]of e)if(n&&(r+=", "),r+=`'${i}'`,s&&(r+=` (with qualifier '${s}')`),++n>=t)break;const o=e.length-n;return o>0&&(r+=` and ${o} more`),r}function t2(e){return e.values().next().value}function r2(e){const t=new n2(e);return t.verify(),{serviceLookup:t.getServiceLookup(),serviceDependencies:t.getComputedDependencies()}}class n2{requiredReferences;items;serviceLookup=new e2;serviceToGraphItem=new Map;stack=[];constructor(t){this.requiredReferences=t.requiredReferences??[];const r=t.services??[],n=this.items=r.map(o=>({service:o,state:"not-visited",dependencies:{}}));for(const o of n)for(const i of o.service.interfaces)this.registerService(o,i)}verify(){for(const t of this.requiredReferences){let r;switch(t.type){case"framework":r={type:"framework-reference",value:t};break;case"ui":r={type:"ui-reference",packageName:t.packageName,value:t};break}this.visitReference(r)}for(const t of this.items)this.visitItem(t,"root")}getServiceLookup(){return this.serviceLookup}getComputedDependencies(){return new Map(this.items.map(t=>[t.service.id,t.dependencies]))}visitItem(t,r){const n=this.stack,o=t.state;if(o!=="done"){o==="pending"&&this.throwCycleError(t,r),n.push([t,r]),t.state="pending";for(const i of t.service.dependencies)t.dependencies[i.referenceName]=this.visitReference({type:"service-reference",service:t.service,referenceName:i.referenceName,value:i});t.state="done",n.pop()}}visitReference(t){const r=this.findServices(t);if(Array.isArray(r)){for(const n of r)this.visitItem(n,t);return r.map(n=>n.service)}else return this.visitItem(r,t),r.service}registerService(t,r){this.serviceLookup.register(t.service,r),this.serviceToGraphItem.set(t.service,t)}findServices(t){const r=t.value,n=this.serviceLookup.lookup(r);switch(n.type){case"unimplemented":{const i=o2(t);throw new V(H.INTERFACE_NOT_FOUND,i)}case"ambiguous":{const i=i2(t,n.choices);throw new V(H.AMBIGUOUS_DEPENDENCY,i)}}const o=n.value;return Array.isArray(o)?o.map(i=>this.getGraphItem(i)):this.getGraphItem(o)}getGraphItem(t){const r=this.serviceToGraphItem.get(t);if(!r||r.service!==t)throw new V(H.INTERNAL,`Failed to find matching graph item for service '${t.id}'.`);return r}throwCycleError(t,r){const n=this.stack,o=n.findIndex(s=>s[0]===t);if(o===-1)throw new V(H.INTERNAL,"Failed to find cycle participant on the stack.");const i=n.slice(o).concat([[t,r]]).map((s,a)=>{const l=s[0],u=a===0?"root":s[1];let c=`'${l.service.id}'`;return typeof u=="object"&&(c+=` (${s2(u)})`),c});throw new V(H.DEPENDENCY_CYCLE,`Detected dependency cycle: ${i.join(" => ")}.`)}}function o2(e){const t=Dc(e.value);switch(e.type){case"service-reference":return`Service '${e.service.id}' requires an unimplemented interface ${t} as dependency '${e.referenceName}'.`;case"ui-reference":return`The UI of package '${e.packageName}' requires an unimplemented interface ${t}.`;case"framework-reference":return`The framework requires an unimplemented interface ${t}.`}}function i2(e,t){const r=Dc(e.value),n=Z1(t);let o="";switch(e.type){case"service-reference":o=`Service '${e.service.id}' requires the ambiguous interface ${r} as dependency '${e.referenceName}'.`;break;case"ui-reference":o=`The UI of package '${e.packageName}' requires the ambiguous interface ${r}.`;break;case"framework-reference":o=`The framework requires the ambiguous interface ${r}.`;break}return o+=` Possible choices are ${n}.`,o}function s2(e){switch(e.type){case"service-reference":return`'${e.referenceName}' providing '${e.value.interfaceName}'`;case"ui-reference":return`UI of package '${e.packageName}' requiring '${e.value.interfaceName}'`;case"framework-reference":return`framework requiring '${e.value.interfaceName}'`}}var ah=function(e,t){return ah=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},ah(e,t)};function kr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ah(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var F=function(){return F=Object.assign||function(t){for(var r,n=1,o=arguments.length;n"u"&&(i=e.call(this,n),t.set(o,i)),i}function eS(e,t,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,n),t.set(o,i)),i}function rm(e,t,r,n,o){return r.bind(t,e,n,o)}function l2(e,t){var r=e.length===1?J1:eS;return rm(e,this,r,t.cache.create(),t.serializer)}function u2(e,t){return rm(e,this,eS,t.cache.create(),t.serializer)}function c2(e,t){return rm(e,this,J1,t.cache.create(),t.serializer)}var f2=function(){return JSON.stringify(arguments)};function nm(){this.cache=Object.create(null)}nm.prototype.get=function(e){return this.cache[e]};nm.prototype.set=function(e,t){this.cache[e]=t};var d2={create:function(){return new nm}},gt={variadic:u2,monadic:c2},Q;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Q||(Q={}));var xe;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(xe||(xe={}));var Di;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Di||(Di={}));function q0(e){return e.type===xe.literal}function h2(e){return e.type===xe.argument}function tS(e){return e.type===xe.number}function rS(e){return e.type===xe.date}function nS(e){return e.type===xe.time}function oS(e){return e.type===xe.select}function iS(e){return e.type===xe.plural}function p2(e){return e.type===xe.pound}function sS(e){return e.type===xe.tag}function aS(e){return!!(e&&typeof e=="object"&&e.type===Di.number)}function lh(e){return!!(e&&typeof e=="object"&&e.type===Di.dateTime)}var lS=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,m2=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function g2(e){var t={};return e.replace(m2,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var v2=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function y2(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(v2).filter(function(d){return d.length>0}),r=[],n=0,o=t;n1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(S2,function(l,u,c,f,d,g){if(u)t.minimumIntegerDigits=c.length;else{if(f&&d)throw new Error("We currently do not support maximum integer digits");if(g)throw new Error("We currently do not support exact integer digits")}return""});continue}if(cS.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(Y0.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Y0,function(l,u,c,f,d,g){return c==="*"?t.minimumFractionDigits=u.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:d&&g?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+g.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var i=o.options[0];i==="w"?t=F(F({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=F(F({},t),K0(i)));continue}if(uS.test(o.stem)){t=F(F({},t),K0(o.stem));continue}var s=fS(o.stem);s&&(t=F(F({},t),s));var a=x2(o.stem);a&&(t=F(F({},t),a))}return t}var Il={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function E2(e,t){for(var r="",n=0;n>1),l="a",u=k2(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)r+=l;for(;s-- >0;)r=u+r}else o==="J"?r+="H":r+=o}return r}function k2(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var o=Il[n||""]||Il[r||""]||Il["".concat(r,"-001")]||Il["001"];return o[0]}var Uf,C2=new RegExp("^".concat(lS.source,"*")),T2=new RegExp("".concat(lS.source,"*$"));function ee(e,t){return{start:e,end:t}}var P2=!!String.prototype.startsWith&&"_a".startsWith("a",1),_2=!!String.fromCodePoint,A2=!!Object.fromEntries,R2=!!String.prototype.codePointAt,I2=!!String.prototype.trimStart,M2=!!String.prototype.trimEnd,L2=!!Number.isSafeInteger,O2=L2?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},uh=!0;try{var $2=hS("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");uh=((Uf=$2.exec("a"))===null||Uf===void 0?void 0:Uf[0])==="a"}catch{uh=!1}var Z0=P2?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},ch=_2?String.fromCodePoint:function(){for(var t=[],r=0;ri;){if(s=t[i++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},J0=A2?Object.fromEntries:function(t){for(var r={},n=0,o=t;n=n)){var o=t.charCodeAt(r),i;return o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},N2=I2?function(t){return t.trimStart()}:function(t){return t.replace(C2,"")},D2=M2?function(t){return t.trimEnd()}:function(t){return t.replace(T2,"")};function hS(e,t){return new RegExp(e,t)}var fh;if(uh){var ev=hS("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fh=function(t,r){var n;ev.lastIndex=r;var o=ev.exec(t);return(n=o[1])!==null&&n!==void 0?n:""}}else fh=function(t,r){for(var n=[];;){var o=dS(t,r);if(o===void 0||pS(o)||j2(o))break;n.push(o),r+=o>=65536?2:1}return ch.apply(void 0,n)};var F2=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var s=this.parseArgument(t,n);if(s.err)return s;o.push(s.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:xe.pound,location:ee(a,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Q.UNMATCHED_CLOSING_TAG,ee(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&dh(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:xe.literal,value:"<".concat(o,"/>"),location:ee(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var s=i.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:xe.tag,value:o,children:s,location:ee(n,this.clonePosition())},err:null}:this.error(Q.INVALID_TAG,ee(a,this.clonePosition())))}else return this.error(Q.UNCLOSED_TAG,ee(n,this.clonePosition()))}else return this.error(Q.INVALID_TAG,ee(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&z2(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),o="";;){var i=this.tryParseQuote(r);if(i){o+=i;continue}var s=this.tryParseUnquoted(t,r);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var l=ee(n,this.clonePosition());return{val:{type:xe.literal,value:o,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!B2(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return ch.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),ch(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,ee(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Q.EMPTY_ARGUMENT,ee(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(Q.MALFORMED_ARGUMENT,ee(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,ee(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:xe.argument,value:o,location:ee(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,ee(n,this.clonePosition())):this.parseArgumentOptions(t,r,o,n);default:return this.error(Q.MALFORMED_ARGUMENT,ee(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=fh(this.message,r),o=r+n.length;this.bumpTo(o);var i=this.clonePosition(),s=ee(t,i);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,o){var i,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(Q.EXPECT_ARGUMENT_TYPE,ee(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var d=D2(f.val);if(d.length===0)return this.error(Q.EXPECT_ARGUMENT_STYLE,ee(this.clonePosition(),this.clonePosition()));var g=ee(c,this.clonePosition());u={style:d,styleLocation:g}}var y=this.tryParseArgumentClose(o);if(y.err)return y;var m=ee(o,this.clonePosition());if(u&&Z0(u?.style,"::",0)){var S=N2(u.style.slice(2));if(a==="number"){var f=this.parseNumberSkeletonFromString(S,u.styleLocation);return f.err?f:{val:{type:xe.number,value:n,location:m,style:f.val},err:null}}else{if(S.length===0)return this.error(Q.EXPECT_DATE_TIME_SKELETON,m);var p=S;this.locale&&(p=E2(S,this.locale));var d={type:Di.dateTime,pattern:p,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?g2(p):{}},h=a==="date"?xe.date:xe.time;return{val:{type:h,value:n,location:m,style:d},err:null}}}return{val:{type:a==="number"?xe.number:a==="date"?xe.date:xe.time,value:n,location:m,style:(i=u?.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var v=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Q.EXPECT_SELECT_ARGUMENT_OPTIONS,ee(v,F({},v)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),E=0;if(a!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(Q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ee(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(Q.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Q.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),w=this.parseIdentifierIfPossible(),E=f.val}var P=this.tryParsePluralOrSelectOptions(t,a,r,w);if(P.err)return P;var y=this.tryParseArgumentClose(o);if(y.err)return y;var T=ee(o,this.clonePosition());return a==="select"?{val:{type:xe.select,value:n,options:J0(P.val),location:T},err:null}:{val:{type:xe.plural,value:n,options:J0(P.val),offset:E,pluralType:a==="plural"?"cardinal":"ordinal",location:T},err:null}}default:return this.error(Q.INVALID_ARGUMENT_TYPE,ee(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Q.EXPECT_ARGUMENT_CLOSING_BRACE,ee(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Q.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ee(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=y2(t)}catch{return this.error(Q.INVALID_NUMBER_SKELETON,r)}return{val:{type:Di.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?w2(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,o){for(var i,s=!1,a=[],l=new Set,u=o.value,c=o.location;;){if(u.length===0){var f=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(Q.EXPECT_PLURAL_ARGUMENT_SELECTOR,Q.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=ee(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?Q.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Q.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var g=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Q.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Q.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ee(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,r,n);if(y.err)return y;var m=this.tryParseArgumentClose(g);if(m.err)return m;a.push([u,{value:y.val,location:ee(g,this.clonePosition())}]),l.add(u),this.bumpSpace(),i=this.parseIdentifierIfPossible(),u=i.value,c=i.location}return a.length===0?this.error(r==="select"?Q.EXPECT_SELECT_ARGUMENT_SELECTOR:Q.EXPECT_PLURAL_ARGUMENT_SELECTOR,ee(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(Q.MISSING_OTHER_CLAUSE,ee(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,s=s*10+(a-48),this.bump();else break}var l=ee(o,this.clonePosition());return i?(s*=n,O2(s)?{val:s,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=dS(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Z0(this.message,t,this.offset())){for(var r=0;r=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&pS(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function dh(e){return e>=97&&e<=122||e>=65&&e<=90}function B2(e){return dh(e)||e===47}function z2(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function pS(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function j2(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function hh(e){e.forEach(function(t){if(delete t.location,oS(t)||iS(t))for(var r in t.options)delete t.options[r].location,hh(t.options[r].value);else tS(t)&&aS(t.style)||(rS(t)||nS(t))&&lh(t.style)?delete t.style.location:sS(t)&&hh(t.children)})}function V2(e,t){t===void 0&&(t={}),t=F({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new F2(e,t).parse();if(r.err){var n=SyntaxError(Q[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||hh(r.val),r.val}var Wr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Wr||(Wr={}));var Yn=function(e){kr(t,e);function t(r,n,o){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),tv=function(e){kr(t,e);function t(r,n,o,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),Wr.INVALID_VALUE,i)||this}return t}(Yn),H2=function(e){kr(t,e);function t(r,n,o){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Wr.INVALID_VALUE,o)||this}return t}(Yn),U2=function(e){kr(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Wr.MISSING_VALUE,n)||this}return t}(Yn),ht;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ht||(ht={}));function W2(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==ht.literal||r.type!==ht.literal?t.push(r):n.value+=r.value,t},[])}function G2(e){return typeof e=="function"}function vu(e,t,r,n,o,i,s){if(e.length===1&&q0(e[0]))return[{type:ht.literal,value:e[0].value}];for(var a=[],l=0,u=e;l"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=V2,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Ro;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Ro||(Ro={}));var rl=function(e){kr(t,e);function t(r,n,o){var i=this,s=o?o instanceof Error?o:new Error(String(o)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,` -`).concat(s?` -`.concat(s.message,` -`).concat(s.stack):""))||this,i.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),K2=function(e){kr(t,e);function t(r,n){return e.call(this,Ro.UNSUPPORTED_FORMATTER,r,n)||this}return t}(rl),Q2=function(e){kr(t,e);function t(r,n){return e.call(this,Ro.INVALID_CONFIG,r,n)||this}return t}(rl),rv=function(e){kr(t,e);function t(r,n){return e.call(this,Ro.MISSING_DATA,r,n)||this}return t}(rl),ur=function(e){kr(t,e);function t(r,n,o){var i=e.call(this,Ro.FORMAT_ERROR,"".concat(r,` -Locale: `).concat(n,` -`),o)||this;return i.locale=n,i}return t}(rl),Gf=function(e){kr(t,e);function t(r,n,o,i){var s=e.call(this,"".concat(r,` -MessageID: `).concat(o?.id,` -Default Message: `).concat(o?.defaultMessage,` -Description: `).concat(o?.description,` -`),n,i)||this;return s.descriptor=o,s.locale=n,s}return t}(ur),Z2=function(e){kr(t,e);function t(r,n){var o=e.call(this,Ro.MISSING_TRANSLATION,'Missing message: "'.concat(r.id,'" for locale "').concat(n,'", using ').concat(r.defaultMessage?"default message (".concat(typeof r.defaultMessage=="string"?r.defaultMessage:r.defaultMessage.map(function(i){var s;return(s=i.value)!==null&&s!==void 0?s:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=r,o}return t}(rl);function zo(e,t,r){return r===void 0&&(r={}),t.reduce(function(n,o){return o in e?n[o]=e[o]:o in r&&(n[o]=r[o]),n},{})}var J2=function(e){},e_=function(e){},t_={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:J2,onWarn:e_};function gS(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function lo(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function r_(e){e===void 0&&(e=gS());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,o=mt(function(){for(var a,l=[],u=0;u[n[i].serviceId,o])}async getApi(){const t=this.providers.map(async([i,s])=>{const a=await s.getApiMethods();return{serviceId:i,methods:a}}),r=await Promise.all(t),n=new Map;for(const{serviceId:i,methods:s}of r)for(const[a,l]of Object.entries(s)){const u=n.get(a);if(u)throw new V(H.DUPLICATE_API_METHODS,`Cannot define API method '${a}' from '${i}' (method is also defined by '${u.serviceId}').`);n.set(a,{serviceId:i,method:l})}const o={};for(const[i,s]of n.entries())o[i]=s.method;return o}}var qa,Ya,Ka,Qa,Za,Ja;class __{constructor(t,r){qt(this,qa);qt(this,Ya);qt(this,Ka);qt(this,Qa);qt(this,Za);qt(this,Ja);$t(this,qa,r.host),$t(this,Ya,r.shadowRoot),$t(this,Ka,r.container),$t(this,Qa,r.locale),$t(this,Za,Object.freeze(Array.from(r.supportedLocales))),$t(this,Ja,r.changeLocale)}getHostElement(){return Le(this,qa)}getShadowRoot(){return Le(this,Ya)}getApplicationContainer(){return Le(this,Ka)}getLocale(){return Le(this,Qa)}setLocale(t){Le(this,Ja).call(this,t)}getSupportedLocales(){return Le(this,Za)}}qa=new WeakMap,Ya=new WeakMap,Ka=new WeakMap,Qa=new WeakMap,Za=new WeakMap,Ja=new WeakMap;const A_=Nc("runtime:ApplicationLifecycleEventService");var el;class R_{constructor(t){qt(this,el);const r=t.references.listeners,n=t.referencesMeta.listeners;$t(this,el,r.map((o,i)=>[n[i].serviceId,o]))}emitLifecycleEvent(t){const r=(()=>{switch(t){case"after-start":return"afterApplicationStart";case"before-stop":return"beforeApplicationStop";default:throw new V(H.INTERNAL,`Invalid event '${t}'`)}})();for(const[n,o]of Le(this,el))try{o[r]?.()}catch(i){A_.error(`Unexpected error from application lifecycle listener ${n}`,i)}}}el=new WeakMap;const Ll="@open-pioneer/runtime",I_="integration.ApiExtension",sm="runtime.ApiService",M_="runtime.ApplicationContext",am="runtime.ApplicationLifecycleEventService",L_="runtime.AutoStart";function O_(e){const t=T_(),r=new wi({name:"ApiServiceImpl",packageName:Ll,factory:X0(P_),intl:t,interfaces:[{interfaceName:sm,qualifier:"builtin"}],dependencies:[{referenceName:"providers",interfaceName:I_,all:!0}]}),n=new wi({name:"ApplicationContextImpl",packageName:Ll,factory:UP(i=>new __(i,e)),intl:t,interfaces:[{interfaceName:M_,qualifier:"builtin"}]}),o=new wi({name:"ApplicationLifecycleEventServiceImpl",packageName:Ll,factory:X0(R_),intl:t,interfaces:[{interfaceName:am,qualifier:"builtin"}],dependencies:[{referenceName:"listeners",interfaceName:"runtime.ApplicationLifecycleListener",all:!0}]});return new Fc({name:Ll,services:[r,n,o],intl:t})}const av=Nc("runtime:ServiceLayer"),Ol={type:"undeclared"},$_={type:"unknown-package"};class N_{allServices;requiredServices;serviceLookup;serviceDependencies;declaredDependencies;state="not-started";constructor(t,r=[]){const n=t.map(l=>l.services).flat(),o=t.map(l=>l.uiReferences.map(u=>({type:"ui",packageName:l.name,...u}))).flat(),i=[...r.map(l=>({type:"framework",...l})),...o],{serviceLookup:s,serviceDependencies:a}=r2({services:n,requiredReferences:i});this.allServices=n,this.requiredServices=D_(i,s),this.serviceLookup=s,this.serviceDependencies=a,this.declaredDependencies=F_(t)}destroy(){for(const t of this.requiredServices)this.destroyService(t);this.state="destroyed"}start(){if(this.state!=="not-started")throw new V(H.INTERNAL,"Service layer was already started.");for(const t of this.requiredServices)this.createService(t);this.state="started"}getService(t,r,n){if(this.state!=="started")throw new V(H.INTERNAL,"Service layer is not started.");if(!n?.ignoreDeclarationCheck){const o=this.checkDependency(t,r);if(o)return o}return this.serviceLookup.lookupOne(r)}getServices(t,r){if(this.state!=="started")throw new V(H.INTERNAL,"Service layer is not started.");const n=this.checkDependency(t,{interfaceName:r,all:!0});return n||this.serviceLookup.lookupAll(r)}createService(t){if(t.state==="constructed"){const o=t.getInstanceOrThrow();return t.addRef(),o}if(t.state==="constructing")throw new V(H.INTERNAL,"Cycle during service construction.");if(t.state!=="not-constructed")throw new V(H.INTERNAL,"Invalid service state.");const r={},n={};t.beforeCreate();for(const[o,i]of Object.entries(this.getServiceDeps(t))){const[s,a]=this.getReference(i);r[o]=s,n[o]=a}return av.debug(`Creating service '${t.id}'.`),t.create({references:r,referencesMeta:n})}destroyService(t){if(t.state!=="destroyed"){t.removeRef()<=0&&(av.debug(`Destroying service '${t.id}'`),t.destroy());for(const r of Object.values(this.getServiceDeps(t)))if(Array.isArray(r))for(const n of r)this.destroyService(n);else this.destroyService(r)}}checkDependency(t,r){const n=this.declaredDependencies.get(t);if(!n)return $_;const o=n.get(r.interfaceName);return o?em(r)?r.qualifier==null?o.unqualified?void 0:Ol:o.qualifiers.has(r.qualifier)?void 0:Ol:o.all?void 0:Ol:Ol}getReference(t){if(Array.isArray(t)){const o=[],i=[];for(const s of t){const[a,l]=this.getReference(s);o.push(a),i.push(l)}return[o,i]}const r=this.createService(t),n={serviceId:t.id};return[r,n]}getServiceDeps(t){const r=this.serviceDependencies.get(t.id);if(!r)throw new V(H.INTERNAL,`Failed to find precomputed service dependencies for '${t.id}'.`);return r}}function D_(e,t){const r=new Set;for(const n of e){const o=t.lookup(n);if(o.type!=="found")throw new V(H.INTERNAL,`Failed to find required reference to ${Dc(n)}.`);if(Array.isArray(o.value))for(const i of o.value)r.add(i);else r.add(o.value)}return r}function F_(e){const t=new Map;for(const r of e){const n=r.name,o=new Map;for(const i of r.uiReferences){let s=o.get(i.interfaceName);if(s||(s={all:!1,unqualified:!1,qualifiers:new Set},o.set(i.interfaceName,s)),HP(i))s.all=!0;else if(em(i))i.qualifier==null?s.unqualified=!0:s.qualifiers.add(i.qualifier);else throw new V(H.INTERNAL,"Unexpected implementation spec.")}t.set(n,o)}return t}var wS={exports:{}},zc={};/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var B_=b,z_=Symbol.for("react.element"),j_=Symbol.for("react.fragment"),V_=Object.prototype.hasOwnProperty,H_=B_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,U_={key:!0,ref:!0,__self:!0,__source:!0};function ES(e,t,r){var n,o={},i=null,s=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)V_.call(t,n)&&!U_.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:z_,type:e,key:i,ref:s,props:o,_owner:H_.current}}zc.Fragment=j_;zc.jsx=ES;zc.jsxs=ES;wS.exports=zc;var R=wS.exports;function lm(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function W_(){return!!globalThis?.document}function kS(e){return e.parentElement&&kS(e.parentElement)?!0:e.hidden}function G_(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function X_(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function q_(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(o in r&&delete r[o],r[o]=n[o]);return r}function yu(e){return Array.isArray(e)}function bt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!yu(e)}function Y_(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function K_(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function ph(e){if(e==null)return e;const{unitless:t}=K_(e);return t||typeof e=="number"?`${e}px`:e}const CS=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,um=e=>Object.fromEntries(Object.entries(e).sort(CS));function lv(e){const t=um(e);return Object.assign(Object.values(t),t)}function Q_(e){const t=Object.keys(um(e));return new Set(t)}function uv(e){if(!e)return e;e=ph(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+t}`)}function Rs(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${ph(e)})`),t&&r.push("and",`(max-width: ${ph(t)})`),r.join(" ")}function Z_(e){if(!e)return null;e.base=e.base??"0px";const t=lv(e),r=Object.entries(e).sort(CS).map(([i,s],a,l)=>{let[,u]=l[a+1]??[];return u=parseFloat(u)>0?uv(u):void 0,{_minW:uv(s),breakpoint:i,minW:s,maxW:u,maxWQuery:Rs(null,u),minWQuery:Rs(s),minMaxQuery:Rs(s,u)}}),n=Q_(e),o=Array.from(n.values());return{keys:n,normalized:t,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(a=>n.has(a))},asObject:um(e),asArray:lv(e),details:r,get(i){return r.find(s=>s.breakpoint===i)},media:[null,...t.map(i=>Rs(i)).slice(1)],toArrayValue(i){if(!bt(i))throw new Error("toArrayValue: value must be an object");const s=o.map(a=>i[a]??null);for(;Y_(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,a,l)=>{const u=o[l];return u!=null&&a!=null&&(s[u]=a),s},{})}}}function F9(...e){return function(...r){e.forEach(n=>n?.(...r))}}function Jr(...e){return function(r){e.some(n=>(n?.(r),r?.defaultPrevented))}}function J_(e){return b.Children.toArray(e).filter(t=>b.isValidElement(t))}function TS(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function eA(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function xn(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=b.createContext(s);a.displayName=t;function l(){const u=b.useContext(a);if(!u&&r){const c=new Error(i??eA(n,o));throw c.name="ContextError",Error.captureStackTrace?.(c,l),c}return u}return[a.Provider,l,a]}const Cr=(...e)=>e.filter(Boolean).join(" "),PS=e=>e.hasAttribute("tabindex"),tA=e=>PS(e)&&e.tabIndex===-1;function _S(e){if(!lm(e)||kS(e)||X_(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():G_(e)?!0:PS(e)}function B9(e){return e?lm(e)&&_S(e)&&!tA(e):!1}const rA=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],nA=rA.join(),oA=e=>e.offsetWidth>0&&e.offsetHeight>0;function iA(e){const t=Array.from(e.querySelectorAll(nA));return t.unshift(e),t.filter(r=>_S(r)&&oA(r))}function sA(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,s)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(o))return a.get(o);const l=e(n,o,i,s);return a.set(o,l),l}},AS=aA(sA),lA=e=>e.default||e;function cm(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function RS(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function uA(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):bt(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}const cA=e=>typeof e=="function";function Dr(e,...t){return cA(e)?e(...t):e}function fA(e){const t=e.ownerDocument.defaultView||window,{overflow:r,overflowX:n,overflowY:o}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(r+o+n)}function dA(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function IS(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:lm(e)&&fA(e)?e:IS(dA(e))}function hA(e,...t){const r=Object.getOwnPropertyDescriptors(e),n=Object.keys(r),o=s=>{const a={};for(let l=0;lo(Array.isArray(s)?s:n.filter(s));return t.map(i).concat(o(n))}function cv(e,t,r={}){const{stop:n,getKey:o}=r;function i(s,a=[]){if(bt(s)||Array.isArray(s)){const l={};for(const[u,c]of Object.entries(s)){const f=o?.(u)??u,d=[...a,f];if(n?.(s,d))return t(s,a);l[f]=i(c,d)}return l}return t(s,a)}return i(e)}var Yu={exports:{}};Yu.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",d="[object Error]",g="[object Function]",y="[object GeneratorFunction]",m="[object Map]",S="[object Number]",p="[object Null]",h="[object Object]",v="[object Proxy]",w="[object RegExp]",E="[object Set]",P="[object String]",T="[object Undefined]",A="[object WeakMap]",M="[object ArrayBuffer]",I="[object DataView]",z="[object Float32Array]",ue="[object Float64Array]",re="[object Int8Array]",Fe="[object Int16Array]",qe="[object Int32Array]",ce="[object Uint8Array]",G="[object Uint8ClampedArray]",O="[object Uint16Array]",$="[object Uint32Array]",B=/[\\^$.*+?()[\]{}|]/g,Y=/^\[object .+?Constructor\]$/,K=/^(?:0|[1-9]\d*)$/,X={};X[z]=X[ue]=X[re]=X[Fe]=X[qe]=X[ce]=X[G]=X[O]=X[$]=!0,X[a]=X[l]=X[M]=X[c]=X[I]=X[f]=X[d]=X[g]=X[m]=X[S]=X[h]=X[w]=X[E]=X[P]=X[A]=!1;var Ee=typeof Al=="object"&&Al&&Al.Object===Object&&Al,me=typeof self=="object"&&self&&self.Object===Object&&self,ke=Ee||me||Function("return this")(),Ye=t&&!t.nodeType&&t,Ke=Ye&&!0&&e&&!e.nodeType&&e,Tr=Ke&&Ke.exports===Ye,qr=Tr&&Ee.process,Pr=function(){try{var x=Ke&&Ke.require&&Ke.require("util").types;return x||qr&&qr.binding&&qr.binding("util")}catch{}}(),fe=Pr&&Pr.isTypedArray;function ft(x,C,_){switch(_.length){case 0:return x.call(C);case 1:return x.call(C,_[0]);case 2:return x.call(C,_[0],_[1]);case 3:return x.call(C,_[0],_[1],_[2])}return x.apply(C,_)}function En(x,C){for(var _=-1,D=Array(x);++_-1}function PT(x,C){var _=this.__data__,D=kl(_,x);return D<0?(++this.size,_.push([x,C])):_[D][1]=C,this}Yr.prototype.clear=ET,Yr.prototype.delete=kT,Yr.prototype.get=CT,Yr.prototype.has=TT,Yr.prototype.set=PT;function Wo(x){var C=-1,_=x==null?0:x.length;for(this.clear();++C<_;){var D=x[C];this.set(D[0],D[1])}}function _T(){this.size=0,this.__data__={hash:new so,map:new(R0||Yr),string:new so}}function AT(x){var C=Tl(this,x).delete(x);return this.size-=C?1:0,C}function RT(x){return Tl(this,x).get(x)}function IT(x){return Tl(this,x).has(x)}function MT(x,C){var _=Tl(this,x),D=_.size;return _.set(x,C),this.size+=_.size==D?0:1,this}Wo.prototype.clear=_T,Wo.prototype.delete=AT,Wo.prototype.get=RT,Wo.prototype.has=IT,Wo.prototype.set=MT;function Go(x){var C=this.__data__=new Yr(x);this.size=C.size}function LT(){this.__data__=new Yr,this.size=0}function OT(x){var C=this.__data__,_=C.delete(x);return this.size=C.size,_}function $T(x){return this.__data__.get(x)}function NT(x){return this.__data__.has(x)}function DT(x,C){var _=this.__data__;if(_ instanceof Yr){var D=_.__data__;if(!R0||D.length1?_[J-1]:void 0,Ce=J>2?_[2]:void 0;for(ge=x.length>3&&typeof ge=="function"?(J--,ge):void 0,Ce&&rP(_[0],_[1],Ce)&&(ge=J<3?void 0:ge,J=1),C=Object(C);++D-1&&x%1==0&&x0){if(++C>=o)return arguments[0]}else C=0;return x.apply(void 0,arguments)}}function cP(x){if(x!=null){try{return no.call(x)}catch{}try{return x+""}catch{}}return""}function Pl(x,C){return x===C||x!==x&&C!==C}var $f=I0(function(){return arguments}())?I0:function(x){return fs(x)&&hr.call(x,"callee")&&!hT.call(x,"callee")},Nf=Array.isArray;function Df(x){return x!=null&&N0(x.length)&&!Ff(x)}function fP(x){return fs(x)&&Df(x)}var $0=mT||gP;function Ff(x){if(!ao(x))return!1;var C=Cl(x);return C==g||C==y||C==u||C==v}function N0(x){return typeof x=="number"&&x>-1&&x%1==0&&x<=s}function ao(x){var C=typeof x;return x!=null&&(C=="object"||C=="function")}function fs(x){return x!=null&&typeof x=="object"}function dP(x){if(!fs(x)||Cl(x)!=h)return!1;var C=P0(x);if(C===null)return!0;var _=hr.call(C,"constructor")&&C.constructor;return typeof _=="function"&&_ instanceof _&&no.call(_)==xl}var D0=fe?ro(fe):VT;function hP(x){return QT(x,F0(x))}function F0(x){return Df(x)?FT(x):HT(x)}var pP=ZT(function(x,C,_,D){M0(x,C,_,D)});function mP(x){return function(){return x}}function B0(x){return x}function gP(){return!1}e.exports=pP})(Yu,Yu.exports);var pA=Yu.exports;const tr=Yp(pA);function Ku(e,t=[]){const r=b.useRef(e);return b.useEffect(()=>{r.current=e}),b.useCallback((...n)=>r.current?.(...n),t)}function Xf(e,t,r,n){const o=Ku(r);return b.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!r||!i))return i.addEventListener(t,o,n),()=>{i.removeEventListener(t,o,n)}},[t,e,n,o,r]),()=>{(typeof e=="function"?e():e??document)?.removeEventListener(t,o,n)}}function mA(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,i=Ku(r),s=Ku(t),[a,l]=b.useState(e.defaultIsOpen||!1),u=n!==void 0?n:a,c=n!==void 0,f=b.useId(),d=o??`disclosure-${f}`,g=b.useCallback(()=>{c||l(!1),s?.()},[c,s]),y=b.useCallback(()=>{c||l(!0),i?.()},[c,i]),m=b.useCallback(()=>{u?g():y()},[u,y,g]);function S(h={}){return{...h,"aria-expanded":u,"aria-controls":d,onClick(v){h.onClick?.(v),m()}}}function p(h={}){return{...h,hidden:!u,id:d}}return{isOpen:u,onOpen:y,onClose:g,onToggle:m,isControlled:c,getButtonProps:S,getDisclosureProps:p}}const mh=globalThis?.document?b.useLayoutEffect:b.useEffect,fv=(e,t)=>{const r=b.useRef(!1),n=b.useRef(!1);b.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),b.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function gA(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Fi(...e){return t=>{e.forEach(r=>{gA(r,t)})}}function z9(...e){return b.useMemo(()=>Fi(...e),e)}function vA(e,t){const r=Ku(e);b.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}const je={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Ar=e=>MS(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Kr=e=>MS(t=>e(t,"~ &"),"[data-peer]",".peer"),MS=(e,...t)=>t.map(e).join(", "),yA={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:Ar(je.open),_groupClosed:Ar(je.closed),_groupHover:Ar(je.hover),_peerHover:Kr(je.hover),_groupFocus:Ar(je.focus),_peerFocus:Kr(je.focus),_groupFocusVisible:Ar(je.focusVisible),_peerFocusVisible:Kr(je.focusVisible),_groupActive:Ar(je.active),_peerActive:Kr(je.active),_groupDisabled:Ar(je.disabled),_peerDisabled:Kr(je.disabled),_groupInvalid:Ar(je.invalid),_peerInvalid:Kr(je.invalid),_groupChecked:Ar(je.checked),_peerChecked:Kr(je.checked),_groupFocusWithin:Ar(je.focusWithin),_peerFocusWithin:Kr(je.focusWithin),_peerPlaceholderShown:Kr(je.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"};function jc(e){const t=e.conditions??{},r=Object.fromEntries(Object.entries(t).map(([n,o])=>[`_${n}`,o]));return{...yA,...r}}function LS(e){return Object.keys(jc(e))}const bA=e=>/!(important)?$/.test(e),dv=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,SA=(e,t)=>r=>{const n=String(t),o=bA(n),i=dv(n),s=e?`${e}.${i}`:i;let a=bt(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:t;return a=dv(a),o?`${a} !important`:a};function fm(e){const{scale:t,transform:r,compose:n}=e;return(i,s)=>{const a=SA(t,i)(s);let l=r?.(a,s)??a;return n&&(l=n(l,s)),l}}const $l=(...e)=>t=>e.reduce((r,n)=>n(r),t);function Yt(e,t){return r=>{const n={property:r,scale:e};return n.transform=fm({scale:e,transform:t}),n}}const xA=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function wA(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:xA(t),transform:r?fm({scale:r,compose:n}):n}}const OS=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function EA(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...OS].join(" ")}function kA(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...OS].join(" ")}const CA={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},TA={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function PA(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const _A={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},gh={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},AA=new Set(Object.values(gh)),vh=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),RA=e=>e.trim();function IA(e,t){if(e==null||vh.has(e))return e;if(!(yh(e)||vh.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o?.[1],s=o?.[2];if(!i||!s)return e;const a=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=s.split(",").map(RA).filter(Boolean);if(u?.length===0)return e;const c=l in gh?gh[l]:l;u.unshift(c);const f=u.map(d=>{if(AA.has(d))return d;const g=d.indexOf(" "),[y,m]=g!==-1?[d.substr(0,g),d.substr(g+1)]:[d],S=yh(m)?m:m&&m.split(" "),p=`colors.${y}`,h=p in t.__cssMap?t.__cssMap[p].varRef:y;return S?[h,...Array.isArray(S)?S:[S]].join(" "):h});return`${a}(${f.join(", ")})`}const yh=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),MA=(e,t)=>IA(e,t??{});function LA(e){return/^var\(--.+\)$/.test(e)}const OA=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},Rr=e=>t=>`${e}(${t})`,Z={filter(e){return e!=="auto"?e:CA},backdropFilter(e){return e!=="auto"?e:TA},ring(e){return PA(Z.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?EA():e==="auto-gpu"?kA():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=OA(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(LA(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:MA,blur:Rr("blur"),opacity:Rr("opacity"),brightness:Rr("brightness"),contrast:Rr("contrast"),dropShadow:Rr("drop-shadow"),grayscale:Rr("grayscale"),hueRotate:e=>Rr("hue-rotate")(Z.degree(e)),invert:Rr("invert"),saturate:Rr("saturate"),sepia:Rr("sepia"),bgImage(e){return e==null||yh(e)||vh.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:r}=_A[e]??{},n={flexDirection:e};return t&&(n[t]=1),r&&(n[r]=1),n}},k={borderWidths:Yt("borderWidths"),borderStyles:Yt("borderStyles"),colors:Yt("colors"),borders:Yt("borders"),gradients:Yt("gradients",Z.gradient),radii:Yt("radii",Z.px),space:Yt("space",$l(Z.vh,Z.px)),spaceT:Yt("space",$l(Z.vh,Z.px)),degreeT(e){return{property:e,transform:Z.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:fm({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:Yt("sizes",$l(Z.vh,Z.px)),sizesT:Yt("sizes",$l(Z.vh,Z.fraction)),shadows:Yt("shadows"),logical:wA,blur:Yt("blur",Z.blur)},bu={background:k.colors("background"),backgroundColor:k.colors("backgroundColor"),backgroundImage:k.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Z.bgClip},bgSize:k.prop("backgroundSize"),bgPosition:k.prop("backgroundPosition"),bg:k.colors("background"),bgColor:k.colors("backgroundColor"),bgPos:k.prop("backgroundPosition"),bgRepeat:k.prop("backgroundRepeat"),bgAttachment:k.prop("backgroundAttachment"),bgGradient:k.gradients("backgroundImage"),bgClip:{transform:Z.bgClip}};Object.assign(bu,{bgImage:bu.backgroundImage,bgImg:bu.backgroundImage});const oe={border:k.borders("border"),borderWidth:k.borderWidths("borderWidth"),borderStyle:k.borderStyles("borderStyle"),borderColor:k.colors("borderColor"),borderRadius:k.radii("borderRadius"),borderTop:k.borders("borderTop"),borderBlockStart:k.borders("borderBlockStart"),borderTopLeftRadius:k.radii("borderTopLeftRadius"),borderStartStartRadius:k.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:k.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:k.radii("borderTopRightRadius"),borderStartEndRadius:k.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:k.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:k.borders("borderRight"),borderInlineEnd:k.borders("borderInlineEnd"),borderBottom:k.borders("borderBottom"),borderBlockEnd:k.borders("borderBlockEnd"),borderBottomLeftRadius:k.radii("borderBottomLeftRadius"),borderBottomRightRadius:k.radii("borderBottomRightRadius"),borderLeft:k.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:k.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:k.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:k.borders(["borderLeft","borderRight"]),borderInline:k.borders("borderInline"),borderY:k.borders(["borderTop","borderBottom"]),borderBlock:k.borders("borderBlock"),borderTopWidth:k.borderWidths("borderTopWidth"),borderBlockStartWidth:k.borderWidths("borderBlockStartWidth"),borderTopColor:k.colors("borderTopColor"),borderBlockStartColor:k.colors("borderBlockStartColor"),borderTopStyle:k.borderStyles("borderTopStyle"),borderBlockStartStyle:k.borderStyles("borderBlockStartStyle"),borderBottomWidth:k.borderWidths("borderBottomWidth"),borderBlockEndWidth:k.borderWidths("borderBlockEndWidth"),borderBottomColor:k.colors("borderBottomColor"),borderBlockEndColor:k.colors("borderBlockEndColor"),borderBottomStyle:k.borderStyles("borderBottomStyle"),borderBlockEndStyle:k.borderStyles("borderBlockEndStyle"),borderLeftWidth:k.borderWidths("borderLeftWidth"),borderInlineStartWidth:k.borderWidths("borderInlineStartWidth"),borderLeftColor:k.colors("borderLeftColor"),borderInlineStartColor:k.colors("borderInlineStartColor"),borderLeftStyle:k.borderStyles("borderLeftStyle"),borderInlineStartStyle:k.borderStyles("borderInlineStartStyle"),borderRightWidth:k.borderWidths("borderRightWidth"),borderInlineEndWidth:k.borderWidths("borderInlineEndWidth"),borderRightColor:k.colors("borderRightColor"),borderInlineEndColor:k.colors("borderInlineEndColor"),borderRightStyle:k.borderStyles("borderRightStyle"),borderInlineEndStyle:k.borderStyles("borderInlineEndStyle"),borderTopRadius:k.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:k.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:k.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:k.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(oe,{rounded:oe.borderRadius,roundedTop:oe.borderTopRadius,roundedTopLeft:oe.borderTopLeftRadius,roundedTopRight:oe.borderTopRightRadius,roundedTopStart:oe.borderStartStartRadius,roundedTopEnd:oe.borderStartEndRadius,roundedBottom:oe.borderBottomRadius,roundedBottomLeft:oe.borderBottomLeftRadius,roundedBottomRight:oe.borderBottomRightRadius,roundedBottomStart:oe.borderEndStartRadius,roundedBottomEnd:oe.borderEndEndRadius,roundedLeft:oe.borderLeftRadius,roundedRight:oe.borderRightRadius,roundedStart:oe.borderInlineStartRadius,roundedEnd:oe.borderInlineEndRadius,borderStart:oe.borderInlineStart,borderEnd:oe.borderInlineEnd,borderTopStartRadius:oe.borderStartStartRadius,borderTopEndRadius:oe.borderStartEndRadius,borderBottomStartRadius:oe.borderEndStartRadius,borderBottomEndRadius:oe.borderEndEndRadius,borderStartRadius:oe.borderInlineStartRadius,borderEndRadius:oe.borderInlineEndRadius,borderStartWidth:oe.borderInlineStartWidth,borderEndWidth:oe.borderInlineEndWidth,borderStartColor:oe.borderInlineStartColor,borderEndColor:oe.borderInlineEndColor,borderStartStyle:oe.borderInlineStartStyle,borderEndStyle:oe.borderInlineEndStyle});const $A={color:k.colors("color"),textColor:k.colors("color"),fill:k.colors("fill"),stroke:k.colors("stroke"),accentColor:k.colors("accentColor"),textFillColor:k.colors("textFillColor")},Qu={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Z.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:k.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:k.space("gap"),rowGap:k.space("rowGap"),columnGap:k.space("columnGap")};Object.assign(Qu,{flexDir:Qu.flexDirection});const Qt={width:k.sizesT("width"),inlineSize:k.sizesT("inlineSize"),height:k.sizes("height"),blockSize:k.sizes("blockSize"),boxSize:k.sizes(["width","height"]),minWidth:k.sizes("minWidth"),minInlineSize:k.sizes("minInlineSize"),minHeight:k.sizes("minHeight"),minBlockSize:k.sizes("minBlockSize"),maxWidth:k.sizes("maxWidth"),maxInlineSize:k.sizes("maxInlineSize"),maxHeight:k.sizes("maxHeight"),maxBlockSize:k.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>({[`@media screen and (min-width: ${t.__breakpoints?.get(e)?.minW??e})`]:{display:"none"}})},hideBelow:{scale:"breakpoints",transform:(e,t)=>({[`@media screen and (max-width: ${t.__breakpoints?.get(e)?._minW??e})`]:{display:"none"}})},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:k.propT("float",Z.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Qt,{w:Qt.width,h:Qt.height,minW:Qt.minWidth,maxW:Qt.maxWidth,minH:Qt.minHeight,maxH:Qt.maxHeight,overscroll:Qt.overscrollBehavior,overscrollX:Qt.overscrollBehaviorX,overscrollY:Qt.overscrollBehaviorY});const NA={filter:{transform:Z.filter},blur:k.blur("--chakra-blur"),brightness:k.propT("--chakra-brightness",Z.brightness),contrast:k.propT("--chakra-contrast",Z.contrast),hueRotate:k.propT("--chakra-hue-rotate",Z.hueRotate),invert:k.propT("--chakra-invert",Z.invert),saturate:k.propT("--chakra-saturate",Z.saturate),dropShadow:k.propT("--chakra-drop-shadow",Z.dropShadow),backdropFilter:{transform:Z.backdropFilter},backdropBlur:k.blur("--chakra-backdrop-blur"),backdropBrightness:k.propT("--chakra-backdrop-brightness",Z.brightness),backdropContrast:k.propT("--chakra-backdrop-contrast",Z.contrast),backdropHueRotate:k.propT("--chakra-backdrop-hue-rotate",Z.hueRotate),backdropInvert:k.propT("--chakra-backdrop-invert",Z.invert),backdropSaturate:k.propT("--chakra-backdrop-saturate",Z.saturate)},DA={ring:{transform:Z.ring},ringColor:k.colors("--chakra-ring-color"),ringOffset:k.prop("--chakra-ring-offset-width"),ringOffsetColor:k.colors("--chakra-ring-offset-color"),ringInset:k.prop("--chakra-ring-inset")},FA={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Z.outline},outlineOffset:!0,outlineColor:k.colors("outlineColor")},$S={gridGap:k.space("gridGap"),gridColumnGap:k.space("gridColumnGap"),gridRowGap:k.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function BA(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,s)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(o))return a.get(o);const l=e(n,o,i,s);return a.set(o,l),l}},jA=zA(BA),VA={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},HA={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},qf=(e,t,r)=>{const n={},o=jA(e,t,{});for(const i in o)i in r&&r[i]!=null||(n[i]=o[i]);return n},UA={srOnly:{transform(e){return e===!0?VA:e==="focusable"?HA:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>qf(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>qf(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>qf(t,e,r)}},Hs={position:!0,pos:k.prop("position"),zIndex:k.prop("zIndex","zIndices"),inset:k.spaceT("inset"),insetX:k.spaceT(["left","right"]),insetInline:k.spaceT("insetInline"),insetY:k.spaceT(["top","bottom"]),insetBlock:k.spaceT("insetBlock"),top:k.spaceT("top"),insetBlockStart:k.spaceT("insetBlockStart"),bottom:k.spaceT("bottom"),insetBlockEnd:k.spaceT("insetBlockEnd"),left:k.spaceT("left"),insetInlineStart:k.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:k.spaceT("right"),insetInlineEnd:k.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Hs,{insetStart:Hs.insetInlineStart,insetEnd:Hs.insetInlineEnd});const bh={boxShadow:k.shadows("boxShadow"),mixBlendMode:!0,blendMode:k.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:k.prop("backgroundBlendMode"),opacity:!0};Object.assign(bh,{shadow:bh.boxShadow});const Se={margin:k.spaceT("margin"),marginTop:k.spaceT("marginTop"),marginBlockStart:k.spaceT("marginBlockStart"),marginRight:k.spaceT("marginRight"),marginInlineEnd:k.spaceT("marginInlineEnd"),marginBottom:k.spaceT("marginBottom"),marginBlockEnd:k.spaceT("marginBlockEnd"),marginLeft:k.spaceT("marginLeft"),marginInlineStart:k.spaceT("marginInlineStart"),marginX:k.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:k.spaceT("marginInline"),marginY:k.spaceT(["marginTop","marginBottom"]),marginBlock:k.spaceT("marginBlock"),padding:k.space("padding"),paddingTop:k.space("paddingTop"),paddingBlockStart:k.space("paddingBlockStart"),paddingRight:k.space("paddingRight"),paddingBottom:k.space("paddingBottom"),paddingBlockEnd:k.space("paddingBlockEnd"),paddingLeft:k.space("paddingLeft"),paddingInlineStart:k.space("paddingInlineStart"),paddingInlineEnd:k.space("paddingInlineEnd"),paddingX:k.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:k.space("paddingInline"),paddingY:k.space(["paddingTop","paddingBottom"]),paddingBlock:k.space("paddingBlock")};Object.assign(Se,{m:Se.margin,mt:Se.marginTop,mr:Se.marginRight,me:Se.marginInlineEnd,marginEnd:Se.marginInlineEnd,mb:Se.marginBottom,ml:Se.marginLeft,ms:Se.marginInlineStart,marginStart:Se.marginInlineStart,mx:Se.marginX,my:Se.marginY,p:Se.padding,pt:Se.paddingTop,py:Se.paddingY,px:Se.paddingX,pb:Se.paddingBottom,pl:Se.paddingLeft,ps:Se.paddingInlineStart,paddingStart:Se.paddingInlineStart,pr:Se.paddingRight,pe:Se.paddingInlineEnd,paddingEnd:Se.paddingInlineEnd});const WA={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:k.spaceT("scrollMargin"),scrollMarginTop:k.spaceT("scrollMarginTop"),scrollMarginBottom:k.spaceT("scrollMarginBottom"),scrollMarginLeft:k.spaceT("scrollMarginLeft"),scrollMarginRight:k.spaceT("scrollMarginRight"),scrollMarginX:k.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:k.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:k.spaceT("scrollPadding"),scrollPaddingTop:k.spaceT("scrollPaddingTop"),scrollPaddingBottom:k.spaceT("scrollPaddingBottom"),scrollPaddingLeft:k.spaceT("scrollPaddingLeft"),scrollPaddingRight:k.spaceT("scrollPaddingRight"),scrollPaddingX:k.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:k.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},GA={fontFamily:k.prop("fontFamily","fonts"),fontSize:k.prop("fontSize","fontSizes",Z.px),fontWeight:k.prop("fontWeight","fontWeights"),lineHeight:k.prop("lineHeight","lineHeights"),letterSpacing:k.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},XA={textDecorationColor:k.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:k.shadows("textShadow")},qA={clipPath:!0,transform:k.propT("transform",Z.transform),transformOrigin:!0,translateX:k.spaceT("--chakra-translate-x"),translateY:k.spaceT("--chakra-translate-y"),skewX:k.degreeT("--chakra-skew-x"),skewY:k.degreeT("--chakra-skew-y"),scaleX:k.prop("--chakra-scale-x"),scaleY:k.prop("--chakra-scale-y"),scale:k.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:k.degreeT("--chakra-rotate")},YA={listStyleType:!0,listStylePosition:!0,listStylePos:k.prop("listStylePosition"),listStyleImage:!0,listStyleImg:k.prop("listStyleImage")},KA={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:k.prop("transitionDuration","transition.duration"),transitionProperty:k.prop("transitionProperty","transition.property"),transitionTimingFunction:k.prop("transitionTimingFunction","transition.easing")},dm=tr({},bu,oe,$A,Qu,Qt,NA,DA,FA,$S,UA,Hs,bh,Se,WA,GA,XA,qA,YA,KA),QA=Object.assign({},Se,Qt,Qu,$S,Hs),j9=Object.keys(QA),ZA=e=>[...Object.keys(dm),...LS(e)],JA=e=>{const t=jc(e),r={...dm,...t};return n=>Object.hasOwnProperty.call(r,n)},eR=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const s in e){let a=Dr(e[s],t);if(a==null)continue;if(a=bt(a)&&r(a)?n(a):a,!Array.isArray(a)){i[s]=a;continue}const l=a.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!rR(t),oR=(e,t)=>{if(t==null)return t;const r=s=>e.__cssMap?.[s]?.varRef,n=s=>r(s)??s,[o,i]=tR(t);return t=r(o)??n(i)??n(t),t};function iR(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(i,s=!1)=>{const a=Dr(i,n),l=eR(a)(n);let u={};for(let c in l){const f=l[c];let d=Dr(f,n);c in r&&(c=r[c]),nR(c,d)&&(d=oR(n,d));let g=t[c];if(g===!0&&(g={property:c}),bt(d)){u[c]=u[c]??{},u[c]=tr({},u[c],o(d,!0));continue}let y=g?.transform?.(d,n,a)??d;y=g?.processResult?o(y,!0):y;const m=Dr(g?.property,n);if(!s&&g?.static){const S=Dr(g.static,n);u=tr({},u,S)}if(m&&Array.isArray(m)){for(const S of m)u[S]=y;continue}if(m){m==="&"&&bt(y)?u=tr({},u,y):u[m]=y;continue}if(bt(y)){u=tr({},u,y);continue}u[c]=y}return u};return o}const NS=e=>t=>iR({theme:t,pseudos:jc(t),configs:dm})(e);function V9(e){return e}function ye(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function sR(e,t,r){return e.__cssMap?.[`${t}.${r}`]?.varRef??r}function aR(e,t){if(Array.isArray(e))return e;if(bt(e))return t(e);if(e!=null)return[e]}function lR(e,t){for(let r=t+1;r{tr(a,{[p]:c?S[p]:{[m]:S[p]}})});continue}if(!f){c?tr(a,S):a[m]=S;continue}a[m]=S}}return a}}function cR(e){return t=>{const{variant:r,size:n,theme:o}=t,i=uR(o);return tr({},Dr(e.baseStyle??{},t),i(e,"sizes",n,t),i(e,"variants",r,t))}}function nl(e){return cm(e,["styleConfig","size","variant","colorScheme"])}function DS(e){return bt(e)&&e.reference?e.reference:String(e)}const Vc=(e,...t)=>t.map(DS).join(` ${e} `).replace(/calc/g,""),hv=(...e)=>`calc(${Vc("+",...e)})`,pv=(...e)=>`calc(${Vc("-",...e)})`,Sh=(...e)=>`calc(${Vc("*",...e)})`,mv=(...e)=>`calc(${Vc("/",...e)})`,gv=e=>{const t=DS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Sh(t,-1)},en=Object.assign(e=>({add:(...t)=>en(hv(e,...t)),subtract:(...t)=>en(pv(e,...t)),multiply:(...t)=>en(Sh(e,...t)),divide:(...t)=>en(mv(e,...t)),negate:()=>en(gv(e)),toString:()=>e.toString()}),{add:hv,subtract:pv,multiply:Sh,divide:mv,negate:gv});function fR(e,t="-"){return e.replace(/\s+/g,t)}function dR(e){const t=fR(e.toString());return pR(hR(t))}function hR(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function pR(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function mR(e,t=""){return[t,e].filter(Boolean).join("-")}function gR(e,t){return`var(${e}${t?`, ${t}`:""})`}function vR(e,t=""){return dR(`--${mR(e,t)}`)}function U(e,t,r){const n=vR(e,r);return{variable:n,reference:gR(n,t)}}function yR(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,i]=n;r[o]=U(`${e}-${o}`,i);continue}r[n]=U(`${e}-${n}`)}return r}const bR=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function SR(e){return RS(e,bR)}function xR(e){return e.semanticTokens}function wR(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}function ER(e){const t=SR(e),r=xR(e),n=LS(e),o=s=>n.includes(s)||s==="default",i={};return cv(t,(s,a)=>{s!=null&&(i[a.join(".")]={isSemantic:!1,value:s})}),cv(r,(s,a)=>{s!=null&&(i[a.join(".")]={isSemantic:!0,value:s})},{stop:s=>Object.keys(s).every(o)}),i}function vv(e,t){return U(String(e).replace(/\./g,"-"),void 0,t)}function kR(e){const t=ER(e),r=e.config?.cssVarPrefix,n=jc(e);let o={};const i={};function s(a,l){const c=[String(a).split(".")[0],l].join(".");if(!t[c])return l;const{reference:d}=vv(c,r);return d}for(const[a,l]of Object.entries(t)){const{isSemantic:u,value:c}=l,{variable:f,reference:d}=vv(a,r);if(!u){if(a.startsWith("space")){const y=a.split("."),[m,...S]=y,p=`${m}.-${S.join(".")}`,h=en.negate(c),v=en.negate(d);i[p]={value:h,var:f,varRef:v}}o[f]=c,i[a]={value:c,var:f,varRef:d};continue}const g=bt(c)?c:{default:c};o=tr(o,Object.entries(g).reduce((y,[m,S])=>{if(!S)return y;const p=s(a,`${S}`);if(m==="default")return y[f]=p,y;const h=n?.[m]??m;return y[h]={[f]:p},y},{})),i[a]={value:d,var:f,varRef:d}}return{cssVars:o,cssMap:i}}function CR(e){const t=wR(e),{cssMap:r,cssVars:n}=kR(t),o={"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},i=JA(t);return Object.assign(t,{__cssVars:{...o,...n},__cssMap:r,__breakpoints:Z_(t.breakpoints),__isStyleProp:i}),t}function le(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){n();for(const f of c)t[f]=l(f);return le(e,t)}function i(...c){for(const f of c)f in t||(t[f]=l(f));return le(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([f,d])=>[f,d.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([f,d])=>[f,d.className]))}function l(c){const g=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:g,selector:`.${g}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}const TR=le("accordion").parts("root","container","button","panel","icon"),PR=le("alert").parts("title","description","container","icon","spinner"),_R=le("avatar").parts("label","badge","container","excessLabel","group"),AR=le("breadcrumb").parts("link","item","container","separator");le("button").parts();const RR=le("checkbox").parts("control","icon","container","label");le("progress").parts("track","filledTrack","label");const IR=le("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),MR=le("editable").parts("preview","input","textarea"),LR=le("form").parts("container","requiredIndicator","helperText"),OR=le("formError").parts("text","icon"),$R=le("input").parts("addon","field","element","group"),NR=le("list").parts("container","item","icon"),DR=le("menu").parts("button","list","item","groupTitle","icon","command","divider"),FR=le("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),BR=le("numberinput").parts("root","field","stepperGroup","stepper");le("pininput").parts("field");const zR=le("popover").parts("content","header","body","footer","popper","arrow","closeButton"),jR=le("progress").parts("label","filledTrack","track"),VR=le("radio").parts("container","control","label"),HR=le("select").parts("field","icon"),UR=le("slider").parts("container","track","thumb","filledTrack","mark"),WR=le("stat").parts("container","label","helpText","number","icon"),GR=le("switch").parts("container","track","thumb","label"),XR=le("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),qR=le("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),YR=le("tag").parts("container","label","closeButton"),KR=le("card").parts("container","header","body","footer");le("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:QR,defineMultiStyleConfig:ZR}=ye(TR.keys),JR={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},eI={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},tI={pt:"2",px:"4",pb:"5"},rI={fontSize:"1.25em"},nI=QR({container:JR,button:eI,panel:tI,icon:rI}),oI=ZR({baseStyle:nI});function vo(e,t,r){return Math.min(Math.max(e,r),t)}class iI extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Is=iI;function hm(e){if(typeof e!="string")throw new Is(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=hI.test(e)?lI(e):e;const r=uI.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(da(a,2),16)),parseInt(da(s[3]||"f",2),16)/255]}const n=cI.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=fI.exec(t);if(o){const s=Array.from(o).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const i=dI.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(vo(0,100,a)!==a)throw new Is(e);if(vo(0,100,l)!==l)throw new Is(e);return[...pI(s,a,l),Number.isNaN(u)?1:u]}throw new Is(e)}function sI(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const yv=e=>parseInt(e.replace(/_/g,""),36),aI="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=yv(t.substring(0,3)),n=yv(t.substring(3)).toString(16);let o="";for(let i=0;i<6-n.length;i++)o+="0";return e[r]=`${o}${n}`,e},{});function lI(e){const t=e.toLowerCase().trim(),r=aI[sI(t)];if(!r)throw new Is(e);return`#${r}`}const da=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),uI=new RegExp(`^#${da("([a-f0-9])",3)}([a-f0-9])?$`,"i"),cI=new RegExp(`^#${da("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),fI=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${da(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),dI=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,hI=/^[a-z]+$/i,bv=e=>Math.round(e*255),pI=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(bv);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,u=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,u=s):o>=3&&o<4?(l=s,u=i):o>=4&&o<5?(a=s,u=i):o>=5&&o<6&&(a=i,u=s);const c=n-i/2,f=a+c,d=l+c,g=u+c;return[f,d,g].map(bv)};function mI(e,t,r,n){return`rgba(${vo(0,255,e).toFixed()}, ${vo(0,255,t).toFixed()}, ${vo(0,255,r).toFixed()}, ${parseFloat(vo(0,1,n).toFixed(3))})`}function gI(e,t){const[r,n,o,i]=hm(e);return mI(r,n,o,i-t)}function vI(e){const[t,r,n,o]=hm(e);let i=s=>{const a=vo(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(r)}${i(n)}${o<1?i(Math.round(o*255)):""}`}const yI=e=>Object.keys(e).length===0;function bI(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;n{const n=bI(e,`colors.${t}`,t);try{return vI(n),n}catch{return"#000000"}},SI=e=>{const[t,r,n]=hm(e);return(t*299+r*587+n*114)/1e3},xI=e=>t=>{const r=yt(t,e);return SI(r)<128?"dark":"light"},wI=e=>t=>xI(e)(t)==="dark",Bi=(e,t)=>r=>{const n=yt(r,e);return gI(n,1-t)};function Sv(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( - 45deg, - ${t} 25%, - transparent 25%, - transparent 50%, - ${t} 50%, - ${t} 75%, - transparent 75%, - transparent - )`,backgroundSize:`${e} ${e}`}}const EI=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function kI(e){const t=EI();return!e||yI(e)?t:e.string&&e.colors?TI(e.string,e.colors):e.string&&!e.colors?CI(e.string):e.colors&&!e.string?PI(e.colors):t}function CI(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n>n*8&255;r+=`00${o.toString(16)}`.substr(-2)}return r}function TI(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function pm(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function FS(e){return bt(e)&&e.reference?e.reference:String(e)}const Hc=(e,...t)=>t.map(FS).join(` ${e} `).replace(/calc/g,""),xv=(...e)=>`calc(${Hc("+",...e)})`,wv=(...e)=>`calc(${Hc("-",...e)})`,xh=(...e)=>`calc(${Hc("*",...e)})`,Ev=(...e)=>`calc(${Hc("/",...e)})`,kv=e=>{const t=FS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:xh(t,-1)},tn=Object.assign(e=>({add:(...t)=>tn(xv(e,...t)),subtract:(...t)=>tn(wv(e,...t)),multiply:(...t)=>tn(xh(e,...t)),divide:(...t)=>tn(Ev(e,...t)),negate:()=>tn(kv(e)),toString:()=>e.toString()}),{add:xv,subtract:wv,multiply:xh,divide:Ev,negate:kv});function _I(e){return!Number.isInteger(parseFloat(e.toString()))}function AI(e,t="-"){return e.replace(/\s+/g,t)}function BS(e){const t=AI(e.toString());return t.includes("\\.")?e:_I(e)?t.replace(".","\\."):e}function RI(e,t=""){return[t,BS(e)].filter(Boolean).join("-")}function II(e,t){return`var(${BS(e)}${t?`, ${t}`:""})`}function MI(e,t=""){return`--${RI(e,t)}`}function Ue(e,t){const r=MI(e,t?.prefix);return{variable:r,reference:II(r,LI(t?.fallback))}}function LI(e){return e?.reference}const{definePartsStyle:ol,defineMultiStyleConfig:OI}=ye(PR.keys),Bt=U("alert-fg"),mn=U("alert-bg"),$I=ol({container:{bg:mn.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Bt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Bt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function mm(e){const{theme:t,colorScheme:r}=e,n=Bi(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}const NI=ol(e=>{const{colorScheme:t}=e,r=mm(e);return{container:{[Bt.variable]:`colors.${t}.600`,[mn.variable]:r.light,_dark:{[Bt.variable]:`colors.${t}.200`,[mn.variable]:r.dark}}}}),DI=ol(e=>{const{colorScheme:t}=e,r=mm(e);return{container:{[Bt.variable]:`colors.${t}.600`,[mn.variable]:r.light,_dark:{[Bt.variable]:`colors.${t}.200`,[mn.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Bt.reference}}}),FI=ol(e=>{const{colorScheme:t}=e,r=mm(e);return{container:{[Bt.variable]:`colors.${t}.600`,[mn.variable]:r.light,_dark:{[Bt.variable]:`colors.${t}.200`,[mn.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Bt.reference}}}),BI=ol(e=>{const{colorScheme:t}=e;return{container:{[Bt.variable]:"colors.white",[mn.variable]:`colors.${t}.600`,_dark:{[Bt.variable]:"colors.gray.900",[mn.variable]:`colors.${t}.200`},color:Bt.reference}}}),zI={subtle:NI,"left-accent":DI,"top-accent":FI,solid:BI},jI=OI({baseStyle:$I,variants:zI,defaultProps:{variant:"subtle",colorScheme:"blue"}}),zS={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},VI={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},HI={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},jS={...zS,...VI,container:HI},UI=e=>typeof e=="function";function St(e,...t){return UI(e)?e(...t):e}const{definePartsStyle:VS,defineMultiStyleConfig:WI}=ye(_R.keys),Ei=U("avatar-border-color"),Us=U("avatar-bg"),ha=U("avatar-font-size"),zi=U("avatar-size"),GI={borderRadius:"full",border:"0.2em solid",borderColor:Ei.reference,[Ei.variable]:"white",_dark:{[Ei.variable]:"colors.gray.800"}},XI={bg:Us.reference,fontSize:ha.reference,width:zi.reference,height:zi.reference,lineHeight:"1",[Us.variable]:"colors.gray.200",_dark:{[Us.variable]:"colors.whiteAlpha.400"}},qI=e=>{const{name:t,theme:r}=e,n=t?kI({string:t}):"colors.gray.400",o=wI(n)(r);let i="white";return o||(i="gray.800"),{bg:Us.reference,fontSize:ha.reference,color:i,borderColor:Ei.reference,verticalAlign:"top",width:zi.reference,height:zi.reference,"&:not([data-loaded])":{[Us.variable]:n},[Ei.variable]:"colors.white",_dark:{[Ei.variable]:"colors.gray.800"}}},YI={fontSize:ha.reference,lineHeight:"1"},KI=VS(e=>({badge:St(GI,e),excessLabel:St(XI,e),container:St(qI,e),label:YI}));function Cn(e){const t=e!=="100%"?jS[e]:void 0;return VS({container:{[zi.variable]:t??e,[ha.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[zi.variable]:t??e,[ha.variable]:`calc(${t??e} / 2.5)`}})}const QI={"2xs":Cn(4),xs:Cn(6),sm:Cn(8),md:Cn(12),lg:Cn(16),xl:Cn(24),"2xl":Cn(32),full:Cn("100%")},ZI=WI({baseStyle:KI,sizes:QI,defaultProps:{size:"md"}}),De=yR("badge",["bg","color","shadow"]),JI={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:De.bg.reference,color:De.color.reference,boxShadow:De.shadow.reference},eM=e=>{const{colorScheme:t,theme:r}=e,n=Bi(`${t}.500`,.6)(r);return{[De.bg.variable]:`colors.${t}.500`,[De.color.variable]:"colors.white",_dark:{[De.bg.variable]:n,[De.color.variable]:"colors.whiteAlpha.800"}}},tM=e=>{const{colorScheme:t,theme:r}=e,n=Bi(`${t}.200`,.16)(r);return{[De.bg.variable]:`colors.${t}.100`,[De.color.variable]:`colors.${t}.800`,_dark:{[De.bg.variable]:n,[De.color.variable]:`colors.${t}.200`}}},rM=e=>{const{colorScheme:t,theme:r}=e,n=Bi(`${t}.200`,.8)(r);return{[De.color.variable]:`colors.${t}.500`,_dark:{[De.color.variable]:n},[De.shadow.variable]:`inset 0 0 0px 1px ${De.color.reference}`}},nM={solid:eM,subtle:tM,outline:rM},Ws={baseStyle:JI,variants:nM,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:oM,definePartsStyle:iM}=ye(AR.keys),Yf=U("breadcrumb-link-decor"),sM={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Yf.reference,[Yf.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Yf.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},aM=iM({link:sM}),lM=oM({baseStyle:aM}),uM={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},HS=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:j("gray.800","whiteAlpha.900")(e),_hover:{bg:j("gray.100","whiteAlpha.200")(e)},_active:{bg:j("gray.200","whiteAlpha.300")(e)}};const n=Bi(`${t}.200`,.12)(r),o=Bi(`${t}.200`,.24)(r);return{color:j(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:j(`${t}.50`,n)(e)},_active:{bg:j(`${t}.100`,o)(e)}}},cM=e=>{const{colorScheme:t}=e,r=j("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...St(HS,e)}},fM={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},dM=e=>{const{colorScheme:t}=e;if(t==="gray"){const a=j("gray.100","whiteAlpha.200")(e);return{bg:a,color:j("gray.800","whiteAlpha.900")(e),_hover:{bg:j("gray.200","whiteAlpha.300")(e),_disabled:{bg:a}},_active:{bg:j("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${t}.500`,color:n="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=fM[t]??{},s=j(r,`${t}.200`)(e);return{bg:s,color:j(n,"gray.800")(e),_hover:{bg:j(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:j(i,`${t}.400`)(e)}}},hM=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:j(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:j(`${t}.700`,`${t}.500`)(e)}}},pM={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},mM={ghost:HS,outline:cM,solid:dM,link:hM,unstyled:pM},gM={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},vM={baseStyle:uM,variants:mM,sizes:gM,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:wo,defineMultiStyleConfig:yM}=ye(KR.keys),Zu=U("card-bg"),un=U("card-padding"),US=U("card-shadow"),Su=U("card-radius"),WS=U("card-border-width","0"),GS=U("card-border-color"),bM=wo({container:{[Zu.variable]:"colors.chakra-body-bg",backgroundColor:Zu.reference,boxShadow:US.reference,borderRadius:Su.reference,color:"chakra-body-text",borderWidth:WS.reference,borderColor:GS.reference},body:{padding:un.reference,flex:"1 1 0%"},header:{padding:un.reference},footer:{padding:un.reference}}),SM={sm:wo({container:{[Su.variable]:"radii.base",[un.variable]:"space.3"}}),md:wo({container:{[Su.variable]:"radii.md",[un.variable]:"space.5"}}),lg:wo({container:{[Su.variable]:"radii.xl",[un.variable]:"space.7"}})},xM={elevated:wo({container:{[US.variable]:"shadows.base",_dark:{[Zu.variable]:"colors.gray.700"}}}),outline:wo({container:{[WS.variable]:"1px",[GS.variable]:"colors.chakra-border-color"}}),filled:wo({container:{[Zu.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[un.variable]:0},header:{[un.variable]:0},footer:{[un.variable]:0}}},wM=yM({baseStyle:bM,variants:xM,sizes:SM,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:xu,defineMultiStyleConfig:EM}=ye(RR.keys),Gs=U("checkbox-size"),kM=e=>{const{colorScheme:t}=e;return{w:Gs.reference,h:Gs.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:j(`${t}.500`,`${t}.200`)(e),borderColor:j(`${t}.500`,`${t}.200`)(e),color:j("white","gray.900")(e),_hover:{bg:j(`${t}.600`,`${t}.300`)(e),borderColor:j(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:j("gray.200","transparent")(e),bg:j("gray.200","whiteAlpha.300")(e),color:j("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:j(`${t}.500`,`${t}.200`)(e),borderColor:j(`${t}.500`,`${t}.200`)(e),color:j("white","gray.900")(e)},_disabled:{bg:j("gray.100","whiteAlpha.100")(e),borderColor:j("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:j("red.500","red.300")(e)}}},CM={_disabled:{cursor:"not-allowed"}},TM={userSelect:"none",_disabled:{opacity:.4}},PM={transitionProperty:"transform",transitionDuration:"normal"},_M=xu(e=>({icon:PM,container:CM,control:St(kM,e),label:TM})),AM={sm:xu({control:{[Gs.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:xu({control:{[Gs.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:xu({control:{[Gs.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Ju=EM({baseStyle:_M,sizes:AM,defaultProps:{size:"md",colorScheme:"blue"}}),Xs=Ue("close-button-size"),hs=Ue("close-button-bg"),RM={w:[Xs.reference],h:[Xs.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[hs.variable]:"colors.blackAlpha.100",_dark:{[hs.variable]:"colors.whiteAlpha.100"}},_active:{[hs.variable]:"colors.blackAlpha.200",_dark:{[hs.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:hs.reference},IM={lg:{[Xs.variable]:"sizes.10",fontSize:"md"},md:{[Xs.variable]:"sizes.8",fontSize:"xs"},sm:{[Xs.variable]:"sizes.6",fontSize:"2xs"}},MM={baseStyle:RM,sizes:IM,defaultProps:{size:"md"}},{variants:LM,defaultProps:OM}=Ws,$M={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:De.bg.reference,color:De.color.reference,boxShadow:De.shadow.reference},NM={baseStyle:$M,variants:LM,defaultProps:OM},DM={w:"100%",mx:"auto",maxW:"prose",px:"4"},FM={baseStyle:DM},BM={opacity:.6,borderColor:"inherit"},zM={borderStyle:"solid"},jM={borderStyle:"dashed"},VM={solid:zM,dashed:jM},HM={baseStyle:BM,variants:VM,defaultProps:{variant:"solid"}},{definePartsStyle:wh,defineMultiStyleConfig:UM}=ye(IR.keys),Kf=U("drawer-bg"),Qf=U("drawer-box-shadow");function Xo(e){return wh(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const WM={bg:"blackAlpha.600",zIndex:"modal"},GM={display:"flex",zIndex:"modal",justifyContent:"center"},XM=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Kf.variable]:"colors.white",[Qf.variable]:"shadows.lg",_dark:{[Kf.variable]:"colors.gray.700",[Qf.variable]:"shadows.dark-lg"},bg:Kf.reference,boxShadow:Qf.reference}},qM={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},YM={position:"absolute",top:"2",insetEnd:"3"},KM={px:"6",py:"2",flex:"1",overflow:"auto"},QM={px:"6",py:"4"},ZM=wh(e=>({overlay:WM,dialogContainer:GM,dialog:St(XM,e),header:qM,closeButton:YM,body:KM,footer:QM})),JM={xs:Xo("xs"),sm:Xo("md"),md:Xo("lg"),lg:Xo("2xl"),xl:Xo("4xl"),full:Xo("full")},eL=UM({baseStyle:ZM,sizes:JM,defaultProps:{size:"xs"}}),{definePartsStyle:tL,defineMultiStyleConfig:rL}=ye(MR.keys),nL={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},oL={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},iL={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},sL=tL({preview:nL,input:oL,textarea:iL}),aL=rL({baseStyle:sL}),{definePartsStyle:lL,defineMultiStyleConfig:uL}=ye(LR.keys),ki=U("form-control-color"),cL={marginStart:"1",[ki.variable]:"colors.red.500",_dark:{[ki.variable]:"colors.red.300"},color:ki.reference},fL={mt:"2",[ki.variable]:"colors.gray.600",_dark:{[ki.variable]:"colors.whiteAlpha.600"},color:ki.reference,lineHeight:"normal",fontSize:"sm"},dL=lL({container:{width:"100%",position:"relative"},requiredIndicator:cL,helperText:fL}),hL=uL({baseStyle:dL}),{definePartsStyle:pL,defineMultiStyleConfig:mL}=ye(OR.keys),Ci=U("form-error-color"),gL={[Ci.variable]:"colors.red.500",_dark:{[Ci.variable]:"colors.red.300"},color:Ci.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},vL={marginEnd:"0.5em",[Ci.variable]:"colors.red.500",_dark:{[Ci.variable]:"colors.red.300"},color:Ci.reference},yL=pL({text:gL,icon:vL}),bL=mL({baseStyle:yL}),SL={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},xL={baseStyle:SL},wL={fontFamily:"heading",fontWeight:"bold"},EL={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},kL={baseStyle:wL,sizes:EL,defaultProps:{size:"xl"}},{definePartsStyle:on,defineMultiStyleConfig:CL}=ye($R.keys),Jo=U("input-height"),ei=U("input-font-size"),ti=U("input-padding"),ri=U("input-border-radius"),TL=on({addon:{height:Jo.reference,fontSize:ei.reference,px:ti.reference,borderRadius:ri.reference},field:{width:"100%",height:Jo.reference,fontSize:ei.reference,px:ti.reference,borderRadius:ri.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Tn={lg:{[ei.variable]:"fontSizes.lg",[ti.variable]:"space.4",[ri.variable]:"radii.md",[Jo.variable]:"sizes.12"},md:{[ei.variable]:"fontSizes.md",[ti.variable]:"space.4",[ri.variable]:"radii.md",[Jo.variable]:"sizes.10"},sm:{[ei.variable]:"fontSizes.sm",[ti.variable]:"space.3",[ri.variable]:"radii.sm",[Jo.variable]:"sizes.8"},xs:{[ei.variable]:"fontSizes.xs",[ti.variable]:"space.2",[ri.variable]:"radii.sm",[Jo.variable]:"sizes.6"}},PL={lg:on({field:Tn.lg,group:Tn.lg}),md:on({field:Tn.md,group:Tn.md}),sm:on({field:Tn.sm,group:Tn.sm}),xs:on({field:Tn.xs,group:Tn.xs})};function gm(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||j("blue.500","blue.300")(e),errorBorderColor:r||j("red.500","red.300")(e)}}const _L=on(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=gm(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:j("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:yt(t,n),boxShadow:`0 0 0 1px ${yt(t,n)}`},_focusVisible:{zIndex:1,borderColor:yt(t,r),boxShadow:`0 0 0 1px ${yt(t,r)}`}},addon:{border:"1px solid",borderColor:j("inherit","whiteAlpha.50")(e),bg:j("gray.100","whiteAlpha.300")(e)}}}),AL=on(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=gm(e);return{field:{border:"2px solid",borderColor:"transparent",bg:j("gray.100","whiteAlpha.50")(e),_hover:{bg:j("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:yt(t,n)},_focusVisible:{bg:"transparent",borderColor:yt(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:j("gray.100","whiteAlpha.50")(e)}}}),RL=on(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=gm(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:yt(t,n),boxShadow:`0px 1px 0px 0px ${yt(t,n)}`},_focusVisible:{borderColor:yt(t,r),boxShadow:`0px 1px 0px 0px ${yt(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),IL=on({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),ML={outline:_L,filled:AL,flushed:RL,unstyled:IL},ae=CL({baseStyle:TL,sizes:PL,variants:ML,defaultProps:{size:"md",variant:"outline"}}),Zf=U("kbd-bg"),LL={[Zf.variable]:"colors.gray.100",_dark:{[Zf.variable]:"colors.whiteAlpha.100"},bg:Zf.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},OL={baseStyle:LL},$L={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},NL={baseStyle:$L},{defineMultiStyleConfig:DL,definePartsStyle:FL}=ye(NR.keys),BL={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},zL=FL({icon:BL}),jL=DL({baseStyle:zL}),{defineMultiStyleConfig:VL,definePartsStyle:HL}=ye(DR.keys),Lr=U("menu-bg"),Jf=U("menu-shadow"),UL={[Lr.variable]:"#fff",[Jf.variable]:"shadows.sm",_dark:{[Lr.variable]:"colors.gray.700",[Jf.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Lr.reference,boxShadow:Jf.reference},WL={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Lr.variable]:"colors.gray.100",_dark:{[Lr.variable]:"colors.whiteAlpha.100"}},_active:{[Lr.variable]:"colors.gray.200",_dark:{[Lr.variable]:"colors.whiteAlpha.200"}},_expanded:{[Lr.variable]:"colors.gray.100",_dark:{[Lr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Lr.reference},GL={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},XL={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},qL={opacity:.6},YL={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},KL={transitionProperty:"common",transitionDuration:"normal"},QL=HL({button:KL,list:UL,item:WL,groupTitle:GL,icon:XL,command:qL,divider:YL}),ZL=VL({baseStyle:QL}),{defineMultiStyleConfig:JL,definePartsStyle:Eh}=ye(FR.keys),ed=U("modal-bg"),td=U("modal-shadow"),eO={bg:"blackAlpha.600",zIndex:"modal"},tO=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},rO=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[ed.variable]:"colors.white",[td.variable]:"shadows.lg",_dark:{[ed.variable]:"colors.gray.700",[td.variable]:"shadows.dark-lg"},bg:ed.reference,boxShadow:td.reference}},nO={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},oO={position:"absolute",top:"2",insetEnd:"3"},iO=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},sO={px:"6",py:"4"},aO=Eh(e=>({overlay:eO,dialogContainer:St(tO,e),dialog:St(rO,e),header:nO,closeButton:oO,body:St(iO,e),footer:sO}));function mr(e){return Eh(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const lO={xs:mr("xs"),sm:mr("sm"),md:mr("md"),lg:mr("lg"),xl:mr("xl"),"2xl":mr("2xl"),"3xl":mr("3xl"),"4xl":mr("4xl"),"5xl":mr("5xl"),"6xl":mr("6xl"),full:mr("full")},uO=JL({baseStyle:aO,sizes:lO,defaultProps:{size:"md"}}),XS={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:cO,definePartsStyle:qS}=ye(BR.keys),vm=Ue("number-input-stepper-width"),YS=Ue("number-input-input-padding"),fO=tn(vm).add("0.5rem").toString(),rd=Ue("number-input-bg"),nd=Ue("number-input-color"),od=Ue("number-input-border-color"),dO={[vm.variable]:"sizes.6",[YS.variable]:fO},hO=e=>St(ae.baseStyle,e)?.field??{},pO={width:vm.reference},mO={borderStart:"1px solid",borderStartColor:od.reference,color:nd.reference,bg:rd.reference,[nd.variable]:"colors.chakra-body-text",[od.variable]:"colors.chakra-border-color",_dark:{[nd.variable]:"colors.whiteAlpha.800",[od.variable]:"colors.whiteAlpha.300"},_active:{[rd.variable]:"colors.gray.200",_dark:{[rd.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},gO=qS(e=>({root:dO,field:St(hO,e)??{},stepperGroup:pO,stepper:mO}));function Nl(e){const t=ae.sizes?.[e],r={lg:"md",md:"md",sm:"sm",xs:"sm"},n=t.field?.fontSize??"md",o=XS.fontSizes[n];return qS({field:{...t.field,paddingInlineEnd:YS.reference,verticalAlign:"top"},stepper:{fontSize:tn(o).multiply(.75).toString(),_first:{borderTopEndRadius:r[e]},_last:{borderBottomEndRadius:r[e],mt:"-1px",borderTopWidth:1}}})}const vO={xs:Nl("xs"),sm:Nl("sm"),md:Nl("md"),lg:Nl("lg")},yO=cO({baseStyle:gO,sizes:vO,variants:ae.variants,defaultProps:ae.defaultProps}),bO={...ae.baseStyle?.field,textAlign:"center"},SO={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},xO={outline:e=>St(ae.variants?.outline,e)?.field??{},flushed:e=>St(ae.variants?.flushed,e)?.field??{},filled:e=>St(ae.variants?.filled,e)?.field??{},unstyled:ae.variants?.unstyled.field??{}},wO={baseStyle:bO,sizes:SO,variants:xO,defaultProps:ae.defaultProps},{defineMultiStyleConfig:EO,definePartsStyle:kO}=ye(zR.keys),Dl=Ue("popper-bg"),CO=Ue("popper-arrow-bg"),Cv=Ue("popper-arrow-shadow-color"),TO={zIndex:"popover"},PO={[Dl.variable]:"colors.white",bg:Dl.reference,[CO.variable]:Dl.reference,[Cv.variable]:"colors.gray.200",_dark:{[Dl.variable]:"colors.gray.700",[Cv.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},_O={px:3,py:2,borderBottomWidth:"1px"},AO={px:3,py:2},RO={px:3,py:2,borderTopWidth:"1px"},IO={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},MO=kO({popper:TO,content:PO,header:_O,body:AO,footer:RO,closeButton:IO}),LO=EO({baseStyle:MO}),{defineMultiStyleConfig:OO,definePartsStyle:Ms}=ye(jR.keys),$O=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=j(Sv(),Sv("1rem","rgba(0,0,0,0.1)"))(e),s=j(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( - to right, - transparent 0%, - ${yt(r,s)} 50%, - transparent 100% - )`;return{...!n&&o&&i,...n?{bgImage:a}:{bgColor:s}}},NO={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},DO=e=>({bg:j("gray.100","whiteAlpha.300")(e)}),FO=e=>({transitionProperty:"common",transitionDuration:"slow",...$O(e)}),BO=Ms(e=>({label:NO,filledTrack:FO(e),track:DO(e)})),zO={xs:Ms({track:{h:"1"}}),sm:Ms({track:{h:"2"}}),md:Ms({track:{h:"3"}}),lg:Ms({track:{h:"4"}})},jO=OO({sizes:zO,baseStyle:BO,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:VO,definePartsStyle:wu}=ye(VR.keys),HO=e=>{const t=St(Ju.baseStyle,e)?.control;return{...t,borderRadius:"full",_checked:{...t?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},UO=wu(e=>({label:Ju.baseStyle?.(e).label,container:Ju.baseStyle?.(e).container,control:HO(e)})),WO={md:wu({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:wu({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:wu({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},GO=VO({baseStyle:UO,sizes:WO,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:XO,definePartsStyle:qO}=ye(HR.keys),Fl=U("select-bg"),YO={...ae.baseStyle?.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Fl.reference,[Fl.variable]:"colors.white",_dark:{[Fl.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Fl.reference}},KO={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},QO=qO({field:YO,icon:KO}),Bl={paddingInlineEnd:"8"},ZO={lg:{...ae.sizes?.lg,field:{...ae.sizes?.lg.field,...Bl}},md:{...ae.sizes?.md,field:{...ae.sizes?.md.field,...Bl}},sm:{...ae.sizes?.sm,field:{...ae.sizes?.sm.field,...Bl}},xs:{...ae.sizes?.xs,field:{...ae.sizes?.xs.field,...Bl},icon:{insetEnd:"1"}}},JO=XO({baseStyle:QO,sizes:ZO,variants:ae.variants,defaultProps:ae.defaultProps}),id=U("skeleton-start-color"),sd=U("skeleton-end-color"),e$={[id.variable]:"colors.gray.100",[sd.variable]:"colors.gray.400",_dark:{[id.variable]:"colors.gray.800",[sd.variable]:"colors.gray.600"},background:id.reference,borderColor:sd.reference,opacity:.7,borderRadius:"sm"},t$={baseStyle:e$},ad=U("skip-link-bg"),r$={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[ad.variable]:"colors.white",_dark:{[ad.variable]:"colors.gray.700"},bg:ad.reference}},n$={baseStyle:r$},{defineMultiStyleConfig:o$,definePartsStyle:Uc}=ye(UR.keys),Io=U("slider-thumb-size"),pa=U("slider-track-size"),In=U("slider-bg"),i$=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...pm({orientation:t,vertical:{h:"100%",px:en(Io.reference).divide(2).toString()},horizontal:{w:"100%",py:en(Io.reference).divide(2).toString()}})}},s$=e=>({...pm({orientation:e.orientation,horizontal:{h:pa.reference},vertical:{w:pa.reference}}),overflow:"hidden",borderRadius:"sm",[In.variable]:"colors.gray.200",_dark:{[In.variable]:"colors.whiteAlpha.200"},_disabled:{[In.variable]:"colors.gray.300",_dark:{[In.variable]:"colors.whiteAlpha.300"}},bg:In.reference}),a$=e=>{const{orientation:t}=e;return{...pm({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Io.reference,h:Io.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},l$=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[In.variable]:`colors.${t}.500`,_dark:{[In.variable]:`colors.${t}.200`},bg:In.reference}},u$=Uc(e=>({container:i$(e),track:s$(e),thumb:a$(e),filledTrack:l$(e)})),c$=Uc({container:{[Io.variable]:"sizes.4",[pa.variable]:"sizes.1"}}),f$=Uc({container:{[Io.variable]:"sizes.3.5",[pa.variable]:"sizes.1"}}),d$=Uc({container:{[Io.variable]:"sizes.2.5",[pa.variable]:"sizes.0.5"}}),h$={lg:c$,md:f$,sm:d$},p$=o$({baseStyle:u$,sizes:h$,defaultProps:{size:"md",colorScheme:"blue"}}),go=Ue("spinner-size"),m$={width:[go.reference],height:[go.reference]},g$={xs:{[go.variable]:"sizes.3"},sm:{[go.variable]:"sizes.4"},md:{[go.variable]:"sizes.6"},lg:{[go.variable]:"sizes.8"},xl:{[go.variable]:"sizes.12"}},v$={baseStyle:m$,sizes:g$,defaultProps:{size:"md"}},{defineMultiStyleConfig:y$,definePartsStyle:KS}=ye(WR.keys),b$={fontWeight:"medium"},S$={opacity:.8,marginBottom:"2"},x$={verticalAlign:"baseline",fontWeight:"semibold"},w$={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},E$=KS({container:{},label:b$,helpText:S$,number:x$,icon:w$}),k$={md:KS({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},C$=y$({baseStyle:E$,sizes:k$,defaultProps:{size:"md"}}),{defineMultiStyleConfig:T$,definePartsStyle:Ls}=ye(["stepper","step","title","description","indicator","separator","icon","number"]),rn=U("stepper-indicator-size"),ni=U("stepper-icon-size"),oi=U("stepper-title-font-size"),Os=U("stepper-description-font-size"),ps=U("stepper-accent-color"),P$=Ls(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[ps.variable]:`colors.${e}.500`,_dark:{[ps.variable]:`colors.${e}.200`}},title:{fontSize:oi.reference,fontWeight:"medium"},description:{fontSize:Os.reference,color:"chakra-subtle-text"},number:{fontSize:oi.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:ni.reference,height:ni.reference},indicator:{flexShrink:0,borderRadius:"full",width:rn.reference,height:rn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ps.reference},"&[data-status=complete]":{bg:ps.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ps.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${rn.reference} - 8px)`,top:`calc(${rn.reference} + 4px)`,insetStart:`calc(${rn.reference} / 2 - 1px)`}}})),_$=T$({baseStyle:P$,sizes:{xs:Ls({stepper:{[rn.variable]:"sizes.4",[ni.variable]:"sizes.3",[oi.variable]:"fontSizes.xs",[Os.variable]:"fontSizes.xs"}}),sm:Ls({stepper:{[rn.variable]:"sizes.6",[ni.variable]:"sizes.4",[oi.variable]:"fontSizes.sm",[Os.variable]:"fontSizes.xs"}}),md:Ls({stepper:{[rn.variable]:"sizes.8",[ni.variable]:"sizes.5",[oi.variable]:"fontSizes.md",[Os.variable]:"fontSizes.sm"}}),lg:Ls({stepper:{[rn.variable]:"sizes.10",[ni.variable]:"sizes.6",[oi.variable]:"fontSizes.lg",[Os.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:A$,definePartsStyle:Eu}=ye(GR.keys),qs=Ue("switch-track-width"),Eo=Ue("switch-track-height"),ld=Ue("switch-track-diff"),R$=tn.subtract(qs,Eo),kh=Ue("switch-thumb-x"),ms=Ue("switch-bg"),I$=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[qs.reference],height:[Eo.reference],transitionProperty:"common",transitionDuration:"fast",[ms.variable]:"colors.gray.300",_dark:{[ms.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ms.variable]:`colors.${t}.500`,_dark:{[ms.variable]:`colors.${t}.200`}},bg:ms.reference}},M$={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Eo.reference],height:[Eo.reference],_checked:{transform:`translateX(${kh.reference})`}},L$=Eu(e=>({container:{[ld.variable]:R$,[kh.variable]:ld.reference,_rtl:{[kh.variable]:tn(ld).negate().toString()}},track:I$(e),thumb:M$})),O$={sm:Eu({container:{[qs.variable]:"1.375rem",[Eo.variable]:"sizes.3"}}),md:Eu({container:{[qs.variable]:"1.875rem",[Eo.variable]:"sizes.4"}}),lg:Eu({container:{[qs.variable]:"2.875rem",[Eo.variable]:"sizes.6"}})},$$=A$({baseStyle:L$,sizes:O$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:N$,definePartsStyle:Ti}=ye(XR.keys),D$=Ti({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),ec={"&[data-is-numeric=true]":{textAlign:"end"}},F$=Ti(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...ec},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...ec},caption:{color:j("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),B$=Ti(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...ec},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...ec},caption:{color:j("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e)},td:{background:j(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),z$={simple:F$,striped:B$,unstyled:{}},j$={sm:Ti({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Ti({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Ti({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},V$=N$({baseStyle:D$,variants:z$,sizes:j$,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Tt=U("tabs-color"),Sr=U("tabs-bg"),zl=U("tabs-border-color"),{defineMultiStyleConfig:H$,definePartsStyle:Fr}=ye(qR.keys),U$=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},W$=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},G$=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},X$={p:4},q$=Fr(e=>({root:U$(e),tab:W$(e),tablist:G$(e),tabpanel:X$})),Y$={sm:Fr({tab:{py:1,px:4,fontSize:"sm"}}),md:Fr({tab:{fontSize:"md",py:2,px:4}}),lg:Fr({tab:{fontSize:"lg",py:3,px:4}})},K$=Fr(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[Tt.variable]:`colors.${t}.600`,_dark:{[Tt.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Sr.variable]:"colors.gray.200",_dark:{[Sr.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Tt.reference,bg:Sr.reference}}}),Q$=Fr(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[zl.variable]:"transparent",_selected:{[Tt.variable]:`colors.${t}.600`,[zl.variable]:"colors.white",_dark:{[Tt.variable]:`colors.${t}.300`,[zl.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:zl.reference},color:Tt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Z$=Fr(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Sr.variable]:"colors.gray.50",_dark:{[Sr.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Sr.variable]:"colors.white",[Tt.variable]:`colors.${t}.600`,_dark:{[Sr.variable]:"colors.gray.800",[Tt.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Tt.reference,bg:Sr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),J$=Fr(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:yt(r,`${t}.700`),bg:yt(r,`${t}.100`)}}}}),eN=Fr(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Tt.variable]:"colors.gray.600",_dark:{[Tt.variable]:"inherit"},_selected:{[Tt.variable]:"colors.white",[Sr.variable]:`colors.${t}.600`,_dark:{[Tt.variable]:"colors.gray.800",[Sr.variable]:`colors.${t}.300`}},color:Tt.reference,bg:Sr.reference}}}),tN=Fr({}),rN={line:K$,enclosed:Q$,"enclosed-colored":Z$,"soft-rounded":J$,"solid-rounded":eN,unstyled:tN},nN=H$({baseStyle:q$,sizes:Y$,variants:rN,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:oN,definePartsStyle:ko}=ye(YR.keys),Tv=U("tag-bg"),Pv=U("tag-color"),ud=U("tag-shadow"),ku=U("tag-min-height"),Cu=U("tag-min-width"),Tu=U("tag-font-size"),Pu=U("tag-padding-inline"),iN={fontWeight:"medium",lineHeight:1.2,outline:0,[Pv.variable]:De.color.reference,[Tv.variable]:De.bg.reference,[ud.variable]:De.shadow.reference,color:Pv.reference,bg:Tv.reference,boxShadow:ud.reference,borderRadius:"md",minH:ku.reference,minW:Cu.reference,fontSize:Tu.reference,px:Pu.reference,_focusVisible:{[ud.variable]:"shadows.outline"}},sN={lineHeight:1.2,overflow:"visible"},aN={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},lN=ko({container:iN,label:sN,closeButton:aN}),uN={sm:ko({container:{[ku.variable]:"sizes.5",[Cu.variable]:"sizes.5",[Tu.variable]:"fontSizes.xs",[Pu.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:ko({container:{[ku.variable]:"sizes.6",[Cu.variable]:"sizes.6",[Tu.variable]:"fontSizes.sm",[Pu.variable]:"space.2"}}),lg:ko({container:{[ku.variable]:"sizes.8",[Cu.variable]:"sizes.8",[Tu.variable]:"fontSizes.md",[Pu.variable]:"space.3"}})},cN={subtle:ko(e=>({container:Ws.variants?.subtle(e)})),solid:ko(e=>({container:Ws.variants?.solid(e)})),outline:ko(e=>({container:Ws.variants?.outline(e)}))},fN=oN({variants:cN,baseStyle:lN,sizes:uN,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),dN={...ae.baseStyle?.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},hN={outline:e=>ae.variants?.outline(e).field??{},flushed:e=>ae.variants?.flushed(e).field??{},filled:e=>ae.variants?.filled(e).field??{},unstyled:ae.variants?.unstyled.field??{}},pN={xs:ae.sizes?.xs.field??{},sm:ae.sizes?.sm.field??{},md:ae.sizes?.md.field??{},lg:ae.sizes?.lg.field??{}},mN={baseStyle:dN,sizes:pN,variants:hN,defaultProps:{size:"md",variant:"outline"}},jl=Ue("tooltip-bg"),cd=Ue("tooltip-fg"),gN=Ue("popper-arrow-bg"),vN={bg:jl.reference,color:cd.reference,[jl.variable]:"colors.gray.700",[cd.variable]:"colors.whiteAlpha.900",_dark:{[jl.variable]:"colors.gray.300",[cd.variable]:"colors.gray.900"},[gN.variable]:jl.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},yN={baseStyle:vN},bN={Accordion:oI,Alert:jI,Avatar:ZI,Badge:Ws,Breadcrumb:lM,Button:vM,Checkbox:Ju,CloseButton:MM,Code:NM,Container:FM,Divider:HM,Drawer:eL,Editable:aL,Form:hL,FormError:bL,FormLabel:xL,Heading:kL,Input:ae,Kbd:OL,Link:NL,List:jL,Menu:ZL,Modal:uO,NumberInput:yO,PinInput:wO,Popover:LO,Progress:jO,Radio:GO,Select:JO,Skeleton:t$,SkipLink:n$,Slider:p$,Spinner:v$,Stat:C$,Switch:$$,Table:V$,Tabs:nN,Tag:fN,Textarea:mN,Tooltip:yN,Card:wM,Stepper:_$},SN={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},xN={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},wN={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},EN={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},kN={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},CN={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},TN={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},PN={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},_N={property:CN,easing:TN,duration:PN},AN={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},RN={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},IN={breakpoints:xN,zIndices:AN,radii:EN,blur:RN,colors:wN,...XS,sizes:jS,shadows:kN,space:zS,borders:SN,transition:_N},MN={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},LN={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},ON=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function $N(e){return bt(e)?ON.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const NN="ltr",DN={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},tc={semanticTokens:MN,direction:NN,...IN,components:bN,styles:LN,config:DN};var FN=!1;function BN(e){if(e.sheet)return e.sheet;for(var t=0;t0?Je(is,--Lt):0,ji--,Be===10&&(ji=1,Gc--),Be}function zt(){return Be=Lt2||ga(Be)>3?"":" "}function ZN(e,t){for(;--t&&zt()&&!(Be<48||Be>102||Be>57&&Be<65||Be>70&&Be<97););return il(e,_u()+(t<6&&Br()==32&&zt()==32))}function Th(e){for(;zt();)switch(Be){case e:return Lt;case 34:case 39:e!==34&&e!==39&&Th(Be);break;case 40:e===41&&Th(e);break;case 92:zt();break}return Lt}function JN(e,t){for(;zt()&&e+Be!==57;)if(e+Be===84&&Br()===47)break;return"/*"+il(t,Lt-1)+"*"+Wc(e===47?e:zt())}function eD(e){for(;!ga(Br());)zt();return il(e,Lt)}function tD(e){return rx(Ru("",null,null,null,[""],e=tx(e),0,[0],e))}function Ru(e,t,r,n,o,i,s,a,l){for(var u=0,c=0,f=s,d=0,g=0,y=0,m=1,S=1,p=1,h=0,v="",w=o,E=i,P=n,T=v;S;)switch(y=h,h=zt()){case 40:if(y!=108&&Je(T,f-1)==58){Ch(T+=se(Au(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:T+=Au(h);break;case 9:case 10:case 13:case 32:T+=QN(y);break;case 92:T+=ZN(_u()-1,7);continue;case 47:switch(Br()){case 42:case 47:Vl(rD(JN(zt(),_u()),t,r),l);break;default:T+="/"}break;case 123*m:a[u++]=Or(T)*p;case 125*m:case 59:case 0:switch(h){case 0:case 125:S=0;case 59+c:p==-1&&(T=se(T,/\f/g,"")),g>0&&Or(T)-f&&Vl(g>32?Av(T+";",n,r,f-1):Av(se(T," ","")+";",n,r,f-2),l);break;case 59:T+=";";default:if(Vl(P=_v(T,t,r,u,c,o,a,v,w=[],E=[],f),i),h===123)if(c===0)Ru(T,t,P,P,w,i,f,a,E);else switch(d===99&&Je(T,3)===110?100:d){case 100:case 108:case 109:case 115:Ru(e,P,P,n&&Vl(_v(e,P,P,0,0,o,a,v,o,w=[],f),E),o,E,f,a,n?w:E);break;default:Ru(T,P,P,P,[""],E,0,a,E)}}u=c=g=0,m=p=1,v=T="",f=s;break;case 58:f=1+Or(T),g=y;default:if(m<1){if(h==123)--m;else if(h==125&&m++==0&&KN()==125)continue}switch(T+=Wc(h),h*m){case 38:p=c>0?1:(T+="\f",-1);break;case 44:a[u++]=(Or(T)-1)*p,p=1;break;case 64:Br()===45&&(T+=Au(zt())),d=Br(),c=f=Or(v=T+=eD(_u())),h++;break;case 45:y===45&&Or(T)==2&&(m=0)}}return i}function _v(e,t,r,n,o,i,s,a,l,u,c){for(var f=o-1,d=o===0?i:[""],g=Sm(d),y=0,m=0,S=0;y0?d[p]+" "+h:se(h,/&\f/g,d[p])))&&(l[S++]=v);return Xc(e,t,r,o===0?ym:a,l,u,c)}function rD(e,t,r){return Xc(e,t,r,QS,Wc(YN()),ma(e,2,-2),0)}function Av(e,t,r,n){return Xc(e,t,r,bm,ma(e,0,n),ma(e,n+1,-1),n)}function Pi(e,t){for(var r="",n=Sm(e),o=0;o6)switch(Je(e,t+1)){case 109:if(Je(e,t+4)!==45)break;case 102:return se(e,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+rc+(Je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ch(e,"stretch")?ox(se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Je(e,t+1)!==115)break;case 6444:switch(Je(e,Or(e)-3-(~Ch(e,"!important")&&10))){case 107:return se(e,":",":"+ie)+e;case 101:return se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(Je(e,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+it+"$2box$3")+e}break;case 5936:switch(Je(e,t+11)){case 114:return ie+e+it+se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ie+e+it+se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ie+e+it+se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ie+e+it+e+e}return e}var fD=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case bm:t.return=ox(t.value,t.length);break;case ZS:return Pi([gs(t,{value:se(t.value,"@","@"+ie)})],o);case ym:if(t.length)return qN(t.props,function(i){switch(XN(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pi([gs(t,{props:[se(i,/:(read-\w+)/,":"+rc+"$1")]})],o);case"::placeholder":return Pi([gs(t,{props:[se(i,/:(plac\w+)/,":"+ie+"input-$1")]}),gs(t,{props:[se(i,/:(plac\w+)/,":"+rc+"$1")]}),gs(t,{props:[se(i,/:(plac\w+)/,it+"input-$1")]})],o)}return""})}},dD=[fD],ix=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var S=m.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||dD,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var S=m.getAttribute("data-emotion").split(" "),p=1;p=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var kD={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},CD=!1,TD=/[A-Z]|^ms/g,PD=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dx=function(t){return t.charCodeAt(1)===45},Mv=function(t){return t!=null&&typeof t!="boolean"},fd=nx(function(e){return dx(e)?e:e.replace(TD,"-$&").toLowerCase()}),Lv=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(PD,function(n,o,i){return $r={name:o,styles:i,next:$r},o})}return kD[t]!==1&&!dx(t)&&typeof r=="number"&&r!==0?r+"px":r},_D="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function va(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return $r={name:o.name,styles:o.styles,next:$r},o.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)$r={name:s.name,styles:s.styles,next:$r},s=s.next;var a=i.styles+";";return a}return AD(e,t,r)}case"function":{if(e!==void 0){var l=$r,u=r(e);return $r=l,va(e,t,u)}break}}var c=r;if(t==null)return c;var f=t[c];return f!==void 0?f:c}function AD(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,i?.()},setClassName(o){document.body.classList.add(o?Hl.dark:Hl.light),document.body.classList.remove(o?Hl.light:Hl.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return n.query().matches??o==="dark"?"dark":"light"},addListener(o){const i=n.query(),s=a=>{o(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(s):i.addEventListener("change",s),()=>{typeof i.removeListener=="function"?i.removeListener(s):i.removeEventListener("change",s)}},preventTransition(){const o=document.createElement("style");return o.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),r!==void 0&&(o.nonce=r),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return n}const BD="chakra-ui-color-mode";function zD(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const jD=zD(BD),Vi=()=>{},VD=W_()?b.useLayoutEffect:b.useEffect;function Nv(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const HD=Cm(function(t,r){const{value:n,children:o,options:{useSystemColorMode:i,initialColorMode:s,disableTransitionOnChange:a}={},colorModeManager:l=jD}=t,u=s==="dark"?"dark":"light",[c,f]=b.useState(()=>Nv(l,u)),[d,g]=b.useState(()=>Nv(l)),{getSystemTheme:y,setClassName:m,setDataset:S,addListener:p}=b.useMemo(()=>FD({preventTransition:a,nonce:r?.nonce}),[a,r?.nonce]),h=s==="system"&&!c?d:c,v=b.useCallback(P=>{const T=P==="system"?y():P;f(T),m(T==="dark"),S(T),l.set(T)},[l,y,m,S]);VD(()=>{s==="system"&&g(y())},[]),b.useEffect(()=>{const P=l.get();if(P){v(P);return}if(s==="system"){v("system");return}v(u)},[l,u,s,v]);const w=b.useCallback(()=>{v(h==="dark"?"light":"dark")},[h,v]);b.useEffect(()=>{if(i)return p(v)},[i,p,v]);const E=b.useMemo(()=>({colorMode:n??h,toggleColorMode:n?Vi:w,setColorMode:n?Vi:v,forced:n!==void 0}),[h,w,v,n]);return R.jsx(sl.Provider,{value:E,children:o})});HD.displayName="ColorModeProvider";function mx(e){const t=b.useMemo(()=>({colorMode:"dark",toggleColorMode:Vi,setColorMode:Vi,forced:!0}),[]);return R.jsx(sl.Provider,{value:t,...e})}mx.displayName="DarkMode";function gx(e){const t=b.useMemo(()=>({colorMode:"light",toggleColorMode:Vi,setColorMode:Vi,forced:!0}),[]);return R.jsx(sl.Provider,{value:t,...e})}gx.displayName="LightMode";const vx=String.raw,UD=vx` - :root, - :host { - --chakra-vh: 100vh; - } - - @supports (height: -webkit-fill-available) { - :root, - :host { - --chakra-vh: -webkit-fill-available; - } - } - - @supports (height: -moz-fill-available) { - :root, - :host { - --chakra-vh: -moz-fill-available; - } - } - - @supports (height: 100dvh) { - :root, - :host { - --chakra-vh: 100dvh; - } - } -`,WD=({scope:e=""})=>R.jsx(of,{styles:vx` - html { - line-height: 1.5; - -webkit-text-size-adjust: 100%; - font-family: system-ui, sans-serif; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - -moz-osx-font-smoothing: grayscale; - touch-action: manipulation; - } - - body { - position: relative; - min-height: 100%; - margin: 0; - font-feature-settings: "kern"; - } - - ${e} :where(*, *::before, *::after) { - border-width: 0; - border-style: solid; - box-sizing: border-box; - word-wrap: break-word; - } - - main { - display: block; - } - - ${e} hr { - border-top-width: 1px; - box-sizing: content-box; - height: 0; - overflow: visible; - } - - ${e} :where(pre, code, kbd,samp) { - font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; - font-size: 1em; - } - - ${e} a { - background-color: transparent; - color: inherit; - text-decoration: inherit; - } - - ${e} abbr[title] { - border-bottom: none; - text-decoration: underline; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - } - - ${e} :where(b, strong) { - font-weight: bold; - } - - ${e} small { - font-size: 80%; - } - - ${e} :where(sub,sup) { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - } - - ${e} sub { - bottom: -0.25em; - } - - ${e} sup { - top: -0.5em; - } - - ${e} img { - border-style: none; - } - - ${e} :where(button, input, optgroup, select, textarea) { - font-family: inherit; - font-size: 100%; - line-height: 1.15; - margin: 0; - } - - ${e} :where(button, input) { - overflow: visible; - } - - ${e} :where(button, select) { - text-transform: none; - } - - ${e} :where( - button::-moz-focus-inner, - [type="button"]::-moz-focus-inner, - [type="reset"]::-moz-focus-inner, - [type="submit"]::-moz-focus-inner - ) { - border-style: none; - padding: 0; - } - - ${e} fieldset { - padding: 0.35em 0.75em 0.625em; - } - - ${e} legend { - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; - } - - ${e} progress { - vertical-align: baseline; - } - - ${e} textarea { - overflow: auto; - } - - ${e} :where([type="checkbox"], [type="radio"]) { - box-sizing: border-box; - padding: 0; - } - - ${e} input[type="number"]::-webkit-inner-spin-button, - ${e} input[type="number"]::-webkit-outer-spin-button { - -webkit-appearance: none !important; - } - - ${e} input[type="number"] { - -moz-appearance: textfield; - } - - ${e} input[type="search"] { - -webkit-appearance: textfield; - outline-offset: -2px; - } - - ${e} input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none !important; - } - - ${e} ::-webkit-file-upload-button { - -webkit-appearance: button; - font: inherit; - } - - ${e} details { - display: block; - } - - ${e} summary { - display: list-item; - } - - template { - display: none; - } - - [hidden] { - display: none !important; - } - - ${e} :where( - blockquote, - dl, - dd, - h1, - h2, - h3, - h4, - h5, - h6, - hr, - figure, - p, - pre - ) { - margin: 0; - } - - ${e} button { - background: transparent; - padding: 0; - } - - ${e} fieldset { - margin: 0; - padding: 0; - } - - ${e} :where(ol, ul) { - margin: 0; - padding: 0; - } - - ${e} textarea { - resize: vertical; - } - - ${e} :where(button, [role="button"]) { - cursor: pointer; - } - - ${e} button::-moz-focus-inner { - border: 0 !important; - } - - ${e} table { - border-collapse: collapse; - } - - ${e} :where(h1, h2, h3, h4, h5, h6) { - font-size: inherit; - font-weight: inherit; - } - - ${e} :where(button, input, optgroup, select, textarea) { - padding: 0; - line-height: inherit; - color: inherit; - } - - ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { - display: block; - } - - ${e} :where(img, video) { - max-width: 100%; - height: auto; - } - - [data-js-focus-visible] - :focus:not([data-focus-visible-added]):not( - [data-focus-visible-disabled] - ) { - outline: none; - box-shadow: none; - } - - ${e} select::-ms-expand { - display: none; - } - - ${UD} - `});function GD(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=b.useMemo(()=>CR(r),[r]);return R.jsxs($D,{theme:o,children:[R.jsx(XD,{root:t}),n]})}function XD({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return R.jsx(of,{styles:r=>({[t]:r.__cssVars})})}xn({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function qD(){const{colorMode:e}=Tm();return R.jsx(of,{styles:t=>{const r=AS(t,"styles.global"),n=Dr(r,{theme:t,colorMode:e});return n?NS(n)(t):void 0}})}const[H9,YD]=xn({strict:!1,name:"PortalManagerContext"}),yx=b.createContext({getDocument(){return document},getWindow(){return window}});yx.displayName="EnvironmentContext";function bx(e){const{children:t,environment:r,disabled:n}=e,o=b.useRef(null),i=b.useMemo(()=>r||{getDocument:()=>o.current?.ownerDocument??document,getWindow:()=>o.current?.ownerDocument.defaultView??window},[r]),s=!n||!r;return R.jsxs(yx.Provider,{value:i,children:[t,s&&R.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}bx.displayName="EnvironmentProvider";function KD(e){if(typeof Proxy>"u")return e;const t=new Map,r=(...n)=>e(...n);return new Proxy(r,{get:(n,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}function ba(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ph=e=>Array.isArray(e);function Sx(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function Pm(e,t,r,n){if(typeof t=="function"){const[o,i]=Dv(n);t=t(r!==void 0?r:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Dv(n);t=t(r!==void 0?r:e.custom,o,i)}return t}function sf(e,t,r){const n=e.getProps();return Pm(n,t,r!==void 0?r:n.custom,e)}const _m=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Am=["initial",..._m],al=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Kn=new Set(al),cn=e=>e*1e3,fn=e=>e/1e3,QD={type:"spring",stiffness:500,damping:25,restSpeed:10},ZD=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),JD={type:"keyframes",duration:.8},e5={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},t5=(e,{keyframes:t})=>t.length>2?JD:Kn.has(e)?e.startsWith("scale")?ZD(t[1]):QD:e5;function Rm(e,t){return e?e[t]||e.default||e:void 0}const r5={skipAnimations:!1,useManualTiming:!1},n5=e=>e!==null;function af(e,{repeat:t,repeatType:r="loop"},n){const o=e.filter(n5),i=t&&r!=="loop"&&t%2===1?0:o.length-1;return!i||n===void 0?o[i]:n}const ut=e=>e;function o5(e){let t=new Set,r=new Set,n=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,f=!1)=>{const g=f&&n?t:r;return c&&i.add(u),g.has(u)||g.add(u),u},cancel:u=>{r.delete(u),i.delete(u)},process:u=>{if(s=u,n){o=!0;return}n=!0,[t,r]=[r,t],r.clear(),t.forEach(a),n=!1,o&&(o=!1,l.process(u))}};return l}const Ul=["read","resolveKeyframes","update","preRender","render","postRender"],i5=40;function xx(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,s=Ul.reduce((p,h)=>(p[h]=o5(i),p),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:f,postRender:d}=s,g=()=>{const p=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(p-o.timestamp,i5),1),o.timestamp=p,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),f.process(o),d.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(g))},y=()=>{r=!0,n=!0,o.isProcessing||e(g)};return{schedule:Ul.reduce((p,h)=>{const v=s[h];return p[h]=(w,E=!1,P=!1)=>(r||y(),v.schedule(w,E,P)),p},{}),cancel:p=>{for(let h=0;h(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,s5=1e-7,a5=12;function l5(e,t,r,n,o){let i,s,a=0;do s=t+(r-t)/2,i=wx(s,n,o)-e,i>0?r=s:t=s;while(Math.abs(i)>s5&&++al5(i,0,1,e,r);return i=>i===0||i===1?i:wx(o(i),t,n)}const Ex=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kx=e=>t=>1-e(1-t),Cx=ll(.33,1.53,.69,.99),Im=kx(Cx),Tx=Ex(Im),Px=e=>(e*=2)<1?.5*Im(e):.5*(2-Math.pow(2,-10*(e-1))),Mm=e=>1-Math.sin(Math.acos(e)),_x=kx(Mm),Ax=Ex(Mm),Rx=e=>/^0[^.\s]+$/u.test(e);function u5(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Rx(e):!0}let _h=ut;const Ix=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Mx=e=>t=>typeof t=="string"&&t.startsWith(e),Lx=Mx("--"),c5=Mx("var(--"),Lm=e=>c5(e)?f5.test(e.split("/*")[0].trim()):!1,f5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,d5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function h5(e){const t=d5.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${r??n}`,o]}function Ox(e,t,r=1){const[n,o]=h5(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const s=i.trim();return Ix(s)?parseFloat(s):s}return Lm(o)?Ox(o,t,r+1):o}const Wn=(e,t,r)=>r>t?t:rtypeof e=="number",parse:parseFloat,transform:e=>e},xa={...ss,transform:e=>Wn(0,1,e)},Wl={...ss,default:1},ul=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_n=ul("deg"),zr=ul("%"),W=ul("px"),p5=ul("vh"),m5=ul("vw"),Fv={...zr,parse:e=>zr.parse(e)/100,transform:e=>zr.transform(e*100)},g5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Bv=e=>e===ss||e===W,zv=(e,t)=>parseFloat(e.split(", ")[t]),jv=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/u);if(o)return zv(o[1],t);{const i=n.match(/^matrix\((.+)\)$/u);return i?zv(i[1],e):0}},v5=new Set(["x","y","z"]),y5=al.filter(e=>!v5.has(e));function b5(e){const t=[];return y5.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const Hi={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:jv(4,13),y:jv(5,14)};Hi.translateX=Hi.x;Hi.translateY=Hi.y;const $x=e=>t=>t.test(e),S5={test:e=>e==="auto",parse:e=>e},Nx=[ss,W,zr,_n,m5,p5,S5],Vv=e=>Nx.find($x(e)),Co=new Set;let Ah=!1,Rh=!1;function Dx(){if(Rh){const e=Array.from(Co).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const o=b5(n);o.length&&(r.set(n,o),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const o=r.get(n);o&&o.forEach(([i,s])=>{var a;(a=n.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Rh=!1,Ah=!1,Co.forEach(e=>e.complete()),Co.clear()}function Fx(){Co.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Rh=!0)})}function x5(){Fx(),Dx()}class Om{constructor(t,r,n,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Co.add(this),Ah||(Ah=!0,pe.read(Fx),pe.resolveKeyframes(Dx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;for(let i=0;iMath.round(e*1e5)/1e5,$m=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function w5(e){return e==null}const E5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nm=(e,t)=>r=>!!(typeof r=="string"&&E5.test(r)&&r.startsWith(e)||t&&!w5(r)&&Object.prototype.hasOwnProperty.call(r,t)),Bx=(e,t,r)=>n=>{if(typeof n!="string")return n;const[o,i,s,a]=n.match($m);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},k5=e=>Wn(0,255,e),hd={...ss,transform:e=>Math.round(k5(e))},yo={test:Nm("rgb","red"),parse:Bx("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+hd.transform(e)+", "+hd.transform(t)+", "+hd.transform(r)+", "+Ys(xa.transform(n))+")"};function C5(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Ih={test:Nm("#"),parse:C5,transform:yo.transform},ii={test:Nm("hsl","hue"),parse:Bx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+zr.transform(Ys(t))+", "+zr.transform(Ys(r))+", "+Ys(xa.transform(n))+")"},st={test:e=>yo.test(e)||Ih.test(e)||ii.test(e),parse:e=>yo.test(e)?yo.parse(e):ii.test(e)?ii.parse(e):Ih.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?yo.transform(e):ii.transform(e)},T5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function P5(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match($m))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(T5))===null||r===void 0?void 0:r.length)||0)>0}const zx="number",jx="color",_5="var",A5="var(",Hv="${}",R5=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function wa(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(R5,l=>(st.test(l)?(n.color.push(i),o.push(jx),r.push(st.parse(l))):l.startsWith(A5)?(n.var.push(i),o.push(_5),r.push(l)):(n.number.push(i),o.push(zx),r.push(parseFloat(l))),++i,Hv)).split(Hv);return{values:r,split:a,indexes:n,types:o}}function Vx(e){return wa(e).values}function Hx(e){const{split:t,types:r}=wa(e),n=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function M5(e){const t=Vx(e);return Hx(e)(t.map(I5))}const Gn={test:P5,parse:Vx,createTransformer:Hx,getAnimatableNone:M5},L5=new Set(["brightness","contrast","saturate","opacity"]);function O5(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match($m)||[];if(!n)return e;const o=r.replace(n,"");let i=L5.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const $5=/\b([a-z-]*)\(.*?\)/gu,Mh={...Gn,getAnimatableNone:e=>{const t=e.match($5);return t?t.map(O5).join(" "):e}},N5={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,radius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,backgroundPositionX:W,backgroundPositionY:W},D5={rotate:_n,rotateX:_n,rotateY:_n,rotateZ:_n,scale:Wl,scaleX:Wl,scaleY:Wl,scaleZ:Wl,skew:_n,skewX:_n,skewY:_n,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:xa,originX:Fv,originY:Fv,originZ:W},Uv={...ss,transform:Math.round},Dm={...N5,...D5,zIndex:Uv,size:W,fillOpacity:xa,strokeOpacity:xa,numOctaves:Uv},F5={...Dm,color:st,backgroundColor:st,outlineColor:st,fill:st,stroke:st,borderColor:st,borderTopColor:st,borderRightColor:st,borderBottomColor:st,borderLeftColor:st,filter:Mh,WebkitFilter:Mh},Fm=e=>F5[e];function Ux(e,t){let r=Fm(e);return r!==Mh&&(r=Gn),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const B5=new Set(["auto","none","0"]);function z5(e,t,r){let n=0,o;for(;n{r.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Bm(e){return typeof e=="function"}let Iu;function j5(){Iu=void 0}const jr={now:()=>(Iu===void 0&&jr.set(Ze.isProcessing||r5.useManualTiming?Ze.timestamp:performance.now()),Iu),set:e=>{Iu=e,queueMicrotask(j5)}},Wv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gn.test(e)||e==="0")&&!e.startsWith("url("));function V5(e){const t=e[0];if(e.length===1)return!0;for(let r=0;rU5?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&x5(),this._resolved}onKeyframesResolved(t,r){this.resolvedAt=jr.now(),this.hasAttemptedResolve=!0;const{name:n,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!H5(t,n,o,i))if(s)this.options.duration=0;else{l?.(af(t,this.options,r)),a?.(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,r);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:r,...c},this.onPostResolved())}onPostResolved(){}then(t,r){return this.currentFinishedPromise.then(t,r)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function Xx(e,t){return t?e*(1e3/t):0}const W5=5;function qx(e,t,r){const n=Math.max(t-W5,0);return Xx(r-e(n),t-n)}const pd=.001,G5=.01,X5=10,q5=.05,Y5=1;function K5({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i,s=1-t;s=Wn(q5,Y5,s),e=Wn(G5,X5,fn(e)),s<1?(o=u=>{const c=u*s,f=c*e,d=c-r,g=Lh(u,s),y=Math.exp(-f);return pd-d/g*y},i=u=>{const f=u*s*e,d=f*r+r,g=Math.pow(s,2)*Math.pow(u,2)*e,y=Math.exp(-f),m=Lh(Math.pow(u,2),s);return(-o(u)+pd>0?-1:1)*((d-g)*y)/m}):(o=u=>{const c=Math.exp(-u*e),f=(u-r)*e+1;return-pd+c*f},i=u=>{const c=Math.exp(-u*e),f=(r-u)*(e*e);return c*f});const a=5/e,l=Z5(o,i,a);if(e=cn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:s*2*Math.sqrt(n*u),duration:e}}}const Q5=12;function Z5(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function tF(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Gv(e,eF)&&Gv(e,J5)){const r=K5(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}function Yx({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:c,velocity:f,isResolvedFromDuration:d}=tF({...n,velocity:-fn(n.velocity||0)}),g=f||0,y=l/(2*Math.sqrt(a*u)),m=i-o,S=fn(Math.sqrt(a/u)),p=Math.abs(m)<5;r||(r=p?.01:2),t||(t=p?.005:.5);let h;if(y<1){const v=Lh(S,y);h=w=>{const E=Math.exp(-y*S*w);return i-E*((g+y*S*m)/v*Math.sin(v*w)+m*Math.cos(v*w))}}else if(y===1)h=v=>i-Math.exp(-S*v)*(m+(g+S*m)*v);else{const v=S*Math.sqrt(y*y-1);h=w=>{const E=Math.exp(-y*S*w),P=Math.min(v*w,300);return i-E*((g+y*S*m)*Math.sinh(P)+v*m*Math.cosh(P))/v}}return{calculatedDuration:d&&c||null,next:v=>{const w=h(v);if(d)s.done=v>=c;else{let E=0;y<1&&(E=v===0?cn(g):qx(h,v,w));const P=Math.abs(E)<=r,T=Math.abs(i-w)<=t;s.done=P&&T}return s.value=s.done?i:w,s}}}function Xv({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},g=A=>a!==void 0&&Al,y=A=>a===void 0?l:l===void 0||Math.abs(a-A)-m*Math.exp(-A/n),v=A=>p+h(A),w=A=>{const M=h(A),I=v(A);d.done=Math.abs(M)<=u,d.value=d.done?p:I};let E,P;const T=A=>{g(d.value)&&(E=A,P=Yx({keyframes:[d.value,y(d.value)],velocity:qx(v,A,d.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:A=>{let M=!1;return!P&&E===void 0&&(M=!0,w(A),T(A)),E!==void 0&&A>=E?P.next(A-E):(!M&&w(A),d)}}}const rF=ll(.42,0,1,1),nF=ll(0,0,.58,1),Kx=ll(.42,0,.58,1),oF=e=>Array.isArray(e)&&typeof e[0]!="number",zm=e=>Array.isArray(e)&&typeof e[0]=="number",qv={linear:ut,easeIn:rF,easeInOut:Kx,easeOut:nF,circIn:Mm,circInOut:Ax,circOut:_x,backIn:Im,backInOut:Tx,backOut:Cx,anticipate:Px},Yv=e=>{if(zm(e)){_h(e.length===4);const[t,r,n,o]=e;return ll(t,r,n,o)}else if(typeof e=="string")return _h(qv[e]!==void 0),qv[e];return e},iF=(e,t)=>r=>t(e(r)),dn=(...e)=>e.reduce(iF),Ui=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Ae=(e,t,r)=>e+(t-e)*r;function md(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function sF({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,s=0;if(!t)o=i=s=r;else{const a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;o=md(l,a,e+1/3),i=md(l,a,e),s=md(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}function nc(e,t){return r=>r>0?t:e}const gd=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},aF=[Ih,yo,ii],lF=e=>aF.find(t=>t.test(e));function Kv(e){const t=lF(e);if(!t)return!1;let r=t.parse(e);return t===ii&&(r=sF(r)),r}const Qv=(e,t)=>{const r=Kv(e),n=Kv(t);if(!r||!n)return nc(e,t);const o={...r};return i=>(o.red=gd(r.red,n.red,i),o.green=gd(r.green,n.green,i),o.blue=gd(r.blue,n.blue,i),o.alpha=Ae(r.alpha,n.alpha,i),yo.transform(o))},Oh=new Set(["none","hidden"]);function uF(e,t){return Oh.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function cF(e,t){return r=>Ae(e,t,r)}function jm(e){return typeof e=="number"?cF:typeof e=="string"?Lm(e)?nc:st.test(e)?Qv:hF:Array.isArray(e)?Qx:typeof e=="object"?st.test(e)?Qv:fF:nc}function Qx(e,t){const r=[...e],n=r.length,o=e.map((i,s)=>jm(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in n)r[i]=n[i](o);return r}}function dF(e,t){var r;const n=[],o={color:0,var:0,number:0};for(let i=0;i{const r=Gn.createTransformer(t),n=wa(e),o=wa(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?Oh.has(e)&&!o.values.length||Oh.has(t)&&!n.values.length?uF(e,t):dn(Qx(dF(n,o),o.values),r):nc(e,t)};function Zx(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?Ae(e,t,r):jm(e)(e,t)}function pF(e,t,r){const n=[],o=r||Zx,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=pF(t,n,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Wn(e[0],e[i-1],u)):l}function gF(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Ui(0,t,n);e.push(Ae(r,1,o))}}function vF(e){const t=[0];return gF(t,e.length-1),t}function yF(e,t){return e.map(r=>r*t)}function bF(e,t){return e.map(()=>t||Kx).splice(0,e.length-1)}function oc({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=oF(n)?n.map(Yv):Yv(n),i={done:!1,value:t[0]},s=yF(r&&r.length===t.length?r:vF(t),e),a=mF(s,t,{ease:Array.isArray(o)?o:bF(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Zv=2e4;function SF(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=Zv?1/0:t}const xF=e=>{const t=({timestamp:r})=>e(r);return{start:()=>pe.update(t,!0),stop:()=>Un(t),now:()=>Ze.isProcessing?Ze.timestamp:jr.now()}},wF={decay:Xv,inertia:Xv,tween:oc,keyframes:oc,spring:Yx},EF=e=>e/100;class Vm extends Gx{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:r,motionValue:n,element:o,keyframes:i}=this.options,s=o?.KeyframeResolver||Om,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(i,a,r,n,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:r="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=Bm(r)?r:wF[r]||oc;let l,u;a!==oc&&typeof t[0]!="number"&&(l=dn(EF,Zx(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=SF(c));const{calculatedDuration:f}=c,d=f+o,g=d*(n+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,r=!1){const{resolved:n}=this;if(!n){const{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=n;if(this.startTime===null)return i.next(0);const{delay:d,repeat:g,repeatType:y,repeatDelay:m,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),r?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const p=this.currentTime-d*(this.speed>=0?1:-1),h=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let v=this.currentTime,w=i;if(g){const A=Math.min(this.currentTime,c)/f;let M=Math.floor(A),I=A%1;!I&&A>=1&&(I=1),I===1&&M--,M=Math.min(M,g+1),!!(M%2)&&(y==="reverse"?(I=1-I,m&&(I-=m/f)):y==="mirror"&&(w=s)),v=Wn(0,1,I)*f}const E=h?{done:!1,value:l[0]}:w.next(v);a&&(E.value=a(E.value));let{done:P}=E;!h&&u!==null&&(P=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return T&&o!==void 0&&(E.value=af(l,this.options,o)),S&&S(E.value),T&&this.finish(),E}get duration(){const{resolved:t}=this;return t?fn(t.calculatedDuration):0}get time(){return fn(this.currentTime)}set time(t){t=cn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=fn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=xF,onPlay:r,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),r&&r();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Jx=new Set(["opacity","clipPath","filter","transform"]),kF=10,CF=(e,t)=>{let r="";const n=Math.max(Math.round(t/kF),2);for(let o=0;o(t===void 0&&(t=e()),t)}const TF={linearEasing:void 0};function PF(e,t){const r=Hm(e);return()=>{var n;return(n=TF[t])!==null&&n!==void 0?n:r()}}const ic=PF(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function ew(e){return!!(typeof e=="function"&&ic()||!e||typeof e=="string"&&(e in $h||ic())||zm(e)||Array.isArray(e)&&e.every(ew))}const $s=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,$h={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:$s([0,.65,.55,1]),circOut:$s([.55,0,1,.45]),backIn:$s([.31,.01,.66,-.59]),backOut:$s([.33,1.53,.69,.99])};function tw(e,t){if(e)return typeof e=="function"&&ic()?CF(e,t):zm(e)?$s(e):Array.isArray(e)?e.map(r=>tw(r,t)||$h.easeOut):$h[e]}function _F(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:r};l&&(u.offset=l);const c=tw(a,o);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function Jv(e,t){e.timeline=t,e.onfinish=null}const AF=Hm(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),sc=10,RF=2e4;function IF(e){return Bm(e.type)||e.type==="spring"||!ew(e.ease)}function MF(e,t){const r=new Vm({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:e[0]};const o=[];let i=0;for(;!n.done&&ithis.onKeyframesResolved(s,a),r,n,o),this.resolver.scheduleResolve()}initPlayback(t,r){var n;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((n=l.owner)===null||n===void 0)&&n.current))return!1;if(typeof s=="string"&&ic()&&LF(s)&&(s=rw[s]),IF(this.options)){const{onComplete:d,onUpdate:g,motionValue:y,element:m,...S}=this.options,p=MF(t,S);t=p.keyframes,t.length===1&&(t[1]=t[0]),o=p.duration,i=p.times,s=p.ease,a="keyframes"}const f=_F(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return f.startTime=c??this.calcStartTime(),this.pendingTimeline?(Jv(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:d}=this.options;l.set(af(t,this.options,r)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:r}=t;return fn(r)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:r}=t;return fn(r.currentTime||0)}set time(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.currentTime=cn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:r}=t;return r.playbackRate}set speed(t){const{resolved:r}=this;if(!r)return;const{animation:n}=r;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:r}=t;return r.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:r}=t;return r.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:r}=this;if(!r)return ut;const{animation:n}=r;Jv(n,t)}return ut}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:r,keyframes:n,duration:o,type:i,ease:s,times:a}=t;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:d,...g}=this.options,y=new Vm({...g,keyframes:n,duration:o,type:i,ease:s,times:a,isGenerator:!0}),m=cn(this.time);u.setWithVelocity(y.sample(m-sc).value,y.sample(m).value,sc)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:r,name:n,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return AF()&&n&&Jx.has(n)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}const OF=Hm(()=>window.ScrollTimeline!==void 0);class $F{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,r){return Promise.all(this.animations).then(t).catch(r)}getAll(t){return this.animations[0][t]}setAll(t,r){for(let n=0;nOF()&&o.attachTimeline?o.attachTimeline(t):r(o));return()=>{n.forEach((o,i)=>{o&&o(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let r=0;rr[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function NF({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Um=(e,t,r,n={},o,i)=>s=>{const a=Rm(n,e)||{},l=a.delay||n.delay||0;let{elapsed:u=0}=n;u=u-cn(l);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};NF(a)||(c={...c,...t5(e,c)}),c.duration&&(c.duration=cn(c.duration)),c.repeatDelay&&(c.repeatDelay=cn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const d=af(c.keyframes,a);if(d!==void 0)return pe.update(()=>{c.onUpdate(d),c.onComplete()}),new $F([])}return!i&&ey.supports(c)?new ey(c):new Vm(c)},DF=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),FF=e=>Ph(e)?e[e.length-1]||0:e;function Wm(e,t){e.indexOf(t)===-1&&e.push(t)}function Gm(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Xm{constructor(){this.subscriptions=[]}add(t){return Wm(this.subscriptions,t),()=>Gm(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i!isNaN(parseFloat(e));class zF{constructor(t,r={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,o=!0)=>{const i=jr.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=jr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=BF(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Xm);const n=this.events[t].add(r);return t==="change"?()=>{n(),pe.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=jr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ty)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,ty);return Xx(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ea(e,t){return new zF(e,t)}function jF(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Ea(r))}function VF(e,t){const r=sf(e,t);let{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(const s in i){const a=FF(i[s]);jF(e,s,a)}}const lf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),HF="framerAppearId",nw="data-"+lf(HF);function ow(e){return e.props[nw]}const lt=e=>!!(e&&e.getVelocity);function UF(e){return!!(lt(e)&&e.add)}function Nh(e,t){if(!e.applyWillChange)return;const r=e.getValue("willChange");if(UF(r))return r.add(t)}function WF({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function iw(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;n&&(s=n);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const f in l){const d=e.getValue(f,(i=e.latestValues[f])!==null&&i!==void 0?i:null),g=l[f];if(g===void 0||c&&WF(c,f))continue;const y={delay:r,...Rm(s||{},f)};let m=!1;if(window.MotionHandoffAnimation){const p=ow(e);if(p){const h=window.MotionHandoffAnimation(p,f,pe);h!==null&&(y.startTime=h,m=!0)}}Nh(e,f),d.start(Um(f,d,g,e.shouldReduceMotion&&Kn.has(f)?{type:!1}:y,e,m));const S=d.animation;S&&u.push(S)}return a&&Promise.all(u).then(()=>{pe.update(()=>{a&&VF(e,a)})}),u}function Dh(e,t,r={}){var n;const o=sf(e,t,r.type==="exit"?(n=e.presenceContext)===null||n===void 0?void 0:n.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(i=r.transitionOverride);const s=o?()=>Promise.all(iw(e,o,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=i;return GF(e,t,c+u,f,d,r)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(r.delay)])}function GF(e,t,r=0,n=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*n,l=o===1?(u=0)=>u*n:(u=0)=>a-u*n;return Array.from(e.variantChildren).sort(XF).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Dh(u,t,{...i,delay:r+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function XF(e,t){return e.sortNodePosition(t)}function qF(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>Dh(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=Dh(e,t,r);else{const o=typeof t=="function"?sf(e,t,r.custom):t;n=Promise.all(iw(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}const YF=Am.length;function sw(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?sw(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;rPromise.all(t.map(({animation:r,options:n})=>qF(e,r,n)))}function JF(e){let t=ZF(e),r=ry(),n=!0;const o=l=>(u,c)=>{var f;const d=sf(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:g,transitionEnd:y,...m}=d;u={...u,...m,...y}}return u};function i(l){t=l(e)}function s(l){const{props:u}=e,c=sw(e.parent)||{},f=[],d=new Set;let g={},y=1/0;for(let S=0;Sy&&w,M=!1;const I=Array.isArray(v)?v:[v];let z=I.reduce(o(p),{});E===!1&&(z={});const{prevResolvedValues:ue={}}=h,re={...ue,...z},Fe=G=>{A=!0,d.has(G)&&(M=!0,d.delete(G)),h.needsAnimating[G]=!0;const O=e.getValue(G);O&&(O.liveStyle=!1)};for(const G in re){const O=z[G],$=ue[G];if(g.hasOwnProperty(G))continue;let B=!1;Ph(O)&&Ph($)?B=!Sx(O,$):B=O!==$,B?O!=null?Fe(G):d.add(G):O!==void 0&&d.has(G)?Fe(G):h.protectedKeys[G]=!0}h.prevProp=v,h.prevResolvedValues=z,h.isActive&&(g={...g,...z}),n&&e.blockInitialAnimation&&(A=!1),A&&(!(P&&T)||M)&&f.push(...I.map(G=>({animation:G,options:{type:p}})))}if(d.size){const S={};d.forEach(p=>{const h=e.getBaseTarget(p),v=e.getValue(p);v&&(v.liveStyle=!0),S[p]=h??null}),f.push({animation:S})}let m=!!f.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(f):Promise.resolve()}function a(l,u){var c;if(r[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var g;return(g=d.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),r[l].isActive=u;const f=s(l);for(const d in r)r[d].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>r,reset:()=>{r=ry(),n=!0}}}function eB(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Sx(t,e):!1}function uo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ry(){return{animate:uo(!0),whileInView:uo(),whileHover:uo(),whileTap:uo(),whileDrag:uo(),whileFocus:uo(),exit:uo()}}class Qn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class tB extends Qn{constructor(t){super(t),t.animationState||(t.animationState=JF(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ba(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let rB=0;class nB extends Qn{constructor(){super(...arguments),this.id=rB++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const o=this.node.animationState.setActive("exit",!t);r&&!t&&o.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const oB={animation:{Feature:tB},exit:{Feature:nB}},aw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function uf(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const iB=e=>t=>aw(t)&&e(t,uf(t));function sn(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function hn(e,t,r,n){return sn(e,t,iB(r),n)}const ny=(e,t)=>Math.abs(e-t);function sB(e,t){const r=ny(e.x,t.x),n=ny(e.y,t.y);return Math.sqrt(r**2+n**2)}class lw{constructor(t,r,{transformPagePoint:n,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=yd(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,g=sB(f.offset,{x:0,y:0})>=3;if(!d&&!g)return;const{point:y}=f,{timestamp:m}=Ze;this.history.push({...y,timestamp:m});const{onStart:S,onMove:p}=this.handlers;d||(S&&S(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=vd(d,this.transformPagePoint),pe.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=yd(f.type==="pointercancel"?this.lastMoveEventInfo:vd(d,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,S),y&&y(f,S)},!aw(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=n,this.contextWindow=o||window;const s=uf(t),a=vd(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Ze;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=r;c&&c(t,yd(a,this.history)),this.removeListeners=dn(hn(this.contextWindow,"pointermove",this.handlePointerMove),hn(this.contextWindow,"pointerup",this.handlePointerUp),hn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Un(this.updatePoint)}}function vd(e,t){return t?{point:t(e.point)}:e}function oy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yd({point:e},t){return{point:e,delta:oy(e,uw(t)),offset:oy(e,aB(t)),velocity:lB(t,.1)}}function aB(e){return e[0]}function uw(e){return e[e.length-1]}function lB(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=uw(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>cn(t)));)r--;if(!n)return{x:0,y:0};const i=fn(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function cw(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const iy=cw("dragHorizontal"),sy=cw("dragVertical");function fw(e){let t=!1;if(e==="y")t=sy();else if(e==="x")t=iy();else{const r=iy(),n=sy();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function dw(){const e=fw(!0);return e?(e(),!1):!0}function si(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const hw=1e-4,uB=1-hw,cB=1+hw,pw=.01,fB=0-pw,dB=0+pw;function Vt(e){return e.max-e.min}function hB(e,t,r){return Math.abs(e-t)<=r}function ay(e,t,r,n=.5){e.origin=n,e.originPoint=Ae(t.min,t.max,e.origin),e.scale=Vt(r)/Vt(t),e.translate=Ae(r.min,r.max,e.origin)-e.originPoint,(e.scale>=uB&&e.scale<=cB||isNaN(e.scale))&&(e.scale=1),(e.translate>=fB&&e.translate<=dB||isNaN(e.translate))&&(e.translate=0)}function Ks(e,t,r,n){ay(e.x,t.x,r.x,n?n.originX:void 0),ay(e.y,t.y,r.y,n?n.originY:void 0)}function ly(e,t,r){e.min=r.min+t.min,e.max=e.min+Vt(t)}function pB(e,t,r){ly(e.x,t.x,r.x),ly(e.y,t.y,r.y)}function uy(e,t,r){e.min=t.min-r.min,e.max=e.min+Vt(t)}function Qs(e,t,r){uy(e.x,t.x,r.x),uy(e.y,t.y,r.y)}function mB(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?Ae(r,e,n.max):Math.min(e,r)),e}function cy(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function gB(e,{top:t,left:r,bottom:n,right:o}){return{x:cy(e.x,r,o),y:cy(e.y,t,n)}}function fy(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=Ui(t.min,t.max-n,e.min):n>o&&(r=Ui(e.min,e.max-o,t.min)),Wn(0,1,r)}function bB(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Fh=.35;function SB(e=Fh){return e===!1?e=0:e===!0&&(e=Fh),{x:dy(e,"left","right"),y:dy(e,"top","bottom")}}function dy(e,t,r){return{min:hy(e,t),max:hy(e,r)}}function hy(e,t){return typeof e=="number"?e:e[t]||0}const py=()=>({translate:0,scale:1,origin:0,originPoint:0}),ai=()=>({x:py(),y:py()}),my=()=>({min:0,max:0}),$e=()=>({x:my(),y:my()});function Zt(e){return[e("x"),e("y")]}function mw({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function xB({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function wB(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function bd(e){return e===void 0||e===1}function Bh({scale:e,scaleX:t,scaleY:r}){return!bd(e)||!bd(t)||!bd(r)}function fo(e){return Bh(e)||gw(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function gw(e){return gy(e.x)||gy(e.y)}function gy(e){return e&&e!=="0%"}function ac(e,t,r){const n=e-r,o=t*n;return r+o}function vy(e,t,r,n,o){return o!==void 0&&(e=ac(e,o,n)),ac(e,r,n)+t}function zh(e,t=0,r=1,n,o){e.min=vy(e.min,t,r,n,o),e.max=vy(e.max,t,r,n,o)}function vw(e,{x:t,y:r}){zh(e.x,t.translate,t.scale,t.originPoint),zh(e.y,r.translate,r.scale,r.originPoint)}const yy=.999999999999,by=1.0000000000001;function EB(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;ayy&&(t.x=1),t.yyy&&(t.y=1)}function li(e,t){e.min=e.min+t,e.max=e.max+t}function Sy(e,t,r,n,o=.5){const i=Ae(e.min,e.max,o);zh(e,t,r,i,n)}function ui(e,t){Sy(e.x,t.x,t.scaleX,t.scale,t.originX),Sy(e.y,t.y,t.scaleY,t.scale,t.originY)}function yw(e,t){return mw(wB(e.getBoundingClientRect(),t))}function kB(e,t,r){const n=yw(e,r),{scroll:o}=t;return o&&(li(n.x,o.offset.x),li(n.y,o.offset.y)),n}const bw=({current:e})=>e?e.ownerDocument.defaultView:null,CB=new WeakMap;class TB{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$e(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(uf(c,"page").point)},i=(c,f)=>{const{drag:d,dragPropagation:g,onDragStart:y}=this.getProps();if(d&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=fw(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Zt(S=>{let p=this.getAxisMotionValue(S).get()||0;if(zr.test(p)){const{projection:h}=this.visualElement;if(h&&h.layout){const v=h.layout.layoutBox[S];v&&(p=Vt(v)*(parseFloat(p)/100))}}this.originPoint[S]=p}),y&&pe.postRender(()=>y(c,f)),Nh(this.visualElement,"transform");const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},s=(c,f)=>{const{dragPropagation:d,dragDirectionLock:g,onDirectionLock:y,onDrag:m}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:S}=f;if(g&&this.currentDirection===null){this.currentDirection=PB(S),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,S),this.updateAxis("y",f.point,S),this.visualElement.render(),m&&m(c,f)},a=(c,f)=>this.stop(c,f),l=()=>Zt(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new lw(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:bw(this.visualElement)})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&pe.postRender(()=>i(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!Gl(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=mB(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:r,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;r&&si(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=gB(o.layoutBox,r):this.constraints=!1,this.elastic=SB(n),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Zt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=bB(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!si(t))return!1;const n=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=kB(n,o.root,this.visualElement.getTransformPagePoint());let s=vB(o.layout.layoutBox,i);if(r){const a=r(xB(s));this.hasMutatedConstraints=!!a,a&&(s=mw(a))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Zt(c=>{if(!Gl(c,r,this.currentDirection))return;let f=l&&l[c]||{};s&&(f={min:0,max:0});const d=o?200:1e6,g=o?40:1e7,y={type:"inertia",velocity:n?t[c]:0,bounceStiffness:d,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return Nh(this.visualElement,t),n.start(Um(t,n,0,r,this.visualElement,!1))}stopAnimation(){Zt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Zt(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Zt(r=>{const{drag:n}=this.getProps();if(!Gl(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[r];i.set(t[r]-Ae(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!si(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Zt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=yB({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Zt(s=>{if(!Gl(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(Ae(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;CB.set(this.visualElement,this);const t=this.visualElement.current,r=hn(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();si(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),pe.read(n);const s=sn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Zt(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),r(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Fh,dragMomentum:a=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Gl(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function PB(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class _B extends Qn{constructor(t){super(t),this.removeGroupControls=ut,this.removeListeners=ut,this.controls=new TB(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ut}unmount(){this.removeGroupControls(),this.removeListeners()}}const xy=e=>(t,r)=>{e&&pe.postRender(()=>e(t,r))};class AB extends Qn{constructor(){super(...arguments),this.removePointerDownListener=ut}onPointerDown(t){this.session=new lw(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bw(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:xy(t),onStart:xy(r),onMove:n,onEnd:(i,s)=>{delete this.session,o&&pe.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=hn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const cl=b.createContext(null);function Sw(){const e=b.useContext(cl);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=b.useId();b.useEffect(()=>n(o),[]);const i=b.useCallback(()=>r&&r(o),[o,r]);return!t&&r?[!1,i]:[!0]}function RB(){return IB(b.useContext(cl))}function IB(e){return e===null?!0:e.isPresent}const qm=b.createContext({}),xw=b.createContext({}),Mu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function wy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const vs={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(W.test(e))e=parseFloat(e);else return e;const r=wy(e,t.target.x),n=wy(e,t.target.y);return`${r}% ${n}%`}},MB={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=Gn.parse(e);if(o.length>5)return n;const i=Gn.createTransformer(e),s=typeof o[0]!="number"?1:0,a=r.x.scale*t.x,l=r.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=Ae(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}},lc={};function LB(e){Object.assign(lc,e)}const{schedule:Ym,cancel:U9}=xx(queueMicrotask,!1);class OB extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;LB($B),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Mu.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,s=n.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||pe.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ym.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ww(e){const[t,r]=Sw(),n=b.useContext(qm);return R.jsx(OB,{...e,layoutGroup:n,switchLayoutGroup:b.useContext(xw),isPresent:t,safeToRemove:r})}const $B={borderRadius:{...vs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:vs,borderTopRightRadius:vs,borderBottomLeftRadius:vs,borderBottomRightRadius:vs,boxShadow:MB},Ew=["TopLeft","TopRight","BottomLeft","BottomRight"],NB=Ew.length,Ey=e=>typeof e=="string"?parseFloat(e):e,ky=e=>typeof e=="number"||W.test(e);function DB(e,t,r,n,o,i){o?(e.opacity=Ae(0,r.opacity!==void 0?r.opacity:1,FB(n)),e.opacityExit=Ae(t.opacity!==void 0?t.opacity:1,0,BB(n))):i&&(e.opacity=Ae(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;snt?1:r(Ui(e,t,n))}function Ty(e,t){e.min=t.min,e.max=t.max}function Kt(e,t){Ty(e.x,t.x),Ty(e.y,t.y)}function Py(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function _y(e,t,r,n,o){return e-=t,e=ac(e,1/r,n),o!==void 0&&(e=ac(e,1/o,n)),e}function zB(e,t=0,r=1,n=.5,o,i=e,s=e){if(zr.test(t)&&(t=parseFloat(t),t=Ae(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Ae(i.min,i.max,n);e===i&&(a-=t),e.min=_y(e.min,t,r,a,o),e.max=_y(e.max,t,r,a,o)}function Ay(e,t,[r,n,o],i,s){zB(e,t[r],t[n],t[o],t.scale,i,s)}const jB=["x","scaleX","originX"],VB=["y","scaleY","originY"];function Ry(e,t,r,n){Ay(e.x,t,jB,r?r.x:void 0,n?n.x:void 0),Ay(e.y,t,VB,r?r.y:void 0,n?n.y:void 0)}function Iy(e){return e.translate===0&&e.scale===1}function Cw(e){return Iy(e.x)&&Iy(e.y)}function My(e,t){return e.min===t.min&&e.max===t.max}function HB(e,t){return My(e.x,t.x)&&My(e.y,t.y)}function Ly(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Tw(e,t){return Ly(e.x,t.x)&&Ly(e.y,t.y)}function Oy(e){return Vt(e.x)/Vt(e.y)}function $y(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class UB{constructor(){this.members=[]}add(t){Wm(this.members,t),t.scheduleRender()}remove(t){if(Gm(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function WB(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=r?.z||0;if((o||i||s)&&(n=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:g,skewY:y}=r;u&&(n=`perspective(${u}px) ${n}`),c&&(n+=`rotate(${c}deg) `),f&&(n+=`rotateX(${f}deg) `),d&&(n+=`rotateY(${d}deg) `),g&&(n+=`skewX(${g}deg) `),y&&(n+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(n+=`scale(${a}, ${l})`),n||"none"}const GB=(e,t)=>e.depth-t.depth;class XB{constructor(){this.children=[],this.isDirty=!1}add(t){Wm(this.children,t),this.isDirty=!0}remove(t){Gm(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(GB),this.isDirty=!1,this.children.forEach(t)}}function Lu(e){const t=lt(e)?e.get():e;return DF(t)?t.toValue():t}function qB(e,t){const r=jr.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(Un(n),e(i-t))};return pe.read(n,!0),()=>Un(n)}function YB(e){return e instanceof SVGElement&&e.tagName!=="svg"}function KB(e,t,r){const n=lt(e)?e:Ea(e);return n.start(Um("",n,t,r)),n.animation}const ho={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ns=typeof window<"u"&&window.MotionDebug!==void 0,Sd=["","X","Y","Z"],QB={visibility:"hidden"},Ny=1e3;let ZB=0;function xd(e,t,r,n){const{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function Pw(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=ow(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",pe,!(o||i))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&Pw(n)}function _w({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=ZB++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ns&&(ho.totalNodes=ho.resolvedTargetDeltas=ho.recalculatedProjection=0),this.nodes.forEach(t3),this.nodes.forEach(s3),this.nodes.forEach(a3),this.nodes.forEach(r3),Ns&&window.MotionDebug.record(ho)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=qB(d,250),Mu.hasAnimatedSinceResize&&(Mu.hasAnimatedSinceResize=!1,this.nodes.forEach(Fy))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:g,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||d3,{onLayoutAnimationStart:S,onLayoutAnimationComplete:p}=c.getProps(),h=!this.targetLayout||!Tw(this.targetLayout,y)||g,v=!d&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||d&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,v);const w={...Rm(m,"layout"),onPlay:S,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||Fy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Un(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(l3),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Pw(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const E=w/1e3;By(f.x,s.x,E),By(f.y,s.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qs(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),c3(this.relativeTarget,this.relativeTargetOrigin,d,E),v&&HB(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=$e()),Kt(v,this.relativeTarget)),m&&(this.animationValues=c,DB(c,u,this.latestValues,E,h,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Un(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=pe.update(()=>{Mu.hasAnimatedSinceResize=!0,this.currentAnimation=KB(0,Ny,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ny),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Aw(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||$e();const f=Vt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=Vt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}Kt(a,l),ui(a,c),Ks(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new UB),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&xd("z",s,u,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Dy),this.root.sharedNodes.clear()}}}function JB(e){e.updateLayout()}function e3(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:i}=e.options,s=r.source!==e.layout.source;i==="size"?Zt(f=>{const d=s?r.measuredBox[f]:r.layoutBox[f],g=Vt(d);d.min=n[f].min,d.max=d.min+g}):Aw(i,r.layoutBox,n)&&Zt(f=>{const d=s?r.measuredBox[f]:r.layoutBox[f],g=Vt(n[f]);d.max=d.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const a=ai();Ks(a,n,r.layoutBox);const l=ai();s?Ks(l,e.applyTransform(o,!0),r.measuredBox):Ks(l,n,r.layoutBox);const u=!Cw(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:g}=f;if(d&&g){const y=$e();Qs(y,r.layoutBox,d.layoutBox);const m=$e();Qs(m,n,g.layoutBox),Tw(y,m)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=y,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function t3(e){Ns&&ho.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function r3(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function n3(e){e.clearSnapshot()}function Dy(e){e.clearMeasurements()}function o3(e){e.isLayoutDirty=!1}function i3(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Fy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function s3(e){e.resolveTargetDelta()}function a3(e){e.calcProjection()}function l3(e){e.resetSkewAndRotation()}function u3(e){e.removeLeadSnapshot()}function By(e,t,r){e.translate=Ae(t.translate,0,r),e.scale=Ae(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function zy(e,t,r,n){e.min=Ae(t.min,r.min,n),e.max=Ae(t.max,r.max,n)}function c3(e,t,r,n){zy(e.x,t.x,r.x,n),zy(e.y,t.y,r.y,n)}function f3(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const d3={duration:.45,ease:[.4,0,.1,1]},jy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Vy=jy("applewebkit/")&&!jy("chrome/")?Math.round:ut;function Hy(e){e.min=Vy(e.min),e.max=Vy(e.max)}function h3(e){Hy(e.x),Hy(e.y)}function Aw(e,t,r){return e==="position"||e==="preserve-aspect"&&!hB(Oy(t),Oy(r),.2)}function p3(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const m3=_w({attachResizeListener:(e,t)=>sn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wd={current:void 0},Rw=_w({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wd.current){const e=new m3({});e.mount(window),e.setOptions({layoutScroll:!0}),wd.current=e}return wd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),g3={pan:{Feature:AB},drag:{Feature:_B,ProjectionNode:Rw,MeasureLayout:ww}};function Uy(e,t){const r=t?"pointerenter":"pointerleave",n=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||dw())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[n];l&&pe.postRender(()=>l(i,s))};return hn(e.current,r,o,{passive:!e.getProps()[n]})}class v3 extends Qn{mount(){this.unmount=dn(Uy(this.node,!0),Uy(this.node,!1))}unmount(){}}class y3 extends Qn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=dn(sn(this.node.current,"focus",()=>this.onFocus()),sn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Iw=(e,t)=>t?e===t?!0:Iw(e,t.parentElement):!1;function Ed(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,uf(r))}class b3 extends Qn{constructor(){super(...arguments),this.removeStartListeners=ut,this.removeEndListeners=ut,this.removeAccessibleListeners=ut,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),i=hn(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:f}=this.node.getProps(),d=!f&&!Iw(this.node.current,a.target)?c:u;d&&pe.update(()=>d(a,l))},{passive:!(n.onTap||n.onPointerUp)}),s=hn(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=dn(i,s),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||Ed("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&pe.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=sn(this.node.current,"keyup",s),Ed("down",(a,l)=>{this.startPress(a,l)})},r=sn(this.node.current,"keydown",t),n=()=>{this.isPressing&&Ed("cancel",(i,s)=>this.cancelPress(i,s))},o=sn(this.node.current,"blur",n);this.removeAccessibleListeners=dn(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&pe.postRender(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!dw()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&pe.postRender(()=>n(t,r))}mount(){const t=this.node.getProps(),r=hn(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=sn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=dn(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const jh=new WeakMap,kd=new WeakMap,S3=e=>{const t=jh.get(e.target);t&&t(e)},x3=e=>{e.forEach(S3)};function w3({root:e,...t}){const r=e||document;kd.has(r)||kd.set(r,{});const n=kd.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(x3,{root:e,...t})),n[o]}function E3(e,t,r){const n=w3(t);return jh.set(e,r),n.observe(e),()=>{jh.delete(e),n.unobserve(e)}}const k3={some:0,all:1};class C3 extends Qn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:k3[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return E3(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(T3(t,r))&&this.startObserver()}unmount(){}}function T3({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const P3={inView:{Feature:C3},tap:{Feature:b3},focus:{Feature:y3},hover:{Feature:v3}},_3={layout:{ProjectionNode:Rw,MeasureLayout:ww}},Km=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),cf=b.createContext({}),Qm=typeof window<"u",Mw=Qm?b.useLayoutEffect:b.useEffect,Lw=b.createContext({strict:!1});function A3(e,t,r,n,o){var i,s;const{visualElement:a}=b.useContext(cf),l=b.useContext(Lw),u=b.useContext(cl),c=b.useContext(Km).reducedMotion,f=b.useRef();n=n||l.renderer,!f.current&&n&&(f.current=n(e,{visualState:t,parent:a,props:r,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const d=f.current,g=b.useContext(xw);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&R3(f.current,r,o,g),b.useInsertionEffect(()=>{d&&d.update(r,u)});const y=r[nw],m=b.useRef(!!y&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,y))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,y)));return Mw(()=>{d&&(window.MotionIsMounted=!0,d.updateFeatures(),Ym.render(d.render),m.current&&d.animationState&&d.animationState.animateChanges())}),b.useEffect(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)===null||S===void 0||S.call(window,y)}),m.current=!1))}),d}function R3(e,t,r,n){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:Ow(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&si(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}function Ow(e){if(e)return e.options.allowProjection!==!1?e.projection:Ow(e.parent)}function I3(e,t,r){return b.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):si(r)&&(r.current=n))},[t])}function ff(e){return ba(e.animate)||Am.some(t=>Sa(e[t]))}function $w(e){return!!(ff(e)||e.variants)}function M3(e,t){if(ff(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Sa(r)?r:void 0,animate:Sa(n)?n:void 0}}return e.inherit!==!1?t:{}}function L3(e){const{initial:t,animate:r}=M3(e,b.useContext(cf));return b.useMemo(()=>({initial:t,animate:r}),[Wy(t),Wy(r)])}function Wy(e){return Array.isArray(e)?e.join(" "):e}const Gy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Wi={};for(const e in Gy)Wi[e]={isEnabled:t=>Gy[e].some(r=>!!t[r])};function O3(e){for(const t in e)Wi[t]={...Wi[t],...e[t]}}const $3=Symbol.for("motionComponentSymbol");function N3({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&O3(e);function i(a,l){let u;const c={...b.useContext(Km),...a,layoutId:D3(a)},{isStatic:f}=c,d=L3(a),g=n(a,f);if(!f&&Qm){F3();const y=B3(c);u=y.MeasureLayout,d.visualElement=A3(o,g,c,t,y.ProjectionNode)}return R.jsxs(cf.Provider,{value:d,children:[u&&d.visualElement?R.jsx(u,{visualElement:d.visualElement,...c}):null,r(o,a,I3(g,d.visualElement,l),g,f,d.visualElement)]})}const s=b.forwardRef(i);return s[$3]=o,s}function D3({layoutId:e}){const t=b.useContext(qm).id;return t&&e!==void 0?t+"-"+e:e}function F3(e,t){b.useContext(Lw).strict}function B3(e){const{drag:t,layout:r}=Wi;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}const z3=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Zm(e){return typeof e!="string"||e.includes("-")?!1:!!(z3.indexOf(e)>-1||/[A-Z]/u.test(e))}function Nw(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const Dw=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Fw(e,t,r,n){Nw(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(Dw.has(o)?o:lf(o),t.attrs[o])}function Bw(e,{layout:t,layoutId:r}){return Kn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!lc[e]||e==="opacity")}function Jm(e,t,r){var n;const{style:o}=e,i={};for(const s in o)(lt(o[s])||t.style&<(t.style[s])||Bw(s,e)||((n=r?.getValue(s))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(i[s]=o[s]);return r&&o&&typeof o.willChange=="string"&&(r.applyWillChange=!1),i}function zw(e,t,r){const n=Jm(e,t,r);for(const o in e)if(lt(e[o])||lt(t[o])){const i=al.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;n[i]=e[o]}return n}function eg(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}function j3(e){if(Kn.has(e))return"transform";if(Jx.has(e))return lf(e)}function V3({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:r,onMount:n},o,i,s,a){const l={latestValues:H3(o,i,s,a?!1:e,t),renderState:r()};return n&&(l.mount=u=>n(o,u,l)),l}const jw=e=>(t,r)=>{const n=b.useContext(cf),o=b.useContext(cl),i=()=>V3(e,t,n,o,r);return r?i():eg(i)};function Xy(e,t,r){const n=Array.isArray(t)?t:[t];for(let o=0;o{for(const h in S){let v=S[h];if(Array.isArray(v)){const w=y?v.length-1:0;v=v[w]}v!==null&&(s[h]=v)}for(const h in p)s[h]=p[h]}),l&&(f&&c!==!1&&!ba(f)&&Xy(e,f,S=>{for(const p in S){const h=j3(p);h&&a.add(h)}}),a.size&&(s.willChange=Array.from(a).join(","))),s}const tg=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Vw=()=>({...tg(),attrs:{}}),Hw=(e,t)=>t&&typeof e=="number"?t.transform(e):e,U3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},W3=al.length;function G3(e,t,r){let n="",o=!0;for(let i=0;itypeof e=="string"&&e.toLowerCase()==="svg",Q3={useVisualState:jw({scrapeMotionValuesFromProps:zw,createRenderState:Vw,onMount:(e,t,{renderState:r,latestValues:n})=>{pe.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),pe.render(()=>{ng(r,n,og(t.tagName),e.transformTemplate),Fw(t,r)})}})},Z3={useVisualState:jw({applyWillChange:!0,scrapeMotionValuesFromProps:Jm,createRenderState:tg})};function Uw(e,t,r){for(const n in t)!lt(t[n])&&!Bw(n,r)&&(e[n]=t[n])}function J3({transformTemplate:e},t){return b.useMemo(()=>{const r=tg();return rg(r,t,e),Object.assign({},r.vars,r.style)},[t])}function ez(e,t){const r=e.style||{},n={};return Uw(n,r,e),Object.assign(n,J3(e,t)),n}function tz(e,t){const r={},n=ez(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const rz=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function uc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rz.has(e)}let Ww=e=>!uc(e);function nz(e){e&&(Ww=t=>t.startsWith("on")?!uc(t):e(t))}try{nz(require("@emotion/is-prop-valid").default)}catch{}function oz(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(Ww(o)||r===!0&&uc(o)||!t&&!uc(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function iz(e,t,r,n){const o=b.useMemo(()=>{const i=Vw();return ng(i,t,og(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Uw(i,e.style,e),o.style={...i,...o.style}}return o}function sz(e=!1){return(r,n,o,{latestValues:i},s)=>{const l=(Zm(r)?iz:tz)(n,i,s,r),u=oz(n,typeof r=="string",e),c=r!==b.Fragment?{...u,...l,ref:o}:{},{children:f}=n,d=b.useMemo(()=>lt(f)?f.get():f,[f]);return b.createElement(r,{...c,children:d})}}function az(e,t){return function(n,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...Zm(n)?Q3:Z3,preloadedFeatures:e,useRender:sz(o),createVisualElement:t,Component:n};return N3(s)}}const Vh={current:null},Gw={current:!1};function lz(){if(Gw.current=!0,!!Qm)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Vh.current=e.matches;e.addListener(t),t()}else Vh.current=!1}function uz(e,t,r){for(const n in t){const o=t[n],i=r[n];if(lt(o))e.addValue(n,o);else if(lt(i))e.addValue(n,Ea(o,{owner:e}));else if(i!==o)if(e.hasValue(n)){const s=e.getValue(n);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(n);e.addValue(n,Ea(s!==void 0?s:o,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const Yy=new WeakMap,cz=[...Nx,st,Gn],fz=e=>cz.find($x(e)),Ky=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class dz{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Om,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=jr.now();this.renderScheduledAtthis.bindToMotionValue(n,r)),Gw.current||lz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Vh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Yy.delete(this.current),this.projection&&this.projection.unmount(),Un(this.notifyUpdate),Un(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=Kn.has(t),o=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&pe.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Wi){const r=Wi[t];if(!r)continue;const{isEnabled:n,Feature:o}=r;if(!this.features[t]&&o&&n(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$e()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Ea(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){var n;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Ix(o)||Rx(o))?o=parseFloat(o):!fz(o)&&Gn.test(r)&&(o=Ux(t,r)),this.setBaseTarget(t,lt(o)?o.get():o)),lt(o)?o.get():o}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const s=Pm(this.props,n,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);s&&(o=s[t])}if(n&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!lt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Xm),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class Xw extends dz{constructor(){super(...arguments),this.KeyframeResolver=Wx}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}}function hz(e){return window.getComputedStyle(e)}class pz extends Xw{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=Nw}readValueFromInstance(t,r){if(Kn.has(r)){const n=Fm(r);return n&&n.default||0}else{const n=hz(t),o=(Lx(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return yw(t,r)}build(t,r,n){rg(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return Jm(t,r,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;lt(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class mz extends Xw{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$e}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Kn.has(r)){const n=Fm(r);return n&&n.default||0}return r=Dw.has(r)?r:lf(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return zw(t,r,n)}build(t,r,n){ng(t,r,this.isSVGTag,n.transformTemplate)}renderInstance(t,r,n,o){Fw(t,r,n,o)}mount(t){this.isSVGTag=og(t.tagName),super.mount(t)}}const gz=(e,t)=>Zm(e)?new mz(t):new pz(t,{allowProjection:e!==b.Fragment}),vz=az({...oB,...P3,...g3,..._3},gz),fl=KD(vz);class yz extends b.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function bz({children:e,isPresent:t}){const r=b.useId(),n=b.useRef(null),o=b.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=b.useContext(Km);return b.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:u}=o.current;if(t||!n.current||!s||!a)return;n.current.dataset.motionPopId=r;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` - [data-motion-pop-id="${r}"] { - position: absolute !important; - width: ${s}px !important; - height: ${a}px !important; - top: ${l}px !important; - left: ${u}px !important; - } - `),()=>{document.head.removeChild(c)}},[t]),R.jsx(yz,{isPresent:t,childRef:n,sizeRef:o,children:b.cloneElement(e,{ref:n})})}const Sz=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=eg(xz),l=b.useId(),u=b.useCallback(f=>{a.set(f,!0);for(const d of a.values())if(!d)return;n&&n()},[a,n]),c=b.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:u,register:f=>(a.set(f,!1),()=>a.delete(f))}),i?[Math.random(),u]:[r,u]);return b.useMemo(()=>{a.forEach((f,d)=>a.set(d,!1))},[r]),b.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),s==="popLayout"&&(e=R.jsx(bz,{isPresent:r,children:e})),R.jsx(cl.Provider,{value:c,children:e})};function xz(){return new Map}const Xl=e=>e.key||"";function Qy(e){const t=[];return b.Children.forEach(e,r=>{b.isValidElement(r)&&t.push(r)}),t}const dl=({children:e,exitBeforeEnter:t,custom:r,initial:n=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=b.useMemo(()=>Qy(e),[e]),l=a.map(Xl),u=b.useRef(!0),c=b.useRef(a),f=eg(()=>new Map),[d,g]=b.useState(a),[y,m]=b.useState(a);Mw(()=>{u.current=!1,c.current=a;for(let h=0;h{const v=Xl(h),w=a===y||l.includes(v),E=()=>{if(f.has(v))f.set(v,!0);else return;let P=!0;f.forEach(T=>{T||(P=!1)}),P&&(p?.(),m(c.current),o&&o())};return R.jsx(Sz,{isPresent:w,initial:!u.current||n?void 0:!1,custom:w?void 0:r,presenceAffectsLayout:i,mode:s,onExitComplete:w?void 0:E,children:h},v)})})},wz=(e,t)=>e.find(r=>r.id===t);function Zy(e,t){const r=qw(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function qw(e,t){for(const[r,n]of Object.entries(e))if(wz(n,t))return r}function Ez(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function kz(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:o,right:i,left:s}}var Cz=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Tz=nx(function(e){return Cz.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Pz=Tz,_z=function(t){return t!=="theme"},Jy=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Pz:_z},eb=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Az=!1,Rz=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return cx(r,n,o),ID(function(){return fx(r,n,o)}),null},Iz=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var a=eb(t,r,n),l=a||Jy(o),u=!l("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var d=c.length,g=1;gt=>{const{theme:r,css:n,__css:o,sx:i,...s}=t,[a]=hA(s,r.__isStyleProp),l=Dr(e,t),u=q_({},o,l,TS(a),i),c=NS(u)(t.theme);return n?[c,n]:c};function Cd(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=$z);const o=Dz({baseStyle:r}),i=Nz(e,n)(o);return b.forwardRef(function(l,u){const{children:c,...f}=l,{colorMode:d,forced:g}=Tm(),y=g?d:void 0;return b.createElement(i,{ref:u,"data-theme":y,...f},c)})}function Fz(){const e=new Map;return new Proxy(Cd,{apply(t,r,n){return Cd(...n)},get(t,r){return e.has(r)||e.set(r,Cd(r)),e.get(r)}})}const Re=Fz(),Bz={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Yw=b.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=Bz,toastSpacing:c="0.5rem"}=e,[f,d]=b.useState(a),g=RB();fv(()=>{g||n?.()},[g]),fv(()=>{d(a)},[a]);const y=()=>d(null),m=()=>d(a),S=()=>{g&&o()};b.useEffect(()=>{g&&i&&o()},[g,i,o]),vA(S,f);const p=b.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=b.useMemo(()=>Ez(s),[s]);return R.jsx(fl.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:y,onHoverEnd:m,custom:{position:s},style:h,children:R.jsx(Re.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:p,children:Dr(r,{id:t,onClose:S})})})});Yw.displayName="ToastComponent";function cr(e){return b.forwardRef(e)}var zz=typeof Element<"u",jz=typeof Map=="function",Vz=typeof Set=="function",Hz=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ou(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Ou(e[n],t[n]))return!1;return!0}var i;if(jz&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!Ou(n.value[1],t.get(n.value[0])))return!1;return!0}if(Vz&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Hz&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(zz&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!Ou(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var Uz=function(t,r){try{return Ou(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Wz=Yp(Uz);function ig(){const e=b.useContext(ya);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function Gz(){const e=Tm(),t=ig();return{...e,theme:t}}function Kw(e,t={}){const{styleConfig:r,...n}=t,{theme:o,colorMode:i}=Gz(),s=e?AS(o,`components.${e}`):void 0,a=r||s,l=tr({theme:o,colorMode:i},a?.defaultProps??{},TS(cm(n,["children"])),(c,f)=>c?void 0:f),u=b.useRef({});if(a){const f=cR(a)(l);Wz(u.current,f)||(u.current=f)}return u.current}function hl(e,t={}){return Kw(e,t)}function Qw(e,t={}){return Kw(e,t)}const tb={path:R.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[R.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),R.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),R.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},pl=cr((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=Cr("chakra-icon",a),f=hl("Icon",e),d={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...f},g={ref:t,focusable:i,className:c,__css:d},y=n??tb.viewBox;if(r&&typeof r!="string")return R.jsx(Re.svg,{as:r,...g,...u});const m=s??tb.path;return R.jsx(Re.svg,{verticalAlign:"middle",viewBox:y,...g,...u,children:m})});pl.displayName="Icon";function Xz(e){return R.jsx(pl,{viewBox:"0 0 24 24",...e,children:R.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function qz(e){return R.jsx(pl,{viewBox:"0 0 24 24",...e,children:R.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function rb(e){return R.jsx(pl,{viewBox:"0 0 24 24",...e,children:R.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const Yz=DD({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Zw=cr((e,t)=>{const r=hl("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=nl(e),u=Cr("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${Yz} ${i} linear infinite`,...r};return R.jsx(Re.div,{ref:t,__css:c,className:u,...l,children:n&&R.jsx(Re.span,{srOnly:!0,children:n})})});Zw.displayName="Spinner";const[Kz,sg]=xn({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[Qz,ag]=xn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),Jw={info:{icon:qz,colorScheme:"blue"},warning:{icon:rb,colorScheme:"orange"},success:{icon:Xz,colorScheme:"green"},error:{icon:rb,colorScheme:"red"},loading:{icon:Zw,colorScheme:"blue"}};function Zz(e){return Jw[e].colorScheme}function Jz(e){return Jw[e].icon}const lg=cr(function(t,r){const{status:n="info",addRole:o=!0,...i}=nl(t),s=t.colorScheme??Zz(n),a=Qw("Alert",{...t,colorScheme:s}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return R.jsx(Kz,{value:{status:n},children:R.jsx(Qz,{value:a,children:R.jsx(Re.div,{"data-status":n,role:o?"alert":void 0,ref:r,...i,className:Cr("chakra-alert",t.className),__css:l})})})});lg.displayName="Alert";function ug(e){const{status:t}=sg(),r=Jz(t),n=ag(),o=t==="loading"?n.spinner:n.icon;return R.jsx(Re.span,{display:"inherit","data-status":t,...e,className:Cr("chakra-alert__icon",e.className),__css:o,children:e.children||R.jsx(r,{h:"100%",w:"100%"})})}ug.displayName="AlertIcon";const cg=cr(function(t,r){const n=ag(),{status:o}=sg();return R.jsx(Re.div,{ref:r,"data-status":o,...t,className:Cr("chakra-alert__title",t.className),__css:n.title})});cg.displayName="AlertTitle";const fg=cr(function(t,r){const{status:n}=sg(),o=ag(),i={display:"inline",...o.description};return R.jsx(Re.div,{ref:r,"data-status":n,...t,className:Cr("chakra-alert__desc",t.className),__css:i})});fg.displayName="AlertDescription";function e4(e){return R.jsx(pl,{focusable:"false","aria-hidden":!0,...e,children:R.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const eE=cr(function(t,r){const n=hl("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=nl(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return R.jsx(Re.button,{type:"button","aria-label":"Close",ref:r,disabled:i,__css:{...l,...n,...s},...a,children:o||R.jsx(e4,{width:"1em",height:"1em"})})});eE.displayName="CloseButton";const t4=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:u}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return R.jsxs(lg,{addRole:!1,status:t,variant:r,id:c?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[R.jsx(ug,{children:u}),R.jsxs(Re.div,{flex:"1",maxWidth:"100%",children:[o&&R.jsx(cg,{id:c?.title,children:o}),a&&R.jsx(fg,{id:c?.description,display:"block",children:a})]}),i&&R.jsx(eE,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function r4(e={}){const{render:t,toastComponent:r=t4}=e;return o=>typeof t=="function"?t({...o,...e}):R.jsx(r,{...o,...e})}const n4={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Zs=o4(n4);function o4(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,i)=>{n(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=i4(o,i),{position:a,id:l}=s;return n(u=>{const f=a.includes("top")?[s,...u[a]??[]]:[...u[a]??[],s];return{...u,[a]:f}}),l},update:(o,i)=>{o&&n(s=>{const a={...s},{position:l,index:u}=Zy(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:r4(i)}),a})},closeAll:({positions:o}={})=>{n(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=i[u].map(c=>({...c,requestClose:!0})),l),{...i}))},close:o=>{n(i=>{const s=qw(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!Zy(Zs.getState(),o).position}}let nb=0;function i4(e,t={}){nb+=1;const r=t.id??nb,n=t.position??"bottom";return{id:r,message:e,position:n,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Zs.removeToast(String(r),n),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var tE={exports:{}},Gt={},rE={exports:{}},nE={};/** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */(function(e){function t(O,$){var B=O.length;O.push($);e:for(;0>>1,K=O[Y];if(0>>1;Yo(me,B))keo(Ye,me)?(O[Y]=Ye,O[ke]=B,Y=ke):(O[Y]=me,O[Ee]=B,Y=Ee);else if(keo(Ye,B))O[Y]=Ye,O[ke]=B,Y=ke;else break e}}return $}function o(O,$){var B=O.sortIndex-$.sortIndex;return B!==0?B:O.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,g=!1,y=!1,m=!1,S=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(O){for(var $=r(u);$!==null;){if($.callback===null)n(u);else if($.startTime<=O)n(u),$.sortIndex=$.expirationTime,t(l,$);else break;$=r(u)}}function w(O){if(m=!1,v(O),!y)if(r(l)!==null)y=!0,ce(E);else{var $=r(u);$!==null&&G(w,$.startTime-O)}}function E(O,$){y=!1,m&&(m=!1,p(A),A=-1),g=!0;var B=d;try{for(v($),f=r(l);f!==null&&(!(f.expirationTime>$)||O&&!z());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,d=f.priorityLevel;var K=Y(f.expirationTime<=$);$=e.unstable_now(),typeof K=="function"?f.callback=K:f===r(l)&&n(l),v($)}else n(l);f=r(l)}if(f!==null)var X=!0;else{var Ee=r(u);Ee!==null&&G(w,Ee.startTime-$),X=!1}return X}finally{f=null,d=B,g=!1}}var P=!1,T=null,A=-1,M=5,I=-1;function z(){return!(e.unstable_now()-IO||125Y?(O.sortIndex=B,t(u,O),r(l)===null&&O===r(u)&&(m?(p(A),A=-1):m=!0,G(w,B-Y))):(O.sortIndex=K,t(l,O),y||g||(y=!0,ce(E))),O},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(O){var $=d;return function(){var B=d;d=$;try{return O.apply(this,arguments)}finally{d=B}}}})(nE);rE.exports=nE;var s4=rE.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var a4=b,Ht=s4;function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uh=Object.prototype.hasOwnProperty,l4=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ob={},ib={};function u4(e){return Uh.call(ib,e)?!0:Uh.call(ob,e)?!1:l4.test(e)?ib[e]=!0:(ob[e]=!0,!1)}function c4(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function f4(e,t,r,n){if(t===null||typeof t>"u"||c4(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Et(e,t,r,n,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){rt[e]=new Et(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];rt[t]=new Et(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){rt[e]=new Et(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){rt[e]=new Et(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){rt[e]=new Et(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){rt[e]=new Et(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){rt[e]=new Et(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){rt[e]=new Et(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){rt[e]=new Et(e,5,!1,e.toLowerCase(),null,!1,!1)});var dg=/[\-:]([a-z])/g;function hg(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(dg,hg);rt[t]=new Et(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(dg,hg);rt[t]=new Et(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(dg,hg);rt[t]=new Et(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){rt[e]=new Et(e,1,!1,e.toLowerCase(),null,!1,!1)});rt.xlinkHref=new Et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){rt[e]=new Et(e,1,!1,e.toLowerCase(),null,!0,!0)});function pg(e,t,r,n){var o=rt.hasOwnProperty(t)?rt[t]:null;(o!==null?o.type!==0:n||!(2a||o[s]!==i[a]){var l=` -`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Pd=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ds(e):""}function d4(e){switch(e.tag){case 5:return Ds(e.type);case 16:return Ds("Lazy");case 13:return Ds("Suspense");case 19:return Ds("SuspenseList");case 0:case 2:case 15:return e=_d(e.type,!1),e;case 11:return e=_d(e.type.render,!1),e;case 1:return e=_d(e.type,!0),e;default:return""}}function qh(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fi:return"Fragment";case ci:return"Portal";case Wh:return"Profiler";case mg:return"StrictMode";case Gh:return"Suspense";case Xh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case sE:return(e.displayName||"Context")+".Consumer";case iE:return(e._context.displayName||"Context")+".Provider";case gg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vg:return t=e.displayName||null,t!==null?t:qh(e.type)||"Memo";case An:t=e._payload,e=e._init;try{return qh(e(t))}catch{}}return null}function h4(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return qh(t);case 8:return t===mg?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Xn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function p4(e){var t=lE(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yl(e){e._valueTracker||(e._valueTracker=p4(e))}function uE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=lE(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function cc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Yh(e,t){var r=t.checked;return Me({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function ab(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Xn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function cE(e,t){t=t.checked,t!=null&&pg(e,"checked",t,!1)}function Kh(e,t){cE(e,t);var r=Xn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Qh(e,t.type,r):t.hasOwnProperty("defaultValue")&&Qh(e,t.type,Xn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function lb(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Qh(e,t,r){(t!=="number"||cc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Fs=Array.isArray;function _i(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Kl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ca(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Js={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},m4=["Webkit","ms","Moz","O"];Object.keys(Js).forEach(function(e){m4.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Js[t]=Js[e]})});function pE(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Js.hasOwnProperty(e)&&Js[e]?(""+t).trim():t+"px"}function mE(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=pE(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var g4=Me({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ep(e,t){if(t){if(g4[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function tp(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var rp=null;function yg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var np=null,Ai=null,Ri=null;function fb(e){if(e=vl(e)){if(typeof np!="function")throw Error(L(280));var t=e.stateNode;t&&(t=gf(t),np(e.stateNode,e.type,t))}}function gE(e){Ai?Ri?Ri.push(e):Ri=[e]:Ai=e}function vE(){if(Ai){var e=Ai,t=Ri;if(Ri=Ai=null,fb(e),t)for(e=0;e>>=0,e===0?32:31-(P4(e)/_4|0)|0}var Ql=64,Zl=4194304;function Bs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pc(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~o;a!==0?n=Bs(a):(i&=s,i!==0&&(n=Bs(i)))}else s=r&~o,s!==0?n=Bs(s):i!==0&&(n=Bs(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function ml(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xr(t),e[t]=r}function M4(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=ta),Sb=" ",xb=!1;function DE(e,t){switch(e){case"keyup":return sj.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function FE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var di=!1;function lj(e,t){switch(e){case"compositionend":return FE(t);case"keypress":return t.which!==32?null:(xb=!0,Sb);case"textInput":return e=t.data,e===Sb&&xb?null:e;default:return null}}function uj(e,t){if(di)return e==="compositionend"||!Tg&&DE(e,t)?(e=$E(),Nu=Eg=On=null,di=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Cb(r)}}function VE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?VE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function HE(){for(var e=window,t=cc();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=cc(e.document)}return t}function Pg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function yj(e){var t=HE(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&VE(r.ownerDocument.documentElement,r)){if(n!==null&&Pg(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Tb(r,i);var s=Tb(r,n);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,hi=null,up=null,na=null,cp=!1;function Pb(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;cp||hi==null||hi!==cc(n)||(n=hi,"selectionStart"in n&&Pg(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),na&&Ia(na,n)||(na=n,n=vc(up,"onSelect"),0gi||(e.current=gp[gi],gp[gi]=null,gi--)}function ve(e,t){gi++,gp[gi]=e.current,e.current=t}var qn={},ct=Jn(qn),_t=Jn(!1),Lo=qn;function Xi(e,t){var r=e.type.contextTypes;if(!r)return qn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function At(e){return e=e.childContextTypes,e!=null}function bc(){we(_t),we(ct)}function Ob(e,t,r){if(ct.current!==qn)throw Error(L(168));ve(ct,t),ve(_t,r)}function ZE(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(L(108,h4(e)||"Unknown",o));return Me({},r,n)}function Sc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qn,Lo=ct.current,ve(ct,e),ve(_t,_t.current),!0}function $b(e,t,r){var n=e.stateNode;if(!n)throw Error(L(169));r?(e=ZE(e,t,Lo),n.__reactInternalMemoizedMergedChildContext=e,we(_t),we(ct),ve(ct,e)):we(_t),ve(_t,r)}var Zr=null,vf=!1,Vd=!1;function JE(e){Zr===null?Zr=[e]:Zr.push(e)}function Rj(e){vf=!0,JE(e)}function eo(){if(!Vd&&Zr!==null){Vd=!0;var e=0,t=de;try{var r=Zr;for(de=1;e>=s,o-=s,an=1<<32-xr(t)+o|r<A?(M=T,T=null):M=T.sibling;var I=d(p,T,v[A],w);if(I===null){T===null&&(T=M);break}e&&T&&I.alternate===null&&t(p,T),h=i(I,h,A),P===null?E=I:P.sibling=I,P=I,T=M}if(A===v.length)return r(p,T),Pe&&po(p,A),E;if(T===null){for(;AA?(M=T,T=null):M=T.sibling;var z=d(p,T,I.value,w);if(z===null){T===null&&(T=M);break}e&&T&&z.alternate===null&&t(p,T),h=i(z,h,A),P===null?E=z:P.sibling=z,P=z,T=M}if(I.done)return r(p,T),Pe&&po(p,A),E;if(T===null){for(;!I.done;A++,I=v.next())I=f(p,I.value,w),I!==null&&(h=i(I,h,A),P===null?E=I:P.sibling=I,P=I);return Pe&&po(p,A),E}for(T=n(p,T);!I.done;A++,I=v.next())I=g(T,p,A,I.value,w),I!==null&&(e&&I.alternate!==null&&T.delete(I.key===null?A:I.key),h=i(I,h,A),P===null?E=I:P.sibling=I,P=I);return e&&T.forEach(function(ue){return t(p,ue)}),Pe&&po(p,A),E}function S(p,h,v,w){if(typeof v=="object"&&v!==null&&v.type===fi&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ql:e:{for(var E=v.key,P=h;P!==null;){if(P.key===E){if(E=v.type,E===fi){if(P.tag===7){r(p,P.sibling),h=o(P,v.props.children),h.return=p,p=h;break e}}else if(P.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===An&&Fb(E)===P.type){r(p,P.sibling),h=o(P,v.props),h.ref=Es(p,P,v),h.return=p,p=h;break e}r(p,P);break}else t(p,P);P=P.sibling}v.type===fi?(h=Po(v.props.children,p.mode,w,v.key),h.return=p,p=h):(w=Uu(v.type,v.key,v.props,null,p.mode,w),w.ref=Es(p,h,v),w.return=p,p=w)}return s(p);case ci:e:{for(P=v.key;h!==null;){if(h.key===P)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){r(p,h.sibling),h=o(h,v.children||[]),h.return=p,p=h;break e}else{r(p,h);break}else t(p,h);h=h.sibling}h=Kd(v,p.mode,w),h.return=p,p=h}return s(p);case An:return P=v._init,S(p,h,P(v._payload),w)}if(Fs(v))return y(p,h,v,w);if(ys(v))return m(p,h,v,w);iu(p,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(r(p,h.sibling),h=o(h,v),h.return=p,p=h):(r(p,h),h=Yd(v,p.mode,w),h.return=p,p=h),s(p)):r(p,h)}return S}var Yi=nk(!0),ok=nk(!1),Ec=Jn(null),kc=null,bi=null,Ig=null;function Mg(){Ig=bi=kc=null}function Lg(e){var t=Ec.current;we(Ec),e._currentValue=t}function bp(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Mi(e,t){kc=e,Ig=bi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pt=!0),e.firstContext=null)}function ir(e){var t=e._currentValue;if(Ig!==e)if(e={context:e,memoizedValue:t,next:null},bi===null){if(kc===null)throw Error(L(308));bi=e,kc.dependencies={lanes:0,firstContext:e}}else bi=bi.next=e;return t}var So=null;function Og(e){So===null?So=[e]:So.push(e)}function ik(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,Og(t)):(r.next=o.next,o.next=r),t.interleaved=r,yn(e,n)}function yn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Rn=!1;function $g(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function sk(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function pn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,te&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,yn(e,r)}return o=n.interleaved,o===null?(t.next=t,Og(n)):(t.next=o.next,o.next=t),n.interleaved=t,yn(e,r)}function Fu(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Sg(e,r)}}function Bb(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=s:i=i.next=s,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Cc(e,t,r,n){var o=e.updateQueue;Rn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;s=0,c=u=l=null,a=i;do{var d=a.lane,g=a.eventTime;if((n&d)===d){c!==null&&(c=c.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,m=a;switch(d=t,g=r,m.tag){case 1:if(y=m.payload,typeof y=="function"){f=y.call(g,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=m.payload,d=typeof y=="function"?y.call(g,f,d):y,d==null)break e;f=Me({},f,d);break e;case 2:Rn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[a]:d.push(a))}else g={eventTime:g,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=g,l=f):c=c.next=g,s|=d;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;d=a,a=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(c===null&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);No|=s,e.lanes=s,e.memoizedState=f}}function zb(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=Ud.transition;Ud.transition={};try{e(!1),t()}finally{de=r,Ud.transition=n}}function Ek(){return sr().memoizedState}function Oj(e,t,r){var n=Vn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},kk(e))Ck(t,r);else if(r=ik(e,t,r,n),r!==null){var o=xt();wr(r,e,n,o),Tk(r,t,n)}}function $j(e,t,r){var n=Vn(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(kk(e))Ck(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,r);if(o.hasEagerState=!0,o.eagerState=a,Er(a,s)){var l=t.interleaved;l===null?(o.next=o,Og(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=ik(e,t,o,n),r!==null&&(o=xt(),wr(r,e,n,o),Tk(r,t,n))}}function kk(e){var t=e.alternate;return e===Ie||t!==null&&t===Ie}function Ck(e,t){oa=Pc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Tk(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Sg(e,r)}}var _c={readContext:ir,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useInsertionEffect:nt,useLayoutEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useMutableSource:nt,useSyncExternalStore:nt,useId:nt,unstable_isNewReconciler:!1},Nj={readContext:ir,useCallback:function(e,t){return Mr().memoizedState=[e,t===void 0?null:t],e},useContext:ir,useEffect:Vb,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,zu(4194308,4,yk.bind(null,t,e),r)},useLayoutEffect:function(e,t){return zu(4194308,4,e,t)},useInsertionEffect:function(e,t){return zu(4,2,e,t)},useMemo:function(e,t){var r=Mr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Mr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Oj.bind(null,Ie,e),[n.memoizedState,e]},useRef:function(e){var t=Mr();return e={current:e},t.memoizedState=e},useState:jb,useDebugValue:Hg,useDeferredValue:function(e){return Mr().memoizedState=e},useTransition:function(){var e=jb(!1),t=e[0];return e=Lj.bind(null,e[1]),Mr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ie,o=Mr();if(Pe){if(r===void 0)throw Error(L(407));r=r()}else{if(r=t(),Ge===null)throw Error(L(349));$o&30||ck(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Vb(dk.bind(null,n,i,e),[e]),n.flags|=2048,Ba(9,fk.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Mr(),t=Ge.identifierPrefix;if(Pe){var r=ln,n=an;r=(n&~(1<<32-xr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Da++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[Nr]=t,e[Oa]=n,Nk(e,t,!1,!1),t.stateNode=e;e:{switch(s=tp(r,n),r){case"dialog":be("cancel",e),be("close",e),o=n;break;case"iframe":case"object":case"embed":be("load",e),o=n;break;case"video":case"audio":for(o=0;oZi&&(t.flags|=128,n=!0,ks(i,!1),t.lanes=4194304)}else{if(!n)if(e=Tc(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ks(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Pe)return ot(t),null}else 2*Ne()-i.renderingStartTime>Zi&&r!==1073741824&&(t.flags|=128,n=!0,ks(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(r=i.last,r!==null?r.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ne(),t.sibling=null,r=_e.current,ve(_e,n?r&1|2:r&1),t):(ot(t),null);case 22:case 23:return Yg(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Dt&1073741824&&(ot(t),t.subtreeFlags&6&&(t.flags|=8192)):ot(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function Uj(e,t){switch(Ag(t),t.tag){case 1:return At(t.type)&&bc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ki(),we(_t),we(ct),Fg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Dg(t),null;case 13:if(we(_e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(_e),null;case 4:return Ki(),null;case 10:return Lg(t.type._context),null;case 22:case 23:return Yg(),null;case 24:return null;default:return null}}var au=!1,at=!1,Wj=typeof WeakSet=="function"?WeakSet:Set,N=null;function Si(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Oe(e,t,n)}else r.current=null}function _p(e,t,r){try{r()}catch(n){Oe(e,t,n)}}var Jb=!1;function Gj(e,t){if(fp=mc,e=HE(),Pg(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var g;f!==r||o!==0&&f.nodeType!==3||(a=s+o),f!==i||n!==0&&f.nodeType!==3||(l=s+n),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)d=f,f=g;for(;;){if(f===e)break t;if(d===r&&++u===o&&(a=s),d===i&&++c===n&&(l=s),(g=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=g}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(dp={focusedElem:e,selectionRange:r},mc=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var m=y.memoizedProps,S=y.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?m:vr(t.type,m),S);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(w){Oe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return y=Jb,Jb=!1,y}function ia(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&_p(t,r,i)}o=o.next}while(o!==n)}}function Sf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Ap(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Bk(e){var t=e.alternate;t!==null&&(e.alternate=null,Bk(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Nr],delete t[Oa],delete t[mp],delete t[_j],delete t[Aj])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function zk(e){return e.tag===5||e.tag===3||e.tag===4}function e1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zk(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Rp(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=yc));else if(n!==4&&(e=e.child,e!==null))for(Rp(e,t,r),e=e.sibling;e!==null;)Rp(e,t,r),e=e.sibling}function Ip(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Ip(e,t,r),e=e.sibling;e!==null;)Ip(e,t,r),e=e.sibling}var Qe=null,yr=!1;function Pn(e,t,r){for(r=r.child;r!==null;)jk(e,t,r),r=r.sibling}function jk(e,t,r){if(Vr&&typeof Vr.onCommitFiberUnmount=="function")try{Vr.onCommitFiberUnmount(df,r)}catch{}switch(r.tag){case 5:at||Si(r,t);case 6:var n=Qe,o=yr;Qe=null,Pn(e,t,r),Qe=n,yr=o,Qe!==null&&(yr?(e=Qe,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Qe.removeChild(r.stateNode));break;case 18:Qe!==null&&(yr?(e=Qe,r=r.stateNode,e.nodeType===8?jd(e.parentNode,r):e.nodeType===1&&jd(e,r),Aa(e)):jd(Qe,r.stateNode));break;case 4:n=Qe,o=yr,Qe=r.stateNode.containerInfo,yr=!0,Pn(e,t,r),Qe=n,yr=o;break;case 0:case 11:case 14:case 15:if(!at&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&_p(r,t,s),o=o.next}while(o!==n)}Pn(e,t,r);break;case 1:if(!at&&(Si(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Oe(r,t,a)}Pn(e,t,r);break;case 21:Pn(e,t,r);break;case 22:r.mode&1?(at=(n=at)||r.memoizedState!==null,Pn(e,t,r),at=n):Pn(e,t,r);break;default:Pn(e,t,r)}}function t1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Wj),t.forEach(function(n){var o=tV.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function gr(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=s),n&=~i}if(n=o,n=Ne()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*qj(n/1960))-n,10e?16:e,$n===null)var n=!1;else{if(e=$n,$n=null,Ic=0,te&6)throw Error(L(331));var o=te;for(te|=4,N=e.current;N!==null;){var i=N,s=i.child;if(N.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lNe()-Xg?To(e,0):Gg|=r),Rt(e,t)}function Yk(e,t){t===0&&(e.mode&1?(t=Zl,Zl<<=1,!(Zl&130023424)&&(Zl=4194304)):t=1);var r=xt();e=yn(e,t),e!==null&&(ml(e,t,r),Rt(e,r))}function eV(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Yk(e,r)}function tV(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(L(314))}n!==null&&n.delete(t),Yk(e,r)}var Kk;Kk=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||_t.current)Pt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Pt=!1,Vj(e,t,r);Pt=!!(e.flags&131072)}else Pt=!1,Pe&&t.flags&1048576&&ek(t,wc,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ju(e,t),e=t.pendingProps;var o=Xi(t,ct.current);Mi(t,r),o=zg(null,t,n,e,o,r);var i=jg();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,At(n)?(i=!0,Sc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,$g(t),o.updater=bf,t.stateNode=o,o._reactInternals=t,xp(t,n,e,r),t=kp(null,t,n,!0,i,r)):(t.tag=0,Pe&&i&&_g(t),pt(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ju(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=nV(n),e=vr(n,e),o){case 0:t=Ep(null,t,n,e,r);break e;case 1:t=Kb(null,t,n,e,r);break e;case 11:t=qb(null,t,n,e,r);break e;case 14:t=Yb(null,t,n,vr(n.type,e),r);break e}throw Error(L(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:vr(n,o),Ep(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:vr(n,o),Kb(e,t,n,o,r);case 3:e:{if(Lk(t),e===null)throw Error(L(387));n=t.pendingProps,i=t.memoizedState,o=i.element,sk(e,t),Cc(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Qi(Error(L(423)),t),t=Qb(e,t,n,r,o);break e}else if(n!==o){o=Qi(Error(L(424)),t),t=Qb(e,t,n,r,o);break e}else for(Ft=Bn(t.stateNode.containerInfo.firstChild),jt=t,Pe=!0,br=null,r=ok(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(qi(),n===o){t=bn(e,t,r);break e}pt(e,t,n,r)}t=t.child}return t;case 5:return ak(t),e===null&&yp(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,hp(n,o)?s=null:i!==null&&hp(n,i)&&(t.flags|=32),Mk(e,t),pt(e,t,s,r),t.child;case 6:return e===null&&yp(t),null;case 13:return Ok(e,t,r);case 4:return Ng(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Yi(t,null,n,r):pt(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:vr(n,o),qb(e,t,n,o,r);case 7:return pt(e,t,t.pendingProps,r),t.child;case 8:return pt(e,t,t.pendingProps.children,r),t.child;case 12:return pt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ve(Ec,n._currentValue),n._currentValue=s,i!==null)if(Er(i.value,s)){if(i.children===o.children&&!_t.current){t=bn(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=pn(-1,r&-r),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),bp(i.return,r,t),a.lanes|=r;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(L(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),bp(s,r,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}pt(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Mi(t,r),o=ir(o),n=n(o),t.flags|=1,pt(e,t,n,r),t.child;case 14:return n=t.type,o=vr(n,t.pendingProps),o=vr(n.type,o),Yb(e,t,n,o,r);case 15:return Rk(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:vr(n,o),ju(e,t),t.tag=1,At(n)?(e=!0,Sc(t)):e=!1,Mi(t,r),Pk(t,n,o),xp(t,n,o,r),kp(null,t,n,!0,e,r);case 19:return $k(e,t,r);case 22:return Ik(e,t,r)}throw Error(L(156,t.tag))};function Qk(e,t){return kE(e,t)}function rV(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rr(e,t,r,n){return new rV(e,t,r,n)}function Qg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nV(e){if(typeof e=="function")return Qg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gg)return 11;if(e===vg)return 14}return 2}function Hn(e,t){var r=e.alternate;return r===null?(r=rr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Uu(e,t,r,n,o,i){var s=2;if(n=e,typeof e=="function")Qg(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case fi:return Po(r.children,o,i,t);case mg:s=8,o|=8;break;case Wh:return e=rr(12,r,t,o|2),e.elementType=Wh,e.lanes=i,e;case Gh:return e=rr(13,r,t,o),e.elementType=Gh,e.lanes=i,e;case Xh:return e=rr(19,r,t,o),e.elementType=Xh,e.lanes=i,e;case aE:return wf(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case iE:s=10;break e;case sE:s=9;break e;case gg:s=11;break e;case vg:s=14;break e;case An:s=16,n=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=rr(s,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Po(e,t,r,n){return e=rr(7,e,n,t),e.lanes=r,e}function wf(e,t,r,n){return e=rr(22,e,n,t),e.elementType=aE,e.lanes=r,e.stateNode={isHidden:!1},e}function Yd(e,t,r){return e=rr(6,e,null,t),e.lanes=r,e}function Kd(e,t,r){return t=rr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oV(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Rd(0),this.expirationTimes=Rd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rd(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Zg(e,t,r,n,o,i,s,a,l){return e=new oV(e,t,r,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=rr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},$g(i),e}function iV(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tC)}catch(e){console.error(e)}}tC(),tE.exports=Gt;var r0=tE.exports;const[rC,cV]=xn({strict:!1,name:"PortalContext"}),n0="chakra-portal",fV=".chakra-portal",dV=e=>R.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),hV=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=b.useState(null),i=b.useRef(null),[,s]=b.useState({});b.useEffect(()=>s({}),[]);const a=cV(),l=YD();mh(()=>{if(!n)return;const c=n.ownerDocument,f=t?a??c.body:c.body;if(!f)return;i.current=c.createElement("div"),i.current.className=n0,f.appendChild(i.current),s({});const d=i.current;return()=>{f.contains(d)&&f.removeChild(d)}},[n]);const u=l?.zIndex?R.jsx(dV,{zIndex:l?.zIndex,children:r}):r;return i.current?r0.createPortal(R.jsx(rC,{value:i.current,children:u}),i.current):R.jsx("span",{ref:c=>{c&&o(c)}})},pV=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,i=o??(typeof window<"u"?document.body:void 0),s=b.useMemo(()=>{const l=o?.ownerDocument.createElement("div");return l&&(l.className=n0),l},[o]),[,a]=b.useState({});return mh(()=>a({}),[]),mh(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?r0.createPortal(R.jsx(rC,{value:n?s:null,children:t}),s):null};function Ho(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?R.jsx(pV,{containerRef:r,...n}):R.jsx(hV,{...n})}Ho.className=n0;Ho.selector=fV;Ho.displayName="Portal";const[mV,G9]=xn({name:"ToastOptionsContext",strict:!1}),gV=e=>{const t=b.useSyncExternalStore(Zs.subscribe,Zs.getState,Zs.getState),{motionVariants:r,component:n=Yw,portalProps:o,animatePresenceProps:i}=e,a=Object.keys(t).map(l=>{const u=t[l];return R.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,id:`chakra-toast-manager-${l}`,style:kz(l),children:R.jsx(dl,{...i,initial:!1,children:u.map(c=>R.jsx(n,{motionVariants:r,...c},c.id))})},l)});return R.jsx(Ho,{...o,children:a})},u1={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Ts={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function X9(e){switch(e?.direction??"right"){case"right":return Ts.slideRight;case"left":return Ts.slideLeft;case"bottom":return Ts.slideDown;case"top":return Ts.slideUp;default:return Ts.slideRight}}const la={enter:{duration:.2,ease:u1.easeOut},exit:{duration:.1,ease:u1.easeIn}},ua={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},nC=Re("div");nC.displayName="Box";function js(e){return typeof e=="function"}function vV(...e){return t=>e.reduce((r,n)=>n(r),t)}const yV=e=>function(...r){let n=[...r],o=r[r.length-1];return $N(o)&&n.length>1?n=n.slice(0,n.length-1):o=e,vV(...n.map(i=>s=>js(i)?i(s):oC(s,i)))(o)},o0=yV(tc);function oC(...e){return tr({},...e,iC)}function iC(e,t,r,n){if((js(e)||js(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...o)=>{const i=js(e)?e(...o):e,s=js(t)?t(...o):t;return tr({},i,s,iC)};if(yu(e)&&yu(t))return[...e,...t];if(yu(e)&&bt(t))return t}function bV({colorScheme:e,components:t}){return r=>{let n=Object.keys(r.components||{});return Array.isArray(t)?n=t:bt(t)&&(n=Object.keys(t)),oC(r,{components:Object.fromEntries(n.map(o=>[o,{defaultProps:{colorScheme:e}}]))})}}function SV(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var Np="data-focus-lock",sC="data-focus-lock-disabled",xV="data-no-focus-lock",wV="data-autofocus-inside",EV="data-no-autofocus";function Qd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function kV(e,t){var r=b.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var CV=typeof window<"u"?b.useLayoutEffect:b.useEffect,c1=new WeakMap;function aC(e,t){var r=kV(null,function(n){return e.forEach(function(o){return Qd(o,n)})});return CV(function(){var n=c1.get(r);if(n){var o=new Set(n),i=new Set(e),s=r.current;o.forEach(function(a){i.has(a)||Qd(a,null)}),i.forEach(function(a){o.has(a)||Qd(a,s)})}c1.set(r,e)},[e]),r}var Zd={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function lC(e){return e}function uC(e,t){t===void 0&&(t=lC);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(i),s=r}var l=function(){var c=s;s=[],c.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),r}}}};return o}function i0(e,t){return t===void 0&&(t=lC),uC(e,t)}function cC(e){e===void 0&&(e={});var t=uC(null);return t.options=F({async:!0,ssr:!1},e),t}var fC=function(e){var t=e.sideCar,r=tm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return b.createElement(n,F({},r))};fC.isSideCarExport=!0;function TV(e,t){return e.useMedium(t),fC}var dC=i0({},function(e){var t=e.target,r=e.currentTarget;return{target:t,currentTarget:r}}),hC=i0(),PV=i0(),_V=cC({async:!0,ssr:typeof document<"u"}),AV=b.createContext(void 0),RV=[],s0=b.forwardRef(function(t,r){var n,o=b.useState(),i=o[0],s=o[1],a=b.useRef(),l=b.useRef(!1),u=b.useRef(null),c=b.useState({}),f=c[1],d=t.children,g=t.disabled,y=g===void 0?!1:g,m=t.noFocusGuards,S=m===void 0?!1:m,p=t.persistentFocus,h=p===void 0?!1:p,v=t.crossFrame,w=v===void 0?!0:v,E=t.autoFocus,P=E===void 0?!0:E;t.allowTextSelection;var T=t.group,A=t.className,M=t.whiteList,I=t.hasPositiveIndices,z=t.shards,ue=z===void 0?RV:z,re=t.as,Fe=re===void 0?"div":re,qe=t.lockProps,ce=qe===void 0?{}:qe,G=t.sideCar,O=t.returnFocus,$=O===void 0?!1:O,B=t.focusOptions,Y=t.onActivation,K=t.onDeactivation,X=b.useState({}),Ee=X[0],me=b.useCallback(function(kt){var fr=kt.captureFocusRestore;if(!u.current){var _r,dr=(_r=document)==null?void 0:_r.activeElement;u.current=dr,dr!==document.body&&(u.current=fr(dr))}a.current&&Y&&Y(a.current),l.current=!0,f()},[Y]),ke=b.useCallback(function(){l.current=!1,K&&K(a.current),f()},[K]),Ye=b.useCallback(function(kt){var fr=u.current;if(fr){var _r=(typeof fr=="function"?fr():fr)||document.body,dr=typeof $=="function"?$(_r):$;if(dr){var dt=typeof dr=="object"?dr:void 0;u.current=null,kt?Promise.resolve().then(function(){return _r.focus(dt)}):_r.focus(dt)}}},[$]),Ke=b.useCallback(function(kt){l.current&&dC.useMedium(kt)},[]),Tr=hC.useMedium,qr=b.useCallback(function(kt){a.current!==kt&&(a.current=kt,s(kt))},[]),Pr=Mo((n={},n[sC]=y&&"disabled",n[Np]=T,n),ce),fe=S!==!0,ft=fe&&S!=="tail",En=aC([r,qr]),ro=b.useMemo(function(){return{observed:a,shards:ue,enabled:!y,active:l.current}},[y,l.current,ue,i]);return b.createElement(b.Fragment,null,fe&&[b.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:y?-1:0,style:Zd}),I?b.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:y?-1:1,style:Zd}):null],!y&&b.createElement(G,{id:Ee,sideCar:_V,observed:i,disabled:y,persistentFocus:h,crossFrame:w,autoFocus:P,whiteList:M,shards:ue,onActivation:me,onDeactivation:ke,returnFocus:Ye,focusOptions:B,noFocusGuards:S}),b.createElement(Fe,Mo({ref:En},Pr,{className:A,onBlur:Tr,onFocus:Ke}),b.createElement(AV.Provider,{value:ro},d)),ft&&b.createElement("div",{"data-focus-guard":!0,tabIndex:y?-1:0,style:Zd}))});s0.propTypes={};function Dp(e,t){return Dp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Dp(e,t)}function IV(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dp(e,t)}function ja(e){"@babel/helpers - typeof";return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ja(e)}function MV(e,t){if(ja(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ja(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LV(e){var t=MV(e,"string");return ja(t)=="symbol"?t:t+""}function OV(e,t,r){return(t=LV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $V(e,t){function r(n){return n.displayName||n.name||"Component"}return function(o){var i=[],s;function a(){s=e(i.map(function(u){return u.props})),t(s)}var l=function(u){IV(c,u);function c(){return u.apply(this,arguments)||this}c.peek=function(){return s};var f=c.prototype;return f.componentDidMount=function(){i.push(this),a()},f.componentDidUpdate=function(){a()},f.componentWillUnmount=function(){var g=i.indexOf(this);i.splice(g,1),a()},f.render=function(){return q1.createElement(o,this.props)},c}(b.PureComponent);return OV(l,"displayName","SideEffect("+r(o)+")"),l}}var Xr=function(e){for(var t=Array(e.length),r=0;r=0}).sort(UV)},GV=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],u0=GV.join(","),XV="".concat(u0,", [data-focus-guard]"),wC=function(e,t){return Xr((e.shadowRoot||e).children).reduce(function(r,n){return r.concat(n.matches(t?XV:u0)?[n]:[],wC(n))},[])},qV=function(e,t){var r;return e instanceof HTMLIFrameElement&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?Ji([e.contentDocument.body],t):[e]},Ji=function(e,t){return e.reduce(function(r,n){var o,i=wC(n,t),s=(o=[]).concat.apply(o,i.map(function(a){return qV(a,t)}));return r.concat(s,n.parentNode?Xr(n.parentNode.querySelectorAll(u0)).filter(function(a){return a===n}):[])},[])},YV=function(e){var t=e.querySelectorAll("[".concat(wV,"]"));return Xr(t).map(function(r){return Ji([r])}).reduce(function(r,n){return r.concat(n)},[])},c0=function(e,t){return Xr(e).filter(function(r){return vC(t,r)}).filter(function(r){return jV(r)})},f1=function(e,t){return t===void 0&&(t=new Map),Xr(e).filter(function(r){return yC(t,r)})},f0=function(e,t,r){return l0(c0(Ji(e,r),t),!0,r)},Va=function(e,t){return l0(c0(Ji(e),t),!1)},KV=function(e,t){return c0(YV(e),t)},_o=function(e,t){return e.shadowRoot?_o(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Xr(e.children).some(function(r){var n;if(r instanceof HTMLIFrameElement){var o=(n=r.contentDocument)===null||n===void 0?void 0:n.body;return o?_o(o,t):!1}return _o(r,t)})},QV=function(e){for(var t=new Set,r=e.length,n=0;n0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(s,a){return!t.has(a)})},EC=function(e){return e.parentNode?EC(e.parentNode):e},d0=function(e){var t=Fo(e);return t.filter(Boolean).reduce(function(r,n){var o=n.getAttribute(Np);return r.push.apply(r,o?QV(Xr(EC(n).querySelectorAll("[".concat(Np,'="').concat(o,'"]:not([').concat(sC,'="disabled"])')))):[n]),r},[])},ZV=function(e){try{return e()}catch{return}},Ha=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Ha(t.shadowRoot):t instanceof HTMLIFrameElement&&ZV(function(){return t.contentWindow.document})?Ha(t.contentWindow.document):t}},JV=function(e,t){return e===t},e6=function(e,t){return!!Xr(e.querySelectorAll("iframe")).some(function(r){return JV(r,t)})},kC=function(e,t){return t===void 0&&(t=Ha(pC(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:d0(e).some(function(r){return _o(r,t)||e6(r,t)})},t6=function(e){e===void 0&&(e=document);var t=Ha(e);return t?Xr(e.querySelectorAll("[".concat(xV,"]"))).some(function(r){return _o(r,t)}):!1},r6=function(e,t){return t.filter(xC).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},h0=function(e,t){return xC(e)&&e.name?r6(e,t):e},n6=function(e){var t=new Set;return e.forEach(function(r){return t.add(h0(r,e))}),e.filter(function(r){return t.has(r)})},d1=function(e){return e[0]&&e.length>1?h0(e[0],e):e[0]},h1=function(e,t){return e.indexOf(h0(t,e))},Bp="NEW_FOCUS",o6=function(e,t,r,n,o){var i=e.length,s=e[0],a=e[i-1],l=a0(n);if(!(n&&e.indexOf(n)>=0)){var u=n!==void 0?r.indexOf(n):-1,c=o?r.indexOf(o):u,f=o?e.indexOf(o):-1;if(u===-1)return f!==-1?f:Bp;if(f===-1)return Bp;var d=u-c,g=r.indexOf(s),y=r.indexOf(a),m=n6(r),S=n!==void 0?m.indexOf(n):-1,p=S-(o?m.indexOf(o):u);if(!d&&f>=0||t.length===0)return f;var h=h1(e,t[0]),v=h1(e,t[t.length-1]);if(u<=g&&l&&Math.abs(d)>1)return v;if(u>=y&&l&&Math.abs(d)>1)return h;if(d&&Math.abs(p)>1)return f;if(u<=g)return v;if(u>y)return h;if(d)return Math.abs(d)>1?f:(i+f+d)%i}},i6=function(e){return function(t){var r,n=(r=bC(t))===null||r===void 0?void 0:r.autofocus;return t.autofocus||n!==void 0&&n!=="false"||e.indexOf(t)>=0}},p1=function(e,t,r){var n=e.map(function(i){var s=i.node;return s}),o=f1(n.filter(i6(r)));return o&&o.length?d1(o):d1(f1(t))},zp=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&zp(e.parentNode.host||e.parentNode,t),t},Jd=function(e,t){for(var r=zp(e),n=zp(t),o=0;o=0)return i}return!1},CC=function(e,t,r){var n=Fo(e),o=Fo(t),i=n[0],s=!1;return o.filter(Boolean).forEach(function(a){s=Jd(s||a,a)||s,r.filter(Boolean).forEach(function(l){var u=Jd(i,l);u&&(!s||_o(u,s)?s=u:s=Jd(u,s))})}),s},m1=function(e,t){return e.reduce(function(r,n){return r.concat(KV(n,t))},[])},s6=function(e,t){var r=new Map;return t.forEach(function(n){return r.set(n.node,n)}),e.map(function(n){return r.get(n)}).filter(HV)},a6=function(e,t){var r=Ha(Fo(e).length>0?document:pC(e).ownerDocument),n=d0(e).filter(Fp),o=CC(r||e,e,n),i=new Map,s=Va(n,i),a=s.filter(function(y){var m=y.node;return Fp(m)});if(a[0]){var l=Va([o],i).map(function(y){var m=y.node;return m}),u=s6(l,a),c=u.map(function(y){var m=y.node;return m}),f=u.filter(function(y){var m=y.tabIndex;return m>=0}).map(function(y){var m=y.node;return m}),d=o6(c,f,l,r,t);if(d===Bp){var g=p1(s,f,m1(n,i))||p1(s,c,m1(n,i));if(g)return{node:g};console.warn("focus-lock: cannot find any node to move focus into");return}return d===void 0?d:u[d]}},l6=function(e){var t=d0(e).filter(Fp),r=CC(e,e,t),n=l0(Ji([r],!0),!0,!0),o=Ji(t,!1);return n.map(function(i){var s=i.node,a=i.index;return{node:s,index:a,lockItem:o.indexOf(s)>=0,guard:a0(s)}})},p0=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},eh=0,th=!1,TC=function(e,t,r){r===void 0&&(r={});var n=a6(e,t);if(!th&&n){if(eh>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),th=!0,setTimeout(function(){th=!1},1);return}eh++,p0(n.node,r.focusOptions),eh--}};function Ps(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return t?.deref()||null}}var u6=function(e){if(!e)return null;for(var t=[],r=e;r&&r!==document.body;)t.push({current:Ps(r),parent:Ps(r.parentElement),left:Ps(r.previousElementSibling),right:Ps(r.nextElementSibling)}),r=r.parentElement;return{element:Ps(e),stack:t,ownerDocument:e.ownerDocument}},c6=function(e){var t,r,n,o,i;if(e)for(var s=e.stack,a=e.ownerDocument,l=new Map,u=0,c=s;u-1&&(S.filter(function(h){var v=h.guard,w=h.node;return v&&w.dataset.focusAutoGuard}).forEach(function(h){var v=h.node;return v.removeAttribute("tabIndex")}),v1(p,S.length,1,S),v1(p,-1,-1,S))}}}return t},MC=function(t){Oc()&&t&&(t.stopPropagation(),t.preventDefault())},v0=function(){return m0(Oc)},_6=function(t){var r=t.target,n=t.currentTarget;n.contains(r)||w6(n,r)},A6=function(){return null},LC=function(){g0=!0},OC=function(){g0=!1,Ua="just",m0(function(){Ua="meanwhile"})},R6=function(){document.addEventListener("focusin",MC),document.addEventListener("focusout",v0),window.addEventListener("focus",LC),window.addEventListener("blur",OC)},I6=function(){document.removeEventListener("focusin",MC),document.removeEventListener("focusout",v0),window.removeEventListener("focus",LC),window.removeEventListener("blur",OC)};function M6(e){return e.filter(function(t){var r=t.disabled;return!r})}var $C={moveFocusInside:TC,focusInside:kC,focusNextElement:p6,focusPrevElement:m6,focusFirstElement:g6,focusLastElement:v6,captureFocusRestore:PC};function L6(e){var t=e.slice(-1)[0];t&&!Oi&&R6();var r=Oi,n=r&&t&&t.id===r.id;Oi=t,r&&!n&&(r.onDeactivation(),e.filter(function(o){var i=o.id;return i===r.id}).length||r.returnFocus(!t)),t?(Nt=null,(!n||r.observed!==t.observed)&&t.onActivation($C),Oc(),m0(Oc)):(I6(),Nt=null)}dC.assignSyncMedium(_6);hC.assignMedium(v0);PV.assignMedium(function(e){return e($C)});const O6=$V(M6,L6)(A6);var jp=b.forwardRef(function(t,r){return b.createElement(s0,Mo({sideCar:O6,ref:r},t))}),NC=s0.propTypes||{};NC.sideCar;SV(NC,["sideCar"]);jp.propTypes={};const $6=jp.default??jp,DC=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:o,children:i,isDisabled:s,autoFocus:a,persistentFocus:l,lockFocusAcrossFrames:u}=e,c=b.useCallback(()=>{t?.current?t.current.focus():n?.current&&iA(n.current).length===0&&requestAnimationFrame(()=>{n.current?.focus()})},[t,n]),f=b.useCallback(()=>{r?.current?.focus()},[r]),d=o&&!r;return R.jsx($6,{crossFrame:u,persistentFocus:l,autoFocus:a,disabled:s,onActivation:c,onDeactivation:f,returnFocus:d,children:i})};DC.displayName="FocusLock";var It="top",ar="bottom",lr="right",Mt="left",y0="auto",bl=[It,ar,lr,Mt],es="start",Wa="end",N6="clippingParents",FC="viewport",_s="popper",D6="reference",y1=bl.reduce(function(e,t){return e.concat([t+"-"+es,t+"-"+Wa])},[]),BC=[].concat(bl,[y0]).reduce(function(e,t){return e.concat([t,t+"-"+es,t+"-"+Wa])},[]),F6="beforeRead",B6="read",z6="afterRead",j6="beforeMain",V6="main",H6="afterMain",U6="beforeWrite",W6="write",G6="afterWrite",X6=[F6,B6,z6,j6,V6,H6,U6,W6,G6];function Gr(e){return e?(e.nodeName||"").toLowerCase():null}function Ut(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Bo(e){var t=Ut(e).Element;return e instanceof t||e instanceof Element}function or(e){var t=Ut(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function b0(e){if(typeof ShadowRoot>"u")return!1;var t=Ut(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function q6(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!or(i)||!Gr(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function Y6(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),a=s.reduce(function(l,u){return l[u]="",l},{});!or(o)||!Gr(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const K6={name:"applyStyles",enabled:!0,phase:"write",fn:q6,effect:Y6,requires:["computeStyles"]};function Ur(e){return e.split("-")[0]}var Ao=Math.max,$c=Math.min,ts=Math.round;function Vp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function zC(){return!/^((?!chrome|android).)*safari/i.test(Vp())}function rs(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&or(e)&&(o=e.offsetWidth>0&&ts(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ts(n.height)/e.offsetHeight||1);var s=Bo(e)?Ut(e):window,a=s.visualViewport,l=!zC()&&r,u=(n.left+(l&&a?a.offsetLeft:0))/o,c=(n.top+(l&&a?a.offsetTop:0))/i,f=n.width/o,d=n.height/i;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function S0(e){var t=rs(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function jC(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&b0(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Sn(e){return Ut(e).getComputedStyle(e)}function Q6(e){return["table","td","th"].indexOf(Gr(e))>=0}function to(e){return((Bo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pf(e){return Gr(e)==="html"?e:e.assignedSlot||e.parentNode||(b0(e)?e.host:null)||to(e)}function b1(e){return!or(e)||Sn(e).position==="fixed"?null:e.offsetParent}function Z6(e){var t=/firefox/i.test(Vp()),r=/Trident/i.test(Vp());if(r&&or(e)){var n=Sn(e);if(n.position==="fixed")return null}var o=Pf(e);for(b0(o)&&(o=o.host);or(o)&&["html","body"].indexOf(Gr(o))<0;){var i=Sn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Sl(e){for(var t=Ut(e),r=b1(e);r&&Q6(r)&&Sn(r).position==="static";)r=b1(r);return r&&(Gr(r)==="html"||Gr(r)==="body"&&Sn(r).position==="static")?t:r||Z6(e)||t}function x0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ca(e,t,r){return Ao(e,$c(t,r))}function J6(e,t,r){var n=ca(e,t,r);return n>r?r:n}function VC(){return{top:0,right:0,bottom:0,left:0}}function HC(e){return Object.assign({},VC(),e)}function UC(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var eH=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,HC(typeof t!="number"?t:UC(t,bl))};function tH(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=Ur(r.placement),l=x0(a),u=[Mt,lr].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var f=eH(o.padding,r),d=S0(i),g=l==="y"?It:Mt,y=l==="y"?ar:lr,m=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],S=s[l]-r.rects.reference[l],p=Sl(i),h=p?l==="y"?p.clientHeight||0:p.clientWidth||0:0,v=m/2-S/2,w=f[g],E=h-d[c]-f[y],P=h/2-d[c]/2+v,T=ca(w,P,E),A=l;r.modifiersData[n]=(t={},t[A]=T,t.centerOffset=T-P,t)}}function rH(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||jC(t.elements.popper,o)&&(t.elements.arrow=o))}const nH={name:"arrow",enabled:!0,phase:"main",fn:tH,effect:rH,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ns(e){return e.split("-")[1]}var oH={top:"auto",right:"auto",bottom:"auto",left:"auto"};function iH(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:ts(r*o)/o||0,y:ts(n*o)/o||0}}function S1(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=s.x,g=d===void 0?0:d,y=s.y,m=y===void 0?0:y,S=typeof c=="function"?c({x:g,y:m}):{x:g,y:m};g=S.x,m=S.y;var p=s.hasOwnProperty("x"),h=s.hasOwnProperty("y"),v=Mt,w=It,E=window;if(u){var P=Sl(r),T="clientHeight",A="clientWidth";if(P===Ut(r)&&(P=to(r),Sn(P).position!=="static"&&a==="absolute"&&(T="scrollHeight",A="scrollWidth")),P=P,o===It||(o===Mt||o===lr)&&i===Wa){w=ar;var M=f&&P===E&&E.visualViewport?E.visualViewport.height:P[T];m-=M-n.height,m*=l?1:-1}if(o===Mt||(o===It||o===ar)&&i===Wa){v=lr;var I=f&&P===E&&E.visualViewport?E.visualViewport.width:P[A];g-=I-n.width,g*=l?1:-1}}var z=Object.assign({position:a},u&&oH),ue=c===!0?iH({x:g,y:m},Ut(r)):{x:g,y:m};if(g=ue.x,m=ue.y,l){var re;return Object.assign({},z,(re={},re[w]=h?"0":"",re[v]=p?"0":"",re.transform=(E.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",re))}return Object.assign({},z,(t={},t[w]=h?m+"px":"",t[v]=p?g+"px":"",t.transform="",t))}function sH(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,s=i===void 0?!0:i,a=r.roundOffsets,l=a===void 0?!0:a,u={placement:Ur(t.placement),variation:ns(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,S1(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,S1(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const aH={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:sH,data:{}};var cu={passive:!0};function lH(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,s=n.resize,a=s===void 0?!0:s,l=Ut(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",r.update,cu)}),a&&l.addEventListener("resize",r.update,cu),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",r.update,cu)}),a&&l.removeEventListener("resize",r.update,cu)}}const uH={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lH,data:{}};var cH={left:"right",right:"left",bottom:"top",top:"bottom"};function Wu(e){return e.replace(/left|right|bottom|top/g,function(t){return cH[t]})}var fH={start:"end",end:"start"};function x1(e){return e.replace(/start|end/g,function(t){return fH[t]})}function w0(e){var t=Ut(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function E0(e){return rs(to(e)).left+w0(e).scrollLeft}function dH(e,t){var r=Ut(e),n=to(e),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=zC();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+E0(e),y:l}}function hH(e){var t,r=to(e),n=w0(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ao(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ao(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+E0(e),l=-n.scrollTop;return Sn(o||r).direction==="rtl"&&(a+=Ao(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function k0(e){var t=Sn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function WC(e){return["html","body","#document"].indexOf(Gr(e))>=0?e.ownerDocument.body:or(e)&&k0(e)?e:WC(Pf(e))}function fa(e,t){var r;t===void 0&&(t=[]);var n=WC(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=Ut(n),s=o?[i].concat(i.visualViewport||[],k0(n)?n:[]):n,a=t.concat(s);return o?a:a.concat(fa(Pf(s)))}function Hp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pH(e,t){var r=rs(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function w1(e,t,r){return t===FC?Hp(dH(e,r)):Bo(t)?pH(t,r):Hp(hH(to(e)))}function mH(e){var t=fa(Pf(e)),r=["absolute","fixed"].indexOf(Sn(e).position)>=0,n=r&&or(e)?Sl(e):e;return Bo(n)?t.filter(function(o){return Bo(o)&&jC(o,n)&&Gr(o)!=="body"}):[]}function gH(e,t,r,n){var o=t==="clippingParents"?mH(e):[].concat(t),i=[].concat(o,[r]),s=i[0],a=i.reduce(function(l,u){var c=w1(e,u,n);return l.top=Ao(c.top,l.top),l.right=$c(c.right,l.right),l.bottom=$c(c.bottom,l.bottom),l.left=Ao(c.left,l.left),l},w1(e,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function GC(e){var t=e.reference,r=e.element,n=e.placement,o=n?Ur(n):null,i=n?ns(n):null,s=t.x+t.width/2-r.width/2,a=t.y+t.height/2-r.height/2,l;switch(o){case It:l={x:s,y:t.y-r.height};break;case ar:l={x:s,y:t.y+t.height};break;case lr:l={x:t.x+t.width,y:a};break;case Mt:l={x:t.x-r.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?x0(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case es:l[u]=l[u]-(t[c]/2-r[c]/2);break;case Wa:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function Ga(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,s=i===void 0?e.strategy:i,a=r.boundary,l=a===void 0?N6:a,u=r.rootBoundary,c=u===void 0?FC:u,f=r.elementContext,d=f===void 0?_s:f,g=r.altBoundary,y=g===void 0?!1:g,m=r.padding,S=m===void 0?0:m,p=HC(typeof S!="number"?S:UC(S,bl)),h=d===_s?D6:_s,v=e.rects.popper,w=e.elements[y?h:d],E=gH(Bo(w)?w:w.contextElement||to(e.elements.popper),l,c,s),P=rs(e.elements.reference),T=GC({reference:P,element:v,strategy:"absolute",placement:o}),A=Hp(Object.assign({},v,T)),M=d===_s?A:P,I={top:E.top-M.top+p.top,bottom:M.bottom-E.bottom+p.bottom,left:E.left-M.left+p.left,right:M.right-E.right+p.right},z=e.modifiersData.offset;if(d===_s&&z){var ue=z[o];Object.keys(I).forEach(function(re){var Fe=[lr,ar].indexOf(re)>=0?1:-1,qe=[It,ar].indexOf(re)>=0?"y":"x";I[re]+=ue[qe]*Fe})}return I}function vH(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?BC:l,c=ns(n),f=c?a?y1:y1.filter(function(y){return ns(y)===c}):bl,d=f.filter(function(y){return u.indexOf(y)>=0});d.length===0&&(d=f);var g=d.reduce(function(y,m){return y[m]=Ga(e,{placement:m,boundary:o,rootBoundary:i,padding:s})[Ur(m)],y},{});return Object.keys(g).sort(function(y,m){return g[y]-g[m]})}function yH(e){if(Ur(e)===y0)return[];var t=Wu(e);return[x1(e),t,x1(t)]}function bH(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!0:s,l=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,g=r.flipVariations,y=g===void 0?!0:g,m=r.allowedAutoPlacements,S=t.options.placement,p=Ur(S),h=p===S,v=l||(h||!y?[Wu(S)]:yH(S)),w=[S].concat(v).reduce(function(Ee,me){return Ee.concat(Ur(me)===y0?vH(t,{placement:me,boundary:c,rootBoundary:f,padding:u,flipVariations:y,allowedAutoPlacements:m}):me)},[]),E=t.rects.reference,P=t.rects.popper,T=new Map,A=!0,M=w[0],I=0;I=0,qe=Fe?"width":"height",ce=Ga(t,{placement:z,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),G=Fe?re?lr:Mt:re?ar:It;E[qe]>P[qe]&&(G=Wu(G));var O=Wu(G),$=[];if(i&&$.push(ce[ue]<=0),a&&$.push(ce[G]<=0,ce[O]<=0),$.every(function(Ee){return Ee})){M=z,A=!1;break}T.set(z,$)}if(A)for(var B=y?3:1,Y=function(me){var ke=w.find(function(Ye){var Ke=T.get(Ye);if(Ke)return Ke.slice(0,me).every(function(Tr){return Tr})});if(ke)return M=ke,"break"},K=B;K>0;K--){var X=Y(K);if(X==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}const SH={name:"flip",enabled:!0,phase:"main",fn:bH,requiresIfExists:["offset"],data:{_skip:!1}};function E1(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function k1(e){return[It,lr,ar,Mt].some(function(t){return e[t]>=0})}function xH(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Ga(t,{elementContext:"reference"}),a=Ga(t,{altBoundary:!0}),l=E1(s,n),u=E1(a,o,i),c=k1(l),f=k1(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const wH={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:xH};function EH(e,t,r){var n=Ur(e),o=[Mt,It].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Mt,lr].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function kH(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,s=BC.reduce(function(c,f){return c[f]=EH(f,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}const CH={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kH};function TH(e){var t=e.state,r=e.name;t.modifiersData[r]=GC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const PH={name:"popperOffsets",enabled:!0,phase:"read",fn:TH,data:{}};function _H(e){return e==="x"?"y":"x"}function AH(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!1:s,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,g=d===void 0?!0:d,y=r.tetherOffset,m=y===void 0?0:y,S=Ga(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),p=Ur(t.placement),h=ns(t.placement),v=!h,w=x0(p),E=_H(w),P=t.modifiersData.popperOffsets,T=t.rects.reference,A=t.rects.popper,M=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,I=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ue={x:0,y:0};if(P){if(i){var re,Fe=w==="y"?It:Mt,qe=w==="y"?ar:lr,ce=w==="y"?"height":"width",G=P[w],O=G+S[Fe],$=G-S[qe],B=g?-A[ce]/2:0,Y=h===es?T[ce]:A[ce],K=h===es?-A[ce]:-T[ce],X=t.elements.arrow,Ee=g&&X?S0(X):{width:0,height:0},me=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:VC(),ke=me[Fe],Ye=me[qe],Ke=ca(0,T[ce],Ee[ce]),Tr=v?T[ce]/2-B-Ke-ke-I.mainAxis:Y-Ke-ke-I.mainAxis,qr=v?-T[ce]/2+B+Ke+Ye+I.mainAxis:K+Ke+Ye+I.mainAxis,Pr=t.elements.arrow&&Sl(t.elements.arrow),fe=Pr?w==="y"?Pr.clientTop||0:Pr.clientLeft||0:0,ft=(re=z?.[w])!=null?re:0,En=G+Tr-ft-fe,ro=G+qr-ft,kt=ca(g?$c(O,En):O,G,g?Ao($,ro):$);P[w]=kt,ue[w]=kt-G}if(a){var fr,_r=w==="x"?It:Mt,dr=w==="x"?ar:lr,dt=P[E],kn=E==="y"?"height":"width",no=dt+S[_r],hr=dt-S[dr],Uo=[It,Mt].indexOf(p)!==-1,us=(fr=z?.[E])!=null?fr:0,xl=Uo?no:dt-T[kn]-A[kn]-us+I.altAxis,wl=Uo?dt+T[kn]+A[kn]-us-I.altAxis:hr,oo=g&&Uo?J6(xl,dt,wl):ca(g?xl:no,dt,g?wl:hr);P[E]=oo,ue[E]=oo-dt}t.modifiersData[n]=ue}}const RH={name:"preventOverflow",enabled:!0,phase:"main",fn:AH,requiresIfExists:["offset"]};function IH(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function MH(e){return e===Ut(e)||!or(e)?w0(e):IH(e)}function LH(e){var t=e.getBoundingClientRect(),r=ts(t.width)/e.offsetWidth||1,n=ts(t.height)/e.offsetHeight||1;return r!==1||n!==1}function OH(e,t,r){r===void 0&&(r=!1);var n=or(t),o=or(t)&&LH(t),i=to(t),s=rs(e,o,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Gr(t)!=="body"||k0(i))&&(a=MH(t)),or(t)?(l=rs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=E0(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function $H(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!r.has(a)){var l=t.get(a);l&&o(l)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function NH(e){var t=$H(e);return X6.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function DH(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function FH(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var C1={placement:"bottom",modifiers:[],strategy:"absolute"};function T1(){for(var e=arguments.length,t=new Array(e),r=0;r({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),et={arrowShadowColor:Yo("--popper-arrow-shadow-color"),arrowSize:Yo("--popper-arrow-size","8px"),arrowSizeHalf:Yo("--popper-arrow-size-half"),arrowBg:Yo("--popper-arrow-bg"),transformOrigin:Yo("--popper-transform-origin"),arrowOffset:Yo("--popper-arrow-offset")};function VH(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}const HH={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},UH=e=>HH[e],P1={scroll:!0,resize:!0};function WH(e){let t;return typeof e=="object"?t={enabled:!0,options:{...P1,...e}}:t={enabled:e,options:P1},t}const GH={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},XH={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{_1(e)},effect:({state:e})=>()=>{_1(e)}},_1=e=>{e.elements.popper.style.setProperty(et.transformOrigin.var,UH(e.placement))},qH={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{YH(e)}},YH=e=>{if(!e.placement)return;const t=KH(e.placement);if(e.elements?.arrow&&t){Object.assign(e.elements.arrow.style,{[t.property]:t.value,width:et.arrowSize.varRef,height:et.arrowSize.varRef,zIndex:-1});const r={[et.arrowSizeHalf.var]:`calc(${et.arrowSize.varRef} / 2 - 1px)`,[et.arrowOffset.var]:`calc(${et.arrowSizeHalf.varRef} * -1)`};for(const n in r)e.elements.arrow.style.setProperty(n,r[n])}},KH=e=>{if(e.startsWith("top"))return{property:"bottom",value:et.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:et.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:et.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:et.arrowOffset.varRef}},QH={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{A1(e)},effect:({state:e})=>()=>{A1(e)}},A1=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=VH(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:et.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},ZH={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},JH={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function e8(e,t="ltr"){const r=ZH[e]?.[t]||e;return t==="ltr"?r:JH[e]??r}function t8(e={}){const{enabled:t=!0,modifiers:r,placement:n="bottom",strategy:o="absolute",arrowPadding:i=8,eventListeners:s=!0,offset:a,gutter:l=8,flip:u=!0,boundary:c="clippingParents",preventOverflow:f=!0,matchWidth:d,direction:g="ltr"}=e,y=b.useRef(null),m=b.useRef(null),S=b.useRef(null),p=e8(n,g),h=b.useRef(()=>{}),v=b.useCallback(()=>{!t||!y.current||!m.current||(h.current?.(),S.current=jH(y.current,m.current,{placement:p,modifiers:[QH,qH,XH,{...GH,enabled:!!d},{name:"eventListeners",...WH(s)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:a??[0,l]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:c}},...r??[]],strategy:o}),S.current.forceUpdate(),h.current=S.current.destroy)},[p,t,r,d,s,i,a,l,u,f,c,o]);b.useEffect(()=>()=>{!y.current&&!m.current&&(S.current?.destroy(),S.current=null)},[]);const w=b.useCallback(I=>{y.current=I,v()},[v]),E=b.useCallback((I={},z=null)=>({...I,ref:Fi(w,z)}),[w]),P=b.useCallback(I=>{m.current=I,v()},[v]),T=b.useCallback((I={},z=null)=>({...I,ref:Fi(P,z),style:{...I.style,position:o,minWidth:d?void 0:"max-content",inset:"0 auto auto 0"}}),[o,P,d]),A=b.useCallback((I={},z=null)=>{const{size:ue,shadowColor:re,bg:Fe,style:qe,...ce}=I;return{...ce,ref:z,"data-popper-arrow":"",style:r8(I)}},[]),M=b.useCallback((I={},z=null)=>({...I,ref:z,"data-popper-arrow-inner":""}),[]);return{update(){S.current?.update()},forceUpdate(){S.current?.forceUpdate()},transformOrigin:et.transformOrigin.varRef,referenceRef:w,popperRef:P,getPopperProps:T,getArrowProps:A,getArrowInnerProps:M,getReferenceProps:E}}function r8(e){const{size:t,shadowColor:r,bg:n,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),r&&(i["--popper-arrow-shadow-color"]=r),n&&(i["--popper-arrow-bg"]=n),i}var n8=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ko=new WeakMap,fu=new WeakMap,du={},rh=0,XC=function(e){return e&&(e.host||XC(e.parentNode))},o8=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=XC(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},i8=function(e,t,r,n){var o=o8(t,Array.isArray(e)?e:[e]);du[r]||(du[r]=new WeakMap);var i=du[r],s=[],a=new Set,l=new Set(o),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};o.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))c(d);else{var g=d.getAttribute(n),y=g!==null&&g!=="false",m=(Ko.get(d)||0)+1,S=(i.get(d)||0)+1;Ko.set(d,m),i.set(d,S),s.push(d),m===1&&y&&fu.set(d,!0),S===1&&d.setAttribute(r,"true"),y||d.setAttribute(n,"true")}})};return c(t),a.clear(),rh++,function(){s.forEach(function(f){var d=Ko.get(f)-1,g=i.get(f)-1;Ko.set(f,d),i.set(f,g),d||(fu.has(f)||f.removeAttribute(n),fu.delete(f)),g||f.removeAttribute(r)}),rh--,rh||(Ko=new WeakMap,Ko=new WeakMap,fu=new WeakMap,du={})}},s8=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=n8(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),i8(n,o,r,"aria-hidden")):function(){return null}},a8=Object.defineProperty,l8=(e,t,r)=>t in e?a8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u8=(e,t,r)=>(l8(e,t+"",r),r);class c8{constructor(){u8(this,"modals"),this.modals=new Set}add(t){return this.modals.add(t),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){if(!t)return!1;const r=Array.from(this.modals)[this.modals.size-1];return t===r}}const Up=new c8;function qC(e,t){const[r,n]=b.useState(0);return b.useEffect(()=>{const o=e.current;if(o){if(t){const i=Up.add(o);n(i)}return()=>{Up.remove(o),n(0)}}},[t,e]),r}function f8(e){const{isOpen:t,onClose:r,id:n,closeOnOverlayClick:o=!0,closeOnEsc:i=!0,useInert:s=!0,onOverlayClick:a,onEsc:l}=e,u=b.useRef(null),c=b.useRef(null),[f,d,g]=h8(n,"chakra-modal","chakra-modal--header","chakra-modal--body");d8(u,t&&s);const y=qC(u,t),m=b.useRef(null),S=b.useCallback(M=>{m.current=M.target},[]),p=b.useCallback(M=>{M.key==="Escape"&&(M.stopPropagation(),i&&r?.(),l?.())},[i,r,l]),[h,v]=b.useState(!1),[w,E]=b.useState(!1),P=b.useCallback((M={},I=null)=>({role:"dialog",...M,ref:Fi(I,u),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":h?d:void 0,"aria-describedby":w?g:void 0,onClick:Jr(M.onClick,z=>z.stopPropagation())}),[g,w,f,d,h]),T=b.useCallback(M=>{M.stopPropagation(),m.current===M.target&&Up.isTopModal(u.current)&&(o&&r?.(),a?.())},[r,o,a]),A=b.useCallback((M={},I=null)=>({...M,ref:Fi(I,c),onClick:Jr(M.onClick,T),onKeyDown:Jr(M.onKeyDown,p),onMouseDown:Jr(M.onMouseDown,S)}),[p,S,T]);return{isOpen:t,onClose:r,headerId:d,bodyId:g,setBodyMounted:E,setHeaderMounted:v,dialogRef:u,overlayRef:c,getDialogProps:P,getDialogContainerProps:A,index:y}}function d8(e,t){const r=e.current;b.useEffect(()=>{if(!(!e.current||!t))return s8(e.current)},[t,e,r])}function h8(e,...t){const r=b.useId(),n=e||r;return b.useMemo(()=>t.map(o=>`${o}-${n}`),[n,t])}const[p8,m8]=xn({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[g8,Wp]=xn({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),_f=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames||!0},{portalProps:r,children:n,autoFocus:o,trapFocus:i,initialFocusRef:s,finalFocusRef:a,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:f,motionPreset:d,lockFocusAcrossFrames:g,animatePresenceProps:y,onCloseComplete:m}=t,S=Qw("Modal",t),h={...f8(t),autoFocus:o,trapFocus:i,initialFocusRef:s,finalFocusRef:a,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:f,motionPreset:d,lockFocusAcrossFrames:g};return R.jsx(g8,{value:h,children:R.jsx(p8,{value:S,children:R.jsx(dl,{...y,onExitComplete:m,children:h.isOpen&&R.jsx(Ho,{...r,children:n})})})})};_f.displayName="Modal";var Gu="right-scroll-bar-position",Xu="width-before-scroll-bar",v8="with-scroll-bars-hidden",y8="--removed-body-scroll-bar-size",YC=cC(),nh=function(){},Af=b.forwardRef(function(e,t){var r=b.useRef(null),n=b.useState({onScrollCapture:nh,onWheelCapture:nh,onTouchMoveCapture:nh}),o=n[0],i=n[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,g=e.noIsolation,y=e.inert,m=e.allowPinchZoom,S=e.as,p=S===void 0?"div":S,h=e.gapMode,v=tm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=d,E=aC([r,t]),P=F(F({},v),o);return b.createElement(b.Fragment,null,c&&b.createElement(w,{sideCar:YC,removeScrollBar:u,shards:f,noIsolation:g,inert:y,setCallbacks:i,allowPinchZoom:!!m,lockRef:r,gapMode:h}),s?b.cloneElement(b.Children.only(a),F(F({},P),{ref:E})):b.createElement(p,F({},P,{className:l,ref:E}),a))});Af.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Af.classNames={fullWidth:Xu,zeroRight:Gu};var b8=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function S8(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=b8();return t&&e.setAttribute("nonce",t),e}function x8(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function w8(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var E8=function(){var e=0,t=null;return{add:function(r){e==0&&(t=S8())&&(x8(t,r),w8(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},k8=function(){var e=E8();return function(t,r){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},KC=function(){var e=k8(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},C8={left:0,top:0,right:0,gap:0},oh=function(e){return parseInt(e||"",10)||0},T8=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[oh(r),oh(n),oh(o)]},P8=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return C8;var t=T8(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},_8=KC(),Ni="data-scroll-locked",A8=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),` - .`.concat(v8,` { - overflow: hidden `).concat(n,`; - padding-right: `).concat(a,"px ").concat(n,`; - } - body[`).concat(Ni,`] { - overflow: hidden `).concat(n,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` - padding-left: `.concat(o,`px; - padding-top: `).concat(i,`px; - padding-right: `).concat(s,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(a,"px ").concat(n,`; - `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),` - } - - .`).concat(Gu,` { - right: `).concat(a,"px ").concat(n,`; - } - - .`).concat(Xu,` { - margin-right: `).concat(a,"px ").concat(n,`; - } - - .`).concat(Gu," .").concat(Gu,` { - right: 0 `).concat(n,`; - } - - .`).concat(Xu," .").concat(Xu,` { - margin-right: 0 `).concat(n,`; - } - - body[`).concat(Ni,`] { - `).concat(y8,": ").concat(a,`px; - } -`)},R1=function(){var e=parseInt(document.body.getAttribute(Ni)||"0",10);return isFinite(e)?e:0},R8=function(){b.useEffect(function(){return document.body.setAttribute(Ni,(R1()+1).toString()),function(){var e=R1()-1;e<=0?document.body.removeAttribute(Ni):document.body.setAttribute(Ni,e.toString())}},[])},I8=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;R8();var i=b.useMemo(function(){return P8(o)},[o]);return b.createElement(_8,{styles:A8(i,!t,o,r?"":"!important")})},Gp=!1;if(typeof window<"u")try{var hu=Object.defineProperty({},"passive",{get:function(){return Gp=!0,!0}});window.addEventListener("test",hu,hu),window.removeEventListener("test",hu,hu)}catch{Gp=!1}var Qo=Gp?{passive:!1}:!1,M8=function(e){return e.tagName==="TEXTAREA"},QC=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!M8(e)&&r[t]==="visible")},L8=function(e){return QC(e,"overflowY")},O8=function(e){return QC(e,"overflowX")},I1=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=ZC(e,n);if(o){var i=JC(e,n),s=i[1],a=i[2];if(s>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},$8=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},N8=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},ZC=function(e,t){return e==="v"?L8(t):O8(t)},JC=function(e,t){return e==="v"?$8(t):N8(t)},D8=function(e,t){return e==="h"&&t==="rtl"?-1:1},F8=function(e,t,r,n,o){var i=D8(e,window.getComputedStyle(t).direction),s=i*n,a=r.target,l=t.contains(a),u=!1,c=s>0,f=0,d=0;do{var g=JC(e,a),y=g[0],m=g[1],S=g[2],p=m-S-i*y;(y||p)&&ZC(e,a)&&(f+=p,d+=y),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(Math.abs(f)<1||!o)||!c&&(Math.abs(d)<1||!o))&&(u=!0),u},pu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},M1=function(e){return[e.deltaX,e.deltaY]},L1=function(e){return e&&"current"in e?e.current:e},B8=function(e,t){return e[0]===t[0]&&e[1]===t[1]},z8=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},j8=0,Zo=[];function V8(e){var t=b.useRef([]),r=b.useRef([0,0]),n=b.useRef(),o=b.useState(j8++)[0],i=b.useState(KC)[0],s=b.useRef(e);b.useEffect(function(){s.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=vt([e.lockRef.current],(e.shards||[]).map(L1),!0).filter(Boolean);return m.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=b.useCallback(function(m,S){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!s.current.allowPinchZoom;var p=pu(m),h=r.current,v="deltaX"in m?m.deltaX:h[0]-p[0],w="deltaY"in m?m.deltaY:h[1]-p[1],E,P=m.target,T=Math.abs(v)>Math.abs(w)?"h":"v";if("touches"in m&&T==="h"&&P.type==="range")return!1;var A=I1(T,P);if(!A)return!0;if(A?E=T:(E=T==="v"?"h":"v",A=I1(T,P)),!A)return!1;if(!n.current&&"changedTouches"in m&&(v||w)&&(n.current=E),!E)return!0;var M=n.current||E;return F8(M,S,m,M==="h"?v:w,!0)},[]),l=b.useCallback(function(m){var S=m;if(!(!Zo.length||Zo[Zo.length-1]!==i)){var p="deltaY"in S?M1(S):pu(S),h=t.current.filter(function(E){return E.name===S.type&&(E.target===S.target||S.target===E.shadowParent)&&B8(E.delta,p)})[0];if(h&&h.should){S.cancelable&&S.preventDefault();return}if(!h){var v=(s.current.shards||[]).map(L1).filter(Boolean).filter(function(E){return E.contains(S.target)}),w=v.length>0?a(S,v[0]):!s.current.noIsolation;w&&S.cancelable&&S.preventDefault()}}},[]),u=b.useCallback(function(m,S,p,h){var v={name:m,delta:S,target:p,should:h,shadowParent:H8(p)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(w){return w!==v})},1)},[]),c=b.useCallback(function(m){r.current=pu(m),n.current=void 0},[]),f=b.useCallback(function(m){u(m.type,M1(m),m.target,a(m,e.lockRef.current))},[]),d=b.useCallback(function(m){u(m.type,pu(m),m.target,a(m,e.lockRef.current))},[]);b.useEffect(function(){return Zo.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,Qo),document.addEventListener("touchmove",l,Qo),document.addEventListener("touchstart",c,Qo),function(){Zo=Zo.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,Qo),document.removeEventListener("touchmove",l,Qo),document.removeEventListener("touchstart",c,Qo)}},[]);var g=e.removeScrollBar,y=e.inert;return b.createElement(b.Fragment,null,y?b.createElement(i,{styles:z8(o)}):null,g?b.createElement(I8,{gapMode:e.gapMode}):null)}function H8(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const U8=TV(YC,V8);var eT=b.forwardRef(function(e,t){return b.createElement(Af,F({},e,{ref:t,sideCar:U8}))});eT.classNames=Af.classNames;function W8(e){const{autoFocus:t,trapFocus:r,dialogRef:n,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:s,finalFocusRef:a,returnFocusOnClose:l,preserveScrollBarGap:u,lockFocusAcrossFrames:c,isOpen:f}=Wp(),[d,g]=Sw();b.useEffect(()=>{!d&&g&&setTimeout(g)},[d,g]);const y=qC(n,f);return R.jsx(DC,{autoFocus:t,isDisabled:!r,initialFocusRef:o,finalFocusRef:a,restoreFocus:l,contentRef:n,lockFocusAcrossFrames:c,children:R.jsx(eT,{removeScrollBar:!u,allowPinchZoom:s,enabled:y===1&&i,forwardProps:!0,children:e.children})})}const G8={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:o})=>({opacity:0,x:e,y:t,transition:r?.exit??ua.exit(la.exit,o),transitionEnd:n?.exit}),enter:({transition:e,transitionEnd:t,delay:r})=>({opacity:1,x:0,y:0,transition:e?.enter??ua.enter(la.enter,r),transitionEnd:t?.enter}),exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:o,delay:i})=>{const s={x:t,y:e};return{opacity:0,transition:r?.exit??ua.exit(la.exit,i),...o?{...s,transitionEnd:n?.exit}:{transitionEnd:{...s,...n?.exit}}}}},Vs={initial:"initial",animate:"enter",exit:"exit",variants:G8},X8=b.forwardRef(function(t,r){const{unmountOnExit:n,in:o,reverse:i=!0,className:s,offsetX:a=0,offsetY:l=8,transition:u,transitionEnd:c,delay:f,animatePresenceProps:d,...g}=t,y=n?o&&n:!0,m=o||n?"enter":"exit",S={offsetX:a,offsetY:l,reverse:i,transition:u,transitionEnd:c,delay:f};return R.jsx(dl,{...d,custom:S,children:y&&R.jsx(fl.div,{ref:r,className:Cr("chakra-offset-slide",s),custom:S,...Vs,animate:m,...g})})});X8.displayName="SlideFade";const q8={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:n?.exit}:{transitionEnd:{scale:t,...n?.exit}},transition:r?.exit??ua.exit(la.exit,o)}),enter:({transitionEnd:e,transition:t,delay:r})=>({opacity:1,scale:1,transition:t?.enter??ua.enter(la.enter,r),transitionEnd:e?.enter})},tT={initial:"exit",animate:"enter",exit:"exit",variants:q8},Y8=b.forwardRef(function(t,r){const{unmountOnExit:n,in:o,reverse:i=!0,initialScale:s=.95,className:a,transition:l,transitionEnd:u,delay:c,animatePresenceProps:f,...d}=t,g=n?o&&n:!0,y=o||n?"enter":"exit",m={initialScale:s,reverse:i,transition:l,transitionEnd:u,delay:c};return R.jsx(dl,{...f,custom:m,children:g&&R.jsx(fl.div,{ref:r,className:Cr("chakra-offset-slide",a),...tT,animate:y,custom:m,...d})})});Y8.displayName="ScaleFade";const K8={slideInBottom:{...Vs,custom:{offsetY:16,reverse:!0}},slideInRight:{...Vs,custom:{offsetX:16,reverse:!0}},slideInTop:{...Vs,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Vs,custom:{offsetX:-16,reverse:!0}},scale:{...tT,custom:{initialScale:.95,reverse:!0}},none:{}},Q8=Re(fl.section),Z8=e=>K8[e||"none"],rT=b.forwardRef((e,t)=>{const{preset:r,motionProps:n=Z8(r),...o}=e;return R.jsx(Q8,{ref:t,...n,...o})});rT.displayName="ModalTransition";const nT=cr((e,t)=>{const{className:r,children:n,containerProps:o,motionProps:i,...s}=e,{getDialogProps:a,getDialogContainerProps:l}=Wp(),u=a(s,t),c=l(o),f=Cr("chakra-modal__content",r),d=m8(),g={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...d.dialog},y={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...d.dialogContainer},{motionPreset:m}=Wp();return R.jsx(W8,{children:R.jsx(Re.div,{...c,className:"chakra-modal__content-container",tabIndex:-1,__css:y,children:R.jsx(rT,{preset:m,motionProps:i,className:f,...u,__css:g,children:n})})})});nT.displayName="ModalContent";function J8(e){const{leastDestructiveRef:t,...r}=e;return R.jsx(_f,{...r,initialFocusRef:t})}const q9=cr((e,t)=>R.jsx(nT,{ref:t,role:"alertdialog",...e})),[e9,Y9]=xn(),t9={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function r9(e,t){if(e)return t9[e]?.[t]??e}function n9(e){const{isOpen:t,onClose:r,placement:n="right",children:o,...i}=e,s=ig(),a=s.components?.Drawer,l=r9(n,s.direction);return R.jsx(e9,{value:{placement:l},children:R.jsx(_f,{isOpen:t,onClose:r,styleConfig:a,...i,children:o})})}const oT=e=>R.jsx(Re.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});oT.displayName="StackItem";function o9(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":uA(r,o=>n[o])}}const iT=cr((e,t)=>{const{isInline:r,direction:n,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:l,divider:u,className:c,shouldWrapChildren:f,...d}=e,g=r?"row":n??"column",y=b.useMemo(()=>o9({spacing:s,direction:g}),[s,g]),m=!!u,S=!f&&!m,p=b.useMemo(()=>{const v=J_(l);return S?v:v.map((w,E)=>{const P=typeof w.key<"u"?w.key:E,T=E+1===v.length,M=f?R.jsx(oT,{children:w},P):w;if(!m)return M;const I=b.cloneElement(u,{__css:y}),z=T?null:I;return R.jsxs(b.Fragment,{children:[M,z]},P)})},[u,y,m,S,f,l]),h=Cr("chakra-stack",c);return R.jsx(Re.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:g,flexWrap:a,gap:m?void 0:s,className:h,...d,children:p})});iT.displayName="Stack";const sT=cr((e,t)=>R.jsx(iT,{align:"center",...e,direction:"column",ref:t}));sT.displayName="VStack";const i9={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Xp=e=>e.current?.ownerDocument||document,qu=e=>e.current?.ownerDocument?.defaultView||window;function s9(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:n=!0,closeOnMouseDown:o,closeOnScroll:i,closeOnPointerDown:s=o,closeOnEsc:a=!0,onOpen:l,onClose:u,placement:c,id:f,isOpen:d,defaultIsOpen:g,arrowSize:y=10,arrowShadowColor:m,arrowPadding:S,modifiers:p,isDisabled:h,gutter:v,offset:w,direction:E,...P}=e,{isOpen:T,onOpen:A,onClose:M}=mA({isOpen:d,defaultIsOpen:g,onOpen:l,onClose:u}),{referenceRef:I,getPopperProps:z,getArrowInnerProps:ue,getArrowProps:re}=t8({enabled:T,placement:c,arrowPadding:S,modifiers:p,gutter:v,offset:w,direction:E}),Fe=b.useId(),ce=`tooltip-${f??Fe}`,G=b.useRef(null),O=b.useRef(),$=b.useCallback(()=>{O.current&&(clearTimeout(O.current),O.current=void 0)},[]),B=b.useRef(),Y=b.useCallback(()=>{B.current&&(clearTimeout(B.current),B.current=void 0)},[]),K=b.useCallback(()=>{Y(),M()},[M,Y]),X=a9(G,K),Ee=b.useCallback(()=>{if(!h&&!O.current){T&&X();const fe=qu(G);O.current=fe.setTimeout(A,t)}},[X,h,T,A,t]),me=b.useCallback(()=>{$();const fe=qu(G);B.current=fe.setTimeout(K,r)},[r,K,$]),ke=b.useCallback(()=>{T&&n&&me()},[n,me,T]),Ye=b.useCallback(()=>{T&&s&&me()},[s,me,T]),Ke=b.useCallback(fe=>{T&&fe.key==="Escape"&&me()},[T,me]);Xf(()=>Xp(G),"keydown",a?Ke:void 0),Xf(()=>{if(!i)return null;const fe=G.current;if(!fe)return null;const ft=IS(fe);return ft.localName==="body"?qu(G):ft},"scroll",()=>{T&&i&&K()},{passive:!0,capture:!0}),b.useEffect(()=>{h&&($(),T&&M())},[h,T,M,$]),b.useEffect(()=>()=>{$(),Y()},[$,Y]),Xf(()=>G.current,"pointerleave",me);const Tr=b.useCallback((fe={},ft=null)=>({...fe,ref:Fi(G,ft,I),onPointerEnter:Jr(fe.onPointerEnter,ro=>{ro.pointerType!=="touch"&&Ee()}),onClick:Jr(fe.onClick,ke),onPointerDown:Jr(fe.onPointerDown,Ye),onFocus:Jr(fe.onFocus,Ee),onBlur:Jr(fe.onBlur,me),"aria-describedby":T?ce:void 0}),[Ee,me,Ye,T,ce,ke,I]),qr=b.useCallback((fe={},ft=null)=>z({...fe,style:{...fe.style,[et.arrowSize.var]:y?`${y}px`:void 0,[et.arrowShadowColor.var]:m}},ft),[z,y,m]),Pr=b.useCallback((fe={},ft=null)=>{const En={...fe.style,position:"relative",transformOrigin:et.transformOrigin.varRef};return{ref:ft,...P,...fe,id:ce,role:"tooltip",style:En}},[P,ce]);return{isOpen:T,show:Ee,hide:me,getTriggerProps:Tr,getTooltipProps:Pr,getTooltipPositionerProps:qr,getArrowProps:re,getArrowInnerProps:ue}}const ih="chakra-ui:close-tooltip";function a9(e,t){return b.useEffect(()=>{const r=Xp(e);return r.addEventListener(ih,t),()=>r.removeEventListener(ih,t)},[t,e]),()=>{const r=Xp(e),n=qu(e);r.dispatchEvent(new n.CustomEvent(ih))}}const l9=Re(fl.div),aT=cr((e,t)=>{const r=hl("Tooltip",e),n=nl(e),o=ig(),{children:i,label:s,shouldWrapChildren:a,"aria-label":l,hasArrow:u,bg:c,portalProps:f,background:d,backgroundColor:g,bgColor:y,motionProps:m,animatePresenceProps:S,...p}=n,h=d??g??c??y;if(h){r.bg=h;const I=sR(o,"colors",h);r[et.arrowBg.var]=I}const v=s9({...p,direction:o.direction}),w=typeof i=="string"||a;let E;if(w)E=R.jsx(Re.span,{display:"inline-block",tabIndex:0,...v.getTriggerProps(),children:i});else{const I=b.Children.only(i);E=b.cloneElement(I,v.getTriggerProps(I.props,I.ref))}const P=!!l,T=v.getTooltipProps({},t),A=P?cm(T,["role","id"]):T,M=RS(T,["role","id"]);return s?R.jsxs(R.Fragment,{children:[E,R.jsx(dl,{...S,children:v.isOpen&&R.jsx(Ho,{...f,children:R.jsx(Re.div,{...v.getTooltipPositionerProps(),__css:{zIndex:r.zIndex,pointerEvents:"none"},children:R.jsxs(l9,{variants:i9,initial:"exit",animate:"enter",exit:"exit",...m,...A,__css:r,children:[s,P&&R.jsx(Re.span,{srOnly:!0,...M,children:l}),u&&R.jsx(Re.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:R.jsx(Re.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:r.bg}})})]})})})})]}):R.jsx(R.Fragment,{children:i})});aT.displayName="Tooltip";const lT=cr(function(t,r){const n=hl("Heading",t),{className:o,...i}=nl(t);return R.jsx(Re.h2,{ref:r,className:Cr("chakra-heading",t.className),...i,__css:n})});lT.displayName="Heading";const uT=b.createContext(void 0),u9=uT.Provider,K9=Rf(n9),Q9=Rf(_f),Z9=Rf(aT),J9=Rf(J8),eU=e=>{const t=cT();return R.jsx(Ho,{containerRef:t,...e})};function Rf(e){function t(r){const n=cT(),o={...r};return o.portalProps={containerRef:n,...r.portalProps},R.jsx(e,{...o})}return t.displayName=`FixPortalLocation(${c9(e)})`,t}function cT(){const e=b.useContext(uT);if(!e)throw new Error("Failed to find portal container: chakra-ui integration was not set up correctly.");return e}function c9(e){return e.displayName||e.name||"Component"}const f9=` -.chakra-host { - line-height: 1.5; - -webkit-text-size-adjust: 100%; - font-family: system-ui, sans-serif; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - -moz-osx-font-smoothing: grayscale; - touch-action: manipulation; - position: relative; - min-height: 100%; - height: 100%; - font-feature-settings: 'kern'; -}`,d9={light:"chakra-ui-light",dark:"chakra-ui-dark"},h9=({container:e,colorMode:t,children:r,theme:n})=>{const o=g9(e),i=b.useMemo(()=>m9(n),[n]),s=b.useRef(null),a={portalProps:{containerRef:s}},l=p9(s,t);return R.jsx("div",{className:"chakra-host",ref:s,children:R.jsx(MD,{value:o,children:R.jsx(GD,{theme:i,children:R.jsx(bx,{children:R.jsxs(l,{children:[R.jsx(WD,{}),R.jsx(of,{styles:f9}),R.jsx(qD,{}),R.jsx(mV,{value:a?.defaultOptions,children:R.jsx(u9,{value:s,children:r})}),R.jsx(gV,{...a})]})})})})})};function p9(e,t){const r=t??"light";return b.useEffect(()=>{const o=e.current;if(!o)return;const i=d9[r];return o.classList.add(i),o.dataset.theme=r,()=>{o.classList.remove(i),o.dataset.theme=void 0}},[e,r]),r==="light"?gx:mx}function m9(e=tc){return o0({styles:{global:{".chakra-host":tc.styles.global.body}}},e)}function g9(e){const t=b.useRef();return t.current||(t.current=ix({key:"css",container:e})),t.current}const v9={},y9={trails:{50:"#eaf2f5",100:"#d5e5ec",200:"#abcbd9",300:"#81b1c5",400:"#5797b2",500:"#2d7d9f",600:"#24647f",700:"#1b4b5f",800:"#123240",900:"#091920"}},b9={colors:{background_body:"white",background_primary:"trails.500",background_light:"trails.50",placeholder:"gray.500",font_primary:"black",font_inverse:"white",font_link:"trails.600",border:"gray.300","chakra-body-text":"font_primary","chakra-body-bg":"background_body","chakra-border-color":"border","chakra-placeholder-color":"placeholder"}},S9=o0({fonts:v9,colors:y9,semanticTokens:b9},tc),co=(e,t)=>{const r=t.semanticTokens.colors[e];if(r&&r.includes(".")){const n=r.split("."),o=n[0],i=n[1];return t.colors[o][i]}return r},x9=o0(bV({colorScheme:"trails"}),{styles:{global({theme:e}){return{".chakra-host":{"--trails-theme-shadow-color":`${co("background_primary",e)}99`}}}},shadows:{outline:"0 0 0 3px var(--trails-theme-shadow-color)"},components:{Button:{defaultProps:{}},Checkbox:{defaultProps:{}},Divider:{baseStyle:{borderColor:"background_primary"}},Input:{defaultProps:{},variants:{outline({theme:e}){return{field:{borderColor:"border",_focusVisible:{borderColor:"background_primary",boxShadow:`0 0 0 1px ${co("background_primary",e)}`}},addon:{borderColor:"border",bg:"background_primary"}}},filled:{field:{_focusVisible:{borderColor:"background_primary"}},addon:{bg:"background_primary"}},flushed({theme:e}){return{field:{_focusVisible:{borderColor:"background_primary",boxShadow:`0px 1px 0px 0px ${co("background_primary",e)}`}}}}}},Link:{baseStyle:{color:"font_link"}},Radio:{defaultProps:{}},Select:{defaultProps:{},variants:{outline({theme:e}){return{field:{borderColor:"border",_focusVisible:{borderColor:"background_primary",boxShadow:`0 0 0 1px ${co("background_primary",e)}`}}}},filled:{field:{_focusVisible:{borderColor:"background_primary"}},addon:{bg:"background_primary"}},flushed({theme:e}){return{field:{_focusVisible:{borderColor:"background_primary",boxShadow:`0px 1px 0px 0px ${co("background_primary",e)}`}}}}}},Slider:{defaultProps:{},baseStyle:{thumb:{borderColor:"background_primary",_hover:{bg:"background_primary"}}}},Switch:{defaultProps:{}},Textarea:{defaultProps:{},variants:{outline({theme:e}){return{borderColor:"border",_focusVisible:{borderColor:"background_primary",boxShadow:`0 0 0 1px ${co("background_primary",e)}`}}},filled:{_focusVisible:{borderColor:"background_primary"}},flushed({theme:e}){return{_focusVisible:{borderColor:"background_primary",boxShadow:`0px 1px 0px 0px ${co("background_primary",e)}`}}}}},Tooltip:{baseStyle:{borderRadius:"md"}}}},S9),w9=b.createContext(null);var fT,O1=r0;fT=O1.createRoot,O1.hydrateRoot;class Xa{containerNode;theme;root;packageContext;static createForApp(t){const{serviceLayer:r,packages:n}=t,o=E9(r,n);return new Xa({...t,packageContext:o})}static createForErrorScreen(t){const r=()=>{throw new V(H.INVALID_STATE,"Hook cannot be used within the error screen.")},n={getIntl:r,getProperties:r,getService:r,getServices:r};return new Xa({...t,packageContext:n})}constructor(t){this.containerNode=t.container,this.theme=t.theme,this.root=fT(t.rootNode),this.packageContext=t.packageContext}render(t){this.root.render(R.jsx(b.StrictMode,{children:R.jsx(h9,{container:this.containerNode,colorMode:"light",theme:this.theme??x9,children:R.jsx(w9.Provider,{value:this.packageContext,children:t})})}))}destroy(){this.root.unmount()}}function E9(e,t){const r=o=>{const i=t.get(o);if(!i)throw new V(H.INTERNAL,`Package '${o}' was not found in application.`);return i};return{getService:(o,i,s)=>{const a={interfaceName:i,...s},l=e.getService(o,a);if(l.type==="found")return l.value.getInstanceOrThrow();const u=Dc(a);switch(l.type){case"unimplemented":throw new V(H.INTERFACE_NOT_FOUND,`The UI of package '${o}' requested the unimplemented interface ${u}.`);case"undeclared":throw new V(H.UNDECLARED_DEPENDENCY,`Package '${o}' did not declare an UI dependency on interface ${u}. Add the dependency to the package configuration or remove the usage.`);case"ambiguous":{const c=Z1(l.choices);throw new V(H.AMBIGUOUS_DEPENDENCY,`The UI of package '${o}' requires the ambiguous interface ${u}. Possible choices are: ${c}.`)}case"unknown-package":throw new V(H.MISSING_PACKAGE,$1(o,i))}},getServices:(o,i)=>{const s=e.getServices(o,i);if(s.type==="found")return s.value.map(a=>a.getInstanceOrThrow());switch(s.type){case"undeclared":throw new V(H.UNDECLARED_DEPENDENCY,`Package '${o}' did not declare an UI dependency on all services implementing interface '${i}'. Add the dependency ("all": true) to the package configuration or remove the usage.`);case"unknown-package":throw new V(H.MISSING_PACKAGE,$1(o,i))}},getProperties:o=>r(o).properties,getIntl:o=>r(o).intl}}function $1(e,t){return`Package '${e}' was not found in the application's metadata while it attempted to reference the interface '${t}'. Check that the dependency is declared correctly in the packages that use '${e}'.`}const k9={title:"Anwendungsstart fehlgeschlagen",alertTitle:"Fehler",alertDescription:"Leider ist beim Start der Anwendung ein Fehler aufgetreten.","details.title":"Fehlerdetails","details.inspect":"Konsole öffnen, um weitere Details zu sehen.","details.errorMessage":"Fehler: {message}"},C9={title:"Application start failed",alertTitle:"Error",alertDescription:"Unfortunately an error occurred during application start.","details.title":"Error details","details.inspect":"Inspect the console to see more details.","details.errorMessage":"Error: {message}"},sh={en:C9,de:k9},T9=!1;function P9(e){const t=e.intl;return R.jsx(nC,{width:"100%",height:"100%",minWidth:"500px",minHeight:"150px",children:R.jsxs(sT,{padding:4,width:"100%",height:"100%",children:[R.jsx(lT,{size:"md",children:t.formatMessage({id:"title"})}),R.jsxs(lg,{status:"error",maxWidth:550,borderRadius:"4px",mt:2,children:[R.jsx(ug,{}),R.jsx(cg,{children:t.formatMessage({id:"alertTitle"})}),R.jsx(fg,{children:t.formatMessage({id:"alertDescription"})})]}),T9]})})}const nn=Nc("runtime:CustomElement");function tU(e){var r,n,o,i,dT,qp;class t extends HTMLElement{constructor(){super();qt(this,i);qt(this,r);qt(this,n);qt(this,o);$t(this,r,this.attachShadow({mode:"open"}))}static get observedAttributes(){return[]}connectedCallback(){nn.debug("Launching application"),Le(this,n)&&Le(this,n).destroy(),$t(this,n,_l(this,i,qp).call(this)),Le(this,n).start()}disconnectedCallback(){nn.debug("Shutting down application"),Le(this,o)&&clearTimeout(Le(this,o)),Le(this,n)?.destroy(),$t(this,n,void 0),nn.debug("Application destroyed")}when(){return Le(this,n)?Le(this,n).whenAPI():Promise.reject(new V(H.NOT_MOUNTED,"Cannot use the application's API because the HTML element has not yet been mounted into the DOM."))}}return r=new WeakMap,n=new WeakMap,o=new WeakMap,i=new WeakSet,dT=function(c){Le(this,o)&&clearTimeout(Le(this,o)),$t(this,o,setTimeout(()=>{Le(this,n)&&(nn.debug("Restarting application with new options",c),Le(this,n).destroy(),$t(this,n,_l(this,i,qp).call(this,c)),Le(this,n).start())},1))},qp=function(c){return new _9({hostElement:this,shadowRoot:Le(this,r),elementOptions:e,overrides:c,restart:_l(this,i,dT).bind(this)})},t}class _9{options;apiPromise;api;state="not-started";container;config;serviceLayer;lifecycleEvents;reactIntegration;stylesWatch;constructor(t){this.options=t}start(){if(this.state!=="not-started")throw new V(H.INTERNAL,`Cannot start element in state '${this.state}'`);this.state="starting",this.startImpl().catch(t=>{this.state!=="destroyed"&&(M9(t),this.reset(),this.state="error",this.showErrorScreen(t))})}destroy(){if(this.state!=="destroyed"){if(this.state==="started")try{this.triggerApplicationLifecycleEvent("before-stop")}catch{}this.state="destroyed",this.reset()}}reset(){this.apiPromise?.reject(K1()),this.reactIntegration=Hf(this.reactIntegration),this.options.shadowRoot.replaceChildren(),this.container=void 0,this.lifecycleEvents=void 0,this.serviceLayer=Hf(this.serviceLayer),this.stylesWatch=Hf(this.stylesWatch)}whenAPI(){return this.api?Promise.resolve(this.api):(this.apiPromise??=VP()).promise}async startImpl(){const{shadowRoot:t,hostElement:r,elementOptions:n,overrides:o}=this.options,i=this.config=await R9(r,n,o);this.checkAbort(),nn.debug("Application config is",i);const s=await C_(n.appMetadata,i.locale);this.checkAbort();const a=this.container=N1(s.locale),l=this.initStyles();t.replaceChildren(a,...l);const{serviceLayer:u,packages:c}=this.initServiceLayer({container:a,properties:i.properties,i18n:s});this.lifecycleEvents=D1(u,am),await this.initAPI(u),this.checkAbort(),this.reactIntegration=Xa.createForApp({rootNode:a,container:t,theme:n.theme,serviceLayer:u,packages:c});const f=this.options.elementOptions.component??L9;this.reactIntegration.render(b.createElement(f)),this.state="started",this.triggerApplicationLifecycleEvent("after-start"),nn.debug("Application started")}initStyles(){const t=":host { all: initial; display: block; }",r=document.createElement("style");F1(r,{value:t});const n=this.options.elementOptions.appMetadata?.styles,o=document.createElement("style");return F1(o,n),[r,o]}initServiceLayer(t){const{hostElement:r,shadowRoot:n,elementOptions:o,restart:i}=this.options,{container:s,properties:a,i18n:l}=t,u=o.appMetadata?.packages??{},c=O_({host:r,shadowRoot:n,container:s,locale:l.locale,supportedLocales:l.supportedMessageLocales,changeLocale(g){const y=l.supportedMessageLocales;if(g!=null&&!l.supportsLocale(g))throw new V(H.UNSUPPORTED_LOCALE,`Unsupported locale '${g}' (supported locales: ${y.join(", ")}).`);i({locale:g})}}),{serviceLayer:f,packages:d}=A9({packageMetadata:u,builtinPackage:c,properties:a,i18n:l});return this.serviceLayer=f,nn.isDebug()&&nn.debug("Launching service layer with packages",Object.fromEntries(d)),f.start(),{serviceLayer:f,packages:d}}async initAPI(t){const r=D1(t,sm);try{const n=this.api=await r.getApi();nn.debug("Application API initialized to",n),this.apiPromise?.resolve(n)}catch(n){throw new V(H.INTERNAL,"Failed to gather the application's API methods.",{cause:n})}}triggerApplicationLifecycleEvent(t){this.lifecycleEvents?.emitLifecycleEvent(t)}checkAbort(){this.state==="destroyed"&&$P()}showErrorScreen(t){const{shadowRoot:r,elementOptions:n}=this.options,o=xS(),i=new SS(Object.keys(sh)),{locale:s,messageLocale:a}=i.pickSupportedLocale(void 0,o),l=this.container=N1(s);l.classList.add("pioneer-root-error-screen");const u=sh[a]??sh.en,c=im(s,u);this.reactIntegration=Xa.createForErrorScreen({rootNode:l,container:r,theme:n.theme}),this.reactIntegration.render(b.createElement(P9,{intl:c,error:t})),r.replaceChildren(l)}}function N1(e){const t=document.createElement("div");return t.classList.add("pioneer-root"),t.style.minHeight="100%",t.style.height="100%",e&&(t.lang=e),t}function A9(e){const{packageMetadata:t,properties:r,builtinPackage:n,i18n:o}=e;let i;try{i=qP(t??{},o,r)}catch(l){throw new V(H.INVALID_METADATA,"Failed to parse package metadata.",{cause:l})}{const l=i.findIndex(u=>u.name===n.name);l>=0&&i.splice(l,1),i.push(n)}const s=[{interfaceName:sm},{interfaceName:am},{interfaceName:L_,all:!0}],a=new N_(i,s);return{packages:new Map(i.map(l=>[l.name,l])),serviceLayer:a}}function D1(e,t){const r=e.getService("@open-pioneer/runtime",{interfaceName:t},{ignoreDeclarationCheck:!0});if(r.type!=="found")throw new V(H.INTERNAL,`Failed to find instance of '${t}' (result type '${r.type}'). This is a builtin service that must be present exactly once.`);return r.value.getInstanceOrThrow()}async function R9(e,t,r){let n;try{const i=t.config??{},s=await t.resolveConfig?.({hostElement:e,getAttribute(a){return e.getAttribute(a)??void 0}})??{};n=[i,s]}catch(i){throw new V(H.CONFIG_RESOLUTION_FAILED,"Failed to resolve application properties.",{cause:i})}const o=I9(n);return r?.locale&&(o.locale=r.locale),o}function I9(e){const t=Object.assign({locale:void 0,properties:{}},...e),r=t.properties={};for(const n of e)for(const[o,i]of Object.entries(n.properties??{})){const s=r[o]??={};Object.assign(s,i)}return t}function F1(e,t){let r=t?.value??"";r=r.replace(/\/\*# sourceMappingURL=.*$/,"");const n=document.createTextNode(r);e.replaceChildren(n)}function M9(e){if(e instanceof V){const t=LP(e).reverse();if(t.length===1){console.error(e);return}let r=1;for(const n of t)console.error(`#${r}`,n),++r}else console.error("Unexpected error",e)}function L9(){return null}function rU(e){return{value:e}}export{nT as $,dl as A,et as B,eE as C,Fi as D,_S as E,Qw as F,nl as G,lT as H,ig as I,Dr as J,F9 as K,o0 as L,W8 as M,x9 as N,nC as O,eU as P,Z9 as Q,lg as R,iT as S,la as T,ug as U,sT as V,cg as W,fg as X,J9 as Y,q9 as Z,Q9 as _,rU as a,K9 as a0,Al as a1,Yp as a2,pl as a3,lm as a4,hl as a5,bt as a6,j9 as a7,cm as a8,DD as a9,TS as aa,J_ as ab,$9 as ac,Hf as ad,D9 as ae,$P as af,Zs as ag,r4 as ah,Gz as ai,G9 as aj,K1 as ak,VP as al,w9 as am,V as an,H as ao,Zw as ap,z9 as aq,tU as b,Nc as c,fv as d,mh as e,Ku as f,iA as g,cr as h,B9 as i,R as j,Wp as k,Cr as l,m8 as m,Re as n,Jr as o,V9 as p,fl as q,b as r,X9 as s,u1 as t,Xf as u,Y9 as v,ua as w,xn as x,mA as y,t8 as z}; diff --git a/core-packages/pr-previews/pr-71/assets/BOrLY4AUi9Q9.js b/core-packages/pr-previews/pr-71/assets/BOrLY4AUi9Q9.js deleted file mode 100644 index 8df1e28..0000000 --- a/core-packages/pr-previews/pr-71/assets/BOrLY4AUi9Q9.js +++ /dev/null @@ -1 +0,0 @@ -var p=e=>{throw TypeError(e)};var u=(e,i,n)=>i.has(e)||p("Cannot "+n);var c=(e,i,n)=>(u(e,i,"read from private field"),n?n.call(e):i.get(e)),d=(e,i,n)=>i.has(e)?p("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,n);import{a as f,j as r,H as l,V as g,b as x}from"./BNseSxaIihtT.js";import{u as h}from"./DrpD1hfjkN6P.js";import{B as A}from"./CE6nEn_ZV1yL.js";import{C as w}from"./jYicUDcJydKy.js";import{T as a}from"./GR5gr-89Qrme.js";var o;class b{constructor(i){d(this,o,new Map);const n=c(this,o),t=i.references.providers;for(const m of t){const v=m.createActions();for(const s of v){if(n.has(s.id))throw new Error(`Action '${s.id}' was defined twice.`);n.set(s.id,s)}}}getActionInfo(){const i=Array.from(c(this,o).values()).map(n=>({id:n.id,text:n.text}));return i.sort((n,t)=>n.text.localeCompare(t.text)),i}triggerAction(i){const n=c(this,o).get(i);if(!n)throw new Error(`Action '${i}' was not defined.`);n.trigger()}}o=new WeakMap;class P{createActions(){return[{id:"logging-action",text:"Log a message",trigger(){console.info("Logging a message!")}}]}}class j{createActions(){return[{id:"clear-browser-action",text:"Clear browser",trigger(){document.body.innerHTML=""}},{id:"refresh-browser-action",text:"Refresh browser",trigger(){window.location.reload()}}]}}class S{createActions(){return[{id:"open-window-action",text:"Open window",trigger(){window.open("https://www.conterra.de")}}]}}const y={"extension-app":{name:"extension-app",services:{ActionServiceImpl:{name:"ActionServiceImpl",clazz:b,provides:[{name:"extension-app.ActionService",qualifier:void 0}],references:{providers:{name:"extension-app.ActionProvider",qualifier:void 0,all:!0}}},LoggingActionProvider:{name:"LoggingActionProvider",clazz:P,provides:[{name:"extension-app.ActionProvider",qualifier:void 0}],references:{}},MultiActionProvider:{name:"MultiActionProvider",clazz:j,provides:[{name:"extension-app.ActionProvider",qualifier:void 0}],references:{}},OpenWindowActionProvider:{name:"OpenWindowActionProvider",clazz:S,provides:[{name:"extension-app.ActionProvider",qualifier:void 0}],references:{}}},ui:{references:[{name:"extension-app.ActionService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},I="",z=[];function E(e){throw new Error(`Unsupported locale: '${e}'`)}const M=f(I),T=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:E,locales:z,packages:y,styles:M},Symbol.toStringTag,{value:"Module"})),k="extension-app",C=h.bind(void 0,k);function q(){const e=C("extension-app.ActionService"),i=e.getActionInfo().map(({id:n,text:t})=>r.jsx(A,{onClick:()=>e.triggerAction(n),children:t},n));return r.jsxs(w,{maxW:"3xl",py:2,children:[r.jsx(l,{as:"h1",size:"4xl",mb:4,children:"Extension Example"}),r.jsx(a,{my:2,children:"This example demonstrates how to provide an extensible API with services and 1-to-N dependencies."}),r.jsxs(a,{my:2,children:["Individual ",r.jsx("code",{children:"ActionProvider"})," instances can provide a number of actions, which are then gathered and indexed by the ",r.jsx("code",{children:"ActionService"}),", which depends on all ActionProviders. The UI references the ",r.jsx("code",{children:"ActionService"})," and renders the provided actions as buttons. When a button is clicked, the appropriate action will be triggered."]}),r.jsxs(a,{my:2,children:["To add a new action, simply add new implementation of"," ",r.jsx("code",{children:'"extension-app.ActionProvider"'}),". The"," ",r.jsx("code",{children:"ActionService"})," will pick it up automatically."]}),r.jsxs(l,{as:"h4",size:"xl",children:["Buttons from ",r.jsx("code",{children:"ActionService"}),":"]}),r.jsx(g,{align:"start",children:i})]})}const B=x({component:q,appMetadata:T});customElements.define("extension-app",B); diff --git a/core-packages/pr-previews/pr-71/assets/BnGLVwzG1tCL.js b/core-packages/pr-previews/pr-71/assets/BnGLVwzG1tCL.js deleted file mode 100644 index f5efc48..0000000 --- a/core-packages/pr-previews/pr-71/assets/BnGLVwzG1tCL.js +++ /dev/null @@ -1 +0,0 @@ -import{h as p,j as e,n as a,l as b,F as C,G as E,r as m,a7 as I}from"./BNseSxaIihtT.js";import{b as P}from"./DE_cfL-UvDdR.js";import{s as k}from"./Bux-xGeHLEc6.js";import{d as F}from"./jYicUDcJydKy.js";const f=p(function(o,t){const{children:l,placeholder:r,className:c,...n}=o;return e.jsxs(a.select,{...n,ref:t,className:b("chakra-select",c),children:[r&&e.jsx("option",{value:"",children:r}),l]})});f.displayName="SelectField";const z=p((s,o)=>{const t=C("Select",s),{rootProps:l,placeholder:r,icon:c,color:n,height:x,h:S,minH:_,minHeight:y,iconColor:i,iconSize:d,...j}=E(s),[g,N]=k(j,I),h=P(N),v={width:"100%",height:"fit-content",position:"relative",color:n},w={paddingEnd:"2rem",...t.field,_focus:{zIndex:"unset",...t.field?._focus}};return e.jsxs(a.div,{className:"chakra-select__wrapper",__css:v,...g,...l,children:[e.jsx(f,{ref:o,height:S??x,minH:_??y,placeholder:r,...h,__css:w,children:s.children}),e.jsx(u,{"data-disabled":F(h.disabled),...(i||n)&&{color:i||n},__css:t.icon,...d&&{fontSize:d},children:c})]})});z.displayName="Select";const H=s=>e.jsx("svg",{viewBox:"0 0 24 24",...s,children:e.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),M=a("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),u=s=>{const{children:o=e.jsx(H,{}),...t}=s,l=m.cloneElement(o,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return e.jsx(M,{...t,className:"chakra-select__icon-wrapper",children:m.isValidElement(o)?l:null})};u.displayName="SelectIcon";export{z as S}; diff --git a/core-packages/pr-previews/pr-71/assets/Bux-xGeHLEc6.js b/core-packages/pr-previews/pr-71/assets/Bux-xGeHLEc6.js deleted file mode 100644 index 38f1e46..0000000 --- a/core-packages/pr-previews/pr-71/assets/Bux-xGeHLEc6.js +++ /dev/null @@ -1 +0,0 @@ -function L(e,t){const n={},c={};for(const[u,l]of Object.entries(e))t.includes(u)?n[u]=l:c[u]=l;return[n,c]}var y=()=>typeof document<"u",f=!1,i=null,o=!1,a=!1,d=new Set;function s(e,t){d.forEach(n=>n(e,t))}var w=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function v(e){return!(e.metaKey||!w&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function p(e){o=!0,v(e)&&(i="keyboard",s("keyboard",e))}function r(e){if(i="pointer",e.type==="mousedown"||e.type==="pointerdown"){o=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;s("pointer",e)}}function E(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function h(e){E(e)&&(o=!0,i="virtual")}function b(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(!o&&!a&&(i="virtual",s("virtual",e)),o=!1,a=!1)}function g(){o=!1,a=!0}function m(){return i!=="pointer"}function k(){if(!y()||f)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){o=!0,e.apply(this,n)},document.addEventListener("keydown",p,!0),document.addEventListener("keyup",p,!0),document.addEventListener("click",h,!0),window.addEventListener("focus",b,!0),window.addEventListener("blur",g,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",r,!0),document.addEventListener("pointermove",r,!0),document.addEventListener("pointerup",r,!0)):(document.addEventListener("mousedown",r,!0),document.addEventListener("mousemove",r,!0),document.addEventListener("mouseup",r,!0)),f=!0}function S(e){k(),e(m());const t=()=>e(m());return d.add(t),()=>{d.delete(t)}}const x={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};export{L as s,S as t,x as v}; diff --git a/core-packages/pr-previews/pr-71/assets/BwyHRR6WVEwF.js b/core-packages/pr-previews/pr-71/assets/BwyHRR6WVEwF.js deleted file mode 100644 index d5eb28f..0000000 --- a/core-packages/pr-previews/pr-71/assets/BwyHRR6WVEwF.js +++ /dev/null @@ -1 +0,0 @@ -var E=t=>{throw TypeError(t)};var k=(t,n,r)=>n.has(t)||E("Cannot "+r);var a=(t,n,r)=>(k(t,n,"read from private field"),r?r.call(t):n.get(t)),x=(t,n,r)=>n.has(t)?E("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),d=(t,n,r,s)=>(k(t,n,"write to private field"),s?s.call(t,r):n.set(t,r),r);import{n as U,h as S,j as e,l as F,r as p,V as q,H as P,R as w,U as _,W as D,X as H,a as V,O as G,b as K}from"./BNseSxaIihtT.js";import{u as W,I as X}from"./B9zdqh9PWE0a.js";import{C as N}from"./jYicUDcJydKy.js";import{T as Y}from"./GR5gr-89Qrme.js";import{F as b}from"./DE_cfL-UvDdR.js";import{F as L}from"./COFhTFd8PTaT.js";import{I as y}from"./apwTDgsvPGCI.js";import{B as h}from"./CE6nEn_ZV1yL.js";import{H as $}from"./Dg0FwUWAsyRP.js";import{r as J,A as Q,u as Z,F as ee}from"./DqV0DePC79V3.js";import{_ as C}from"./CmsKOCeNyeyo.js";import{u as te}from"./DrpD1hfjkN6P.js";import{F as ne}from"./BDHIly7xvlGb.js";const re=U("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),v=S(function(n,r){const{placement:s="left",...c}=n,i=W(),u=i.field,j={[s==="left"?"insetStart":"insetEnd"]:"0",width:u?.height??u?.h,height:u?.height??u?.h,fontSize:u?.fontSize,...i.element};return e.jsx(re,{ref:r,__css:j,...c})});v.id="InputElement";v.displayName="InputElement";const T=S(function(n,r){const{className:s,...c}=n,i=F("chakra-input__left-element",s);return e.jsx(v,{ref:r,placement:"left",className:i,...c})});T.id="InputLeftElement";T.displayName="InputLeftElement";const A=S(function(n,r){const{className:s,...c}=n,i=F("chakra-input__right-element",s);return e.jsx(v,{ref:r,placement:"right",className:i,...c})});A.id="InputRightElement";A.displayName="InputRightElement";function se({doLogin:t,doFail:n,wasLoggedIn:r}){const[s,c]=p.useState(""),[i,u]=p.useState(""),[g,j]=p.useState(!1),[I,M]=p.useState(),[z,R]=p.useState(r),O=m=>{m.preventDefault();const B=t(s,i);M(B||""),R(!1)};return e.jsx(N,{p:5,children:e.jsxs(q,{as:"form",onSubmit:O,spacing:4,children:[e.jsx(P,{as:"h1",textAlign:"center",children:"Login"}),e.jsxs(Y,{textAlign:"center",children:["Please enter your user name and password to authenticate.",e.jsx("br",{}),"Note: credentials are ",'"admin"'," / ",'"admin"']}),I&&e.jsxs(w,{status:"error",children:[e.jsx(_,{}),e.jsx(D,{children:I})]}),z&&e.jsxs(w,{status:"info",mb:5,children:[e.jsx(_,{}),e.jsxs(H,{children:["Logout successful.",e.jsx("br",{}),"You can use the form below to log in again."]})]}),e.jsxs(b,{children:[e.jsx(L,{children:"User name"}),e.jsx(y,{placeholder:"User name",value:s,onChange:m=>c(m.target.value),autoComplete:"username"})]}),e.jsxs(b,{children:[e.jsx(L,{children:"Password"}),e.jsxs(X,{children:[e.jsx(y,{pr:"4.5rem",type:g?"text":"password",placeholder:"Enter password",value:i,onChange:m=>u(m.target.value),autoComplete:"current-password"}),e.jsx(A,{width:"4.5rem",children:e.jsx(h,{h:"1.75rem",size:"sm",onClick:()=>j(!g),children:g?"Hide":"Show"})})]})]}),e.jsxs($,{children:[e.jsx(h,{colorScheme:"red",onClick:n,children:"Let it fail!"}),e.jsx(h,{type:"submit",children:"Login"})]})]})})}var o,l,f;class ie{constructor(){x(this,o,J({kind:"pending"}));x(this,l);x(this,f,!1);d(this,l,setTimeout(()=>{a(this,o).value={kind:"not-authenticated"}},500))}destroy(){clearTimeout(a(this,l)),d(this,l,void 0)}getAuthState(){return a(this,o).value}getLoginBehavior(){const n=(c,i)=>{if(c==="admin"&&i==="admin")a(this,o).value={kind:"authenticated",sessionInfo:{userId:"admin",userName:"Arnold Administrator"}},d(this,f,!0);else return"Invalid user name or password!"},r=()=>{a(this,o).value={kind:"error",error:new Error("Login failed!")}};return{kind:"fallback",Fallback:()=>p.createElement(se,{doLogin:n,doFail:r,wasLoggedIn:a(this,f)})}}logout(){(a(this,o).value.kind==="authenticated"||a(this,o).value.kind==="pending")&&(a(this,o).value={kind:"not-authenticated"},clearTimeout(a(this,l)),d(this,l,void 0))}}o=new WeakMap,l=new WeakMap,f=new WeakMap;const ae={"auth-app":{name:"auth-app",services:{TestAuthPlugin:{name:"TestAuthPlugin",clazz:ie,provides:[{name:"authentication.AuthPlugin",qualifier:void 0}],references:{}}},ui:{references:[{name:"authentication.AuthService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/authentication":{name:"@open-pioneer/authentication",services:{AuthServiceImpl:{name:"AuthServiceImpl",clazz:Q,provides:[{name:"authentication.AuthService",qualifier:void 0}],references:{plugin:{name:"authentication.AuthPlugin",qualifier:void 0,all:!1}}}},ui:{references:[{name:"authentication.AuthService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/reactivity":{name:"@open-pioneer/reactivity",services:{},ui:{references:[]},properties:{}}},oe="",ce=["en","de"];function le(t){switch(t){case"en":return C(()=>import("./P9WplnIxWHzS.js"),[],import.meta.url).then(n=>n.default);case"de":return C(()=>import("./z2D46c5wMnzO.js"),[],import.meta.url).then(n=>n.default)}throw new Error(`Unsupported locale: '${t}'`)}const ue=V(oe),pe=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:le,locales:ce,packages:ae,styles:ue},Symbol.toStringTag,{value:"Module"})),me="auth-app",de=te.bind(void 0,me);function he(){const t=de("authentication.AuthService"),n=Z(t),r=()=>{t.logout()};return n.kind==="not-authenticated"||n.kind==="pending"?null:e.jsx(h,{colorScheme:"red",onClick:r,children:"Log out"})}function fe(){return e.jsx(ee,{errorFallback:ge,children:e.jsxs(N,{p:5,children:[e.jsx(P,{as:"h1",children:"Authenticated"}),"This is the actual content of the app. Authentication was successful.",e.jsx(ne,{pt:5,flexDirection:"row",justifyContent:"center",children:e.jsx(he,{})})]})})}function ge(t){return e.jsxs(e.Fragment,{children:[e.jsx(G,{margin:2,color:"red",children:t.error.message}),e.jsx(h,{margin:2,onClick:()=>window.location.reload(),children:"reload"})]})}const xe=K({component:fe,appMetadata:pe});customElements.define("auth-app",xe); diff --git a/core-packages/pr-previews/pr-71/assets/C0zvqj6959Db.js b/core-packages/pr-previews/pr-71/assets/C0zvqj6959Db.js deleted file mode 100644 index cb28275..0000000 --- a/core-packages/pr-previews/pr-71/assets/C0zvqj6959Db.js +++ /dev/null @@ -1 +0,0 @@ -import{r as c,u as ge,d as Be,e as xt,g as vt,i as yt,f as jt,h as v,k as V,l as j,m as O,j as e,n as h,C as Ie,o as w,p as be,A as Le,q as Q,w as J,T as De,s as fe,t as gt,v as bt,M as Pt,x as Pe,y as Z,z as _t,B as ce,D as $,E as Me,F as He,G as ze,I as wt,J as Ct,K as kt,a as Tt,L as St,N as Et,H as $e,S as Ve,O as C,P as Ue,Q as Nt,R as Ft,U as Rt,W as Dt,X as Mt,Y as Ot,Z as At,_ as Bt,$ as It,a0 as Lt,b as Ht}from"./BNseSxaIihtT.js";import{g as zt,a as $t,L as Vt}from"./7DM-szicVgdJ.js";import{S as Ut}from"./C_rveq3oviC1.js";import{u as Gt}from"./5BaEhH7ejH5h.js";import{R as Wt,a as le}from"./_DT9ZMsk9pcc.js";import{S as Kt}from"./BnGLVwzG1tCL.js";import{C as qt}from"./jYicUDcJydKy.js";import{T as Xt}from"./GR5gr-89Qrme.js";import{B as b}from"./CE6nEn_ZV1yL.js";import"./Bux-xGeHLEc6.js";import"./DE_cfL-UvDdR.js";function Yt(t){const{wasSelected:o,enabled:s,isSelected:n,mode:a="unmount"}=t;return!!(!s||n||a==="keepMounted"&&o)}function Jt(t){const{isOpen:o,ref:s}=t,[n,a]=c.useState(o),[r,i]=c.useState(!1);return c.useEffect(()=>{r||(a(o),i(!0))},[o,r,n]),ge(()=>s.current,"animationend",()=>{a(o)}),{present:!(o?!1:!n),onComplete(){const p=zt(s.current),d=new p.CustomEvent("animationend",{bubbles:!0});s.current?.dispatchEvent(d)}}}function Qt(t){const o=t.current;if(!o)return!1;const s=$t(o);return!s||o.contains(s)?!1:!!yt(s)}function Zt(t,o){const{shouldFocus:s,visible:n,focusRef:a}=o,r=s&&!n;Be(()=>{if(!r||Qt(t))return;const i=a?.current||t.current;let l;if(i)return l=requestAnimationFrame(()=>{i.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(l)}},[r,t,a])}const eo={preventScroll:!0,shouldFocus:!1};function to(t,o=eo){const{focusRef:s,preventScroll:n,shouldFocus:a,visible:r}=o,i=oo(t)?t.current:t,l=a&&r,p=c.useRef(l),d=c.useRef(r);xt(()=>{!d.current&&r&&(p.current=l),d.current=r},[r,l]);const f=c.useCallback(()=>{if(!(!r||!i||!p.current)&&(p.current=!1,!i.contains(document.activeElement)))if(s?.current)requestAnimationFrame(()=>{s.current?.focus({preventScroll:n})});else{const m=vt(i);m.length>0&&requestAnimationFrame(()=>{m[0].focus({preventScroll:n})})}},[r,n,i,s]);Be(()=>{f()},[f]),ge(i,"transitionend",f)}function oo(t){return"current"in t}function so(t){return"current"in t}const Ge=()=>typeof window<"u";function no(){return navigator.userAgentData?.platform??navigator.platform}const ro=t=>Ge()&&t.test(navigator.vendor),ao=t=>Ge()&&t.test(no()),io=()=>ao(/mac|iphone|ipad|ipod/i),co=()=>io()&&ro(/apple/i);function lo(t){const{ref:o,elements:s,enabled:n}=t,a=()=>o.current?.ownerDocument??document;ge(a,"pointerdown",r=>{if(!co()||!n)return;const i=r.composedPath?.()?.[0]??r.target,p=(s??[o]).some(d=>{const f=so(d)?d.current:d;return f?.contains(i)||f===i});a().activeElement!==i&&p&&(r.preventDefault(),i.focus())})}function uo(t){const{ref:o,handler:s,enabled:n=!0}=t,a=jt(s),i=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;c.useEffect(()=>{if(!n)return;const l=m=>{de(m,o)&&(i.isPointerDown=!0)},p=m=>{if(i.ignoreEmulatedMouseEvents){i.ignoreEmulatedMouseEvents=!1;return}i.isPointerDown&&s&&de(m,o)&&(i.isPointerDown=!1,a(m))},d=m=>{i.ignoreEmulatedMouseEvents=!0,s&&i.isPointerDown&&de(m,o)&&(i.isPointerDown=!1,a(m))},f=We(o.current);return f.addEventListener("mousedown",l,!0),f.addEventListener("mouseup",p,!0),f.addEventListener("touchstart",l,!0),f.addEventListener("touchend",d,!0),()=>{f.removeEventListener("mousedown",l,!0),f.removeEventListener("mouseup",p,!0),f.removeEventListener("touchstart",l,!0),f.removeEventListener("touchend",d,!0)}},[s,o,a,i,n])}function de(t,o){const s=t.composedPath?.()[0]??t.target;return s&&!We(s).contains(s)?!1:!o.current?.contains(s)}function We(t){return t?.ownerDocument??document}const ee=v((t,o)=>{const{className:s,...n}=t,{bodyId:a,setBodyMounted:r}=V();c.useEffect(()=>(r(!0),()=>r(!1)),[r]);const i=j("chakra-modal__body",s),l=O();return e.jsx(h.div,{ref:o,className:i,id:a,...n,__css:l.body})});ee.displayName="ModalBody";const _e=v((t,o)=>{const{onClick:s,className:n,...a}=t,{onClose:r}=V(),i=j("chakra-modal__close-btn",n),l=O();return e.jsx(Ie,{ref:o,__css:l.closeButton,className:i,onClick:w(s,p=>{p.stopPropagation(),r()}),...a})});_e.displayName="ModalCloseButton";const te=v((t,o)=>{const{className:s,...n}=t,a=j("chakra-modal__footer",s),r=O(),i=be({display:"flex",alignItems:"center",justifyContent:"flex-end",...r.footer});return e.jsx(h.footer,{ref:o,...n,__css:i,className:a})});te.displayName="ModalFooter";const oe=v((t,o)=>{const{className:s,...n}=t,{headerId:a,setHeaderMounted:r}=V();c.useEffect(()=>(r(!0),()=>r(!1)),[r]);const i=j("chakra-modal__header",s),l=O(),p=be({flex:0,...l.header});return e.jsx(h.header,{ref:o,className:i,id:a,...n,__css:p})});oe.displayName="ModalHeader";const po={enter:({transition:t,transitionEnd:o,delay:s}={})=>({opacity:1,transition:t?.enter??J.enter(De.enter,s),transitionEnd:o?.enter}),exit:({transition:t,transitionEnd:o,delay:s}={})=>({opacity:0,transition:t?.exit??J.exit(De.exit,s),transitionEnd:o?.exit})},Ke={initial:"exit",animate:"enter",exit:"exit",variants:po},fo=c.forwardRef(function(o,s){const{unmountOnExit:n,in:a,className:r,transition:i,transitionEnd:l,delay:p,animatePresenceProps:d,...f}=o,m=a||n?"enter":"exit",k=n?a&&n:!0,T={transition:i,transitionEnd:l,delay:p};return e.jsx(Le,{...d,custom:T,children:k&&e.jsx(Q.div,{ref:s,className:j("chakra-fade",r),custom:T,...Ke,animate:m,...f})})});fo.displayName="Fade";const mo=h(Q.div),se=v((t,o)=>{const{className:s,transition:n,motionProps:a,...r}=t,i=j("chakra-modal__overlay",s),p={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...O().overlay},{motionPreset:d}=V(),m=a||(d==="none"?{}:Ke);return e.jsx(mo,{...m,__css:p,ref:o,className:i,...r})});se.displayName="ModalOverlay";const Oe={exit:{duration:.15,ease:gt.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},ho={exit:({direction:t,transition:o,transitionEnd:s,delay:n})=>{const{exit:a}=fe({direction:t});return{...a,transition:o?.exit??J.exit(Oe.exit,n),transitionEnd:s?.exit}},enter:({direction:t,transitionEnd:o,transition:s,delay:n})=>{const{enter:a}=fe({direction:t});return{...a,transition:s?.enter??J.enter(Oe.enter,n),transitionEnd:o?.enter}}},qe=c.forwardRef(function(o,s){const{direction:n="right",style:a,unmountOnExit:r,in:i,className:l,transition:p,transitionEnd:d,delay:f,motionProps:m,animatePresenceProps:k,...T}=o,I=fe({direction:n}),L=Object.assign({position:"fixed"},I.position,a),x=r?i&&r:!0,P=i||r?"enter":"exit",R={transitionEnd:d,transition:p,direction:n,delay:f};return e.jsx(Le,{...k,custom:R,children:x&&e.jsx(Q.div,{...T,ref:s,initial:"exit",className:j("chakra-slide",l),animate:P,exit:"exit",custom:R,variants:ho,style:L,...m})})});qe.displayName="Slide";const xo=h(qe),Xe=v((t,o)=>{const{className:s,children:n,motionProps:a,containerProps:r,...i}=t,{getDialogProps:l,getDialogContainerProps:p,isOpen:d}=V(),f=l(i,o),m=p(r),k=j("chakra-modal__content",s),T=O(),I={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...T.dialog},L={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...T.dialogContainer},{placement:x}=bt();return e.jsx(Pt,{children:e.jsx(h.div,{...m,className:"chakra-modal__content-container",__css:L,children:e.jsx(xo,{motionProps:a,direction:x,in:d,className:k,...f,__css:I,children:n})})})});Xe.displayName="DrawerContent";const[vo,F]=Pe({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[yo,A]=Pe({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),M={click:"click",hover:"hover"};function jo(t={}){const{closeOnBlur:o=!0,closeOnEsc:s=!0,initialFocusRef:n,id:a,returnFocusOnClose:r=!0,autoFocus:i=!0,arrowSize:l,arrowShadowColor:p,trigger:d=M.click,openDelay:f=200,closeDelay:m=200,isLazy:k,lazyBehavior:T="unmount",computePositionOnMount:I,...L}=t,{isOpen:x,onClose:P,onOpen:R,onToggle:we}=Z(t),[et,ne]=c.useState(r);c.useEffect(()=>ne(r),[r]);const re=c.useRef(null),H=c.useRef(null),E=c.useRef(null),z=c.useRef(!1),Ce=c.useRef(!1);x&&(Ce.current=!0);const[ke,tt]=c.useState(!1),[Te,ot]=c.useState(!1),st=c.useId(),nt=a??st,[Se,U,G,W]=["popover-trigger","popover-content","popover-header","popover-body"].map(u=>`${u}-${nt}`),{referenceRef:K,getArrowProps:rt,getPopperProps:Ee,getArrowInnerProps:at,forceUpdate:it}=_t({...L,enabled:x||!!I}),Ne=Jt({isOpen:x,ref:E});lo({enabled:x,ref:H}),Zt(E,{focusRef:H,visible:x,shouldFocus:et&&d===M.click}),to(E,{focusRef:n,visible:x,shouldFocus:i&&d===M.click}),uo({enabled:x&&o,ref:E,handler(u){const g=u.composedPath?.()[0]??[u.target];q(H.current,g)||(g&&ne(!Me(g)),P())}});const Fe=Yt({wasSelected:Ce.current,enabled:k,mode:T,isSelected:Ne.present}),ct=c.useCallback((u={},g=null)=>{const y={...u,style:{...u.style,transformOrigin:ce.transformOrigin.varRef,[ce.arrowSize.var]:l?`${l}px`:void 0,[ce.arrowShadowColor.var]:p},ref:$(E,g),children:Fe?u.children:null,id:U,tabIndex:-1,role:"dialog",onKeyDown:w(u.onKeyDown,_=>{_.nativeEvent.isComposing||s&&_.key==="Escape"&&(_.preventDefault(),_.stopPropagation(),P())}),onBlur:w(u.onBlur,_=>{const D=Ae(_),ie=q(E.current,D),mt=q(H.current,D),ht=!ie&&!mt;D&&ne(!Me(D)),x&&o&&ht&&P()}),"aria-labelledby":ke?G:void 0,"aria-describedby":Te?W:void 0};return d===M.hover&&(y.role="tooltip",y.onMouseEnter=w(u.onMouseEnter,()=>{z.current=!0}),y.onMouseLeave=w(u.onMouseLeave,_=>{_.nativeEvent.relatedTarget!==null&&(z.current=!1,setTimeout(()=>P(),m))})),y},[Fe,U,ke,G,Te,W,d,s,P,x,o,m,p,l]),lt=c.useCallback((u={},g=null)=>Ee({...u,style:{visibility:x?"visible":"hidden",...u.style}},g),[x,Ee]),dt=c.useCallback((u,g=null)=>({...u,ref:$(g,re,K)}),[re,K]),N=c.useRef(),ae=c.useRef(),Re=c.useCallback(u=>{re.current==null&&K(u)},[K]),ut=c.useCallback((u={},g=null)=>{const y={...u,ref:$(H,g,Re),id:Se,"aria-haspopup":"dialog","aria-expanded":x,"aria-controls":U};return d===M.click&&(y.onClick=w(u.onClick,we)),d===M.hover&&(y.onFocus=w(u.onFocus,()=>{N.current===void 0&&R()}),y.onBlur=w(u.onBlur,_=>{const D=Ae(_),ie=!q(E.current,D);x&&o&&ie&&P()}),y.onKeyDown=w(u.onKeyDown,_=>{_.key==="Escape"&&P()}),y.onMouseEnter=w(u.onMouseEnter,()=>{z.current=!0,N.current=window.setTimeout(()=>R(),f)}),y.onMouseLeave=w(u.onMouseLeave,()=>{z.current=!1,N.current&&(clearTimeout(N.current),N.current=void 0),ae.current=window.setTimeout(()=>{z.current===!1&&P()},m)})),y},[Se,x,U,d,Re,we,R,o,P,f,m]);c.useEffect(()=>()=>{N.current&&clearTimeout(N.current),ae.current&&clearTimeout(ae.current)},[]);const pt=c.useCallback((u={},g=null)=>({...u,id:G,ref:$(g,y=>{tt(!!y)})}),[G]),ft=c.useCallback((u={},g=null)=>({...u,id:W,ref:$(g,y=>{ot(!!y)})}),[W]);return{forceUpdate:it,isOpen:x,onAnimationComplete:Ne.onComplete,onClose:P,getAnchorProps:dt,getArrowProps:rt,getArrowInnerProps:at,getPopoverPositionerProps:lt,getPopoverProps:ct,getTriggerProps:ut,getHeaderProps:pt,getBodyProps:ft}}function q(t,o){return t===o||t?.contains(o)}function Ae(t){const o=t.currentTarget.ownerDocument.activeElement;return t.relatedTarget??o}function me(t){const o=He("Popover",t),{children:s,...n}=ze(t),a=wt(),r=jo({...n,direction:a.direction});return e.jsx(vo,{value:r,children:e.jsx(yo,{value:o,children:Ct(s,{isOpen:r.isOpen,onClose:r.onClose,forceUpdate:r.forceUpdate})})})}me.displayName="Popover";const ue=(t,o)=>o?`${t}.${o}, ${o}`:void 0;function he(t){const{bg:o,bgColor:s,backgroundColor:n,shadow:a,boxShadow:r,shadowColor:i,...l}=t,{getArrowProps:p,getArrowInnerProps:d}=F(),f=A(),m=o??s??n,k=a??r;return e.jsx(h.div,{...p(),className:"chakra-popover__arrow-positioner",children:e.jsx(h.div,{className:j("chakra-popover__arrow",t.className),...d(l),__css:{"--popper-arrow-shadow-color":ue("colors",i),"--popper-arrow-bg":ue("colors",m),"--popper-arrow-shadow":ue("shadows",k),...f.arrow}})})}he.displayName="PopoverArrow";const Y=v(function(o,s){const{getBodyProps:n}=F(),a=A();return e.jsx(h.div,{...n(o,s),className:j("chakra-popover__body",o.className),__css:a.body})});Y.displayName="PopoverBody";const xe=v(function(o,s){const{onClose:n}=F(),a=A();return e.jsx(Ie,{size:"sm",onClick:n,className:j("chakra-popover__close-btn",o.className),__css:a.closeButton,ref:s,...o})});xe.displayName="PopoverCloseButton";function go(t){if(t)return{enter:{...t.enter,visibility:"visible"},exit:{...t.exit,transitionEnd:{visibility:"hidden"}}}}const bo={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},Po=h(Q.section),Ye=v(function(o,s){const{variants:n=bo,...a}=o,{isOpen:r}=F();return e.jsx(Po,{ref:s,variants:go(n),initial:!1,animate:r?"enter":"exit",...a})});Ye.displayName="PopoverTransition";const ve=v(function(o,s){const{rootProps:n,motionProps:a,...r}=o,{getPopoverProps:i,getPopoverPositionerProps:l,onAnimationComplete:p}=F(),d=A(),f=be({position:"relative",display:"flex",flexDirection:"column",...d.content});return e.jsx(h.div,{...l(n),__css:d.popper,className:"chakra-popover__popper",children:e.jsx(Ye,{...a,...i(r,s),onAnimationComplete:kt(p,r.onAnimationComplete),className:j("chakra-popover__content",o.className),__css:f})})});ve.displayName="PopoverContent";function Je(t){const o=A();return e.jsx(h.footer,{...t,className:j("chakra-popover__footer",t.className),__css:o.footer})}Je.displayName="PopoverFooter";const ye=v(function(o,s){const{getHeaderProps:n}=F(),a=A();return e.jsx(h.header,{...n(o,s),className:j("chakra-popover__header",o.className),__css:a.header})});ye.displayName="PopoverHeader";function je(t){const o=c.Children.only(t.children),{getTriggerProps:s}=F();return e.jsx(e.Fragment,{children:c.cloneElement(o,s(o.props,o.ref))})}je.displayName="PopoverTrigger";const[_o,B]=Pe({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Qe=v((t,o)=>{const s=He("Table",t),{className:n,layout:a,...r}=ze(t);return e.jsx(_o,{value:s,children:e.jsx(h.table,{ref:o,__css:{tableLayout:a,...s.table},className:j("chakra-table",n),...r})})});Qe.displayName="Table";const Ze=v((t,o)=>{const{placement:s="bottom",...n}=t,a=B();return e.jsx(h.caption,{...n,ref:o,__css:{...a.caption,captionSide:s}})});Ze.displayName="TableCaption";const wo=v((t,o)=>{const{overflow:s,overflowX:n,className:a,...r}=t;return e.jsx(h.div,{ref:o,className:j("chakra-table__container",a),...r,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:s??n??"auto",overflowY:"hidden",maxWidth:"100%"}})}),Co=v((t,o)=>{const s=B();return e.jsx(h.tbody,{...t,ref:o,__css:s.tbody})}),S=v(({isNumeric:t,...o},s)=>{const n=B();return e.jsx(h.td,{...o,ref:s,__css:n.td,"data-is-numeric":t})}),pe=v(({isNumeric:t,...o},s)=>{const n=B();return e.jsx(h.th,{...o,ref:s,__css:n.th,"data-is-numeric":t})}),ko=v((t,o)=>{const s=B();return e.jsx(h.thead,{...t,ref:o,__css:s.thead})}),X=v((t,o)=>{const s=B();return e.jsx(h.tr,{...t,ref:o,__css:s.tr})}),To={"chakra-app":{name:"chakra-app",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},So="",Eo=[];function No(t){throw new Error(`Unsupported locale: '${t}'`)}const Fo=Tt(So),Ro=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:No,locales:Eo,packages:To,styles:Fo},Symbol.toStringTag,{value:"Module"})),Do=St({colors:{primary:{50:"#defffd",100:"#b3fffa",200:"#86feee",300:"#5bfedd",400:"#3efec9",500:"#32e5a6",600:"#23b277",700:"#147f4c",800:"#004d23",900:"#001b0a"}},fonts:{heading:"Helvetica"},components:{Button:{defaultProps:{colorScheme:"primary"},variants:{cancel:{color:"font_inverse",bg:"error",_hover:{backgroundColor:"error_hover"}}}},Link:{baseStyle:{color:"font_link"}},Divider:{baseStyle:{borderColor:"border"}}},semanticTokens:{colors:{background_primary:"primary.300",background_secondary:"primary.500",placeholder:"primary.100",font_primary:"black",font_secondary:"grey.500",font_inverse:"white",font_link:"yellow.300",border:"black",error:"red.500",error_hover:"red.600",success:"green.500",highlight:"yellow.300","chakra-body-bg":"background_primary","chakra-subtle-bg":"background_secondary","chakra-body-text":"font_primary","chakra-subtle-text":"font_secondary","chakra-inverse-text":"font_inverse","chakra-border-color":"border","chakra-placeholder-color":"placeholder"}}},Et);function Mo(){return e.jsx(wo,{sx:{border:"solid"},children:e.jsxs(Qe,{variant:"striped",children:[e.jsx(Ze,{children:"This is the table cation"}),e.jsx(ko,{children:e.jsxs(X,{children:[e.jsx(pe,{children:"First"}),e.jsx(pe,{children:"Test"}),e.jsx(pe,{isNumeric:!0,children:"Third (numeric)"})]})}),e.jsxs(Co,{children:[e.jsxs(X,{children:[e.jsx(S,{children:"one"}),e.jsx(S,{children:"bla"}),e.jsx(S,{isNumeric:!0,children:"22,3"})]}),e.jsxs(X,{children:[e.jsx(S,{children:"two"}),e.jsx(S,{children:"blub"}),e.jsx(S,{isNumeric:!0,children:"23.4"})]}),e.jsxs(X,{children:[e.jsx(S,{children:"three"}),e.jsx(S,{children:"blob"}),e.jsx(S,{isNumeric:!0,children:"12"})]})]})]})})}function Oo(){return e.jsx("div",{style:{overflow:"auto",height:"100%",width:"100%"},children:e.jsxs(qt,{children:[e.jsx($e,{mb:5,children:"chakra technical demo"}),e.jsx(Ao,{}),e.jsx(Bo,{}),e.jsx(Mo,{}),e.jsx(Ko,{})]})})}function Ao(){return e.jsxs(Xt,{children:["This is a"," ",e.jsx(Vt,{href:"https://chakra-ui.com",isExternal:!0,children:"link to Chakra's Design system"})]})}function Bo(){return e.jsxs(Ve,{mb:5,mt:5,divider:e.jsx(Ut,{}),spacing:"24px",align:"stretch",children:[e.jsx(C,{children:e.jsx(Io,{})}),e.jsx(C,{children:e.jsx(Lo,{})}),e.jsx(C,{children:e.jsx(Ho,{})}),e.jsx(C,{children:e.jsx(zo,{})}),e.jsx(C,{children:e.jsx($o,{})}),e.jsx(C,{children:e.jsx(Vo,{})}),e.jsx(C,{children:e.jsx(Uo,{})}),e.jsx(C,{children:e.jsx(Go,{})}),e.jsx(C,{children:e.jsx(Wo,{})})]})}function Io(){return e.jsxs(C,{bg:"background_secondary",children:[e.jsx($e,{size:"sm",children:"Portal Example: "}),"This is box and displayed here. Scroll/Look down to see the portal that is added at the end of document.body. The Portal is part of this Box.",e.jsx(Ue,{children:"This is the portal content!"})]})}function Lo(){return e.jsx(Nt,{hasArrow:!0,label:"Button Tooltip","aria-label":"A tooltip",placement:"top",children:e.jsx(b,{children:"Button with a tooltip"})})}function Ho(){const t=Gt();return e.jsx(b,{onClick:()=>t({title:"Account created.",description:"We've created your account for you.",status:"success",duration:9e3,position:"bottom-left",isClosable:!0}),children:"Show Toast"})}function zo(){return e.jsxs(Ft,{status:"error",children:[e.jsx(Rt,{}),e.jsx(Dt,{children:"Test Alert!"}),e.jsx(Mt,{children:"This is a test alert (error)"})]})}function $o(){const{isOpen:t,onOpen:o,onClose:s}=Z(),n=c.useRef(null);return e.jsxs(e.Fragment,{children:[e.jsx(b,{onClick:o,children:"Open Alert"}),e.jsx(Ot,{isOpen:t,leastDestructiveRef:n,onClose:s,children:e.jsx(se,{children:e.jsxs(At,{className:"class-from-app",children:[e.jsx(oe,{fontSize:"lg",fontWeight:"bold",children:"Alert Title"}),e.jsx(ee,{children:"This is the text in the alert dialog body."}),e.jsxs(te,{children:[e.jsx(b,{ref:n,onClick:s,variant:"cancel",children:"Cancel"}),e.jsx(b,{onClick:s,ml:3,children:"Okay"})]})]})})})]})}function Vo(){const{isOpen:t,onOpen:o,onClose:s}=Z();return e.jsxs(e.Fragment,{children:[e.jsx(b,{onClick:o,children:"Show Modal"}),e.jsxs(Bt,{closeOnOverlayClick:!1,isOpen:t,onClose:s,children:[e.jsx(se,{}),e.jsxs(It,{children:[e.jsx(oe,{children:"This is a modal"}),e.jsx(_e,{}),e.jsx(ee,{pb:6,children:"This is a modal text!"}),e.jsxs(te,{children:[e.jsx(b,{mr:2,children:"Got it"}),e.jsx(b,{onClick:s,children:"Cancel"})]})]})]})]})}function Uo(){const{isOpen:t,onOpen:o,onClose:s}=Z(),n=c.useRef(null);return e.jsxs(e.Fragment,{children:[e.jsx(b,{ref:n,onClick:o,children:"Open Drawer"}),e.jsxs(Lt,{isOpen:t,placement:"left",onClose:s,finalFocusRef:n,isFullHeight:!1,children:[e.jsx(se,{}),e.jsxs(Xe,{children:[e.jsx(_e,{}),e.jsx(oe,{children:"This is the drawer header"}),e.jsx(ee,{children:"This is the body."}),e.jsxs(te,{children:[e.jsx(b,{variant:"outline",mr:3,onClick:s,children:"Cancel"}),e.jsx(b,{children:"Got it"})]})]})]})]})}function Go(){return e.jsxs(e.Fragment,{children:[e.jsxs(me,{children:[e.jsx(je,{children:e.jsx(b,{children:"Show Popover"})}),e.jsxs(ve,{children:[e.jsx(he,{}),e.jsx(xe,{}),e.jsx(ye,{children:"Popover!"}),e.jsx(Y,{children:"This is a very important Popover"})]})]}),e.jsxs(me,{children:[e.jsx(je,{children:e.jsx(b,{ml:5,children:"Show Popover rendered in an portal"})}),e.jsx(Ue,{children:e.jsxs(ve,{children:[e.jsx(he,{}),e.jsx(ye,{children:"Header"}),e.jsx(xe,{}),e.jsx(Y,{children:e.jsx(Y,{children:"This is a very important Popover"})}),e.jsx(Je,{children:"This is the footer"})]})})]})]})}function Wo(){const[t,o]=c.useState("2");return e.jsxs(e.Fragment,{children:[e.jsx(Wt,{onChange:o,value:t,children:e.jsxs(Ve,{spacing:4,direction:"row",children:[e.jsx(le,{size:"sm",value:"1",isDisabled:!0,children:"Radio 1 (Disabled)"}),e.jsx(le,{size:"md",value:"2",children:"Radio 2"}),e.jsx(le,{size:"lg",value:"3",children:"Radio 3"})]})}),e.jsx("p",{children:"Checked radio: "+t})]})}function Ko(){return e.jsxs(Kt,{m:5,placeholder:"Select an item",children:[e.jsx("option",{value:"item1",children:"Item 1"}),e.jsx("option",{value:"item2",children:"Item 2"}),e.jsx("option",{value:"item3",children:"Item 3"})]})}const qo=Ht({component:Oo,theme:Do,appMetadata:Ro});customElements.define("chakra-app",qo); diff --git a/core-packages/pr-previews/pr-71/assets/CE6nEn_ZV1yL.js b/core-packages/pr-previews/pr-71/assets/CE6nEn_ZV1yL.js deleted file mode 100644 index 997f718..0000000 --- a/core-packages/pr-previews/pr-71/assets/CE6nEn_ZV1yL.js +++ /dev/null @@ -1 +0,0 @@ -import{x as w,r as o,l as x,j as n,n as p,p as G,ap as A,h as M,a5 as R,G as z,aq as D}from"./BNseSxaIihtT.js";import{d as S}from"./jYicUDcJydKy.js";const[O,W]=w({strict:!1,name:"ButtonGroupContext"});function l(i){const{children:e,className:t,...a}=i,r=o.isValidElement(e)?o.cloneElement(e,{"aria-hidden":!0,focusable:!1}):e,s=x("chakra-button__icon",t);return n.jsx(p.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...a,className:s,children:r})}l.displayName="ButtonIcon";function g(i){const{label:e,placement:t,spacing:a="0.5rem",children:r=n.jsx(A,{color:"currentColor",width:"1em",height:"1em"}),className:s,__css:u,...m}=i,h=x("chakra-button__spinner",s),d=t==="start"?"marginEnd":"marginStart",c=o.useMemo(()=>G({display:"flex",alignItems:"center",position:e?"relative":"absolute",[d]:e?a:0,fontSize:"1em",lineHeight:"normal",...u}),[u,e,d,a]);return n.jsx(p.div,{className:h,...m,__css:c,children:r})}g.displayName="ButtonSpinner";function q(i){const[e,t]=o.useState(!i);return{ref:o.useCallback(s=>{s&&t(s.tagName==="BUTTON")},[]),type:e?"button":void 0}}const F=M((i,e)=>{const t=W(),a=R("Button",{...t,...i}),{isDisabled:r=t?.isDisabled,isLoading:s,isActive:u,children:m,leftIcon:h,rightIcon:d,loadingText:c,iconSpacing:f="0.5rem",type:N,spinner:y,spinnerPlacement:_="start",className:C,as:b,shouldWrapChildren:k,...I}=z(i),v=o.useMemo(()=>{const P={...a?._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...a,...!!t&&{_focus:P}}},[a,t]),{ref:E,type:T}=q(b),j={rightIcon:d,leftIcon:h,iconSpacing:f,children:m,shouldWrapChildren:k};return n.jsxs(p.button,{disabled:r||s,ref:D(e,E),as:b,type:N??T,"data-active":S(u),"data-loading":S(s),__css:v,className:x("chakra-button",C),...I,children:[s&&_==="start"&&n.jsx(g,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:f,children:y}),s?c||n.jsx(p.span,{opacity:0,children:n.jsx(B,{...j})}):n.jsx(B,{...j}),s&&_==="end"&&n.jsx(g,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:f,children:y})]})});F.displayName="Button";function B(i){const{leftIcon:e,rightIcon:t,children:a,iconSpacing:r,shouldWrapChildren:s}=i;return s?n.jsxs("span",{style:{display:"contents"},children:[e&&n.jsx(l,{marginEnd:r,children:e}),a,t&&n.jsx(l,{marginStart:r,children:t})]}):n.jsxs(n.Fragment,{children:[e&&n.jsx(l,{marginEnd:r,children:e}),a,t&&n.jsx(l,{marginStart:r,children:t})]})}export{F as B,O as a}; diff --git a/core-packages/pr-previews/pr-71/assets/CG440PMYsnie.js b/core-packages/pr-previews/pr-71/assets/CG440PMYsnie.js deleted file mode 100644 index 500da0f..0000000 --- a/core-packages/pr-previews/pr-71/assets/CG440PMYsnie.js +++ /dev/null @@ -1 +0,0 @@ -import{f as V,r as m,n as w,h as E,j as n,l as _,d as yt,D as re,o as oe,x as He,F as Oe,G as We,I as St,a as jt,H as b,O as ze,S,Q as kt,b as Pt}from"./BNseSxaIihtT.js";import{F as wt}from"./BDHIly7xvlGb.js";import{u as Et,I as Ct}from"./B9zdqh9PWE0a.js";import{c as ie,p as It,r as Fe,v as Le}from"./D-Zd7p0hx1Jn.js";import{b as Tt,L as _t}from"./7DM-szicVgdJ.js";import{a as ae,d as A,C as Rt}from"./jYicUDcJydKy.js";import{u as Dt,C as H,T as Nt}from"./D2UoO61Xz-WO.js";import{B as k}from"./CE6nEn_ZV1yL.js";import{D}from"./BNgto9rEK1t3.js";import{I as le}from"./apwTDgsvPGCI.js";import{a as ce}from"./_DT9ZMsk9pcc.js";import{S as ue}from"./BnGLVwzG1tCL.js";import"./Bux-xGeHLEc6.js";import"./DE_cfL-UvDdR.js";function Mt(t,e,s,r){return t.addEventListener(e,s,r),()=>{t.removeEventListener(e,s,r)}}function At(t){const e=Tt(t);return typeof e.PointerEvent<"u"&&t instanceof e.PointerEvent?t.pointerType==="mouse":t instanceof e.MouseEvent}function Ke(t){return!!t.touches}function Vt(t){return Ke(t)&&t.touches.length>1}function zt(t,e="page"){const s=t.touches[0]||t.changedTouches[0];return{x:s[`${e}X`],y:s[`${e}Y`]}}function Ft(t,e="page"){return{x:t[`${e}X`],y:t[`${e}Y`]}}function Xe(t,e="page"){return Ke(t)?zt(t,e):Ft(t,e)}function Lt(t){return e=>{const s=At(e);(!s||s&&e.button===0)&&t(e)}}function $t(t,e=!1){function s(i){t(i,{point:Xe(i)})}return e?Lt(s):s}function O(t,e,s,r){return Mt(t,e,$t(s,e==="pointerdown"),r)}function Ut(t){const{value:e,defaultValue:s,onChange:r,shouldUpdate:i=(x,j)=>x!==j}=t,d=V(r),h=V(i),[p,c]=m.useState(s),u=e!==void 0,a=u?e:p,f=V(x=>{const C=typeof x=="function"?x(a):x;h(a,C)&&(u||c(C),d(C))},[u,d,a,h]);return[a,f]}function Ye(t){const e=m.useRef(null);return e.current=t,e}const Ge=1/60*1e3,Bt=typeof performance<"u"?()=>performance.now():()=>Date.now(),qe=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(Bt()),Ge);function Ht(t){let e=[],s=[],r=0,i=!1,d=!1;const h=new WeakSet,p={schedule:(c,u=!1,a=!1)=>{const f=a&&i,x=f?e:s;return u&&h.add(c),x.indexOf(c)===-1&&(x.push(c),f&&i&&(r=e.length)),c},cancel:c=>{const u=s.indexOf(c);u!==-1&&s.splice(u,1),h.delete(c)},process:c=>{if(i){d=!0;return}if(i=!0,[e,s]=[s,e],s.length=0,r=e.length,r)for(let u=0;u(t[e]=Ht(()=>$=!0),t),{}),Wt=U.reduce((t,e)=>{const s=W[e];return t[e]=(r,i=!1,d=!1)=>($||Yt(),s.schedule(r,i,d)),t},{}),Kt=U.reduce((t,e)=>(t[e]=W[e].cancel,t),{});U.reduce((t,e)=>(t[e]=()=>W[e].process(z),t),{});const Xt=t=>W[t].process(z),Qe=t=>{$=!1,z.delta=me?Ge:Math.max(Math.min(t-z.timestamp,Ot),1),z.timestamp=t,fe=!0,U.forEach(Xt),fe=!1,$&&(me=!1,qe(Qe))},Yt=()=>{$=!0,me=!0,fe||qe(Qe)},$e=()=>z;var Gt=Object.defineProperty,qt=(t,e,s)=>e in t?Gt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,P=(t,e,s)=>(qt(t,typeof e!="symbol"?e+"":e,s),s);class Qt{constructor(e,s,r){if(P(this,"history",[]),P(this,"startEvent",null),P(this,"lastEvent",null),P(this,"lastEventInfo",null),P(this,"handlers",{}),P(this,"removeListeners",()=>{}),P(this,"threshold",3),P(this,"win"),P(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const p=de(this.lastEventInfo,this.history),c=this.startEvent!==null,u=tn(p.offset,{x:0,y:0})>=this.threshold;if(!c&&!u)return;const{timestamp:a}=$e();this.history.push({...p.point,timestamp:a});const{onStart:f,onMove:x}=this.handlers;c||(f?.(this.lastEvent,p),this.startEvent=this.lastEvent),x?.(this.lastEvent,p)}),P(this,"onPointerMove",(p,c)=>{this.lastEvent=p,this.lastEventInfo=c,Wt.update(this.updatePoint,!0)}),P(this,"onPointerUp",(p,c)=>{const u=de(c,this.history),{onEnd:a,onSessionEnd:f}=this.handlers;f?.(p,u),this.end(),!(!a||!this.startEvent)&&a?.(p,u)}),this.win=e.view??window,Vt(e))return;this.handlers=s,r&&(this.threshold=r),e.stopPropagation(),e.preventDefault();const i={point:Xe(e)},{timestamp:d}=$e();this.history=[{...i.point,timestamp:d}];const{onSessionStart:h}=s;h?.(e,de(i,this.history)),this.removeListeners=en(O(this.win,"pointermove",this.onPointerMove),O(this.win,"pointerup",this.onPointerUp),O(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners?.(),Kt.update(this.updatePoint)}}function Ue(t,e){return{x:t.x-e.x,y:t.y-e.y}}function de(t,e){return{point:t.point,delta:Ue(t.point,e[e.length-1]),offset:Ue(t.point,e[0]),velocity:Zt(e,.1)}}const Jt=t=>t*1e3;function Zt(t,e){if(t.length<2)return{x:0,y:0};let s=t.length-1,r=null;const i=t[t.length-1];for(;s>=0&&(r=t[s],!(i.timestamp-r.timestamp>Jt(e)));)s--;if(!r)return{x:0,y:0};const d=(i.timestamp-r.timestamp)/1e3;if(d===0)return{x:0,y:0};const h={x:(i.x-r.x)/d,y:(i.y-r.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function en(...t){return e=>t.reduce((s,r)=>r(s),e)}function he(t,e){return Math.abs(t-e)}function Be(t){return"x"in t&&"y"in t}function tn(t,e){if(typeof t=="number"&&typeof e=="number")return he(t,e);if(Be(t)&&Be(e)){const s=he(t.x,e.x),r=he(t.y,e.y);return Math.sqrt(s**2+r**2)}return 0}function nn(t,e){const{onPan:s,onPanStart:r,onPanEnd:i,onPanSessionStart:d,onPanSessionEnd:h,threshold:p}=e,c=!!(s||r||i||d||h),u=m.useRef(null),a=Ye({onSessionStart:d,onSessionEnd:h,onStart:r,onMove:s,onEnd(f,x){u.current=null,i?.(f,x)}});m.useEffect(()=>{u.current?.updateHandlers(a.current)}),m.useEffect(()=>{const f=t.current;if(!f||!c)return;function x(j){u.current=new Qt(j,a.current,p)}return O(f,"pointerdown",x)},[t,c,a,p]),m.useEffect(()=>()=>{u.current?.end(),u.current=null},[])}const sn={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},rn=w("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),xe=E(function(e,s){const{placement:r="left",...i}=e,d=sn[r]??{},h=Et();return n.jsx(rn,{ref:s,...i,__css:{...h.addon,...d}})});xe.displayName="InputAddon";const ge=E(function(e,s){return n.jsx(xe,{ref:s,placement:"left",...e,className:_("chakra-input__left-addon",e.className)})});ge.displayName="InputLeftAddon";ge.id="InputLeftAddon";const Je=E(function(e,s){return n.jsx(xe,{ref:s,placement:"right",...e,className:_("chakra-input__right-addon",e.className)})});Je.displayName="InputRightAddon";Je.id="InputRightAddon";function pe(t){const{orientation:e,vertical:s,horizontal:r}=t;return e==="vertical"?s:r}function on(t){const{orientation:e,thumbPercents:s,isReversed:r}=t,i=j=>({position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...pe({orientation:e,vertical:{bottom:`${s[j]}%`},horizontal:{left:`${s[j]}%`}})}),d={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0},h={position:"absolute",...pe({orientation:e,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},p=s.length===1,c=[0,r?100-s[0]:s[0]],u=p?c:s;let a=u[0];!p&&r&&(a=100-a);const f=Math.abs(u[u.length-1]-u[0]),x={...h,...pe({orientation:e,vertical:r?{height:`${f}%`,top:`${a}%`}:{height:`${f}%`,bottom:`${a}%`},horizontal:r?{width:`${f}%`,right:`${a}%`}:{width:`${f}%`,left:`${a}%`}})};return{trackStyle:h,innerTrackStyle:x,rootStyle:d,getThumbStyle:i}}function an(t){const{isReversed:e,direction:s,orientation:r}=t;return s==="ltr"||r==="vertical"?e:!e}function ln(t){const{min:e=0,max:s=100,onChange:r,value:i,defaultValue:d,isReversed:h,direction:p="ltr",orientation:c="horizontal",id:u,isDisabled:a,isReadOnly:f,onChangeStart:x,onChangeEnd:j,step:C=1,getAriaValueText:rt,"aria-valuetext":ot,"aria-label":Y,"aria-labelledby":ve,name:be,focusThumbOnChange:it=!0,...ye}=t,at=V(x),G=V(j),lt=V(rt),y=an({isReversed:h,direction:p,orientation:c}),[ct,q]=Ut({value:i,defaultValue:d??un(e,s),onChange:r}),[Q,Se]=m.useState(!1),[J,je]=m.useState(!1),Z=!(a||f),ee=(s-e)/10,F=C||(s-e)/100,g=ie(ct,e,s),ut=s-g+e,ke=Le(y?ut:g,e,s),B=c==="vertical",v=Ye({min:e,max:s,step:C,isDisabled:a,value:g,isInteractive:Z,isReversed:y,isVertical:B,eventSource:null,focusThumbOnChange:it,orientation:c}),te=m.useRef(null),Pe=m.useRef(null),we=m.useRef(null),dt=m.useId(),Ee=u??dt,[Ce,Ie]=[`slider-thumb-${Ee}`,`slider-track-${Ee}`],ht=m.useCallback(o=>{if(!te.current)return;const l=v.current;l.eventSource="pointer";const R=te.current.getBoundingClientRect(),{clientX:N,clientY:M}=o.touches?.[0]??o,ne=B?R.bottom-M:N-R.left,bt=B?R.height:R.width;let se=ne/bt;y&&(se=1-se);let L=It(se,l.min,l.max);return l.step&&(L=parseFloat(Fe(L,l.min,l.step))),L=ie(L,l.min,l.max),L},[B,y,v]),I=m.useCallback(o=>{const l=v.current;l.isInteractive&&(o=parseFloat(Fe(o,l.min,F)),o=ie(o,l.min,l.max),q(o))},[F,q,v]),T=m.useMemo(()=>({stepUp(o=F){const l=y?g-o:g+o;I(l)},stepDown(o=F){const l=y?g+o:g-o;I(l)},reset(){I(d||0)},stepTo(o){I(o)}}),[I,y,g,F,d]),Te=m.useCallback(o=>{const l=v.current,N={ArrowRight:()=>T.stepUp(),ArrowUp:()=>T.stepUp(),ArrowLeft:()=>T.stepDown(),ArrowDown:()=>T.stepDown(),PageUp:()=>T.stepUp(ee),PageDown:()=>T.stepDown(ee),Home:()=>I(l.min),End:()=>I(l.max)}[o.key];N&&(o.preventDefault(),o.stopPropagation(),N(o),l.eventSource="keyboard")},[T,I,ee,v]),_e=lt?.(g)??ot,{getThumbStyle:Re,rootStyle:De,trackStyle:Ne,innerTrackStyle:Me}=m.useMemo(()=>{const o=v.current;return on({isReversed:y,orientation:o.orientation,thumbPercents:[ke]})},[y,ke,v]),Ae=m.useCallback(()=>{v.current.focusThumbOnChange&&setTimeout(()=>Pe.current?.focus())},[v]);yt(()=>{const o=v.current;Ae(),o.eventSource==="keyboard"&&G?.(o.value)},[g,G]);function Ve(o){const l=ht(o);l!=null&&l!==v.current.value&&q(l)}nn(we,{onPanSessionStart(o){const l=v.current;l.isInteractive&&(Se(!0),Ae(),Ve(o),at?.(l.value))},onPanSessionEnd(){const o=v.current;o.isInteractive&&(Se(!1),G?.(o.value))},onPan(o){v.current.isInteractive&&Ve(o)}});const pt=m.useCallback((o={},l=null)=>({...o,...ye,ref:re(l,we),tabIndex:-1,"aria-disabled":ae(a),"data-focused":A(J),style:{...o.style,...De}}),[ye,a,J,De]),mt=m.useCallback((o={},l=null)=>({...o,ref:re(l,te),id:Ie,"data-disabled":A(a),style:{...o.style,...Ne}}),[a,Ie,Ne]),ft=m.useCallback((o={},l=null)=>({...o,ref:l,style:{...o.style,...Me}}),[Me]),xt=m.useCallback((o={},l=null)=>({...o,ref:re(l,Pe),role:"slider",tabIndex:Z?0:void 0,id:Ce,"data-active":A(Q),"aria-valuetext":_e,"aria-valuemin":e,"aria-valuemax":s,"aria-valuenow":g,"aria-orientation":c,"aria-disabled":ae(a),"aria-readonly":ae(f),"aria-label":Y,"aria-labelledby":Y?void 0:ve,style:{...o.style,...Re(0)},onKeyDown:oe(o.onKeyDown,Te),onFocus:oe(o.onFocus,()=>je(!0)),onBlur:oe(o.onBlur,()=>je(!1))}),[Z,Ce,Q,_e,e,s,g,c,a,f,Y,ve,Re,Te]),gt=m.useCallback((o,l=null)=>{const R=!(o.values),N=g>=o.value,M=Le(o.value,e,s),ne={position:"absolute",pointerEvents:"none",...cn({orientation:c,vertical:{bottom:y?`${100-M}%`:`${M}%`},horizontal:{left:y?`${100-M}%`:`${M}%`}})};return{...o,ref:l,role:"presentation","aria-hidden":!0,"data-disabled":A(a),"data-invalid":A(!R),"data-highlighted":A(N),style:{...o.style,...ne}}},[a,y,s,e,c,g]),vt=m.useCallback((o={},l=null)=>({...o,ref:l,type:"hidden",value:g,name:be}),[be,g]);return{state:{value:g,isFocused:J,isDragging:Q},actions:T,getRootProps:pt,getTrackProps:mt,getInnerTrackProps:ft,getThumbProps:xt,getMarkerProps:gt,getInputProps:vt}}function cn(t){const{orientation:e,vertical:s,horizontal:r}=t;return e==="vertical"?s:r}function un(t,e){return e"}),[hn,X]=He({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),Ze=E((t,e)=>{const s={...t,orientation:t?.orientation??"horizontal"},r=Oe("Slider",s),i=We(s),{direction:d}=St();i.direction=d;const{getInputProps:h,getRootProps:p,...c}=ln(i),u=p(),a=h({},e);return n.jsx(dn,{value:c,children:n.jsx(hn,{value:r,children:n.jsxs(w.div,{...u,className:_("chakra-slider",s.className),__css:r.container,children:[s.children,n.jsx("input",{...a})]})})})});Ze.displayName="Slider";const et=E((t,e)=>{const{getThumbProps:s}=K(),r=X(),i=s(t,e);return n.jsx(w.div,{...i,className:_("chakra-slider__thumb",t.className),__css:r.thumb})});et.displayName="SliderThumb";const tt=E((t,e)=>{const{getTrackProps:s}=K(),r=X(),i=s(t,e);return n.jsx(w.div,{...i,className:_("chakra-slider__track",t.className),__css:r.track})});tt.displayName="SliderTrack";const nt=E((t,e)=>{const{getInnerTrackProps:s}=K(),r=X(),i=s(t,e);return n.jsx(w.div,{...i,className:_("chakra-slider__filled-track",t.className),__css:r.filledTrack})});nt.displayName="SliderFilledTrack";const pn=E((t,e)=>{const{getMarkerProps:s}=K(),r=X(),i=s(t,e);return n.jsx(w.div,{...i,className:_("chakra-slider__marker",t.className),__css:r.mark})});pn.displayName="SliderMark";const st=E(function(e,s){const r=Oe("Switch",e),{spacing:i="0.5rem",children:d,...h}=We(e),{getIndicatorProps:p,getInputProps:c,getCheckboxProps:u,getRootProps:a,getLabelProps:f}=Dt(h),x=m.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),j=m.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),C=m.useMemo(()=>({userSelect:"none",marginStart:i,...r.label}),[i,r.label]);return n.jsxs(w.label,{...a(),className:_("chakra-switch",e.className),__css:x,children:[n.jsx("input",{className:"chakra-switch__input",...c({},s)}),n.jsx(w.span,{...u(),className:"chakra-switch__track",__css:j,children:n.jsx(w.span,{__css:r.thumb,className:"chakra-switch__thumb",...p()})}),d&&n.jsx(w.span,{className:"chakra-switch__label",...f(),__css:C,children:d})]})});st.displayName="Switch";const mn={"theming-app":{name:"theming-app",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},fn="",xn=[];function gn(t){throw new Error(`Unsupported locale: '${t}'`)}const vn=jt(fn),bn=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:gn,locales:xn,packages:mn,styles:vn},Symbol.toStringTag,{value:"Module"}));function yn(){return n.jsxs(Rt,{children:[n.jsx(b,{size:"md",py:2,children:'Demo page based on color scheme "trails"'}),n.jsxs(wt,{justifyContent:"center",children:[n.jsxs(ze,{bg:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",margin:3,minW:"400px",children:[n.jsx(b,{size:"md",children:"Button"}),n.jsx(b,{size:"xs",children:"default with tooltip"}),n.jsx(S,{direction:"row",my:2,children:n.jsx(kt,{label:"Default button",placement:"auto",openDelay:500,children:n.jsx(k,{children:"default"})})}),n.jsx(b,{size:"xs",children:"Chakra UI variants"}),n.jsxs(S,{direction:"row",my:2,children:[n.jsx(k,{variant:"solid",children:"solid"}),n.jsx(k,{variant:"outline",children:"outline"}),n.jsx(k,{variant:"ghost",children:"ghost"}),n.jsx(k,{variant:"link",children:"link"})]}),n.jsx(b,{size:"xs",children:"Button states"}),n.jsxs(S,{direction:"row",my:2,children:[n.jsx(k,{isDisabled:!0,children:"isDisabled"}),n.jsx(k,{isActive:!0,children:"isActive"}),n.jsx(k,{isLoading:!0,children:"isLoading"}),n.jsx(k,{isLoading:!0,loadingText:"loading...",children:"isLoading with text"})]}),n.jsx(b,{size:"xs",children:"colorScheme"}),n.jsxs(S,{direction:"row",my:2,children:[n.jsx(k,{colorScheme:"blue",children:"blue"}),n.jsx(k,{colorScheme:"red",children:"red"})]}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Checkbox"}),n.jsxs(S,{direction:"column",my:2,spacing:1,children:[n.jsx(H,{defaultChecked:!0,children:"defaultChecked1"}),n.jsx(H,{defaultChecked:!0,children:"defaultChecked2"}),n.jsx(H,{isDisabled:!0,children:"isDisabled"}),n.jsx(H,{isInvalid:!0,children:"isInvalid"})]}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Input"}),n.jsxs(S,{direction:"column",my:2,children:[n.jsx(le,{isInvalid:!1,placeholder:"outline (default)"}),n.jsx(le,{variant:"filled",placeholder:"filled"}),n.jsxs(Ct,{children:[n.jsx(ge,{}),n.jsx(le,{placeholder:"input with left addon"})]})]})]}),n.jsxs(ze,{bg:"white",borderWidth:"1px",borderRadius:"lg",padding:2,boxShadow:"lg",margin:3,minW:"400px",children:[n.jsx(b,{size:"md",children:"Link"}),n.jsx(S,{direction:"column",my:2,children:n.jsx(_t,{href:"https://github.com/open-pioneer",target:"_blank",children:"https://github.com/open-pioneer"})}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Radio"}),n.jsxs(S,{direction:"column",my:2,spacing:1,children:[n.jsx(ce,{defaultChecked:!0,children:"defaultChecked"}),n.jsx(ce,{isDisabled:!0,children:"isDisabled"}),n.jsx(ce,{isInvalid:!0,children:"isInvalid"})]}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Select"}),n.jsxs(S,{direction:"column",my:2,children:[n.jsxs(ue,{children:[n.jsx("option",{value:"option1",children:"outline1 (default)"}),n.jsx("option",{value:"option2",children:"outline2 (default)"})]}),n.jsxs(ue,{variant:"filled",children:[n.jsx("option",{value:"option1",children:"filled1"}),n.jsx("option",{value:"option2",children:"filled2"})]}),n.jsx(ue,{isDisabled:!0,children:n.jsx("option",{value:"option1",children:"isDisabled"})})]}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Slider"}),n.jsx(S,{direction:"column",my:2,children:n.jsxs(Ze,{"aria-label":"slider-ex-1",defaultValue:30,children:[n.jsx(tt,{children:n.jsx(nt,{})}),n.jsx(et,{})]})}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Switch"}),n.jsx(S,{direction:"column",my:2,children:n.jsx(st,{isChecked:!0})}),n.jsx(D,{my:5}),n.jsx(b,{size:"md",children:"Textarea"}),n.jsx(S,{direction:"column",my:2,children:n.jsx(Nt,{placeholder:"Here is a sample placeholder"})})]})]})]})}const Sn=Pt({component:yn,appMetadata:bn});customElements.define("theming-app",Sn); diff --git a/core-packages/pr-previews/pr-71/assets/COFhTFd8PTaT.js b/core-packages/pr-previews/pr-71/assets/COFhTFd8PTaT.js deleted file mode 100644 index a549223..0000000 --- a/core-packages/pr-previews/pr-71/assets/COFhTFd8PTaT.js +++ /dev/null @@ -1 +0,0 @@ -import{h as c,a5 as R,G as _,j as o,n as l,l as d}from"./BNseSxaIihtT.js";import{a as m,c as h}from"./DE_cfL-UvDdR.js";const y=c(function(s,e){const r=R("FormLabel",s),a=_(s),{className:t,children:p,requiredIndicator:q=o.jsx(u,{}),optionalIndicator:x=null,...n}=a,i=m(),b=i?.getLabelProps(n,e)??{ref:e,...n};return o.jsxs(l.label,{...b,className:d("chakra-form__label",a.className),__css:{display:"block",textAlign:"start",...r},children:[p,i?.isRequired?q:x]})});y.displayName="FormLabel";const u=c(function(s,e){const r=m(),a=h();if(!r?.isRequired)return null;const t=d("chakra-form__required-indicator",s.className);return o.jsx(l.span,{...r?.getRequiredIndicatorProps(s,e),__css:a.requiredIndicator,className:t})});u.displayName="RequiredIndicator";export{y as F}; diff --git a/core-packages/pr-previews/pr-71/assets/CVEPn1OX0dMY.js b/core-packages/pr-previews/pr-71/assets/CVEPn1OX0dMY.js deleted file mode 100644 index 9187430..0000000 --- a/core-packages/pr-previews/pr-71/assets/CVEPn1OX0dMY.js +++ /dev/null @@ -1 +0,0 @@ -const e=JSON.parse('{"i18n-app":{"content.header":"I18N Beispiel","content.description":"Dieses Beispiel enthält eine Anwendung, die mehrere Sprachen unterstützt.\\nDie tatsächlich von der Anwendung verwendete Sprache wird entweder aus den Einstellungen des Nutzers abgeleitet (Sprache des Browsers)\\noder explizit während des Anwendungsstarts festgelegt.\\n","content.open":"Dialog öffnen","content.testplural":"{n, plural, =0 {kein Pferd} one {ein Pferd} other {# Pferde}}","content.testgender":"{gender, select, male {Herr} female {Frau} other {}} {name}","picker.choose":"Wählen Sie eine Sprache aus:","picker.default":"Automatisch (standard)"},"i18n-sample-package":{"greeting":"Hallo"}}');export{e as default}; diff --git a/core-packages/pr-previews/pr-71/assets/C_rveq3oviC1.js b/core-packages/pr-previews/pr-71/assets/C_rveq3oviC1.js deleted file mode 100644 index 52f9313..0000000 --- a/core-packages/pr-previews/pr-71/assets/C_rveq3oviC1.js +++ /dev/null @@ -1 +0,0 @@ -import{j as i,n as t}from"./BNseSxaIihtT.js";const r=a=>i.jsx(t.div,{className:"chakra-stack__divider",...a,__css:{...a.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});r.displayName="StackDivider";export{r as S}; diff --git a/core-packages/pr-previews/pr-71/assets/CmsKOCeNyeyo.js b/core-packages/pr-previews/pr-71/assets/CmsKOCeNyeyo.js deleted file mode 100644 index bc8c7d5..0000000 --- a/core-packages/pr-previews/pr-71/assets/CmsKOCeNyeyo.js +++ /dev/null @@ -1 +0,0 @@ -const E="modulepreload",y=function(a,i){return new URL(a,i).href},m={},w=function(i,l,u){let f=Promise.resolve();if(l&&l.length>0){const r=document.getElementsByTagName("link"),e=document.querySelector("meta[property=csp-nonce]"),h=e?.nonce||e?.getAttribute("nonce");f=Promise.allSettled(l.map(t=>{if(t=y(t,u),t in m)return;m[t]=!0;const o=t.endsWith(".css"),v=o?'[rel="stylesheet"]':"";if(!!u)for(let s=r.length-1;s>=0;s--){const c=r[s];if(c.href===t&&(!o||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${v}`))return;const n=document.createElement("link");if(n.rel=o?"stylesheet":E,o||(n.as="script"),n.crossOrigin="",n.href=t,h&&n.setAttribute("nonce",h),document.head.appendChild(n),o)return new Promise((s,c)=>{n.addEventListener("load",s),n.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${t}`)))})}))}function d(r){const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=r,window.dispatchEvent(e),!e.defaultPrevented)throw r}return f.then(r=>{for(const e of r||[])e.status==="rejected"&&d(e.reason);return i().catch(d)})};export{w as _}; diff --git a/core-packages/pr-previews/pr-71/assets/CoHNYkuyZj4U.js b/core-packages/pr-previews/pr-71/assets/CoHNYkuyZj4U.js deleted file mode 100644 index 12f13bf..0000000 --- a/core-packages/pr-previews/pr-71/assets/CoHNYkuyZj4U.js +++ /dev/null @@ -1 +0,0 @@ -var u=e=>{throw TypeError(e)};var f=(e,t,r)=>t.has(e)||u("Cannot "+r);var p=(e,t,r)=>(f(e,t,"read from private field"),r?r.call(e):t.get(e)),d=(e,t,r)=>t.has(e)?u("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),w=(e,t,r,o)=>(f(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r),g=(e,t,r)=>(f(e,t,"access private method"),r);import{ae as v,af as q}from"./BNseSxaIihtT.js";var c,i,b;class I{constructor(t){d(this,i);d(this,c);w(this,c,t.references.interceptors.map((r,o)=>[t.referencesMeta.interceptors[o].serviceId,r]))}async fetch(t,r){const o=r?.signal??void 0,n=Object.assign({},r?.context),s=A(r);h(o);let a=y(t);{const l={target:a,signal:o??new AbortController().signal,context:n,options:s};h(o),await g(this,i,b).call(this,l),a=l.target}const m=new Request(a,{...s,signal:o});return await window.fetch(m)}}c=new WeakMap,i=new WeakSet,b=async function(t){const{signal:r}=t;for(const[o,n]of p(this,c))if(h(r),n.beforeRequest)try{await n.beforeRequest(t)}catch(s){throw v(s),new Error(`Interceptor '${o}' failed with an error`,{cause:s})}};function y(e){return typeof e=="string"?new URL(e,window.location.href):e}function A(e){const t=e?.method??"GET",r=new Headers(e?.headers??{}),o={...e,method:t,headers:r};for(const n in o)R[n]&&delete o[n];return o}const R={context:1,signal:1};function h(e){e?.aborted&&q()}export{I as H}; diff --git a/core-packages/pr-previews/pr-71/assets/CpxcYkkJOozD.js b/core-packages/pr-previews/pr-71/assets/CpxcYkkJOozD.js deleted file mode 100644 index dc13582..0000000 --- a/core-packages/pr-previews/pr-71/assets/CpxcYkkJOozD.js +++ /dev/null @@ -1 +0,0 @@ -const e=JSON.parse(`{"i18n-app":{"content.header":"I18N Sample","content.description":"This example demonstrates an app that supports multiple languages.\\nThe app's actual language can be inferred from the user's environment (browser language) or by\\nexplicitly forcing the locale during application start.\\n","content.open":"Open dialog","content.testplural":"{n, plural, =0 {no horses} one {one horse} other {# horses}}","content.testgender":"{gender, select, male {Mister} female {Miss} other {}} {name}","picker.choose":"Select a language:","picker.default":"automatic (default)"},"i18n-sample-package":{"greeting":"Hello"}}`);export{e as default}; diff --git a/core-packages/pr-previews/pr-71/assets/CxztQJs-IMNx.js b/core-packages/pr-previews/pr-71/assets/CxztQJs-IMNx.js deleted file mode 100644 index 29992f1..0000000 --- a/core-packages/pr-previews/pr-71/assets/CxztQJs-IMNx.js +++ /dev/null @@ -1 +0,0 @@ -import{a as l,r as p,j as r,V as f,H as m,b as u}from"./BNseSxaIihtT.js";import{E as d}from"./vOBnYnib6xFk.js";import{u as h}from"./DrpD1hfjkN6P.js";import{u as v}from"./5BaEhH7ejH5h.js";import{F as g}from"./DE_cfL-UvDdR.js";import{F as E}from"./COFhTFd8PTaT.js";import{C as x}from"./jYicUDcJydKy.js";import{T as b}from"./GR5gr-89Qrme.js";import{I as j}from"./apwTDgsvPGCI.js";import{H as N}from"./Dg0FwUWAsyRP.js";import{B as s}from"./CE6nEn_ZV1yL.js";const a={DEBUG:0,INFO:1,ERROR:2};class I extends d{level;constructor(e){super(),this.level=w(e.properties)}notify(e,o="INFO"){a[this.level]>a[o]||this.emit("show-notification",{level:o,message:e})}}function w(t){const e=t.notifierLevel;switch(e){case"DEBUG":case"INFO":case"ERROR":return e}throw new Error(`Invalid notifier level: '${e}'.`)}const F={"properties-app":{name:"properties-app",services:{NotifierImpl:{name:"NotifierImpl",clazz:I,provides:[{name:"properties-app.Notifier",qualifier:void 0}],references:{}}},ui:{references:[{name:"properties-app.Notifier",qualifier:void 0,all:!1}]},properties:{notifierLevel:{value:"INFO",required:!1}}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},R="",C=[];function O(t){throw new Error(`Unsupported locale: '${t}'`)}const S=l(R),k=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:O,locales:C,packages:F,styles:S},Symbol.toStringTag,{value:"Module"})),y="properties-app",c=h.bind(void 0,y),T={DEBUG:void 0,INFO:"info",ERROR:"error"};function L(){const t=c("properties-app.Notifier"),e=v();return p.useEffect(()=>{const o=t.on("show-notification",i=>{e({position:"bottom-right",title:i.message,isClosable:!0,status:T[i.level]})});return()=>o.destroy()},[t,e]),null}function U(){return r.jsxs(r.Fragment,{children:[r.jsx(L,{}),r.jsx(A,{})]})}function A(){const t=c("properties-app.Notifier"),[e,o]=p.useState(""),i=n=>{e&&t.notify(e,n)};return r.jsx(x,{children:r.jsxs(f,{my:"20",children:[r.jsx(m,{size:"m",children:"Notifier Sample"}),r.jsxs(b,{children:["This Form attempts to emit a notification with a certain level when clicking one of the button below. The notifier will ignore notifications with a level lower than ",r.jsx("strong",{children:t.level}),". The notifier's level can be configured using an attribute on the web component element."]}),r.jsxs(g,{pt:"3",children:[r.jsx(E,{children:"Enter a message and click one of the buttons to emit a notification"}),r.jsx(j,{placeholder:"Notification text...",value:e,onChange:n=>o(n.target.value)})]}),r.jsxs(N,{children:[r.jsx(s,{onClick:i.bind(void 0,"DEBUG"),children:"Debug"}),r.jsx(s,{onClick:i.bind(void 0,"INFO"),children:"Info"}),r.jsx(s,{onClick:i.bind(void 0,"ERROR"),children:"Error"})]})]})})}const B=u({component:U,appMetadata:k,async resolveConfig(t){const e=t.getAttribute("level");return e?{properties:{"properties-app":{notifierLevel:e}}}:void 0}});customElements.define("properties-app",B); diff --git a/core-packages/pr-previews/pr-71/assets/D-Zd7p0hx1Jn.js b/core-packages/pr-previews/pr-71/assets/D-Zd7p0hx1Jn.js deleted file mode 100644 index 8610dc9..0000000 --- a/core-packages/pr-previews/pr-71/assets/D-Zd7p0hx1Jn.js +++ /dev/null @@ -1 +0,0 @@ -function u(e){const n=parseFloat(e);return typeof n!="number"||Number.isNaN(n)?0:n}function a(e,n){let t=u(e);const r=10**(n??10);return t=Math.round(t*r)/r,n?t.toFixed(n):t.toString()}function c(e){if(!Number.isFinite(e))return 0;let n=1,t=0;for(;Math.round(e*n)/n!==e;)n*=10,t+=1;return t}function i(e,n,t){return(e-n)*100/(t-n)}function l(e,n,t){return(t-n)*e+n}function s(e,n,t){const r=Math.round((e-n)/t)*t+n,o=c(t);return a(r,o)}function f(e,n,t){return e==null?e:(txe(G),[]);const m=n.useRef(null),[X,oe]=n.useState(!0),[re,N]=n.useState(!!I),O=S!==void 0,c=O?S:re,J=n.useCallback(e=>{if(s||t){e.preventDefault();return}O||N(c?e.currentTarget.checked:f?!0:e.currentTarget.checked),R?.(e)},[s,t,c,O,f,R]);$(()=>{m.current&&(m.current.indeterminate=!!f)},[f]),me(()=>{t&&M(!1)},[t,M]),$(()=>{const e=m.current;if(!e?.form)return;const l=()=>{N(!!I)};return e.form.addEventListener("reset",l),()=>e.form?.removeEventListener("reset",l)},[]);const Q=t&&!H,Y=n.useCallback(e=>{e.key===" "&&p(!0)},[p]),Z=n.useCallback(e=>{e.key===" "&&p(!1)},[p]);$(()=>{if(!m.current)return;m.current.checked!==c&&N(m.current.checked)},[m.current]);const ce=n.useCallback((e={},l=null)=>{const K=fe=>{C&&fe.preventDefault(),p(!0)};return{...e,ref:l,"data-active":a(F),"data-hover":a(w),"data-checked":a(c),"data-focus":a(C),"data-focus-visible":a(C&&x),"data-indeterminate":a(f),"data-disabled":a(t),"data-invalid":a(r),"data-readonly":a(s),"aria-hidden":!0,onMouseDown:h(e.onMouseDown,K),onMouseUp:h(e.onMouseUp,()=>p(!1)),onMouseEnter:h(e.onMouseEnter,()=>W(!0)),onMouseLeave:h(e.onMouseLeave,()=>W(!1))}},[F,c,t,C,x,w,f,r,s]),ie=n.useCallback((e={},l=null)=>({...e,ref:l,"data-active":a(F),"data-hover":a(w),"data-checked":a(c),"data-focus":a(C),"data-focus-visible":a(C&&x),"data-indeterminate":a(f),"data-disabled":a(t),"data-invalid":a(r),"data-readonly":a(s)}),[F,c,t,C,x,w,f,r,s]),le=n.useCallback((e={},l=null)=>({...A,...e,ref:ee(l,K=>{K&&oe(K.tagName==="LABEL")}),onClick:h(e.onClick,()=>{X||(m.current?.click(),requestAnimationFrame(()=>{m.current?.focus({preventScroll:!0})}))}),"data-disabled":a(t),"data-checked":a(c),"data-invalid":a(r)}),[A,t,c,r,X]),ue=n.useCallback((e={},l=null)=>({...e,ref:ee(m,l),type:"checkbox",name:P,value:E,id:k,tabIndex:L,onChange:h(e.onChange,J),onBlur:h(e.onBlur,B,()=>M(!1)),onFocus:h(e.onFocus,_,()=>M(!0)),onKeyDown:h(e.onKeyDown,Y),onKeyUp:h(e.onKeyUp,Z),required:i,checked:c,disabled:Q,readOnly:s,"aria-label":D,"aria-labelledby":j,"aria-invalid":b?!!b:r,"aria-describedby":g,"aria-disabled":t,style:pe}),[P,E,k,J,B,_,Y,Z,i,c,Q,s,D,j,b,r,g,t,L]),de=n.useCallback((e={},l=null)=>({...e,ref:l,onMouseDown:h(e.onMouseDown,Ae),"data-disabled":a(t),"data-checked":a(c),"data-invalid":a(r)}),[c,t,r]);return{state:{isInvalid:r,isFocused:C,isChecked:c,isActive:F,isHovered:w,isIndeterminate:f,isDisabled:t,isReadOnly:s,isRequired:i},getRootProps:le,getCheckboxProps:ce,getIndicatorProps:ie,getInputProps:ue,getLabelProps:de,htmlProps:A}}function Ae(o){o.preventDefault(),o.stopPropagation()}function _e(o){const[d,t]=n.useState(o),[s,i]=n.useState(!1);return o!==d&&(i(!0),t(o)),s}const we={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},Fe={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},Ee=z({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),Le=z({from:{opacity:0},to:{opacity:1}}),Re=z({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),Be=ae(function(d,t){const s=Ie(),i={...s,...d},r=ke("Checkbox",i),k=se(d),{spacing:v="0.5rem",className:T,children:g,iconColor:I,iconSize:S,icon:H=u.jsx(De,{}),isChecked:U,isDisabled:f=s?.isDisabled,onChange:P,inputProps:E,...L}=k;let D=U;s?.value&&k.value&&(D=s.value.includes(k.value));let j=P;s?.onChange&&k.value&&(j=be(s.onChange,P));const{state:b,getInputProps:q,getCheckboxProps:A,getLabelProps:R,getRootProps:B}=je({...L,isDisabled:f,isChecked:D,onChange:j}),_=_e(b.isChecked),x=n.useMemo(()=>({animation:_?b.isIndeterminate?`${Le} 20ms linear, ${Re} 200ms linear`:`${Ee} 200ms linear`:void 0,...r.icon,...Ce({fontSize:S,color:I})}),[I,S,_,b.isIndeterminate,r.icon]),G=n.cloneElement(H,{__css:x,isIndeterminate:b.isIndeterminate,isChecked:b.isChecked});return u.jsxs(y.label,{__css:{...Fe,...r.container},className:ne("chakra-checkbox",T),...B(),children:[u.jsx("input",{className:"chakra-checkbox__input",...q(E,t)}),u.jsx(y.span,{__css:{...we,...r.control},className:"chakra-checkbox__control",...A(),children:G}),g&&u.jsx(y.span,{className:"chakra-checkbox__label",...R(),__css:{marginStart:v,...r.label},children:g})]})});Be.displayName="Checkbox";const Me=["h","minH","height","minHeight"],Ne=ae((o,d)=>{const t=ye("Textarea",o),{className:s,rows:i,...r}=se(o),k=ge(r),v=i?te(t,Me):t;return u.jsx(y.textarea,{ref:d,rows:i,...k,className:ne("chakra-textarea",s),__css:v})});Ne.displayName="Textarea";export{Be as C,Ne as T,je as u}; diff --git a/core-packages/pr-previews/pr-71/assets/D38VnHauMy3I.js b/core-packages/pr-previews/pr-71/assets/D38VnHauMy3I.js deleted file mode 100644 index 759ca74..0000000 --- a/core-packages/pr-previews/pr-71/assets/D38VnHauMy3I.js +++ /dev/null @@ -1 +0,0 @@ -import{a as r,b as o,r as n}from"./BNseSxaIihtT.js";const t={"error-app":{name:"error-app",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},s="",p=[];function i(e){throw new Error(`Unsupported locale: '${e}'`)}const a=r(s),c=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:i,locales:p,packages:t,styles:a},Symbol.toStringTag,{value:"Module"})),m=o({component:()=>n.createElement("div"),appMetadata:c,resolveConfig(e){throw new Error("This is a test error.")}});customElements.define("error-app",m); diff --git a/core-packages/pr-previews/pr-71/assets/D4c2t6tnptlX.js b/core-packages/pr-previews/pr-71/assets/D4c2t6tnptlX.js deleted file mode 100644 index a5a1d5f..0000000 --- a/core-packages/pr-previews/pr-71/assets/D4c2t6tnptlX.js +++ /dev/null @@ -1 +0,0 @@ -var m=t=>{throw TypeError(t)};var a=(t,e,n)=>e.has(t)||m("Cannot "+n);var v=(t,e,n)=>(a(t,e,"read from private field"),n?n.call(t):e.get(t)),c=(t,e,n)=>e.has(t)?m("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),u=(t,e,n,r)=>(a(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),p=(t,e,n)=>(a(t,e,"access private method"),n);import{c as S,a as T,r as d,j as i,V as A,H as f,b}from"./BNseSxaIihtT.js";import{E as j}from"./vOBnYnib6xFk.js";import{u as y}from"./DrpD1hfjkN6P.js";import{C as z}from"./jYicUDcJydKy.js";import{B as C}from"./CE6nEn_ZV1yL.js";import{T as q}from"./GR5gr-89Qrme.js";class M{textService;logger;constructor(e){this.textService=e.references.textService,this.logger=S("api-app:TextApiExtension")}async getApiMethods(){return{changeText:e=>{this.logger.info("Changing text to",JSON.stringify(e)),this.textService.setText(e)}}}}class k extends j{text="not yet set";setText(e){const n=this.text;this.text=e,this.emit("text-changed",{newText:this.text,oldText:n})}getText(){return this.text}}class w{async getApiMethods(){return{justAnotherApiMethod:()=>{console.log("justAnotherApiMethod")}}}}var s,o,l;class I{constructor({references:e}){c(this,o);c(this,s);u(this,s,e.ctx)}emitEvent(e,n=null){if(e==null)return;if(e instanceof Event){p(this,o,l).call(this,e);return}const r=new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n});p(this,o,l).call(this,r)}}s=new WeakMap,o=new WeakSet,l=function(e){v(this,s).getHostElement().dispatchEvent(e)};const _={"api-app":{name:"api-app",services:{TextApiExtension:{name:"TextApiExtension",clazz:M,provides:[{name:"integration.ApiExtension",qualifier:void 0}],references:{textService:{name:"api-app.TextService",qualifier:void 0,all:!1}}},TextService:{name:"TextService",clazz:k,provides:[{name:"api-app.TextService",qualifier:void 0}],references:{}},SecondApiExtension:{name:"SecondApiExtension",clazz:w,provides:[{name:"integration.ApiExtension",qualifier:void 0}],references:{}}},ui:{references:[{name:"api-app.TextService",qualifier:void 0,all:!1},{name:"integration.ExternalEventService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/integration":{name:"@open-pioneer/integration",services:{ExternalEventServiceImpl:{name:"ExternalEventServiceImpl",clazz:I,provides:[{name:"integration.ExternalEventService",qualifier:void 0}],references:{ctx:{name:"runtime.ApplicationContext",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}}},B="",H=[];function P(t){throw new Error(`Unsupported locale: '${t}'`)}const N=T(B),R=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:P,locales:H,packages:_,styles:N},Symbol.toStringTag,{value:"Module"})),U="api-app",h=y.bind(void 0,U);function V(){const t=h("integration.ExternalEventService"),e=()=>{t.emitEvent("my-custom-event",{data:"my-event-data"})},n=h("api-app.TextService"),[r,x]=d.useState("");return d.useEffect(()=>{x(n.getText());const E=n.on("text-changed",g=>{x(g.newText)});return()=>E.destroy()},[n]),i.jsx(z,{children:i.jsxs(A,{children:[i.jsx(f,{size:"md",children:"Emitting Events"}),i.jsx(q,{children:"Click this button to emit a browser event:"}),i.jsx(C,{onClick:e,children:"Emit Event"}),i.jsx(f,{size:"md",pt:20,children:"Reacting to API calls from the host site"}),i.jsxs("div",{children:["Current text: ",r]})]})})}const D=b({component:V,appMetadata:R});customElements.define("api-app",D); diff --git a/core-packages/pr-previews/pr-71/assets/DE_cfL-UvDdR.js b/core-packages/pr-previews/pr-71/assets/DE_cfL-UvDdR.js deleted file mode 100644 index 6539a88..0000000 --- a/core-packages/pr-previews/pr-71/assets/DE_cfL-UvDdR.js +++ /dev/null @@ -1 +0,0 @@ -import{x as g,h as k,F as $,G as w,l as H,j as y,n as q,r as d,D as I,o as T}from"./BNseSxaIihtT.js";import{d as c,a as p}from"./jYicUDcJydKy.js";const[A,E]=g({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[M,S]=g({strict:!1,name:"FormControlContext"});function G(l){const{id:e,isRequired:i,isInvalid:s,isDisabled:t,isReadOnly:o,...u}=l,f=d.useId(),r=e||`field-${f}`,F=`${r}-label`,b=`${r}-feedback`,x=`${r}-helptext`,[C,m]=d.useState(!1),[O,R]=d.useState(!1),[h,P]=d.useState(!1),j=d.useCallback((a={},n=null)=>({id:x,...a,ref:I(n,v=>{v&&R(!0)})}),[x]),D=d.useCallback((a={},n=null)=>({...a,ref:n,"data-focus":c(h),"data-disabled":c(t),"data-invalid":c(s),"data-readonly":c(o),id:a.id!==void 0?a.id:F,htmlFor:a.htmlFor!==void 0?a.htmlFor:r}),[r,t,h,s,o,F]),_=d.useCallback((a={},n=null)=>({id:b,...a,ref:I(n,v=>{v&&m(!0)}),"aria-live":"polite"}),[b]),N=d.useCallback((a={},n=null)=>({...a,...u,ref:n,role:"group","data-focus":c(h),"data-disabled":c(t),"data-invalid":c(s),"data-readonly":c(o)}),[u,t,h,s,o]),B=d.useCallback((a={},n=null)=>({...a,ref:n,role:"presentation","aria-hidden":!0,children:a.children||"*"}),[]);return{isRequired:!!i,isInvalid:!!s,isReadOnly:!!o,isDisabled:!!t,isFocused:!!h,onFocus:()=>P(!0),onBlur:()=>P(!1),hasFeedbackText:C,setHasFeedbackText:m,hasHelpText:O,setHasHelpText:R,id:r,labelId:F,feedbackId:b,helpTextId:x,htmlProps:u,getHelpTextProps:j,getErrorMessageProps:_,getRootProps:N,getLabelProps:D,getRequiredIndicatorProps:B}}const L=k(function(e,i){const s=$("Form",e),t=w(e),{getRootProps:o,htmlProps:u,...f}=G(t),r=H("chakra-form-control",e.className);return y.jsx(M,{value:f,children:y.jsx(A,{value:s,children:y.jsx(q.div,{...o({},i),className:r,__css:s.container})})})});L.displayName="FormControl";const z=k(function(e,i){const s=S(),t=E(),o=H("chakra-form__helper-text",e.className);return y.jsx(q.div,{...s?.getHelpTextProps(e,i),__css:t.helperText,className:o})});z.displayName="FormHelperText";function U(l){const{isDisabled:e,isInvalid:i,isReadOnly:s,isRequired:t,...o}=J(l);return{...o,disabled:e,readOnly:s,required:t,"aria-invalid":p(i),"aria-required":p(t),"aria-readonly":p(s)}}function J(l){const e=S(),{id:i,disabled:s,readOnly:t,required:o,isRequired:u,isInvalid:f,isReadOnly:r,isDisabled:F,onFocus:b,onBlur:x,...C}=l,m=l["aria-describedby"]?[l["aria-describedby"]]:[];return e?.hasFeedbackText&&e?.isInvalid&&m.push(e.feedbackId),e?.hasHelpText&&m.push(e.helpTextId),{...C,"aria-describedby":m.join(" ")||void 0,id:i??e?.id,isDisabled:s??F??e?.isDisabled,isReadOnly:t??r??e?.isReadOnly,isRequired:o??u??e?.isRequired,isInvalid:f??e?.isInvalid,onFocus:T(e?.onFocus,b),onBlur:T(e?.onBlur,x)}}export{L as F,S as a,U as b,E as c,J as u}; diff --git a/core-packages/pr-previews/pr-71/assets/DHsSmHrBD0L-.js b/core-packages/pr-previews/pr-71/assets/DHsSmHrBD0L-.js deleted file mode 100644 index adb5ea7..0000000 --- a/core-packages/pr-previews/pr-71/assets/DHsSmHrBD0L-.js +++ /dev/null @@ -1 +0,0 @@ -const e=JSON.parse('{"keycloak-sample":{},"@open-pioneer/authentication":{"auth-error":"Bei der Authentifizierung ist ein Fehler aufgetreten."},"@open-pioneer/authentication-keycloak":{"loginFailed.title":"Anmeldung fehlgeschlagen","loginFailed.message":"Bei der Anmeldung ist ein Fehler aufgetreten."}}');export{e as default}; diff --git a/core-packages/pr-previews/pr-71/assets/DOFgVa_i9Fer.js b/core-packages/pr-previews/pr-71/assets/DOFgVa_i9Fer.js deleted file mode 100644 index 75b851d..0000000 --- a/core-packages/pr-previews/pr-71/assets/DOFgVa_i9Fer.js +++ /dev/null @@ -1 +0,0 @@ -const e=JSON.parse('{"keycloak-sample":{},"@open-pioneer/authentication":{"auth-error":"An error occurred during authentication."},"@open-pioneer/authentication-keycloak":{"loginFailed.title":"Login failed","loginFailed.message":"An error occurred during authentication."}}');export{e as default}; diff --git a/core-packages/pr-previews/pr-71/assets/DQv8cIM5USIN.js b/core-packages/pr-previews/pr-71/assets/DQv8cIM5USIN.js deleted file mode 100644 index b9ab2df..0000000 --- a/core-packages/pr-previews/pr-71/assets/DQv8cIM5USIN.js +++ /dev/null @@ -1,13 +0,0 @@ -var _e=h=>{throw TypeError(h)};var xe=(h,e,x)=>e.has(h)||_e("Cannot "+x);var E=(h,e,x)=>(xe(h,e,"read from private field"),x?x.call(h):e.get(h)),q=(h,e,x)=>e.has(h)?_e("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(h):e.set(h,x),G=(h,e,x,b)=>(xe(h,e,"write to private field"),b?b.call(h,x):e.set(h,x),x),ie=(h,e,x)=>(xe(h,e,"access private method"),x);import{h as Pe,a5 as Me,G as Ne,j as A,n as He,l as Ke,ac as Be,a1 as ze,a2 as De,ad as Ve,c as qe,a as Je,H as Fe,V as Ae,O as Ie,b as Ye}from"./BNseSxaIihtT.js";import{H as Ge}from"./CoHNYkuyZj4U.js";import{N as $e,a as We}from"./DxOO76t5xCcD.js";import{r as Xe,A as Qe,u as Ze,F as er}from"./DqV0DePC79V3.js";import{_ as Ue}from"./CmsKOCeNyeyo.js";import{u as rr}from"./DrpD1hfjkN6P.js";import{B as Re}from"./CE6nEn_ZV1yL.js";import{C as tr}from"./jYicUDcJydKy.js";import{F as nr}from"./BDHIly7xvlGb.js";import{T as ae}from"./GR5gr-89Qrme.js";import{U as or,L as we}from"./F38okayrCIRl.js";import"./5BaEhH7ejH5h.js";const ee=Pe(function(e,x){const b=Me("Code",e),{className:L,...y}=Ne(e);return A.jsx(He.code,{ref:x,className:Ke("chakra-code",e.className),...y,__css:{display:"inline-block",...b}})});ee.displayName="Code";class ir{authService;constructor(e){this.authService=e.references.authService}beforeRequest({target:e,options:x}){const b=this.authService.getAuthState(),j=((b.kind=="authenticated"?b.sessionInfo:void 0)?.attributes?.keycloak).token;e.protocol==="https:"&&e.hostname==="ogc-api.nrw.de"&&j&&x.headers.set("Authorization",j)}}var Le={exports:{}};const ar={},sr=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"})),Ee=Be(sr);/** - * [js-sha256]{@link https://github.com/emn178/js-sha256} - * - * @version 0.11.0 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2014-2024 - * @license MIT - */(function(h){(function(){var e="input is invalid type",x=typeof window=="object",b=x?window:{};b.JS_SHA256_NO_WINDOW&&(x=!1);var L=!x&&typeof self=="object",y=!b.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;y?b=ze:L&&(b=self);var j=!b.JS_SHA256_NO_COMMON_JS&&!0&&h.exports,H=!b.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",m="0123456789abcdef".split(""),$=[-2147483648,8388608,32768,128],N=[24,16,8,0],ne=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],oe=["hex","array","digest","arrayBuffer"],C=[];(b.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(n){return Object.prototype.toString.call(n)==="[object Array]"}),H&&(b.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(n){return typeof n=="object"&&n.buffer&&n.buffer.constructor===ArrayBuffer});var ve=function(n,f){return function(w){return new R(f,!0).update(w)[n]()}},ge=function(n){var f=ve("hex",n);y&&(f=D(f,n)),f.create=function(){return new R(n)},f.update=function(v){return f.create().update(v)};for(var w=0;w>>2]|=n[v]<>>2]|=d<>>2]|=(192|d>>>6)<>>2]|=(128|d&63)<=57344?(s[u>>>2]|=(224|d>>>12)<>>2]|=(128|d>>>6&63)<>>2]|=(128|d&63)<>>2]|=(240|d>>>18)<>>2]|=(128|d>>>12&63)<>>2]|=(128|d>>>6&63)<>>2]|=(128|d&63)<=64?(this.block=s[16],this.start=u-64,this.hash(),this.hashed=!0):this.start=u}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},R.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var n=this.blocks,f=this.lastByteIndex;n[16]=this.block,n[f>>>2]|=$[f&3],this.block=n[16],f>=56&&(this.hashed||this.hash(),n[0]=this.block,n[16]=n[1]=n[2]=n[3]=n[4]=n[5]=n[6]=n[7]=n[8]=n[9]=n[10]=n[11]=n[12]=n[13]=n[14]=n[15]=0),n[14]=this.hBytes<<3|this.bytes>>>29,n[15]=this.bytes<<3,this.hash()}},R.prototype.hash=function(){var n=this.h0,f=this.h1,w=this.h2,d=this.h3,v=this.h4,u=this.h5,F=this.h6,s=this.h7,_=this.blocks,T,O,P,B,I,V,r,t,i,l,o;for(T=16;T<64;++T)I=_[T-15],O=(I>>>7|I<<25)^(I>>>18|I<<14)^I>>>3,I=_[T-2],P=(I>>>17|I<<15)^(I>>>19|I<<13)^I>>>10,_[T]=_[T-16]+O+_[T-7]+P<<0;for(o=f&w,T=0;T<64;T+=4)this.first?(this.is224?(t=300032,I=_[0]-1413257819,s=I-150054599<<0,d=I+24177077<<0):(t=704751109,I=_[0]-210244248,s=I-1521486534<<0,d=I+143694565<<0),this.first=!1):(O=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),P=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),t=n&f,B=t^n&w^o,r=v&u^~v&F,I=s+P+r+ne[T]+_[T],V=O+B,s=d+I<<0,d=I+V<<0),O=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),P=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),i=d&n,B=i^d&f^t,r=s&v^~s&u,I=F+P+r+ne[T+1]+_[T+1],V=O+B,F=w+I<<0,w=I+V<<0,O=(w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10),P=(F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7),l=w&d,B=l^w&n^i,r=F&s^~F&v,I=u+P+r+ne[T+2]+_[T+2],V=O+B,u=f+I<<0,f=I+V<<0,O=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),P=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),o=f&w,B=o^f&d^l,r=u&F^~u&s,I=v+P+r+ne[T+3]+_[T+3],V=O+B,v=n+I<<0,n=I+V<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+n<<0,this.h1=this.h1+f<<0,this.h2=this.h2+w<<0,this.h3=this.h3+d<<0,this.h4=this.h4+v<<0,this.h5=this.h5+u<<0,this.h6=this.h6+F<<0,this.h7=this.h7+s<<0},R.prototype.hex=function(){this.finalize();var n=this.h0,f=this.h1,w=this.h2,d=this.h3,v=this.h4,u=this.h5,F=this.h6,s=this.h7,_=m[n>>>28&15]+m[n>>>24&15]+m[n>>>20&15]+m[n>>>16&15]+m[n>>>12&15]+m[n>>>8&15]+m[n>>>4&15]+m[n&15]+m[f>>>28&15]+m[f>>>24&15]+m[f>>>20&15]+m[f>>>16&15]+m[f>>>12&15]+m[f>>>8&15]+m[f>>>4&15]+m[f&15]+m[w>>>28&15]+m[w>>>24&15]+m[w>>>20&15]+m[w>>>16&15]+m[w>>>12&15]+m[w>>>8&15]+m[w>>>4&15]+m[w&15]+m[d>>>28&15]+m[d>>>24&15]+m[d>>>20&15]+m[d>>>16&15]+m[d>>>12&15]+m[d>>>8&15]+m[d>>>4&15]+m[d&15]+m[v>>>28&15]+m[v>>>24&15]+m[v>>>20&15]+m[v>>>16&15]+m[v>>>12&15]+m[v>>>8&15]+m[v>>>4&15]+m[v&15]+m[u>>>28&15]+m[u>>>24&15]+m[u>>>20&15]+m[u>>>16&15]+m[u>>>12&15]+m[u>>>8&15]+m[u>>>4&15]+m[u&15]+m[F>>>28&15]+m[F>>>24&15]+m[F>>>20&15]+m[F>>>16&15]+m[F>>>12&15]+m[F>>>8&15]+m[F>>>4&15]+m[F&15];return this.is224||(_+=m[s>>>28&15]+m[s>>>24&15]+m[s>>>20&15]+m[s>>>16&15]+m[s>>>12&15]+m[s>>>8&15]+m[s>>>4&15]+m[s&15]),_},R.prototype.toString=R.prototype.hex,R.prototype.digest=function(){this.finalize();var n=this.h0,f=this.h1,w=this.h2,d=this.h3,v=this.h4,u=this.h5,F=this.h6,s=this.h7,_=[n>>>24&255,n>>>16&255,n>>>8&255,n&255,f>>>24&255,f>>>16&255,f>>>8&255,f&255,w>>>24&255,w>>>16&255,w>>>8&255,w&255,d>>>24&255,d>>>16&255,d>>>8&255,d&255,v>>>24&255,v>>>16&255,v>>>8&255,v&255,u>>>24&255,u>>>16&255,u>>>8&255,u&255,F>>>24&255,F>>>16&255,F>>>8&255,F&255];return this.is224||_.push(s>>>24&255,s>>>16&255,s>>>8&255,s&255),_},R.prototype.array=R.prototype.digest,R.prototype.arrayBuffer=function(){this.finalize();var n=new ArrayBuffer(this.is224?28:32),f=new DataView(n);return f.setUint32(0,this.h0),f.setUint32(4,this.h1),f.setUint32(8,this.h2),f.setUint32(12,this.h3),f.setUint32(16,this.h4),f.setUint32(20,this.h5),f.setUint32(24,this.h6),this.is224||f.setUint32(28,this.h7),n};function Z(n,f,w){var d,v=typeof n;if(v==="string"){var u=[],F=n.length,s=0,_;for(d=0;d>>6,u[s++]=128|_&63):_<55296||_>=57344?(u[s++]=224|_>>>12,u[s++]=128|_>>>6&63,u[s++]=128|_&63):(_=65536+((_&1023)<<10|n.charCodeAt(++d)&1023),u[s++]=240|_>>>18,u[s++]=128|_>>>12&63,u[s++]=128|_>>>6&63,u[s++]=128|_&63);n=u}else if(v==="object"){if(n===null)throw new Error(e);if(H&&n.constructor===ArrayBuffer)n=new Uint8Array(n);else if(!Array.isArray(n)&&(!H||!ArrayBuffer.isView(n)))throw new Error(e)}else throw new Error(e);n.length>64&&(n=new R(f,!0).update(n).array());var T=[],O=[];for(d=0;d<64;++d){var P=n[d]||0;T[d]=92^P,O[d]=54^P}R.call(this,f,w),this.update(O),this.oKeyPad=T,this.inner=!0,this.sharedMemory=w}Z.prototype=new R,Z.prototype.finalize=function(){if(R.prototype.finalize.call(this),this.inner){this.inner=!1;var n=this.array();R.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(n),R.prototype.finalize.call(this)}};var K=ge();K.sha256=K,K.sha224=ge(!0),K.sha256.hmac=J(),K.sha224.hmac=J(!0),j?h.exports=K:(b.sha256=K.sha256,b.sha224=K.sha224)})()})(Le);var cr=Le.exports;const lr=De(cr);class fe extends Error{}fe.prototype.name="InvalidTokenError";function ur(h){return decodeURIComponent(atob(h).replace(/(.)/g,(e,x)=>{let b=x.charCodeAt(0).toString(16).toUpperCase();return b.length<2&&(b="0"+b),"%"+b}))}function fr(h){let e=h.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return ur(e)}catch{return atob(e)}}function be(h,e){if(typeof h!="string")throw new fe("Invalid token specified: must be a string");e||(e={});const x=e.header===!0?0:1,b=h.split(".")[x];if(typeof b!="string")throw new fe(`Invalid token specified: missing part #${x+1}`);let L;try{L=fr(b)}catch(y){throw new fe(`Invalid token specified: invalid base64 for part #${x+1} (${y.message})`)}try{return JSON.parse(L)}catch(y){throw new fe(`Invalid token specified: invalid json for part #${x+1} (${y.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function je(h){if(!(this instanceof je))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var e=this,x,b=[],L,y={enable:!0,callbackList:[],interval:5},j=document.getElementsByTagName("script"),H=0;H-1?x=O(r.adapter):r&&typeof r.adapter=="object"?x=r.adapter:window.Cordova||window.cordova?x=O("cordova"):x=O(),r){if(typeof r.useNonce<"u"&&(m=r.useNonce),typeof r.checkLoginIframe<"u"&&(y.enable=r.checkLoginIframe),r.checkLoginIframeInterval&&(y.interval=r.checkLoginIframeInterval),r.onLoad==="login-required"&&(e.loginRequired=!0),r.responseMode)if(r.responseMode==="query"||r.responseMode==="fragment")e.responseMode=r.responseMode;else throw"Invalid value for responseMode";if(r.flow){switch(r.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=r.flow}if(r.timeSkew!=null&&(e.timeSkew=r.timeSkew),r.redirectUri&&(e.redirectUri=r.redirectUri),r.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=r.silentCheckSsoRedirectUri),typeof r.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=r.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof r.pkceMethod<"u"){if(r.pkceMethod!=="S256"&&r.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${r.pkceMethod}.`);e.pkceMethod=r.pkceMethod}else e.pkceMethod="S256";typeof r.enableLogging=="boolean"?e.enableLogging=r.enableLogging:e.enableLogging=!1,r.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof r.scope=="string"&&(e.scope=r.scope),typeof r.acrValues=="string"&&(e.acrValues=r.acrValues),typeof r.messageReceiveTimeout=="number"&&r.messageReceiveTimeout>0?e.messageReceiveTimeout=r.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var i=v(),l=v();l.promise.then(function(){e.onReady&&e.onReady(e.authenticated),i.setSuccess(e.authenticated)}).catch(function(k){i.setError(k)});var o=R();function p(){var k=function(U){U||(S.prompt="none"),r&&r.locale&&(S.locale=r.locale),e.login(S).then(function(){l.setSuccess()}).catch(function(Y){l.setError(Y)})},g=function(){var U=document.createElement("iframe"),Y=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});U.setAttribute("src",Y),U.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),U.setAttribute("title","keycloak-silent-check-sso"),U.style.display="none",document.body.appendChild(U);var Q=function(z){if(!(z.origin!==window.location.origin||U.contentWindow!==z.source)){var ue=f(z.data);J(ue,l),document.body.removeChild(U),window.removeEventListener("message",Q)}};window.addEventListener("message",Q)},S={};switch(r.onLoad){case"check-sso":y.enable?F().then(function(){_().then(function(U){U?l.setSuccess():e.silentCheckSsoRedirectUri?g():k(!1)}).catch(function(U){l.setError(U)})}):e.silentCheckSsoRedirectUri?g():k(!1);break;case"login-required":k(!0);break;default:throw"Invalid value for onLoad"}}function a(){var k=f(window.location.href);if(k&&window.history.replaceState(window.history.state,null,k.newUrl),k&&k.valid)return F().then(function(){J(k,l)}).catch(function(g){l.setError(g)});r?r.token&&r.refreshToken?(K(r.token,r.refreshToken,r.idToken),y.enable?F().then(function(){_().then(function(g){g?(e.onAuthSuccess&&e.onAuthSuccess(),l.setSuccess(),s()):l.setSuccess()}).catch(function(g){l.setError(g)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),l.setSuccess()}).catch(function(g){e.onAuthError&&e.onAuthError(),r.onLoad?p():l.setError(g)})):r.onLoad?p():l.setSuccess():l.setSuccess()}function c(){var k=v(),g=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",g),k.setSuccess())};return document.addEventListener("readystatechange",g),g(),k.promise}return o.then(function(){c().then(T).then(a).catch(function(k){i.setError(k)})}),o.catch(function(k){i.setError(k)}),i.promise},e.login=function(r){return x.login(r)};function ne(r){var t=null,i=window.crypto||window.msCrypto;if(i&&i.getRandomValues&&window.Uint8Array)return t=new Uint8Array(r),i.getRandomValues(t),t;t=new Array(r);for(var l=0;l=0},e.hasResourceRole=function(r,t){if(!e.resourceAccess)return!1;var i=e.resourceAccess[t||e.clientId];return!!i&&i.roles.indexOf(r)>=0},e.loadUserProfile=function(){var r=D()+"/account",t=new XMLHttpRequest;t.open("GET",r,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+e.token);var i=v();return t.onreadystatechange=function(){t.readyState==4&&(t.status==200?(e.profile=JSON.parse(t.responseText),i.setSuccess(e.profile)):i.setError())},t.send(),i.promise},e.loadUserInfo=function(){var r=e.endpoints.userinfo(),t=new XMLHttpRequest;t.open("GET",r,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+e.token);var i=v();return t.onreadystatechange=function(){t.readyState==4&&(t.status==200?(e.userInfo=JSON.parse(t.responseText),i.setSuccess(e.userInfo)):i.setError())},t.send(),i.promise},e.isTokenExpired=function(r){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return $("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var t=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(r){if(isNaN(r))throw"Invalid minValidity";t-=r}return t<0},e.updateToken=function(r){var t=v();if(!e.refreshToken)return t.setError(),t.promise;r=r||5;var i=function(){var o=!1;if(r==-1?(o=!0,$("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(r))&&(o=!0,$("[KEYCLOAK] Refreshing token: token expired")),!o)t.setSuccess(!1);else{var p="grant_type=refresh_token&refresh_token="+e.refreshToken,a=e.endpoints.token();if(b.push(t),b.length==1){var c=new XMLHttpRequest;c.open("POST",a,!0),c.setRequestHeader("Content-type","application/x-www-form-urlencoded"),c.withCredentials=!0,p+="&client_id="+encodeURIComponent(e.clientId);var k=new Date().getTime();c.onreadystatechange=function(){if(c.readyState==4)if(c.status==200){$("[KEYCLOAK] Token refreshed"),k=(k+new Date().getTime())/2;var g=JSON.parse(c.responseText);K(g.access_token,g.refresh_token,g.id_token,k),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var S=b.pop();S!=null;S=b.pop())S.setSuccess(!0)}else{N("[KEYCLOAK] Failed to refresh token"),c.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var S=b.pop();S!=null;S=b.pop())S.setError(!0)}},c.send(p)}}};if(y.enable){var l=_();l.then(function(){i()}).catch(function(o){t.setError(o)})}else i();return t.promise},e.clearToken=function(){e.token&&(K(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function D(){if(typeof e.authServerUrl<"u")return e.authServerUrl.charAt(e.authServerUrl.length-1)=="/"?e.authServerUrl+"realms/"+encodeURIComponent(e.realm):e.authServerUrl+"/realms/"+encodeURIComponent(e.realm)}function ke(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function J(r,t){var i=r.code,l=r.error,o=r.prompt,p=new Date().getTime();if(r.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(r.kc_action_status),l){if(o!="none")if(r.error_description&&r.error_description==="authentication_expired")e.login(r.loginOptions);else{var a={error:l,error_description:r.error_description};e.onAuthError&&e.onAuthError(a),t&&t.setError(a)}else t&&t.setSuccess();return}else e.flow!="standard"&&(r.access_token||r.id_token)&&S(r.access_token,null,r.id_token,!0);if(e.flow!="implicit"&&i){var c="code="+i+"&grant_type=authorization_code",k=e.endpoints.token(),g=new XMLHttpRequest;g.open("POST",k,!0),g.setRequestHeader("Content-type","application/x-www-form-urlencoded"),c+="&client_id="+encodeURIComponent(e.clientId),c+="&redirect_uri="+r.redirectUri,r.pkceCodeVerifier&&(c+="&code_verifier="+r.pkceCodeVerifier),g.withCredentials=!0,g.onreadystatechange=function(){if(g.readyState==4)if(g.status==200){var U=JSON.parse(g.responseText);S(U.access_token,U.refresh_token,U.id_token,e.flow==="standard"),s()}else e.onAuthError&&e.onAuthError(),t&&t.setError()},g.send(c)}function S(U,Y,Q,z){p=(p+new Date().getTime())/2,K(U,Y,Q,p),m&&e.idTokenParsed&&e.idTokenParsed.nonce!=r.storedNonce?($("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),t&&t.setError()):z&&(e.onAuthSuccess&&e.onAuthSuccess(),t&&t.setSuccess())}}function R(r){var t=v(),i;h?typeof h=="string"&&(i=h):i="keycloak.json";function l(g){g?e.endpoints={authorize:function(){return g.authorization_endpoint},token:function(){return g.token_endpoint},logout:function(){if(!g.end_session_endpoint)throw"Not supported by the OIDC server";return g.end_session_endpoint},checkSessionIframe:function(){if(!g.check_session_iframe)throw"Not supported by the OIDC server";return g.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!g.userinfo_endpoint)throw"Not supported by the OIDC server";return g.userinfo_endpoint}}:e.endpoints={authorize:function(){return D()+"/protocol/openid-connect/auth"},token:function(){return D()+"/protocol/openid-connect/token"},logout:function(){return D()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var S=D()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(S=S+"?version="+e.iframeVersion),S},thirdPartyCookiesIframe:function(){var S=D()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(S=S+"?version="+e.iframeVersion),S},register:function(){return D()+"/protocol/openid-connect/registrations"},userinfo:function(){return D()+"/protocol/openid-connect/userinfo"}}}if(i){var o=new XMLHttpRequest;o.open("GET",i,!0),o.setRequestHeader("Accept","application/json"),o.onreadystatechange=function(){if(o.readyState==4)if(o.status==200||Z(o)){var g=JSON.parse(o.responseText);e.authServerUrl=g["auth-server-url"],e.realm=g.realm,e.clientId=g.resource,l(null),t.setSuccess()}else t.setError()},o.send()}else{if(!h.clientId)throw"clientId missing";e.clientId=h.clientId;var p=h.oidcProvider;if(p)if(typeof p=="string"){var k;p.charAt(p.length-1)=="/"?k=p+".well-known/openid-configuration":k=p+"/.well-known/openid-configuration";var o=new XMLHttpRequest;o.open("GET",k,!0),o.setRequestHeader("Accept","application/json"),o.onreadystatechange=function(){if(o.readyState==4)if(o.status==200||Z(o)){var S=JSON.parse(o.responseText);l(S),t.setSuccess()}else t.setError()},o.send()}else l(p),t.setSuccess();else{if(!h.url){for(var a=document.getElementsByTagName("script"),c=0;c=0;--a){var c=p[a];o.data=="error"?c.setError():c.setSuccess(o.data=="unchanged")}}};return window.addEventListener("message",l,!1),r.promise}function s(){y.enable&&e.token&&setTimeout(function(){_().then(function(r){r&&s()})},y.interval*1e3)}function _(){var r=v();if(y.iframe&&y.iframeOrigin){var t=e.clientId+" "+(e.sessionId?e.sessionId:"");y.callbackList.push(r);var i=y.iframeOrigin;y.callbackList.length==1&&y.iframe.contentWindow.postMessage(t,i)}else r.setSuccess();return r.promise}function T(){var r=v();if(y.enable||e.silentCheckSsoRedirectUri){var t=document.createElement("iframe");t.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),t.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),t.setAttribute("title","keycloak-3p-check-iframe"),t.style.display="none",document.body.appendChild(t);var i=function(l){t.contentWindow===l.source&&(l.data!=="supported"&&l.data!=="unsupported"||(l.data==="unsupported"&&(N(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means: - - - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication). - - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab). - -For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),y.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(t),window.removeEventListener("message",i),r.setSuccess()))};window.addEventListener("message",i,!1)}else r.setSuccess();return u(r.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function O(r){if(!r||r=="default")return{login:function(a){return window.location.assign(e.createLoginUrl(a)),v().promise},logout:async function(a){if((a?.logoutMethod??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(a));return}const k=e.createLogoutUrl(a),g=await fetch(k,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:x.redirectUri(a,!1)})});if(g.redirected){window.location.href=g.url;return}if(g.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(a){return window.location.assign(e.createRegisterUrl(a)),v().promise},accountManagement:function(){var a=e.createAccountUrl();if(typeof a<"u")window.location.href=a;else throw"Not supported by the OIDC server";return v().promise},redirectUri:function(a,c){return a&&a.redirectUri?a.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(r=="cordova"){y.enable=!1;var t=function(a,c,k){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(a,c,k):window.open(a,c,k)},i=function(a){return a&&a.cordovaOptions?Object.keys(a.cordovaOptions).reduce(function(c,k){return c[k]=a.cordovaOptions[k],c},{}):{}},l=function(a){return Object.keys(a).reduce(function(c,k){return c.push(k+"="+a[k]),c},[]).join(",")},o=function(a){var c=i(a);return c.location="no",a&&a.prompt=="none"&&(c.hidden="yes"),l(c)},p=function(){return e.redirectUri||"http://localhost"};return{login:function(a){var c=v(),k=o(a),g=e.createLoginUrl(a),S=t(g,"_blank",k),U=!1,Y=!1,Q=function(){Y=!0,S.close()};return S.addEventListener("loadstart",function(z){if(z.url.indexOf(p())==0){var ue=f(z.url);J(ue,c),Q(),U=!0}}),S.addEventListener("loaderror",function(z){if(!U)if(z.url.indexOf(p())==0){var ue=f(z.url);J(ue,c),Q(),U=!0}else c.setError(),Q()}),S.addEventListener("exit",function(z){Y||c.setError({reason:"closed_by_user"})}),c.promise},logout:function(a){var c=v(),k=e.createLogoutUrl(a),g=t(k,"_blank","location=no,hidden=yes,clearcache=yes"),S;return g.addEventListener("loadstart",function(U){U.url.indexOf(p())==0&&g.close()}),g.addEventListener("loaderror",function(U){U.url.indexOf(p())==0||(S=!0),g.close()}),g.addEventListener("exit",function(U){S?c.setError():(e.clearToken(),c.setSuccess())}),c.promise},register:function(a){var c=v(),k=e.createRegisterUrl(),g=o(a),S=t(k,"_blank",g);return S.addEventListener("loadstart",function(U){if(U.url.indexOf(p())==0){S.close();var Y=f(U.url);J(Y,c)}}),c.promise},accountManagement:function(){var a=e.createAccountUrl();if(typeof a<"u"){var c=t(a,"_blank","location=no");c.addEventListener("loadstart",function(k){k.url.indexOf(p())==0&&c.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(a){return p()}}}if(r=="cordova-native")return y.enable=!1,{login:function(a){var c=v(),k=e.createLoginUrl(a);return universalLinks.subscribe("keycloak",function(g){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var S=f(g.url);J(S,c)}),window.cordova.plugins.browsertab.openUrl(k),c.promise},logout:function(a){var c=v(),k=e.createLogoutUrl(a);return universalLinks.subscribe("keycloak",function(g){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),c.setSuccess()}),window.cordova.plugins.browsertab.openUrl(k),c.promise},register:function(a){var c=v(),k=e.createRegisterUrl(a);return universalLinks.subscribe("keycloak",function(g){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var S=f(g.url);J(S,c)}),window.cordova.plugins.browsertab.openUrl(k),c.promise},accountManagement:function(){var a=e.createAccountUrl();if(typeof a<"u")window.cordova.plugins.browsertab.openUrl(a);else throw"Not supported by the OIDC server"},redirectUri:function(a){return a&&a.redirectUri?a.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+r}var P=function(){if(!(this instanceof P))return new P;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var r=this;function t(){for(var i=new Date().getTime(),l=0;l{ie(this,X,de).call(this,{kind:"error",error:x}),E(this,he).notify({level:"error",title:E(this,se).formatMessage({id:"loginFailed.title"}),message:E(this,se).formatMessage({id:"loginFailed.message"})}),W.error("Failed to check if user is authenticated",x)})}destroy(){clearInterval(E(this,te)),G(this,pe,Ve(E(this,pe))),G(this,te,void 0)}getAuthState(){return E(this,me).value}getLoginBehavior(){return{kind:"effect",login:()=>{W.debug("Login with options",E(this,le)),E(this,M).login(E(this,le))}}}logout(){W.debug("Logout with options",E(this,ce)),E(this,M).logout(E(this,ce))}__refresh(e,x){clearInterval(E(this,te)),G(this,te,setInterval(()=>{E(this,M).updateToken(x).catch(b=>{W.error("Failed to refresh token",b),ie(this,X,de).call(this,{kind:"not-authenticated"}),this.destroy()})},e))}}he=new WeakMap,se=new WeakMap,re=new WeakMap,M=new WeakMap,ce=new WeakMap,le=new WeakMap,te=new WeakMap,pe=new WeakMap,me=new WeakMap,X=new WeakSet,Oe=async function(){const e=E(this,re),x=E(this,re).keycloakInitOptions,b=e.refreshOptions;let L;try{L=await E(this,M).init(x)}catch(y){const j=typeof y=="string"?new Error(y):y;throw new Error("Failed to initialize keycloak session",{cause:j})}L?(ie(this,X,de).call(this,{kind:"authenticated",sessionInfo:{userId:E(this,M).subject?E(this,M).subject:"undefined",userName:E(this,M).idTokenParsed?.preferred_username,attributes:{keycloak:E(this,M),familyName:E(this,M).idTokenParsed?.family_name,givenName:E(this,M).idTokenParsed?.given_name,userName:E(this,M).idTokenParsed?.preferred_username}}}),W.debug(`User ${E(this,M).subject} is authenticated`),b.autoRefresh&&(W.debug("Starting auto-refresh",b),this.__refresh(b.interval,b.timeLeft))):(ie(this,X,de).call(this,{kind:"not-authenticated"}),W.debug("User is not authenticated"))},de=function(e){E(this,me).value=e};const Te={autoRefresh:!0,interval:6e3,timeLeft:70},Ce={onLoad:"check-sso",pkceMethod:"S256"};function pr(h){const{keycloakOptions:e}=h,{refreshOptions:x,keycloakInitOptions:b,keycloakConfig:L}=e;return{refreshOptions:{...mr(x)},keycloakInitOptions:{...vr(b)},keycloakConfig:{...gr(L)}}}function mr(h){return!h||Se(h)?(W.warn(`The autorefresh options of the Keycloak configuration should be set to ensure automatic refreshes at specified intervals. Defaulting to '${Te}'.`),Object.assign({},{...Te})):h}function vr(h){return!h||Se(h)?(W.warn(`The Keycloak init options of the keycloak configuration should be set. Defaulting to '${Ce}'.`),Object.assign({},{...Ce})):h}function gr(h){if(!h||Se(h))throw new Error("KeycloakConfig not found: The Keycloak configuration options are required by the plugin to perform login and logout operations");return h}const Se=h=>h&&Object.keys(h).length===0&&h.constructor===Object,kr={"keycloak-sample":{name:"keycloak-sample",services:{SampleTokenInterceptor:{name:"SampleTokenInterceptor",clazz:ir,provides:[{name:"http.Interceptor",qualifier:void 0}],references:{authService:{name:"authentication.AuthService",qualifier:void 0,all:!1}}}},ui:{references:[{name:"authentication.AuthService",qualifier:void 0,all:!1},{name:"http.HttpService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/http":{name:"@open-pioneer/http",services:{HttpServiceImpl:{name:"HttpServiceImpl",clazz:Ge,provides:[{name:"http.HttpService",qualifier:void 0}],references:{interceptors:{name:"http.Interceptor",qualifier:void 0,all:!0}}}},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:$e,provides:[{name:"notifier.NotificationService",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/authentication":{name:"@open-pioneer/authentication",services:{AuthServiceImpl:{name:"AuthServiceImpl",clazz:Qe,provides:[{name:"authentication.AuthService",qualifier:void 0}],references:{plugin:{name:"authentication.AuthPlugin",qualifier:void 0,all:!1}}}},ui:{references:[{name:"authentication.AuthService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/authentication-keycloak":{name:"@open-pioneer/authentication-keycloak",services:{KeycloakAuthPlugin:{name:"KeycloakAuthPlugin",clazz:hr,provides:[{name:"authentication.AuthPlugin",qualifier:void 0},{name:"authentication-keycloak.KeycloakAuthPlugin",qualifier:void 0}],references:{notifier:{name:"notifier.NotificationService",qualifier:void 0,all:!1}}}},ui:{references:[]},properties:{keycloakOptions:{value:{refreshOptions:null,keycloakInitOptions:null,keycloakConfig:null,keycloakLogoutOptions:null,keycloakLoginOptions:null},required:!1}}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}},"@open-pioneer/reactivity":{name:"@open-pioneer/reactivity",services:{},ui:{references:[]},properties:{}}},xr="",wr=["de","en"];function br(h){switch(h){case"de":return Ue(()=>import("./DHsSmHrBD0L-.js"),[],import.meta.url).then(e=>e.default);case"en":return Ue(()=>import("./DOFgVa_i9Fer.js"),[],import.meta.url).then(e=>e.default)}throw new Error(`Unsupported locale: '${h}'`)}const yr=Je(xr),Sr=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:br,locales:wr,packages:kr,styles:yr},Symbol.toStringTag,{value:"Module"})),_r="keycloak-sample",ye=rr.bind(void 0,_r);function Fr(){const h=ye("authentication.AuthService"),e=()=>{h.logout()};return A.jsx(Re,{colorScheme:"red",onClick:e,children:"Log out"})}function Ar(){const h=ye("authentication.AuthService"),e=ye("http.HttpService"),x=Ze(h),L=(x.kind=="authenticated"?x.sessionInfo:void 0)?.userName,y=()=>{e.fetch("https://ogc-api.nrw.de/inspire-us-kindergarten/v1/collections/governmentalservice/items?f=json").catch(j=>console.error("Request failed",j))};return A.jsxs(A.Fragment,{children:[A.jsx(We,{}),A.jsxs(tr,{maxW:"800px",children:[A.jsxs(nr,{height:"100%",direction:"column",overflow:"hidden",children:[A.jsx(Fe,{as:"h1",size:"2xl",children:"Keycloak Sample"}),A.jsxs(Ae,{mt:4,spacing:2,align:"stretch",children:[A.jsx(Fe,{as:"h2",size:"xl",children:"Additional Setup"}),A.jsx(ae,{children:"This application requires additional setup. Most importantly, a Keycloak installation must be present."}),A.jsxs(ae,{children:["The following environment properties should be set via vite (e.g. in"," ",A.jsx(ee,{children:".env.local"}),"):"]}),A.jsxs(or,{children:[A.jsxs(we,{children:[A.jsx(ee,{children:"VITE_KEYCLOAK_CONFIG_URL"})," (the URL to the Keycloak instance)"]}),A.jsxs(we,{children:[A.jsx(ee,{children:"VITE_KEYCLOAK_CONFIG_REALM"})," (the Keycloak realm)"]}),A.jsxs(we,{children:[A.jsx(ee,{children:"VITE_KEYCLOAK_CONFIG_CLIENT_ID"})," (the client id of this application)"]})]}),A.jsxs(ae,{textAlign:"center",children:[A.jsx(ae,{as:"b",children:"Status: "}),L!=null?A.jsxs(A.Fragment,{children:["Logged in as ",A.jsx(ee,{children:L}),"."]}):A.jsx(A.Fragment,{children:"Not logged in."})]})]})]}),A.jsx(er,{renderErrorFallback:j=>A.jsxs(A.Fragment,{children:[A.jsx(Ie,{children:"An Error occured while trying to login!"}),A.jsx(Ie,{color:"red",children:j.message})]}),children:A.jsxs(Ae,{align:"center",p:10,mt:2,spacing:3,border:"2px solid red",borderRadius:5,children:[A.jsx(ae,{textAlign:"center",children:"This part of the application is only visible when logged in."}),A.jsx(Fr,{}),A.jsxs(ae,{children:["The following button triggers a request against a backend. The request will automatically include the Keycloak token (see"," ",A.jsx(ee,{children:"SampleTokenInterceptor.ts"}),"):"]}),A.jsx(Re,{onClick:y,children:"Trigger Request With Token"})]})})]})]})}const Ir=new URLSearchParams(window.location.search),Ur=Ir.get("lang")||void 0,Er=Ye({component:Ar,appMetadata:Sr,config:{properties:{"@open-pioneer/authentication-keycloak":{keycloakOptions:{refreshOptions:{autoRefresh:!0,interval:6e3,timeLeft:70},keycloakInitOptions:{onLoad:"check-sso",pkceMethod:"S256"},keycloakConfig:{url:void 0,realm:void 0,clientId:void 0}}}},locale:Ur}});customElements.define("keycloak-app-element",Er); diff --git a/core-packages/pr-previews/pr-71/assets/DRvIJMpysLDi.js b/core-packages/pr-previews/pr-71/assets/DRvIJMpysLDi.js deleted file mode 100644 index 4e8f8b5..0000000 --- a/core-packages/pr-previews/pr-71/assets/DRvIJMpysLDi.js +++ /dev/null @@ -1 +0,0 @@ -const e=JSON.parse('{"i18n-howto-app":{"heading":"I18n HowTo","text":"How to use I18n in Open Pioneer Trails apps?","interpolation.heading":"Interpolation Example (dynamic values)","interpolation.value":"Hello {name}","interpolation.placeholder":"input your name...","plurals.heading":"Plurals Example","plurals.value":"we drink {n, plural, =0 {no beer} one {one bottle of beer} other {# bottles of beer} =99 {too many bottles of beer}}","selection.heading":"Selection Example","selection.value":"{gender, select, male {Mister} female {Miss} other {}} {name}","selection.gender.male":"male","selection.gender.female":"female","selection.gender.other":"other","numberformat.heading":"NumberFormat Examples","numberformat.example.currency1":"currency (symbol): ","numberformat.example.currency2":"currency (name): ","numberformat.example.unit1":"unit (short): ","numberformat.example.unit2":"unit (long): ","datetimeformat.heading":"DateTimeFormat Examples","datetimeformat.timelabel":"the chosen time is ","datetimeformat.relativetimelabel":"relative time to chosen time: "}}');export{e as default}; diff --git a/core-packages/pr-previews/pr-71/assets/Dg0FwUWAsyRP.js b/core-packages/pr-previews/pr-71/assets/Dg0FwUWAsyRP.js deleted file mode 100644 index 673f623..0000000 --- a/core-packages/pr-previews/pr-71/assets/Dg0FwUWAsyRP.js +++ /dev/null @@ -1 +0,0 @@ -import{h as r,j as s,S as o}from"./BNseSxaIihtT.js";const e=r((a,t)=>s.jsx(o,{align:"center",...a,direction:"row",ref:t}));e.displayName="HStack";export{e as H}; diff --git a/core-packages/pr-previews/pr-71/assets/DqV0DePC79V3.js b/core-packages/pr-previews/pr-71/assets/DqV0DePC79V3.js deleted file mode 100644 index d87559d..0000000 --- a/core-packages/pr-previews/pr-71/assets/DqV0DePC79V3.js +++ /dev/null @@ -1 +0,0 @@ -var T=t=>{throw TypeError(t)};var q=(t,e,i)=>e.has(t)||T("Cannot "+i);var u=(t,e,i)=>(q(t,e,"read from private field"),i?i.call(t):e.get(t)),E=(t,e,i)=>e.has(t)?T("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),l=(t,e,i,r)=>(q(t,e,"write to private field"),r?r.call(t,i):e.set(t,i),i),_=(t,e,i)=>(q(t,e,"access private method"),i);import{ak as rt,ad as nt,al as st,c as ot,r as c,j as d,O as ut}from"./BNseSxaIihtT.js";import{u as at,a as ct}from"./DrpD1hfjkN6P.js";var ht=Symbol.for("preact-signals");function R(){if(p>1)p--;else{for(var t,e=!1;m!==void 0;){var i=m;for(m=void 0,j++;i!==void 0;){var r=i.o;if(i.o=void 0,i.f&=-3,!(8&i.f)&&B(i))try{i.c()}catch(o){e||(t=o,e=!0)}i=r}}if(j=0,p--,e)throw t}}var n=void 0;function N(t){var e=n;n=void 0;try{return t()}finally{n=e}}var m=void 0,p=0,j=0,A=0;function W(t){if(n!==void 0){var e=t.n;if(e===void 0||e.t!==n)return e={i:0,S:t,p:n.s,n:void 0,t:n,e:void 0,x:void 0,r:e},n.s!==void 0&&(n.s.n=e),n.s=e,t.n=e,32&n.f&&t.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=n.s,e.n=void 0,n.s.n=e,n.s=e),e}}function s(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}s.prototype.brand=ht;s.prototype.h=function(){return!0};s.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t)};s.prototype.U=function(t){if(this.t!==void 0){var e=t.e,i=t.x;e!==void 0&&(e.x=i,t.e=void 0),i!==void 0&&(i.e=e,t.x=void 0),t===this.t&&(this.t=i)}};s.prototype.subscribe=function(t){var e=this;return O(function(){var i=e.value,r=n;n=void 0;try{t(i)}finally{n=r}})};s.prototype.valueOf=function(){return this.value};s.prototype.toString=function(){return this.value+""};s.prototype.toJSON=function(){return this.value};s.prototype.peek=function(){var t=n;n=void 0;try{return this.value}finally{n=t}};Object.defineProperty(s.prototype,"value",{get:function(){var t=W(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(j>100)throw new Error("Cycle detected");this.v=t,this.i++,A++,p++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{R()}}}});function ft(t){return new s(t)}function B(t){for(var e=t.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function $(t){for(var e=t.s;e!==void 0;e=e.n){var i=e.S.n;if(i!==void 0&&(e.r=i),e.S.n=e,e.i=-1,e.n===void 0){t.s=e;break}}}function G(t){for(var e=t.s,i=void 0;e!==void 0;){var r=e.p;e.i===-1?(e.S.U(e),r!==void 0&&(r.n=e.n),e.n!==void 0&&(e.n.p=r)):i=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=r}t.s=i}function g(t){s.call(this,void 0),this.x=t,this.s=void 0,this.g=A-1,this.f=4}(g.prototype=new s).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===A))return!0;if(this.g=A,this.f|=1,this.i>0&&!B(this))return this.f&=-2,!0;var t=n;try{$(this),n=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(i){this.v=i,this.f|=16,this.i++}return n=t,G(this),this.f&=-2,!0};g.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}s.prototype.S.call(this,t)};g.prototype.U=function(t){if(this.t!==void 0&&(s.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}};g.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Object.defineProperty(g.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=W(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function J(t){return new g(t)}function Q(t){var e=t.u;if(t.u=void 0,typeof e=="function"){p++;var i=n;n=void 0;try{e()}catch(r){throw t.f&=-2,t.f|=8,D(t),r}finally{n=i,R()}}}function D(t){for(var e=t.s;e!==void 0;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,Q(t)}function lt(t){if(n!==this)throw new Error("Out-of-order effect");G(this),n=t,this.f&=-2,8&this.f&&D(this),R()}function b(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}b.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e)}finally{t()}};b.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Q(this),$(this),p++;var t=n;return n=this,lt.bind(this,t)};b.prototype.N=function(){2&this.f||(this.f|=2,this.o=m,m=this)};b.prototype.d=function(){this.f|=8,1&this.f||D(this)};function O(t){var e=new b(t);try{e.c()}catch(i){throw e.d(),i}return e.d.bind(e)}function dt(t){let e;return{destroy:O(function(){this[vt]=t.bind(void 0),e=this[pt].bind(this)}),start:e}}var vt="N",pt="S";function Ht(t,e){return new St(t,e?.equal)}function yt(t,e){return new gt(t,e?.equal)}function K(t){return N(t)}var v=Symbol("signal"),x=Symbol("equals"),V=class{[v];constructor(t){this[v]=t}get value(){return this[v].value}set value(t){throw new Error("Cannot update a readonly reactive object.")}trigger(){throw new Error("Cannot trigger this reactive object.")}peek(){return this[v].peek()}toJSON(){return this.value}toString(){return`Reactive[value=${mt(this[v].value)}]`}},gt=class extends V{[x];constructor(t,e){const i=J(e?Et(t,e):t);super(i),this[x]=e}},St=class extends V{[x];constructor(t,e){super(ft(t)),this[x]=e}get value(){return super.value}set value(t){N(()=>this[x]?.(this.value,t))||(this[v].value=t)}};function Et(t,e){let i=!0,r;return function(){const h=t();return N(()=>((i||!e(r,h))&&(r=h,i=!1),r))}}function mt(t){return typeof t=="string"?JSON.stringify(t):String(t)}function Y(t,e){return t===e?!0:t.length===e.length&&t.every((i,r)=>i===e[r])}function z(t,e,i,r){const o=J(e),h=r?.immediate??!1,et=r?.equal??xt;let k=!0,L,I;function P(){const S=I;I=void 0;try{S?.()}catch(w){throw U.destroy(),w}}const it=t(()=>{const S=o.value;K(()=>{const w=L,M=k&&h||!k&&!et(w,S);(M||k)&&(L=S,k=!1),M&&(P(),I=i(S,w))})}),U={destroy(){try{P()}finally{it.destroy()}}};return U}function xt(t,e){return t===e}function bt(t){return{destroy:O(t)}}function kt(t,e,i){return z(bt,t,e,{equal:Y,...i})}function X(t){Promise.reject(new Error("Error in effect or watch callback",{cause:t}))}var wt=class{queue=[];channel=new MessageChannel;constructor(){this.channel.port2.start()}enqueue(t){const e={fn:t,destroyed:!1};return this.queue.push(e),this.queue.length===1&&this.scheduleIteration(),{destroy(){e.destroyed||(e.destroyed=!0)}}}messageHandler=()=>this.runIteration();scheduleIteration(){const t=this.channel;t.port2.addEventListener("message",this.messageHandler),t.port1.postMessage("")}runIteration(){this.channel.port2.removeEventListener("message",this.messageHandler);const t=this.queue;this.queue=[];for(const e of t)if(!e.destroyed)try{e.fn()}catch(i){X(i)}}};function At(t){const e=new Ct(t);return{destroy:e.destroy.bind(e)}}var Ct=class{callback;cleanup;watcher;scheduledExecution;isDestroyed=!1;initialExecution=!0;isExecuting=!1;constructor(t){this.callback=t,this.watcher=dt(this.scheduleExecution),this.execute(),this.initialExecution=!1}destroy(){if(!this.isDestroyed){this.isDestroyed=!0;try{this.triggerCleanup()}finally{this.watcher?.destroy(),this.watcher=void 0,this.scheduledExecution?.destroy(),this.scheduledExecution=void 0}}}execute(){const t=this.watcher;if(!t)return;this.isExecuting=!0;const e=t.start();try{if(this.initialExecution)try{this.triggerCallback()}catch(i){throw this.destroy(),i}else try{this.triggerCallback()}catch(i){X(i)}}finally{e(),this.isExecuting=!1}this.isDestroyed&&this.triggerCleanup()}triggerCallback(){if(!this.isDestroyed){this.triggerCleanup();const t=this.callback();typeof t=="function"&&(this.cleanup=t)}}triggerCleanup(){const t=this.cleanup;this.cleanup=void 0;try{t&&K(t)}catch(e){throw this.destroy(),e}}scheduleExecution=()=>{if(!this.isDestroyed){if(this.isExecuting)throw new Error("Cycle detected");this.scheduledExecution||(this.scheduledExecution=Ft(()=>{try{this.execute()}finally{this.scheduledExecution=void 0}}))}}};function It(t,e,i){return z(At,t,e,{equal:Y,...i})}var qt=new wt;function Ft(t){return qt.enqueue(t)}const F=ot("authentication:AuthService");var f,a,y,C,Z;class Wt{constructor(e){E(this,C);E(this,f);E(this,a);E(this,y);l(this,f,e.references.plugin),l(this,y,kt(()=>[u(this,f).getAuthState()],([i])=>{_(this,C,Z).call(this,i)},{immediate:!1})),F.debug(`Constructed with initial auth state '${this.getAuthState().kind}'`,this.getAuthState())}destroy(){u(this,a)?.reject(rt()),l(this,a,void 0),l(this,y,nt(u(this,y)))}getAuthState(){return u(this,f).getAuthState()}getSessionInfo(){return this.getAuthState().kind!=="pending"?Promise.resolve(H(this.getAuthState())):(u(this,a)||l(this,a,st()),u(this,a).promise)}getLoginBehavior(){return u(this,f).getLoginBehavior()}logout(){F.debug("Triggering logout"),u(this,f).logout()}}f=new WeakMap,a=new WeakMap,y=new WeakMap,C=new WeakSet,Z=function(e){e.kind!=="pending"&&u(this,a)&&(u(this,a).resolve(H(e)),l(this,a,void 0)),F.debug(`Auth state changed to '${e.kind}'`,e)};function H(t){return t.kind==="authenticated"?t.sessionInfo:void 0}const tt="@open-pioneer/authentication",jt=at.bind(void 0,tt),Rt=ct.bind(void 0,tt);function Nt(t,e){const i=c.useRef(t);i.current=t;const r=Lt(e);return c.useMemo(()=>yt(()=>i.current()),[r])}function Dt(t){const e=c.useCallback(()=>t.peek(),[t]),i=c.useCallback(o=>{const h=It(()=>[t.value],o);return()=>h.destroy()},[t]),r=c.useSyncExternalStore(i,e);return c.useDebugValue(r),r}function Ot(t,e){const i=Nt(t,e),r=Dt(i);return c.useDebugValue(r),r}function Lt(t){const e=c.useRef();return(e.current==null||!Pt(e.current,t))&&(e.current=t??[]),e.current}function Pt(t,e){return t===e?!0:t.length===(e?.length??0)&&t.every((i,r)=>i===e[r])}function Ut(t){return Ot(()=>t.getAuthState(),[t])}const Bt=t=>{const e=jt("authentication.AuthService"),i=Ut(e),r=Rt(),o=c.useMemo(()=>{if(i.kind==="not-authenticated")return e.getLoginBehavior()},[e,i.kind]);switch(c.useEffect(()=>{i.kind==="not-authenticated"&&o?.kind==="effect"&&o.login()},[o,i.kind]),i.kind){case"pending":return null;case"not-authenticated":{if(!o||o.kind!=="fallback")return null;const h=o.Fallback;return t.renderFallback?d.jsx(d.Fragment,{children:t.renderFallback(h)}):d.jsx(h,{...t.fallbackProps})}case"error":return t.renderErrorFallback?t.renderErrorFallback(i.error):t.errorFallback?d.jsx(t.errorFallback,{error:i.error}):d.jsx(ut,{className:"authentication-error",children:r.formatMessage({id:"auth-error"})});case"authenticated":return d.jsx(d.Fragment,{children:t.children})}};export{Wt as A,Bt as F,Ht as r,Ut as u}; diff --git a/core-packages/pr-previews/pr-71/assets/DrpD1hfjkN6P.js b/core-packages/pr-previews/pr-71/assets/DrpD1hfjkN6P.js deleted file mode 100644 index ecd3e1b..0000000 --- a/core-packages/pr-previews/pr-71/assets/DrpD1hfjkN6P.js +++ /dev/null @@ -1 +0,0 @@ -import{r,am as s,an as a,ao as u}from"./BNseSxaIihtT.js";function l(t,e,n){const o=r.useContext(s);return r.useMemo(()=>c("useService",o).getService(t,e,n??{}),[o,t,e,n])}function I(t){const e=r.useContext(s);return c("useIntl",e).getIntl(t)}function c(t,e){if(!e)throw new a(u.INTERNAL,`"Failed to access package context from '${t}': react integration was not set up properly.`);return e}export{I as a,l as u}; diff --git a/core-packages/pr-previews/pr-71/assets/DxOO76t5xCcD.js b/core-packages/pr-previews/pr-71/assets/DxOO76t5xCcD.js deleted file mode 100644 index 80269cf..0000000 --- a/core-packages/pr-previews/pr-71/assets/DxOO76t5xCcD.js +++ /dev/null @@ -1,8 +0,0 @@ -var x=t=>{throw TypeError(t)};var g=(t,e,n)=>e.has(t)||x("Cannot "+n);var u=(t,e,n)=>(g(t,e,"read from private field"),n?n.call(t):e.get(t)),m=(t,e,n)=>e.has(t)?x("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),d=(t,e,n,i)=>(g(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),b=(t,e,n)=>(g(t,e,"access private method"),n);import{r as f,h as E,j as h,a3 as L,c as j,H as C}from"./BNseSxaIihtT.js";import{u as I}from"./DrpD1hfjkN6P.js";import{u as T}from"./5BaEhH7ejH5h.js";function M(t){const{viewBox:e="0 0 24 24",d:n,displayName:i,defaultProps:s={}}=t,r=f.Children.toArray(t.path),o=E((a,c)=>h.jsx(L,{ref:c,viewBox:e,...s,...a,children:r.length?r:h.jsx("path",{fill:"currentColor",d:n})}));return o.displayName=i,o}const w=j("notifier:NotificationService");var l,p,y,v,N,R;class K{constructor(){m(this,v);m(this,l);m(this,p);m(this,y)}destroy(){clearTimeout(u(this,y)),d(this,y,void 0)}notify(e){b(this,v,N).call(this,"showNotification",{title:e.title??void 0,message:e.message??void 0,level:e.level??"info",displayDuration:e.displayDuration})}closeAll(){b(this,v,N).call(this,"closeAll")}registerHandler(e){if(u(this,l))return w.warn(`A notification handler has already been registered; this new handler will be ignored. -The component has likely been used twice in your application.`),{destroy(){}};d(this,l,e);const n=u(this,p);if(d(this,p,void 0),n)for(const[s,...r]of n)e[s](...r);let i=!1;return{destroy:()=>{i||(i=!0,u(this,l)===e&&d(this,l,void 0))}}}}l=new WeakMap,p=new WeakMap,y=new WeakMap,v=new WeakSet,N=function(e,...n){if(u(this,l))u(this,l)[e](...n);else{const i=u(this,p)??d(this,p,[]);if(i.length>=1024){w.error(`Internal notification buffer overflow: this event will be dropped to prevent a memory leak. -Make sure that the UI is configured to display notifications (use ).`,{method:e,args:n});return}i.push([e,...n])}},R=function(){u(this,l)||w.warn(`No notification handler has been registered: notifications will not be visible. -Make sure that your app contains the component.`)};function A(t){const e=f.useRef(null);return f.useLayoutEffect(()=>{e.current=t}),f.useCallback((...i)=>{const s=e.current;return s(...i)},[])}const D=1,H=f.createContext(D);H.displayName="LevelContext";f.forwardRef(function(e,n){const{children:i,...s}=e,r=k(),o=O(r);return h.jsx(C,{as:o,ref:n,...s,children:i})});function k(){const t=f.useContext(H);return Math.min(t,6)}function O(t){return`h${t}`}var P={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r="",o=0;o{const S=c.level==="error"?h.jsx(G,{h:"100%",w:"100%"}):void 0;n({position:e,title:c.title,description:c.message||null,status:c.level,isClosable:!0,duration:c.displayDuration??null,icon:S})}),a=A(()=>{n.closeAll()});return f.useEffect(()=>{const c=i.registerHandler({showNotification:o,closeAll:a});return()=>c.destroy()},[s,i,o,a]),h.jsx(h.Fragment,{})}export{K as N,$ as a}; diff --git a/core-packages/pr-previews/pr-71/assets/F38okayrCIRl.js b/core-packages/pr-previews/pr-71/assets/F38okayrCIRl.js deleted file mode 100644 index 20d2dea..0000000 --- a/core-packages/pr-previews/pr-71/assets/F38okayrCIRl.js +++ /dev/null @@ -1 +0,0 @@ -import{x,h as o,F as S,G as f,ab as g,j as n,n as c,a3 as h}from"./BNseSxaIihtT.js";const[j,d]=x({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),a=o(function(s,e){const t=S("List",s),{children:r,styleType:y="none",stylePosition:m,spacing:l,...L}=f(s),u=g(r),p=l?{["& > *:not(style) ~ *:not(style)"]:{mt:l}}:{};return n.jsx(j,{value:t,children:n.jsx(c.ul,{ref:e,listStyleType:y,listStylePosition:m,role:"list",__css:{...t.container,...p},...L,children:u})})});a.displayName="List";const I=o((i,s)=>{const{as:e,...t}=i;return n.jsx(a,{ref:s,as:"ol",styleType:"decimal",marginStart:"1em",...t})});I.displayName="OrderedList";const _=o(function(s,e){const{as:t,...r}=s;return n.jsx(a,{ref:e,as:"ul",styleType:"initial",marginStart:"1em",...r})});_.displayName="UnorderedList";const C=o(function(s,e){const t=d();return n.jsx(c.li,{ref:e,...s,__css:t.item})});C.displayName="ListItem";const N=o(function(s,e){const t=d();return n.jsx(h,{ref:e,role:"presentation",...s,__css:t.icon})});N.displayName="ListIcon";export{C as L,_ as U}; diff --git a/core-packages/pr-previews/pr-71/assets/GR5gr-89Qrme.js b/core-packages/pr-previews/pr-71/assets/GR5gr-89Qrme.js deleted file mode 100644 index 2e012ca..0000000 --- a/core-packages/pr-previews/pr-71/assets/GR5gr-89Qrme.js +++ /dev/null @@ -1 +0,0 @@ -import{h as c,a5 as o,G as i,aa as r,j as x,n as l,l as m}from"./BNseSxaIihtT.js";const g=c(function(a,t){const s=o("Text",a),{className:f,align:d,decoration:h,casing:u,...e}=i(a),n=r({textAlign:a.align,textDecoration:a.decoration,textTransform:a.casing});return x.jsx(l.p,{ref:t,className:m("chakra-text",a.className),...n,...e,__css:s})});g.displayName="Text";export{g as T}; diff --git a/core-packages/pr-previews/pr-71/assets/H-tH3weBVVy4.js b/core-packages/pr-previews/pr-71/assets/H-tH3weBVVy4.js deleted file mode 100644 index 7c8c22e..0000000 --- a/core-packages/pr-previews/pr-71/assets/H-tH3weBVVy4.js +++ /dev/null @@ -1 +0,0 @@ -import{h as N,l as C,r as s,j as e,n as E,a as k,S as m,H as R,O as T,b as _}from"./BNseSxaIihtT.js";import{N as B,a as I}from"./DxOO76t5xCcD.js";import{u as z}from"./DrpD1hfjkN6P.js";import{T as A,C as M}from"./D2UoO61Xz-WO.js";import{a as q,B as x}from"./CE6nEn_ZV1yL.js";import{C as w}from"./jYicUDcJydKy.js";import{T as F}from"./GR5gr-89Qrme.js";import{F as h}from"./DE_cfL-UvDdR.js";import{F as v}from"./COFhTFd8PTaT.js";import{I as G}from"./apwTDgsvPGCI.js";import{S as H}from"./BnGLVwzG1tCL.js";import"./5BaEhH7ejH5h.js";import"./Bux-xGeHLEc6.js";const D={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},L={horizontal:o=>({"& > *:not(style) ~ *:not(style)":{marginStart:o}}),vertical:o=>({"& > *:not(style) ~ *:not(style)":{marginTop:o}})},g=N(function(a,u){const{size:r,colorScheme:c,variant:n,className:d,spacing:l="0.5rem",isAttached:p,isDisabled:f,orientation:i="horizontal",...t}=a,y=C("chakra-button__group",d),j=s.useMemo(()=>({size:r,colorScheme:c,variant:n,isDisabled:f}),[r,c,n,f]);let S={display:"inline-flex",...p?D[i]:L[i](l)};const b=i==="vertical";return e.jsx(q,{value:j,children:e.jsx(E.div,{ref:u,role:"group",__css:S,className:y,"data-attached":p?"":void 0,"data-orientation":i,flexDir:b?"column":void 0,...t})})});g.displayName="ButtonGroup";const O={"notify-app":{name:"notify-app",services:{},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/chakra-integration":{name:"@open-pioneer/chakra-integration",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime":{name:"@open-pioneer/runtime",services:{},ui:{references:[]},properties:{}},"@open-pioneer/base-theme":{name:"@open-pioneer/base-theme",services:{},ui:{references:[]},properties:{}},"@open-pioneer/core":{name:"@open-pioneer/core",services:{},ui:{references:[]},properties:{}},"@open-pioneer/runtime-react-support":{name:"@open-pioneer/runtime-react-support",services:{},ui:{references:[]},properties:{}},"@open-pioneer/notifier":{name:"@open-pioneer/notifier",services:{NotificationServiceImpl:{name:"NotificationServiceImpl",clazz:B,provides:[{name:"notifier.NotificationService",qualifier:void 0}],references:{}}},ui:{references:[{name:"notifier.NotificationService",qualifier:void 0,all:!1}]},properties:{}},"@open-pioneer/react-utils":{name:"@open-pioneer/react-utils",services:{},ui:{references:[]},properties:{}}},P="",U=[];function K(o){throw new Error(`Unsupported locale: '${o}'`)}const V=k(P),W=Object.freeze(Object.defineProperty({__proto__:null,loadMessages:K,locales:U,packages:O,styles:V},Symbol.toStringTag,{value:"Module"})),$="notify-app",J=z.bind(void 0,$);function Q(){const o=J("notifier.NotificationService"),[a,u]=s.useState(""),[r,c]=s.useState("info"),[n,d]=s.useState(""),[l,p]=s.useState(!1),f=()=>{const t={title:a,level:r,message:n,displayDuration:l?5e3:void 0};if(!t.title){o.notify({title:"Title is required",level:"error"});return}o.notify(t)},i=()=>{o.closeAll()};return e.jsxs(e.Fragment,{children:[e.jsx(I,{position:"top-right"}),e.jsx(w,{p:5,children:e.jsxs(m,{spacing:8,children:[e.jsxs(m,{align:"center",children:[e.jsx(R,{as:"h1",children:"Notify Sample"}),e.jsx(F,{children:"Use the form below to emit notifications."})]}),e.jsx(T,{rounded:"lg",boxShadow:"lg",p:8,children:e.jsxs(m,{spacing:4,children:[e.jsxs(h,{isRequired:!0,children:[e.jsx(v,{children:"Title"}),e.jsx(G,{type:"text",value:a,onChange:t=>u(t.target.value)})]}),e.jsxs(h,{isRequired:!0,children:[e.jsx(v,{children:"Level"}),e.jsxs(H,{value:r,onChange:t=>{c(t.target.value)},children:[e.jsx("option",{value:"success",children:"Success"}),e.jsx("option",{value:"info",children:"Info"}),e.jsx("option",{value:"warning",children:"Warning"}),e.jsx("option",{value:"error",children:"Error"})]})]}),e.jsxs(h,{children:[e.jsx(v,{children:"Message"}),e.jsx(A,{placeholder:"Enter additional message",value:n,onChange:t=>d(t.target.value)})]}),e.jsx(M,{isChecked:l,onChange:t=>p(t.target.checked),children:"Hide after 5 seconds"}),e.jsxs(g,{justifyContent:"center",children:[e.jsx(x,{flex:"1",onClick:f,children:"Emit Notification"}),e.jsx(x,{flex:"1",variant:"cancel",onClick:i,children:"Clear notifications"})]})]})})]})})]})}const X=_({component:Q,appMetadata:W});customElements.define("notify-app",X); diff --git a/core-packages/pr-previews/pr-71/assets/P9WplnIxWHzS.js b/core-packages/pr-previews/pr-71/assets/P9WplnIxWHzS.js deleted file mode 100644 index 9917b51..0000000 --- a/core-packages/pr-previews/pr-71/assets/P9WplnIxWHzS.js +++ /dev/null @@ -1 +0,0 @@ -const e=JSON.parse('{"auth-app":{},"@open-pioneer/authentication":{"auth-error":"An error occurred during authentication."}}');export{e as default}; diff --git a/core-packages/pr-previews/pr-71/assets/_DT9ZMsk9pcc.js b/core-packages/pr-previews/pr-71/assets/_DT9ZMsk9pcc.js deleted file mode 100644 index 5d171ed..0000000 --- a/core-packages/pr-previews/pr-71/assets/_DT9ZMsk9pcc.js +++ /dev/null @@ -1 +0,0 @@ -import{r as a,D as oe,a6 as J,x as ae,h as Q,j,n as K,l as te,o as m,F as ne,G as ie,K as le,a7 as re}from"./BNseSxaIihtT.js";import{t as ce,v as ue,s as de}from"./Bux-xGeHLEc6.js";import{a as pe}from"./DE_cfL-UvDdR.js";import{d as i,a as O}from"./jYicUDcJydKy.js";function he(t){return t&&J(t)&&J(t.target)}function fe(t={}){const{onChange:P,value:n,defaultValue:u,name:d,isDisabled:C,isFocusable:x,isNative:p,...y}=t,[v,h]=a.useState(u||""),f=typeof n<"u",b=f?n:v,l=a.useRef(null),R=a.useCallback(()=>{const s=l.current;if(!s)return;let o="input:not(:disabled):checked";const g=s.querySelector(o);if(g){g.focus();return}o="input:not(:disabled)",s.querySelector(o)?.focus()},[]),c=`radio-${a.useId()}`,M=d||c,D=a.useCallback(s=>{const o=he(s)?s.target.value:s;f||h(o),P?.(String(o))},[P,f]),q=a.useCallback((s={},o=null)=>({...s,ref:oe(o,l),role:"radiogroup"}),[]),k=a.useCallback((s={},o=null)=>({...s,ref:o,name:M,[p?"checked":"isChecked"]:b!=null?s.value===b:void 0,onChange(r){D(r)},"data-radiogroup":!0}),[p,M,D,b]);return{getRootProps:q,getRadioProps:k,name:M,ref:l,focus:R,setValue:h,value:b,onChange:D,isDisabled:C,isFocusable:x,htmlProps:y}}const[be,X]=ae({name:"RadioGroupContext",strict:!1}),ge=Q((t,P)=>{const{colorScheme:n,size:u,variant:d,children:C,className:x,isDisabled:p,isFocusable:y,...v}=t,{value:h,onChange:f,getRootProps:b,name:l,htmlProps:R}=fe(v),I=a.useMemo(()=>({name:l,size:u,onChange:f,colorScheme:n,value:h,variant:d,isDisabled:p,isFocusable:y}),[l,u,f,n,h,d,p,y]);return j.jsx(be,{value:I,children:j.jsx(K.div,{...b(R,P),className:te("chakra-radio-group",x),children:C})})});ge.displayName="RadioGroup";function me(t={}){const{defaultChecked:P,isChecked:n,isFocusable:u,isDisabled:d,isReadOnly:C,isRequired:x,onChange:p,isInvalid:y,name:v,value:h,id:f,"data-radiogroup":b,"aria-describedby":l,...R}=t,I=`radio-${a.useId()}`,c=pe(),D=!!X()||!!b;let k=!!c&&!D?c.id:I;k=f??k;const s=d??c?.isDisabled,o=C??c?.isReadOnly,g=x??c?.isRequired,r=y??c?.isInvalid,[w,A]=a.useState(!1),[N,G]=a.useState(!1),[E,U]=a.useState(!1),[B,_]=a.useState(!1),[Y,Z]=a.useState(!!P),L=typeof n<"u",S=L?n:Y;a.useEffect(()=>ce(A),[]);const H=a.useCallback(e=>{if(o||s){e.preventDefault();return}L||Z(e.currentTarget.checked),p?.(e)},[L,s,o,p]),V=a.useCallback(e=>{e.key===" "&&_(!0)},[_]),W=a.useCallback(e=>{e.key===" "&&_(!1)},[_]),ee=a.useCallback((e={},F=null)=>({...e,ref:F,"data-active":i(B),"data-hover":i(E),"data-disabled":i(s),"data-invalid":i(r),"data-checked":i(S),"data-focus":i(N),"data-focus-visible":i(N&&w),"data-readonly":i(o),"aria-hidden":!0,onMouseDown:m(e.onMouseDown,()=>_(!0)),onMouseUp:m(e.onMouseUp,()=>_(!1)),onMouseEnter:m(e.onMouseEnter,()=>U(!0)),onMouseLeave:m(e.onMouseLeave,()=>U(!1))}),[B,E,s,r,S,N,o,w]),{onFocus:T,onBlur:$}=c??{},se=a.useCallback((e={},F=null)=>{const z=s&&!u;return{...e,id:k,ref:F,type:"radio",name:v,value:h,onChange:m(e.onChange,H),onBlur:m($,e.onBlur,()=>G(!1)),onFocus:m(T,e.onFocus,()=>G(!0)),onKeyDown:m(e.onKeyDown,V),onKeyUp:m(e.onKeyUp,W),checked:S,disabled:z,readOnly:o,required:g,"aria-invalid":O(r),"aria-disabled":O(z),"aria-required":O(g),"data-readonly":i(o),"aria-describedby":l,style:ue}},[s,u,k,v,h,H,$,T,V,W,S,o,g,r,l]);return{state:{isInvalid:r,isFocused:N,isChecked:S,isActive:B,isHovered:E,isDisabled:s,isReadOnly:o,isRequired:g},getRadioProps:ee,getInputProps:se,getLabelProps:(e={},F=null)=>({...e,ref:F,onMouseDown:m(e.onMouseDown,Ce),"data-disabled":i(s),"data-checked":i(S),"data-invalid":i(r)}),getRootProps:(e,F=null)=>({htmlFor:k,...e,ref:F,"data-disabled":i(s),"data-checked":i(S),"data-invalid":i(r)}),htmlProps:R}}function Ce(t){t.preventDefault(),t.stopPropagation()}const ye=Q((t,P)=>{const n=X(),{onChange:u,value:d}=t,C=ne("Radio",{...n,...t}),x=ie(t),{spacing:p="0.5rem",children:y,isDisabled:v=n?.isDisabled,isFocusable:h=n?.isFocusable,inputProps:f,...b}=x;let l=t.isChecked;n?.value!=null&&d!=null&&(l=n.value===d);let R=u;n?.onChange&&d!=null&&(R=le(n.onChange,u));const I=t?.name??n?.name,{getInputProps:c,getRadioProps:M,getLabelProps:D,getRootProps:q,htmlProps:k}=me({...b,isChecked:l,isFocusable:h,isDisabled:v,onChange:R,name:I}),[s,o]=de(k,re),g=M(o),r=c(f,P),w=D(),A=Object.assign({},s,q()),N={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...C.container},G={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...C.control},E={userSelect:"none",marginStart:p,...C.label};return j.jsxs(K.label,{className:"chakra-radio",...A,__css:N,children:[j.jsx("input",{className:"chakra-radio__input",...r}),j.jsx(K.span,{className:"chakra-radio__control",...g,__css:G}),y&&j.jsx(K.span,{className:"chakra-radio__label",...w,__css:E,children:y})]})});ye.displayName="Radio";export{ge as R,ye as a}; diff --git a/core-packages/pr-previews/pr-71/assets/apwTDgsvPGCI.js b/core-packages/pr-previews/pr-71/assets/apwTDgsvPGCI.js deleted file mode 100644 index 8be3a69..0000000 --- a/core-packages/pr-previews/pr-71/assets/apwTDgsvPGCI.js +++ /dev/null @@ -1 +0,0 @@ -import{h as u,F as m,G as p,l,j as f,n as I}from"./BNseSxaIihtT.js";import{b as h}from"./DE_cfL-UvDdR.js";const n=u(function(s,a){const{htmlSize:o,...t}=s,e=m("Input",t),i=p(t),r=h(i),c=l("chakra-input",s.className);return f.jsx(I.input,{size:o,...r,__css:e.field,ref:a,className:c})});n.displayName="Input";n.id="Input";export{n as I}; diff --git a/core-packages/pr-previews/pr-71/assets/jYicUDcJydKy.js b/core-packages/pr-previews/pr-71/assets/jYicUDcJydKy.js deleted file mode 100644 index 269e6dc..0000000 --- a/core-packages/pr-previews/pr-71/assets/jYicUDcJydKy.js +++ /dev/null @@ -1 +0,0 @@ -import{h as i,G as c,a5 as l,j as m,n as d,l as f}from"./BNseSxaIihtT.js";const u=a=>a?"":void 0,h=a=>a?!0:void 0,x=i(function(t,s){const{className:n,centerContent:e,...o}=c(t),r=l("Container",t);return m.jsx(d.div,{ref:s,className:f("chakra-container",n),...o,__css:{...r,...e&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});x.displayName="Container";export{x as C,h as a,u as d}; diff --git a/core-packages/pr-previews/pr-71/assets/vOBnYnib6xFk.js b/core-packages/pr-previews/pr-71/assets/vOBnYnib6xFk.js deleted file mode 100644 index 238eb06..0000000 --- a/core-packages/pr-previews/pr-71/assets/vOBnYnib6xFk.js +++ /dev/null @@ -1 +0,0 @@ -const s=Symbol("EventEmitterState");class a{[s]=new d;on(t,e){return this[s].on(t,{listener:e})}once(t,e){return this[s].on(t,{listener:e,once:!0})}emit(t,...e){this[s].emit(t,e[0])}}class d{handlers=new Map;on(t,e){let n=this.handlers.get(t);return n||(n=new Set,this.handlers.set(t,n)),n.add(e),{destroy(){e.removed=!0,n?.delete(e),n=void 0}}}emit(t,e){const n=this.handlers.get(t);if(!n)return;const i=[...n];for(const r of i)r.removed||(r.once&&(r.removed=!0,n.delete(r)),r.listener(e))}}export{a as E}; diff --git a/core-packages/pr-previews/pr-71/assets/z2D46c5wMnzO.js b/core-packages/pr-previews/pr-71/assets/z2D46c5wMnzO.js deleted file mode 100644 index d536a24..0000000 --- a/core-packages/pr-previews/pr-71/assets/z2D46c5wMnzO.js +++ /dev/null @@ -1 +0,0 @@ -const e=JSON.parse('{"auth-app":{},"@open-pioneer/authentication":{"auth-error":"Bei der Authentifizierung ist ein Fehler aufgetreten."}}');export{e as default}; diff --git a/core-packages/pr-previews/pr-71/index.html b/core-packages/pr-previews/pr-71/index.html deleted file mode 100644 index c6e9c1a..0000000 --- a/core-packages/pr-previews/pr-71/index.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - Open Pioneer Trails test site - - - -

Samples overview

- -

- Welcome to the samples overview for - - Trails core packages . These packages are intended to be used with the - Open Pioneer Trails - framework. The source code for the samples can be found in the - src/samples/ directory. -

- -

Samples

-
    -
  • - Chakra UI Sample -
    - Demonstrates a few Chakra components. -
  • -
  • - Extension Sample -
    - Contains an extensible service with a few plugins using 1-to-N service references. -
  • -
  • - Properties sample -
    - Demonstrates how package properties can be used. -
  • -
  • - Styling Sample -
    - Demonstrates how packages can use CSS rules. -
  • -
  • - API Sample -
    - Demonstrates how to provide an API and emit events from the Web Component. -
  • -
  • - I18n Sample -
    - Demonstrates how to translate an app in multiple languages. -
  • -
  • - I18n HowTo -
    - This is the full app for the "How to translate an app" guide. -
  • -
  • - HTTP Sample -
    - Demonstrates how to use the HttpService. -
  • -
  • - Authentication Sample -
    - Sample app for the authentication package. -
  • -
  • - Keycloak Sample -
    - Sample app for the authentication-keycloak package (requires additional setup). -
  • -
  • - Notifier Sample -
    - Demonstrates how to use notifications. -
  • -
  • - Theming Sample -
    - Test app that shows the "trails" theme on Chakra UI components. -
  • -
  • - Error Sample -
    - Test app that fails to start. Useful to see the builtin error screen. -
  • -
- - diff --git a/core-packages/pr-previews/pr-71/samples/api-sample/index.html b/core-packages/pr-previews/pr-71/samples/api-sample/index.html deleted file mode 100644 index 99c0ed4..0000000 --- a/core-packages/pr-previews/pr-71/samples/api-sample/index.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - API Sample - - - - - - - - - - - - - diff --git a/core-packages/pr-previews/pr-71/samples/auth-sample/index.html b/core-packages/pr-previews/pr-71/samples/auth-sample/index.html deleted file mode 100644 index 35ae358..0000000 --- a/core-packages/pr-previews/pr-71/samples/auth-sample/index.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - Authentication Sample - - - - - - - - - - - - - - - - - - - - - - diff --git a/core-packages/pr-previews/pr-71/samples/chakra-sample/index.html b/core-packages/pr-previews/pr-71/samples/chakra-sample/index.html deleted file mode 100644 index 8158491..0000000 --- a/core-packages/pr-previews/pr-71/samples/chakra-sample/index.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - Chakra Demo - - - - - - - - - - - - - - - -
- -
- - diff --git a/core-packages/pr-previews/pr-71/samples/error-sample/index.html b/core-packages/pr-previews/pr-71/samples/error-sample/index.html deleted file mode 100644 index da792db..0000000 --- a/core-packages/pr-previews/pr-71/samples/error-sample/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - Error Sample - - - - -

This application fails to start, showing the builtin error screen:

- - - diff --git a/core-packages/pr-previews/pr-71/samples/extension-sample/index.html b/core-packages/pr-previews/pr-71/samples/extension-sample/index.html deleted file mode 100644 index 9dde9a3..0000000 --- a/core-packages/pr-previews/pr-71/samples/extension-sample/index.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - Extension Sample - - - - - - - - - - - diff --git a/core-packages/pr-previews/pr-71/samples/http-sample/index.html b/core-packages/pr-previews/pr-71/samples/http-sample/index.html deleted file mode 100644 index 9983be1..0000000 --- a/core-packages/pr-previews/pr-71/samples/http-sample/index.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - HTTP Sample - - - - - - - - - - diff --git a/core-packages/pr-previews/pr-71/samples/i18n-howto/index.html b/core-packages/pr-previews/pr-71/samples/i18n-howto/index.html deleted file mode 100644 index 1c77577..0000000 --- a/core-packages/pr-previews/pr-71/samples/i18n-howto/index.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - Empty Site - - - - - - - - - - - - - - -
- - diff --git a/core-packages/pr-previews/pr-71/samples/i18n-sample/index.html b/core-packages/pr-previews/pr-71/samples/i18n-sample/index.html deleted file mode 100644 index 0852172..0000000 --- a/core-packages/pr-previews/pr-71/samples/i18n-sample/index.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - I18n App Demo - - - - - - - - - - - - -
- -
- - diff --git a/core-packages/pr-previews/pr-71/samples/keycloak-sample/index.html b/core-packages/pr-previews/pr-71/samples/keycloak-sample/index.html deleted file mode 100644 index 33ce062..0000000 --- a/core-packages/pr-previews/pr-71/samples/keycloak-sample/index.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - Keycloak Sample - - - - - - - - - - - - - - - - - - - - diff --git a/core-packages/pr-previews/pr-71/samples/notify-sample/index.html b/core-packages/pr-previews/pr-71/samples/notify-sample/index.html deleted file mode 100644 index 8c1bc2e..0000000 --- a/core-packages/pr-previews/pr-71/samples/notify-sample/index.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Notify Sample - - - - - - - - - - - - - - - - - - - - - - diff --git a/core-packages/pr-previews/pr-71/samples/properties-sample/index.html b/core-packages/pr-previews/pr-71/samples/properties-sample/index.html deleted file mode 100644 index a2a0d35..0000000 --- a/core-packages/pr-previews/pr-71/samples/properties-sample/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - Properties Demo - - - - - - - - - - - - - - - - - - diff --git a/core-packages/pr-previews/pr-71/samples/styling-sample/index.html b/core-packages/pr-previews/pr-71/samples/styling-sample/index.html deleted file mode 100644 index e56e9a2..0000000 --- a/core-packages/pr-previews/pr-71/samples/styling-sample/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - Styling App Demo - - - - - - - diff --git a/core-packages/pr-previews/pr-71/samples/theming-sample/index.html b/core-packages/pr-previews/pr-71/samples/theming-sample/index.html deleted file mode 100644 index a418816..0000000 --- a/core-packages/pr-previews/pr-71/samples/theming-sample/index.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - [Demo] Theming-App - - - - - - - - - - - - - - - - - - - - -