@piedata/pieui 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Agents/OpenAIVoiceAgentCard/index.d.ts +2 -0
- package/dist/components/Agents/OpenAIVoiceAgentCard/index.d.ts.map +1 -0
- package/dist/components/Agents/OpenAIVoiceAgentCard/types/index.d.ts +31 -0
- package/dist/components/Agents/OpenAIVoiceAgentCard/types/index.d.ts.map +1 -0
- package/dist/components/Agents/OpenAIVoiceAgentCard/ui/OpenAIVoiceAgentCard.d.ts +4 -0
- package/dist/components/Agents/OpenAIVoiceAgentCard/ui/OpenAIVoiceAgentCard.d.ts.map +1 -0
- package/dist/components/Common/AutoRedirectCard/index.d.ts +2 -0
- package/dist/components/Common/AutoRedirectCard/index.d.ts.map +1 -0
- package/dist/components/Common/AutoRedirectCard/types/index.d.ts +7 -0
- package/dist/components/Common/AutoRedirectCard/types/index.d.ts.map +1 -0
- package/dist/components/Common/AutoRedirectCard/ui/AutoRedirectCard.d.ts +4 -0
- package/dist/components/Common/AutoRedirectCard/ui/AutoRedirectCard.d.ts.map +1 -0
- package/dist/components/Common/HTMLEmbedCard/index.d.ts +2 -0
- package/dist/components/Common/HTMLEmbedCard/index.d.ts.map +1 -0
- package/dist/components/Common/HTMLEmbedCard/types/index.d.ts +14 -0
- package/dist/components/Common/HTMLEmbedCard/types/index.d.ts.map +1 -0
- package/dist/components/Common/HTMLEmbedCard/ui/HTMLEmbedCard.d.ts +4 -0
- package/dist/components/Common/HTMLEmbedCard/ui/HTMLEmbedCard.d.ts.map +1 -0
- package/dist/components/Common/HiddenCard/index.d.ts +2 -0
- package/dist/components/Common/HiddenCard/index.d.ts.map +1 -0
- package/dist/components/Common/HiddenCard/types/index.d.ts +12 -0
- package/dist/components/Common/HiddenCard/types/index.d.ts.map +1 -0
- package/dist/components/Common/HiddenCard/ui/HiddenCard.d.ts +4 -0
- package/dist/components/Common/HiddenCard/ui/HiddenCard.d.ts.map +1 -0
- package/dist/components/PieRoot/index.d.ts.map +1 -1
- package/dist/components/PieRoot/types/index.d.ts +1 -0
- package/dist/components/PieRoot/types/index.d.ts.map +1 -1
- package/dist/components/PieTelegramRoot/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.esm.js +68 -15
- package/dist/components/index.js +81 -23
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +21 -20
- package/dist/index.js +30 -30
- package/dist/pieui.components.json +85 -0
- package/dist/util/initializeComponents.d.ts.map +1 -1
- package/dist/util/navigate.d.ts +4 -0
- package/dist/util/navigate.d.ts.map +1 -0
- package/package.json +6 -3
package/dist/index.esm.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
var
|
|
1
|
+
var vX=Object.create;var{getPrototypeOf:kX,defineProperty:w0,getOwnPropertyNames:$7,getOwnPropertyDescriptor:hX}=Object,F7=Object.prototype.hasOwnProperty;var S=(Z,J,Y)=>{Y=Z!=null?vX(kX(Z)):{};let G=J||!Z||!Z.__esModule?w0(Y,"default",{value:Z,enumerable:!0}):Y;for(let Q of $7(Z))if(!F7.call(G,Q))w0(G,Q,{get:()=>Z[Q],enumerable:!0});return G},M7=new WeakMap,bX=(Z)=>{var J=M7.get(Z),Y;if(J)return J;if(J=w0({},"__esModule",{value:!0}),Z&&typeof Z==="object"||typeof Z==="function")$7(Z).map((G)=>!F7.call(J,G)&&w0(J,G,{get:()=>Z[G],enumerable:!(Y=hX(Z,G))||Y.enumerable}));return M7.set(Z,J),J},A=(Z,J)=>()=>(J||Z((J={exports:{}}).exports,J),J.exports);var O7=(Z,J)=>{for(var Y in J)w0(Z,Y,{get:J[Y],enumerable:!0,configurable:!0,set:(G)=>J[Y]=()=>G})};var V7=(Z,J)=>()=>(Z&&(J=Z(Z=0)),J);var P7=A((JO,R7)=>{var eX="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";R7.exports=eX});var S7=A((YO,E7)=>{var Z3=P7();function T7(){}function w7(){}w7.resetWarningCache=T7;E7.exports=function(){function Z(G,Q,X,W,H,z){if(z===Z3)return;var U=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw U.name="Invariant Violation",U}Z.isRequired=Z;function J(){return Z}var Y={array:Z,bigint:Z,bool:Z,func:Z,number:Z,object:Z,string:Z,symbol:Z,any:Z,arrayOf:J,element:Z,elementType:Z,instanceOf:J,node:Z,objectOf:J,oneOf:J,oneOfType:J,shape:J,exact:J,checkPropTypes:w7,resetWarningCache:T7};return Y.PropTypes=Y,Y}});var C6=A((GO,x7)=>{x7.exports=S7()();var J3,Y3});function $3(Z){if(typeof Z==="object"&&Z!==null){var J=Z.$$typeof;switch(J){case G3:switch(Z=Z.type,Z){case B3:case K3:case X3:case H3:case W3:case L3:return Z;default:switch(Z=Z&&Z.$$typeof,Z){case U3:case C7:case M3:case f7:case z3:return Z;default:return J}}case Q3:return J}}}var G1,G3,Q3,X3,W3,H3,z3,U3,B3,K3,C7,L3,f7,M3,f6,j6=function(Z){return $3(Z)===f7};var j7=V7(()=>{G1=typeof Symbol==="function"&&Symbol.for,G3=G1?Symbol.for("react.element"):60103,Q3=G1?Symbol.for("react.portal"):60106,X3=G1?Symbol.for("react.fragment"):60107,W3=G1?Symbol.for("react.strict_mode"):60108,H3=G1?Symbol.for("react.profiler"):60114,z3=G1?Symbol.for("react.provider"):60109,U3=G1?Symbol.for("react.context"):60110,B3=G1?Symbol.for("react.async_mode"):60111,K3=G1?Symbol.for("react.concurrent_mode"):60111,C7=G1?Symbol.for("react.forward_ref"):60112,L3=G1?Symbol.for("react.suspense"):60113,f7=G1?Symbol.for("react.memo"):60115,M3=G1?Symbol.for("react.lazy"):60116;f6=C7});var _6=A((QO,g7)=>{j7();var O3={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},V3={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},I3={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},q3={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},h7={};h7[f6]=I3;function _7(Z){if(j6(Z))return q3;return h7[Z.$$typeof]||O3}var{defineProperty:D3,getOwnPropertyNames:N3,getOwnPropertySymbols:v7,getOwnPropertyDescriptor:A3,getPrototypeOf:R3,prototype:k7}=Object;function b7(Z,J,Y){if(typeof J!=="string"){if(k7){var G=R3(J);if(G&&G!==k7)b7(Z,G,Y)}var Q=N3(J);if(v7)Q=Q.concat(v7(J));var X=_7(Z),W=_7(J);for(var H=0;H<Q.length;++H){var z=Q[H];if(!V3[z]&&!(Y&&Y[z])&&!(W&&W[z])&&!(X&&X[z])){var U=A3(J,z);try{D3(Z,z,U)}catch(B){}}}return Z}return Z}g7.exports=b7});var O5=A((h6,m7)=>{Object.defineProperty(h6,"__esModule",{value:!0});h6.default=S3;function S3(Z){return Z.charAt(0).toUpperCase()+Z.slice(1)}m7.exports=h6.default});var d7=A((b6,u7)=>{Object.defineProperty(b6,"__esModule",{value:!0});b6.default=_3;var C3=O5(),f3=j3(C3);function j3(Z){return Z&&Z.__esModule?Z:{default:Z}}function _3(Z,J,Y){if(Z.hasOwnProperty(J)){var G={},Q=Z[J],X=(0,f3.default)(J),W=Object.keys(Y);for(var H=0;H<W.length;H++){var z=W[H];if(z===J)for(var U=0;U<Q.length;U++)G[Q[U]+X]=Y[J];G[z]=Y[z]}return G}return Y}u7.exports=b6.default});var y6=A((g6,c7)=>{Object.defineProperty(g6,"__esModule",{value:!0});g6.default=k3;function k3(Z,J,Y,G,Q){for(var X=0,W=Z.length;X<W;++X){var H=Z[X](J,Y,G,Q);if(H)return H}}c7.exports=g6.default});var u6=A((m6,l7)=>{Object.defineProperty(m6,"__esModule",{value:!0});m6.default=b3;function p7(Z,J){if(Z.indexOf(J)===-1)Z.push(J)}function b3(Z,J){if(Array.isArray(J))for(var Y=0,G=J.length;Y<G;++Y)p7(Z,J[Y]);else p7(Z,J)}l7.exports=m6.default});var c6=A((d6,i7)=>{Object.defineProperty(d6,"__esModule",{value:!0});d6.default=y3;function y3(Z){return Z instanceof Object&&!Array.isArray(Z)}i7.exports=d6.default});var a7=A((p6,o7)=>{Object.defineProperty(p6,"__esModule",{value:!0});p6.default=o3;var u3=d7(),d3=V5(u3),c3=y6(),n7=V5(c3),p3=u6(),l3=V5(p3),i3=c6(),n3=V5(i3);function V5(Z){return Z&&Z.__esModule?Z:{default:Z}}function o3(Z){var{prefixMap:J,plugins:Y}=Z;function G(Q){for(var X in Q){var W=Q[X];if((0,n3.default)(W))Q[X]=G(W);else if(Array.isArray(W)){var H=[];for(var z=0,U=W.length;z<U;++z){var B=(0,n7.default)(Y,X,W[z],Q,J);(0,l3.default)(H,B||W[z])}if(H.length>0)Q[X]=H}else{var L=(0,n7.default)(Y,X,W,Q,J);if(L)Q[X]=L;Q=(0,d3.default)(J,X,Q)}}return Q}return G}o7.exports=p6.default});var r7=A((s7,I5)=>{/*!
|
|
2
2
|
* Bowser - a browser detector
|
|
3
3
|
* https://github.com/ded/bowser
|
|
4
4
|
* MIT License | (c) Dustin Diaz 2015
|
|
5
|
-
*/(function(Z,J,Y){if(typeof M5<"u"&&M5.exports)M5.exports=Y();else if(typeof define=="function"&&define.amd)define(J,Y);else Z[J]=Y()})(u7,"bowser",function(){var Z=!0;function J(z){function U(f1){var R1=z.match(f1);return R1&&R1.length>1&&R1[1]||""}function B(f1){var R1=z.match(f1);return R1&&R1.length>1&&R1[2]||""}var L=U(/(ipod|iphone|ipad)/i).toLowerCase(),V=/like android/i.test(z),M=!V&&/android/i.test(z),K=/nexus\s*[0-6]\s*/i.test(z),F=!K&&/nexus\s*[0-9]+/i.test(z),O=/CrOS/.test(z),D=/silk/i.test(z),P=/sailfish/i.test(z),N=/tizen/i.test(z),q=/(web|hpw)(o|0)s/i.test(z),T=/windows phone/i.test(z),C=/SamsungBrowser/i.test(z),m=!T&&/windows/i.test(z),i1=!L&&!D&&/macintosh/i.test(z),x1=!M&&!P&&!N&&!q&&/linux/i.test(z),C1=B(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),v=U(/version\/(\d+(\.\d+)?)/i),N1=/tablet/i.test(z)&&!/tablet pc/i.test(z),c=!N1&&/[^-]mobi/i.test(z),A1=/xbox/i.test(z),$;if(/opera/i.test(z))$={name:"Opera",opera:Z,version:v||U(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)};else if(/opr\/|opios/i.test(z))$={name:"Opera",opera:Z,version:U(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||v};else if(/SamsungBrowser/i.test(z))$={name:"Samsung Internet for Android",samsungBrowser:Z,version:v||U(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)};else if(/Whale/i.test(z))$={name:"NAVER Whale browser",whale:Z,version:U(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)};else if(/MZBrowser/i.test(z))$={name:"MZ Browser",mzbrowser:Z,version:U(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)};else if(/coast/i.test(z))$={name:"Opera Coast",coast:Z,version:v||U(/(?:coast)[\s\/](\d+(\.\d+)?)/i)};else if(/focus/i.test(z))$={name:"Focus",focus:Z,version:U(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)};else if(/yabrowser/i.test(z))$={name:"Yandex Browser",yandexbrowser:Z,version:v||U(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)};else if(/ucbrowser/i.test(z))$={name:"UC Browser",ucbrowser:Z,version:U(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)};else if(/mxios/i.test(z))$={name:"Maxthon",maxthon:Z,version:U(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)};else if(/epiphany/i.test(z))$={name:"Epiphany",epiphany:Z,version:U(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)};else if(/puffin/i.test(z))$={name:"Puffin",puffin:Z,version:U(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)};else if(/sleipnir/i.test(z))$={name:"Sleipnir",sleipnir:Z,version:U(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)};else if(/k-meleon/i.test(z))$={name:"K-Meleon",kMeleon:Z,version:U(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)};else if(T)if($={name:"Windows Phone",osname:"Windows Phone",windowsphone:Z},C1)$.msedge=Z,$.version=C1;else $.msie=Z,$.version=U(/iemobile\/(\d+(\.\d+)?)/i);else if(/msie|trident/i.test(z))$={name:"Internet Explorer",msie:Z,version:U(/(?:msie |rv:)(\d+(\.\d+)?)/i)};else if(O)$={name:"Chrome",osname:"Chrome OS",chromeos:Z,chromeBook:Z,chrome:Z,version:U(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)};else if(/edg([ea]|ios)/i.test(z))$={name:"Microsoft Edge",msedge:Z,version:C1};else if(/vivaldi/i.test(z))$={name:"Vivaldi",vivaldi:Z,version:U(/vivaldi\/(\d+(\.\d+)?)/i)||v};else if(P)$={name:"Sailfish",osname:"Sailfish OS",sailfish:Z,version:U(/sailfish\s?browser\/(\d+(\.\d+)?)/i)};else if(/seamonkey\//i.test(z))$={name:"SeaMonkey",seamonkey:Z,version:U(/seamonkey\/(\d+(\.\d+)?)/i)};else if(/firefox|iceweasel|fxios/i.test(z)){if($={name:"Firefox",firefox:Z,version:U(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(z))$.firefoxos=Z,$.osname="Firefox OS"}else if(D)$={name:"Amazon Silk",silk:Z,version:U(/silk\/(\d+(\.\d+)?)/i)};else if(/phantom/i.test(z))$={name:"PhantomJS",phantom:Z,version:U(/phantomjs\/(\d+(\.\d+)?)/i)};else if(/slimerjs/i.test(z))$={name:"SlimerJS",slimer:Z,version:U(/slimerjs\/(\d+(\.\d+)?)/i)};else if(/blackberry|\bbb\d+/i.test(z)||/rim\stablet/i.test(z))$={name:"BlackBerry",osname:"BlackBerry OS",blackberry:Z,version:v||U(/blackberry[\d]+\/(\d+(\.\d+)?)/i)};else if(q)$={name:"WebOS",osname:"WebOS",webos:Z,version:v||U(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(z)&&($.touchpad=Z);else if(/bada/i.test(z))$={name:"Bada",osname:"Bada",bada:Z,version:U(/dolfin\/(\d+(\.\d+)?)/i)};else if(N)$={name:"Tizen",osname:"Tizen",tizen:Z,version:U(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||v};else if(/qupzilla/i.test(z))$={name:"QupZilla",qupzilla:Z,version:U(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||v};else if(/chromium/i.test(z))$={name:"Chromium",chromium:Z,version:U(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||v};else if(/chrome|crios|crmo/i.test(z))$={name:"Chrome",chrome:Z,version:U(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)};else if(M)$={name:"Android",version:v};else if(/safari|applewebkit/i.test(z)){if($={name:"Safari",safari:Z},v)$.version=v}else if(L){if($={name:L=="iphone"?"iPhone":L=="ipad"?"iPad":"iPod"},v)$.version=v}else if(/googlebot/i.test(z))$={name:"Googlebot",googlebot:Z,version:U(/googlebot\/(\d+(\.\d+))/i)||v};else $={name:U(/^(.*)\/(.*) /),version:B(/^(.*)\/(.*) /)};if(!$.msedge&&/(apple)?webkit/i.test(z)){if(/(apple)?webkit\/537\.36/i.test(z))$.name=$.name||"Blink",$.blink=Z;else $.name=$.name||"Webkit",$.webkit=Z;if(!$.version&&v)$.version=v}else if(!$.opera&&/gecko\//i.test(z))$.name=$.name||"Gecko",$.gecko=Z,$.version=$.version||U(/gecko\/(\d+(\.\d+)?)/i);if(!$.windowsphone&&(M||$.silk))$.android=Z,$.osname="Android";else if(!$.windowsphone&&L)$[L]=Z,$.ios=Z,$.osname="iOS";else if(i1)$.mac=Z,$.osname="macOS";else if(A1)$.xbox=Z,$.osname="Xbox";else if(m)$.windows=Z,$.osname="Windows";else if(x1)$.linux=Z,$.osname="Linux";function X1(f1){switch(f1){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var g="";if($.windows)g=X1(U(/Windows ((NT|XP)( \d\d?.\d)?)/i));else if($.windowsphone)g=U(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i);else if($.mac)g=U(/Mac OS X (\d+([_\.\s]\d+)*)/i),g=g.replace(/[_\s]/g,".");else if(L)g=U(/os (\d+([_\s]\d+)*) like mac os x/i),g=g.replace(/[_\s]/g,".");else if(M)g=U(/android[ \/-](\d+(\.\d+)*)/i);else if($.webos)g=U(/(?:web|hpw)os\/(\d+(\.\d+)*)/i);else if($.blackberry)g=U(/rim\stablet\sos\s(\d+(\.\d+)*)/i);else if($.bada)g=U(/bada\/(\d+(\.\d+)*)/i);else if($.tizen)g=U(/tizen[\/\s](\d+(\.\d+)*)/i);if(g)$.osversion=g;var B1=!$.windows&&g.split(".")[0];if(N1||F||L=="ipad"||M&&(B1==3||B1>=4&&!c)||$.silk)$.tablet=Z;else if(c||L=="iphone"||L=="ipod"||M||K||$.blackberry||$.webos||$.bada)$.mobile=Z;if($.msedge||$.msie&&$.version>=10||$.yandexbrowser&&$.version>=15||$.vivaldi&&$.version>=1||$.chrome&&$.version>=20||$.samsungBrowser&&$.version>=4||$.whale&&G([$.version,"1.0"])===1||$.mzbrowser&&G([$.version,"6.0"])===1||$.focus&&G([$.version,"1.0"])===1||$.firefox&&$.version>=20||$.safari&&$.version>=6||$.opera&&$.version>=10||$.ios&&$.osversion&&$.osversion.split(".")[0]>=6||$.blackberry&&$.version>=10.1||$.chromium&&$.version>=20)$.a=Z;else if($.msie&&$.version<10||$.chrome&&$.version<20||$.firefox&&$.version<20||$.safari&&$.version<6||$.opera&&$.version<10||$.ios&&$.osversion&&$.osversion.split(".")[0]<6||$.chromium&&$.version<20)$.c=Z;else $.x=Z;return $}var Y=J(typeof navigator<"u"?navigator.userAgent||"":"");Y.test=function(z){for(var U=0;U<z.length;++U){var B=z[U];if(typeof B==="string"){if(B in Y)return!0}}return!1};function Q(z){return z.split(".").length}function X(z,U){var B=[],L;if(Array.prototype.map)return Array.prototype.map.call(z,U);for(L=0;L<z.length;L++)B.push(U(z[L]));return B}function G(z){var U=Math.max(Q(z[0]),Q(z[1])),B=X(z,function(L){var V=U-Q(L);return L=L+Array(V+1).join(".0"),X(L.split("."),function(M){return Array(20-M.length).join("0")+M}).reverse()});while(--U>=0)if(B[0][U]>B[1][U])return 1;else if(B[0][U]===B[1][U]){if(U===0)return 0}else return-1}function W(z,U,B){var L=Y;if(typeof U==="string")B=U,U=void 0;if(U===void 0)U=!1;if(B)L=J(B);var V=""+L.version;for(var M in z)if(z.hasOwnProperty(M)){if(L[M]){if(typeof z[M]!=="string")throw Error("Browser version in the minVersion map should be a string: "+M+": "+String(z));return G([V,z[M]])<0}}return U}function H(z,U,B){return!W(z,U,B)}return Y.isUnsupportedBrowser=W,Y.compareVersions=G,Y.check=H,Y._detect=J,Y.detect=J,Y})});var n7=A((u6,i7)=>{Object.defineProperty(u6,"__esModule",{value:!0});u6.default=iG;var cG=d7(),c7=pG(cG);function pG(Z){return Z&&Z.__esModule?Z:{default:Z}}var p7={chrome:"Webkit",safari:"Webkit",ios:"Webkit",android:"Webkit",phantom:"Webkit",opera:"Webkit",webos:"Webkit",blackberry:"Webkit",bada:"Webkit",tizen:"Webkit",chromium:"Webkit",vivaldi:"Webkit",firefox:"Moz",seamoney:"Moz",sailfish:"Moz",msie:"ms",msedge:"ms"},l7={chrome:"chrome",chromium:"chrome",safari:"safari",firfox:"firefox",msedge:"edge",opera:"opera",vivaldi:"opera",msie:"ie"};function lG(Z){if(Z.firefox)return"firefox";if(Z.mobile||Z.tablet){if(Z.ios)return"ios_saf";else if(Z.android)return"android";else if(Z.opera)return"op_mini"}for(var J in l7)if(Z.hasOwnProperty(J))return l7[J]}function iG(Z){var J=c7.default._detect(Z);if(J.yandexbrowser)J=c7.default._detect(Z.replace(/YaBrowser\/[0-9.]*/,""));for(var Y in p7)if(J.hasOwnProperty(Y)){var Q=p7[Y];J.jsPrefix=Q,J.cssPrefix="-"+Q.toLowerCase()+"-";break}if(J.browserName=lG(J),J.version)J.browserVersion=parseFloat(J.version);else J.browserVersion=parseInt(parseFloat(J.osversion),10);if(J.osVersion=parseFloat(J.osversion),J.browserName==="ios_saf"&&J.browserVersion>J.osVersion)J.browserVersion=J.osVersion;if(J.browserName==="android"&&J.chrome&&J.browserVersion>37)J.browserName="and_chr";if(J.browserName==="android"&&J.osVersion<5)J.browserVersion=J.osVersion;if(J.browserName==="android"&&J.samsungBrowser)J.browserName="and_chr",J.browserVersion=44;return J}i7.exports=u6.default});var a7=A((d6,o7)=>{Object.defineProperty(d6,"__esModule",{value:!0});d6.default=oG;function oG(Z,J,Y){var Q="keyframes";if(Z==="chrome"&&J<43||(Z==="safari"||Z==="ios_saf")&&J<9||Z==="opera"&&J<30||Z==="android"&&J<=4.4||Z==="and_uc")return Y+Q;return Q}o7.exports=d6.default});var t7=A((c6,r7)=>{Object.defineProperty(c6,"__esModule",{value:!0});var sG=function(){function Z(J,Y){for(var Q=0;Q<Y.length;Q++){var X=Y[Q];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(J,X.key,X)}}return function(J,Y,Q){if(Y)Z(J.prototype,Y);if(Q)Z(J,Q);return J}}();c6.default=UW;var rG=n7(),tG=z0(rG),eG=a7(),ZW=z0(eG),JW=K5(),YW=z0(JW),QW=b6(),XW=z0(QW),GW=y6(),WW=z0(GW),HW=k6(),s7=z0(HW);function z0(Z){return Z&&Z.__esModule?Z:{default:Z}}function zW(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function UW(Z){var{prefixMap:J,plugins:Y}=Z,Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(X){return X};return function(){function X(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zW(this,X);var W=typeof navigator<"u"?navigator.userAgent:void 0;if(this._userAgent=G.userAgent||W,this._keepUnprefixed=G.keepUnprefixed||!1,this._userAgent)this._browserInfo=(0,tG.default)(this._userAgent);if(this._browserInfo&&this._browserInfo.cssPrefix)this.prefixedKeyframes=(0,ZW.default)(this._browserInfo.browserName,this._browserInfo.browserVersion,this._browserInfo.cssPrefix);else return this._useFallback=!0,!1;var H=this._browserInfo.browserName&&J[this._browserInfo.browserName];if(H){this._requiresPrefix={};for(var z in H)if(H[z]>=this._browserInfo.browserVersion)this._requiresPrefix[z]=!0;this._hasPropsRequiringPrefix=Object.keys(this._requiresPrefix).length>0}else this._useFallback=!0;this._metaData={browserVersion:this._browserInfo.browserVersion,browserName:this._browserInfo.browserName,cssPrefix:this._browserInfo.cssPrefix,jsPrefix:this._browserInfo.jsPrefix,keepUnprefixed:this._keepUnprefixed,requiresPrefix:this._requiresPrefix}}return sG(X,[{key:"prefix",value:function(W){if(this._useFallback)return Q(W);if(!this._hasPropsRequiringPrefix)return W;return this._prefixStyle(W)}},{key:"_prefixStyle",value:function(W){for(var H in W){var z=W[H];if((0,WW.default)(z))W[H]=this.prefix(z);else if(Array.isArray(z)){var U=[];for(var B=0,L=z.length;B<L;++B){var V=(0,s7.default)(Y,H,z[B],W,this._metaData);(0,XW.default)(U,V||z[B])}if(U.length>0)W[H]=U}else{var M=(0,s7.default)(Y,H,z,W,this._metaData);if(M)W[H]=M;if(this._requiresPrefix.hasOwnProperty(H)){if(W[this._browserInfo.jsPrefix+(0,YW.default)(H)]=z,!this._keepUnprefixed)delete W[H]}}}return W}}],[{key:"prefixAll",value:function(W){return Q(W)}}]),X}()}r7.exports=c6.default});var p6=A((m$,F5)=>{/*!
|
|
5
|
+
*/(function(Z,J,Y){if(typeof I5<"u"&&I5.exports)I5.exports=Y();else if(typeof define=="function"&&define.amd)define(J,Y);else Z[J]=Y()})(s7,"bowser",function(){var Z=!0;function J(z){function U(j1){var P1=z.match(j1);return P1&&P1.length>1&&P1[1]||""}function B(j1){var P1=z.match(j1);return P1&&P1.length>1&&P1[2]||""}var L=U(/(ipod|iphone|ipad)/i).toLowerCase(),F=/like android/i.test(z),M=!F&&/android/i.test(z),K=/nexus\s*[0-6]\s*/i.test(z),$=!K&&/nexus\s*[0-9]+/i.test(z),V=/CrOS/.test(z),N=/silk/i.test(z),P=/sailfish/i.test(z),D=/tizen/i.test(z),q=/(web|hpw)(o|0)s/i.test(z),T=/windows phone/i.test(z),C=/SamsungBrowser/i.test(z),m=!T&&/windows/i.test(z),n1=!L&&!N&&/macintosh/i.test(z),C1=!M&&!P&&!D&&!q&&/linux/i.test(z),f1=B(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),v=U(/version\/(\d+(\.\d+)?)/i),A1=/tablet/i.test(z)&&!/tablet pc/i.test(z),c=!A1&&/[^-]mobi/i.test(z),R1=/xbox/i.test(z),O;if(/opera/i.test(z))O={name:"Opera",opera:Z,version:v||U(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)};else if(/opr\/|opios/i.test(z))O={name:"Opera",opera:Z,version:U(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||v};else if(/SamsungBrowser/i.test(z))O={name:"Samsung Internet for Android",samsungBrowser:Z,version:v||U(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)};else if(/Whale/i.test(z))O={name:"NAVER Whale browser",whale:Z,version:U(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)};else if(/MZBrowser/i.test(z))O={name:"MZ Browser",mzbrowser:Z,version:U(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)};else if(/coast/i.test(z))O={name:"Opera Coast",coast:Z,version:v||U(/(?:coast)[\s\/](\d+(\.\d+)?)/i)};else if(/focus/i.test(z))O={name:"Focus",focus:Z,version:U(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)};else if(/yabrowser/i.test(z))O={name:"Yandex Browser",yandexbrowser:Z,version:v||U(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)};else if(/ucbrowser/i.test(z))O={name:"UC Browser",ucbrowser:Z,version:U(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)};else if(/mxios/i.test(z))O={name:"Maxthon",maxthon:Z,version:U(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)};else if(/epiphany/i.test(z))O={name:"Epiphany",epiphany:Z,version:U(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)};else if(/puffin/i.test(z))O={name:"Puffin",puffin:Z,version:U(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)};else if(/sleipnir/i.test(z))O={name:"Sleipnir",sleipnir:Z,version:U(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)};else if(/k-meleon/i.test(z))O={name:"K-Meleon",kMeleon:Z,version:U(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)};else if(T)if(O={name:"Windows Phone",osname:"Windows Phone",windowsphone:Z},f1)O.msedge=Z,O.version=f1;else O.msie=Z,O.version=U(/iemobile\/(\d+(\.\d+)?)/i);else if(/msie|trident/i.test(z))O={name:"Internet Explorer",msie:Z,version:U(/(?:msie |rv:)(\d+(\.\d+)?)/i)};else if(V)O={name:"Chrome",osname:"Chrome OS",chromeos:Z,chromeBook:Z,chrome:Z,version:U(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)};else if(/edg([ea]|ios)/i.test(z))O={name:"Microsoft Edge",msedge:Z,version:f1};else if(/vivaldi/i.test(z))O={name:"Vivaldi",vivaldi:Z,version:U(/vivaldi\/(\d+(\.\d+)?)/i)||v};else if(P)O={name:"Sailfish",osname:"Sailfish OS",sailfish:Z,version:U(/sailfish\s?browser\/(\d+(\.\d+)?)/i)};else if(/seamonkey\//i.test(z))O={name:"SeaMonkey",seamonkey:Z,version:U(/seamonkey\/(\d+(\.\d+)?)/i)};else if(/firefox|iceweasel|fxios/i.test(z)){if(O={name:"Firefox",firefox:Z,version:U(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(z))O.firefoxos=Z,O.osname="Firefox OS"}else if(N)O={name:"Amazon Silk",silk:Z,version:U(/silk\/(\d+(\.\d+)?)/i)};else if(/phantom/i.test(z))O={name:"PhantomJS",phantom:Z,version:U(/phantomjs\/(\d+(\.\d+)?)/i)};else if(/slimerjs/i.test(z))O={name:"SlimerJS",slimer:Z,version:U(/slimerjs\/(\d+(\.\d+)?)/i)};else if(/blackberry|\bbb\d+/i.test(z)||/rim\stablet/i.test(z))O={name:"BlackBerry",osname:"BlackBerry OS",blackberry:Z,version:v||U(/blackberry[\d]+\/(\d+(\.\d+)?)/i)};else if(q)O={name:"WebOS",osname:"WebOS",webos:Z,version:v||U(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(z)&&(O.touchpad=Z);else if(/bada/i.test(z))O={name:"Bada",osname:"Bada",bada:Z,version:U(/dolfin\/(\d+(\.\d+)?)/i)};else if(D)O={name:"Tizen",osname:"Tizen",tizen:Z,version:U(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||v};else if(/qupzilla/i.test(z))O={name:"QupZilla",qupzilla:Z,version:U(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||v};else if(/chromium/i.test(z))O={name:"Chromium",chromium:Z,version:U(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||v};else if(/chrome|crios|crmo/i.test(z))O={name:"Chrome",chrome:Z,version:U(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)};else if(M)O={name:"Android",version:v};else if(/safari|applewebkit/i.test(z)){if(O={name:"Safari",safari:Z},v)O.version=v}else if(L){if(O={name:L=="iphone"?"iPhone":L=="ipad"?"iPad":"iPod"},v)O.version=v}else if(/googlebot/i.test(z))O={name:"Googlebot",googlebot:Z,version:U(/googlebot\/(\d+(\.\d+))/i)||v};else O={name:U(/^(.*)\/(.*) /),version:B(/^(.*)\/(.*) /)};if(!O.msedge&&/(apple)?webkit/i.test(z)){if(/(apple)?webkit\/537\.36/i.test(z))O.name=O.name||"Blink",O.blink=Z;else O.name=O.name||"Webkit",O.webkit=Z;if(!O.version&&v)O.version=v}else if(!O.opera&&/gecko\//i.test(z))O.name=O.name||"Gecko",O.gecko=Z,O.version=O.version||U(/gecko\/(\d+(\.\d+)?)/i);if(!O.windowsphone&&(M||O.silk))O.android=Z,O.osname="Android";else if(!O.windowsphone&&L)O[L]=Z,O.ios=Z,O.osname="iOS";else if(n1)O.mac=Z,O.osname="macOS";else if(R1)O.xbox=Z,O.osname="Xbox";else if(m)O.windows=Z,O.osname="Windows";else if(C1)O.linux=Z,O.osname="Linux";function z1(j1){switch(j1){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var g="";if(O.windows)g=z1(U(/Windows ((NT|XP)( \d\d?.\d)?)/i));else if(O.windowsphone)g=U(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i);else if(O.mac)g=U(/Mac OS X (\d+([_\.\s]\d+)*)/i),g=g.replace(/[_\s]/g,".");else if(L)g=U(/os (\d+([_\s]\d+)*) like mac os x/i),g=g.replace(/[_\s]/g,".");else if(M)g=U(/android[ \/-](\d+(\.\d+)*)/i);else if(O.webos)g=U(/(?:web|hpw)os\/(\d+(\.\d+)*)/i);else if(O.blackberry)g=U(/rim\stablet\sos\s(\d+(\.\d+)*)/i);else if(O.bada)g=U(/bada\/(\d+(\.\d+)*)/i);else if(O.tizen)g=U(/tizen[\/\s](\d+(\.\d+)*)/i);if(g)O.osversion=g;var K1=!O.windows&&g.split(".")[0];if(A1||$||L=="ipad"||M&&(K1==3||K1>=4&&!c)||O.silk)O.tablet=Z;else if(c||L=="iphone"||L=="ipod"||M||K||O.blackberry||O.webos||O.bada)O.mobile=Z;if(O.msedge||O.msie&&O.version>=10||O.yandexbrowser&&O.version>=15||O.vivaldi&&O.version>=1||O.chrome&&O.version>=20||O.samsungBrowser&&O.version>=4||O.whale&&X([O.version,"1.0"])===1||O.mzbrowser&&X([O.version,"6.0"])===1||O.focus&&X([O.version,"1.0"])===1||O.firefox&&O.version>=20||O.safari&&O.version>=6||O.opera&&O.version>=10||O.ios&&O.osversion&&O.osversion.split(".")[0]>=6||O.blackberry&&O.version>=10.1||O.chromium&&O.version>=20)O.a=Z;else if(O.msie&&O.version<10||O.chrome&&O.version<20||O.firefox&&O.version<20||O.safari&&O.version<6||O.opera&&O.version<10||O.ios&&O.osversion&&O.osversion.split(".")[0]<6||O.chromium&&O.version<20)O.c=Z;else O.x=Z;return O}var Y=J(typeof navigator<"u"?navigator.userAgent||"":"");Y.test=function(z){for(var U=0;U<z.length;++U){var B=z[U];if(typeof B==="string"){if(B in Y)return!0}}return!1};function G(z){return z.split(".").length}function Q(z,U){var B=[],L;if(Array.prototype.map)return Array.prototype.map.call(z,U);for(L=0;L<z.length;L++)B.push(U(z[L]));return B}function X(z){var U=Math.max(G(z[0]),G(z[1])),B=Q(z,function(L){var F=U-G(L);return L=L+Array(F+1).join(".0"),Q(L.split("."),function(M){return Array(20-M.length).join("0")+M}).reverse()});while(--U>=0)if(B[0][U]>B[1][U])return 1;else if(B[0][U]===B[1][U]){if(U===0)return 0}else return-1}function W(z,U,B){var L=Y;if(typeof U==="string")B=U,U=void 0;if(U===void 0)U=!1;if(B)L=J(B);var F=""+L.version;for(var M in z)if(z.hasOwnProperty(M)){if(L[M]){if(typeof z[M]!=="string")throw Error("Browser version in the minVersion map should be a string: "+M+": "+String(z));return X([F,z[M]])<0}}return U}function H(z,U,B){return!W(z,U,B)}return Y.isUnsupportedBrowser=W,Y.compareVersions=X,Y.check=H,Y._detect=J,Y.detect=J,Y})});var Y4=A((l6,J4)=>{Object.defineProperty(l6,"__esModule",{value:!0});l6.default=e3;var s3=r7(),t7=r3(s3);function r3(Z){return Z&&Z.__esModule?Z:{default:Z}}var e7={chrome:"Webkit",safari:"Webkit",ios:"Webkit",android:"Webkit",phantom:"Webkit",opera:"Webkit",webos:"Webkit",blackberry:"Webkit",bada:"Webkit",tizen:"Webkit",chromium:"Webkit",vivaldi:"Webkit",firefox:"Moz",seamoney:"Moz",sailfish:"Moz",msie:"ms",msedge:"ms"},Z4={chrome:"chrome",chromium:"chrome",safari:"safari",firfox:"firefox",msedge:"edge",opera:"opera",vivaldi:"opera",msie:"ie"};function t3(Z){if(Z.firefox)return"firefox";if(Z.mobile||Z.tablet){if(Z.ios)return"ios_saf";else if(Z.android)return"android";else if(Z.opera)return"op_mini"}for(var J in Z4)if(Z.hasOwnProperty(J))return Z4[J]}function e3(Z){var J=t7.default._detect(Z);if(J.yandexbrowser)J=t7.default._detect(Z.replace(/YaBrowser\/[0-9.]*/,""));for(var Y in e7)if(J.hasOwnProperty(Y)){var G=e7[Y];J.jsPrefix=G,J.cssPrefix="-"+G.toLowerCase()+"-";break}if(J.browserName=t3(J),J.version)J.browserVersion=parseFloat(J.version);else J.browserVersion=parseInt(parseFloat(J.osversion),10);if(J.osVersion=parseFloat(J.osversion),J.browserName==="ios_saf"&&J.browserVersion>J.osVersion)J.browserVersion=J.osVersion;if(J.browserName==="android"&&J.chrome&&J.browserVersion>37)J.browserName="and_chr";if(J.browserName==="android"&&J.osVersion<5)J.browserVersion=J.osVersion;if(J.browserName==="android"&&J.samsungBrowser)J.browserName="and_chr",J.browserVersion=44;return J}J4.exports=l6.default});var Q4=A((i6,G4)=>{Object.defineProperty(i6,"__esModule",{value:!0});i6.default=JW;function JW(Z,J,Y){var G="keyframes";if(Z==="chrome"&&J<43||(Z==="safari"||Z==="ios_saf")&&J<9||Z==="opera"&&J<30||Z==="android"&&J<=4.4||Z==="and_uc")return Y+G;return G}G4.exports=i6.default});var H4=A((n6,W4)=>{Object.defineProperty(n6,"__esModule",{value:!0});var GW=function(){function Z(J,Y){for(var G=0;G<Y.length;G++){var Q=Y[G];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(J,Q.key,Q)}}return function(J,Y,G){if(Y)Z(J.prototype,Y);if(G)Z(J,G);return J}}();n6.default=OW;var QW=Y4(),XW=z0(QW),WW=Q4(),HW=z0(WW),zW=O5(),UW=z0(zW),BW=u6(),KW=z0(BW),LW=c6(),MW=z0(LW),$W=y6(),X4=z0($W);function z0(Z){return Z&&Z.__esModule?Z:{default:Z}}function FW(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function OW(Z){var{prefixMap:J,plugins:Y}=Z,G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(Q){return Q};return function(){function Q(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};FW(this,Q);var W=typeof navigator<"u"?navigator.userAgent:void 0;if(this._userAgent=X.userAgent||W,this._keepUnprefixed=X.keepUnprefixed||!1,this._userAgent)this._browserInfo=(0,XW.default)(this._userAgent);if(this._browserInfo&&this._browserInfo.cssPrefix)this.prefixedKeyframes=(0,HW.default)(this._browserInfo.browserName,this._browserInfo.browserVersion,this._browserInfo.cssPrefix);else return this._useFallback=!0,!1;var H=this._browserInfo.browserName&&J[this._browserInfo.browserName];if(H){this._requiresPrefix={};for(var z in H)if(H[z]>=this._browserInfo.browserVersion)this._requiresPrefix[z]=!0;this._hasPropsRequiringPrefix=Object.keys(this._requiresPrefix).length>0}else this._useFallback=!0;this._metaData={browserVersion:this._browserInfo.browserVersion,browserName:this._browserInfo.browserName,cssPrefix:this._browserInfo.cssPrefix,jsPrefix:this._browserInfo.jsPrefix,keepUnprefixed:this._keepUnprefixed,requiresPrefix:this._requiresPrefix}}return GW(Q,[{key:"prefix",value:function(W){if(this._useFallback)return G(W);if(!this._hasPropsRequiringPrefix)return W;return this._prefixStyle(W)}},{key:"_prefixStyle",value:function(W){for(var H in W){var z=W[H];if((0,MW.default)(z))W[H]=this.prefix(z);else if(Array.isArray(z)){var U=[];for(var B=0,L=z.length;B<L;++B){var F=(0,X4.default)(Y,H,z[B],W,this._metaData);(0,KW.default)(U,F||z[B])}if(U.length>0)W[H]=U}else{var M=(0,X4.default)(Y,H,z,W,this._metaData);if(M)W[H]=M;if(this._requiresPrefix.hasOwnProperty(H)){if(W[this._browserInfo.jsPrefix+(0,UW.default)(H)]=z,!this._keepUnprefixed)delete W[H]}}}return W}}],[{key:"prefixAll",value:function(W){return G(W)}}]),Q}()}W4.exports=n6.default});var o6=A((KO,q5)=>{/*!
|
|
6
6
|
Copyright (c) 2015 Jed Watson.
|
|
7
7
|
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
8
8
|
All rights reserved.
|
|
9
|
-
*/(function(){var Z=!!(typeof window<"u"&&window.document&&window.document.createElement),J={canUseDOM:Z,canUseWorkers:typeof Worker<"u",canUseEventListeners:Z&&!!(window.addEventListener||window.attachEvent),canUseViewport:Z&&!!window.screen};if(typeof define==="function"&&typeof define.amd==="object"&&define.amd)define(function(){return J});else if(typeof F5<"u"&&F5.exports)F5.exports=J;else window.ExecutionEnvironment=J})()});var o1=A((l6,e7)=>{Object.defineProperty(l6,"__esModule",{value:!0});l6.default=LW;var KW=/-webkit-|-moz-|-ms-/;function LW(Z){return typeof Z==="string"&&KW.test(Z)}e7.exports=l6.default});var J4=A((i6,Z4)=>{Object.defineProperty(i6,"__esModule",{value:!0});i6.default=IW;var FW=o1(),$W=OW(FW);function OW(Z){return Z&&Z.__esModule?Z:{default:Z}}var VW=["-webkit-","-moz-",""];function IW(Z,J){if(typeof J==="string"&&!(0,$W.default)(J)&&J.indexOf("calc(")>-1)return VW.map(function(Y){return J.replace(/calc\(/g,Y+"calc(")})}Z4.exports=i6.default});var Q4=A((n6,Y4)=>{Object.defineProperty(n6,"__esModule",{value:!0});n6.default=PW;var DW=o1(),NW=AW(DW);function AW(Z){return Z&&Z.__esModule?Z:{default:Z}}var RW=["-webkit-",""];function PW(Z,J){if(typeof J==="string"&&!(0,NW.default)(J)&&J.indexOf("cross-fade(")>-1)return RW.map(function(Y){return J.replace(/cross-fade\(/g,Y+"cross-fade(")})}Y4.exports=n6.default});var G4=A((o6,X4)=>{Object.defineProperty(o6,"__esModule",{value:!0});o6.default=SW;var wW=["-webkit-","-moz-",""],EW={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function SW(Z,J){if(Z==="cursor"&&EW.hasOwnProperty(J))return wW.map(function(Y){return Y+J})}X4.exports=o6.default});var H4=A((a6,W4)=>{Object.defineProperty(a6,"__esModule",{value:!0});a6.default=vW;var CW=o1(),fW=jW(CW);function jW(Z){return Z&&Z.__esModule?Z:{default:Z}}var _W=["-webkit-",""];function vW(Z,J){if(typeof J==="string"&&!(0,fW.default)(J)&&J.indexOf("filter(")>-1)return _W.map(function(Y){return J.replace(/filter\(/g,Y+"filter(")})}W4.exports=a6.default});var B4=A((s6,U4)=>{Object.defineProperty(s6,"__esModule",{value:!0});s6.default=hW;var z4={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function hW(Z,J){if(Z==="display"&&z4.hasOwnProperty(J))return z4[J]}U4.exports=s6.default});var M4=A((r6,L4)=>{Object.defineProperty(r6,"__esModule",{value:!0});r6.default=yW;var gW={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},K4={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"};function yW(Z,J,Y){if(K4.hasOwnProperty(Z))Y[K4[Z]]=gW[J]||J}L4.exports=r6.default});var O4=A((t6,$4)=>{Object.defineProperty(t6,"__esModule",{value:!0});t6.default=dW;var uW={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},F4={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};function dW(Z,J,Y){if(Z==="flexDirection"&&typeof J==="string"){if(J.indexOf("column")>-1)Y.WebkitBoxOrient="vertical";else Y.WebkitBoxOrient="horizontal";if(J.indexOf("reverse")>-1)Y.WebkitBoxDirection="reverse";else Y.WebkitBoxDirection="normal"}if(F4.hasOwnProperty(Z))Y[F4[Z]]=uW[J]||J}$4.exports=t6.default});var q4=A((e6,I4)=>{Object.defineProperty(e6,"__esModule",{value:!0});e6.default=oW;var pW=o1(),lW=iW(pW);function iW(Z){return Z&&Z.__esModule?Z:{default:Z}}var nW=["-webkit-","-moz-",""],V4=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function oW(Z,J){if(typeof J==="string"&&!(0,lW.default)(J)&&V4.test(J))return nW.map(function(Y){return J.replace(V4,function(Q){return Y+Q})})}I4.exports=e6.default});var N4=A((Z8,D4)=>{Object.defineProperty(Z8,"__esModule",{value:!0});Z8.default=ZH;var sW=o1(),rW=tW(sW);function tW(Z){return Z&&Z.__esModule?Z:{default:Z}}var eW=["-webkit-",""];function ZH(Z,J){if(typeof J==="string"&&!(0,rW.default)(J)&&J.indexOf("image-set(")>-1)return eW.map(function(Y){return J.replace(/image-set\(/g,Y+"image-set(")})}D4.exports=Z8.default});var R4=A((J8,A4)=>{Object.defineProperty(J8,"__esModule",{value:!0});J8.default=YH;function YH(Z,J){if(Z==="position"&&J==="sticky")return["-webkit-sticky","sticky"]}A4.exports=J8.default});var T4=A((Y8,P4)=>{Object.defineProperty(Y8,"__esModule",{value:!0});Y8.default=HH;var XH=["-webkit-","-moz-",""],GH={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},WH={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function HH(Z,J){if(GH.hasOwnProperty(Z)&&WH.hasOwnProperty(J))return XH.map(function(Y){return Y+J})}P4.exports=Y8.default});var E4=A((u$,w4)=>{var UH=/[A-Z]/g,BH=/^ms-/,Q8={};function KH(Z){return"-"+Z.toLowerCase()}function LH(Z){if(Q8.hasOwnProperty(Z))return Q8[Z];var J=Z.replace(UH,KH);return Q8[Z]=BH.test(J)?"-"+J:J}w4.exports=LH});var G8=A((X8,S4)=>{Object.defineProperty(X8,"__esModule",{value:!0});X8.default=OH;var MH=E4(),FH=$H(MH);function $H(Z){return Z&&Z.__esModule?Z:{default:Z}}function OH(Z){return(0,FH.default)(Z)}S4.exports=X8.default});var f4=A((H8,C4)=>{Object.defineProperty(H8,"__esModule",{value:!0});H8.default=wH;var IH=G8(),qH=W8(IH),DH=o1(),NH=W8(DH),AH=K5(),x4=W8(AH);function W8(Z){return Z&&Z.__esModule?Z:{default:Z}}var RH={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},PH={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function TH(Z,J){if((0,NH.default)(Z))return Z;var Y=Z.split(/,(?![^()]*(?:\([^()]*\))?\))/g);for(var Q=0,X=Y.length;Q<X;++Q){var G=Y[Q],W=[G];for(var H in J){var z=(0,qH.default)(H);if(G.indexOf(z)>-1&&z!=="order"){var U=J[H];for(var B=0,L=U.length;B<L;++B)W.unshift(G.replace(z,PH[U[B]]+z))}}Y[Q]=W.join(",")}return Y.join(",")}function wH(Z,J,Y,Q){if(typeof J==="string"&&RH.hasOwnProperty(Z)){var X=TH(J,Q),G=X.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(H){return!/-moz-|-ms-/.test(H)}).join(",");if(Z.indexOf("Webkit")>-1)return G;var W=X.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(H){return!/-webkit-|-ms-/.test(H)}).join(",");if(Z.indexOf("Moz")>-1)return W;return Y["Webkit"+(0,x4.default)(Z)]=G,Y["Moz"+(0,x4.default)(Z)]=W,X}}C4.exports=H8.default});var G1=A((U8,l4)=>{Object.defineProperty(U8,"__esModule",{value:!0});U8.default=SH;function SH(Z,J,Y){if(Y)return[Z,J];return Z}l4.exports=U8.default});var n4=A((B8,i4)=>{Object.defineProperty(B8,"__esModule",{value:!0});B8.default=_H;var CH=G1(),fH=jH(CH);function jH(Z){return Z&&Z.__esModule?Z:{default:Z}}function _H(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&J.indexOf("calc(")>-1&&(X==="firefox"&&G<15||X==="chrome"&&G<25||X==="safari"&&G<6.1||X==="ios_saf"&&G<7))return(0,fH.default)(J.replace(/calc\(/g,W+"calc("),J,H)}i4.exports=B8.default});var a4=A((K8,o4)=>{Object.defineProperty(K8,"__esModule",{value:!0});K8.default=gH;var kH=G1(),hH=bH(kH);function bH(Z){return Z&&Z.__esModule?Z:{default:Z}}function gH(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&J.indexOf("cross-fade(")>-1&&(X==="chrome"||X==="opera"||X==="and_chr"||(X==="ios_saf"||X==="safari")&&G<10))return(0,hH.default)(J.replace(/cross-fade\(/g,W+"cross-fade("),J,H)}o4.exports=K8.default});var t4=A((L8,r4)=>{Object.defineProperty(L8,"__esModule",{value:!0});L8.default=pH;var mH=G1(),s4=uH(mH);function uH(Z){return Z&&Z.__esModule?Z:{default:Z}}var dH={grab:!0,grabbing:!0},cH={"zoom-in":!0,"zoom-out":!0};function pH(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(Z==="cursor"&&dH[J]&&(X==="firefox"||X==="chrome"||X==="safari"||X==="opera"))return(0,s4.default)(W+J,J,H);if(Z==="cursor"&&cH[J]&&(X==="firefox"&&G<24||X==="chrome"&&G<37||X==="safari"&&G<9||X==="opera"&&G<24))return(0,s4.default)(W+J,J,H)}r4.exports=L8.default});var ZZ=A((M8,e4)=>{Object.defineProperty(M8,"__esModule",{value:!0});M8.default=aH;var iH=G1(),nH=oH(iH);function oH(Z){return Z&&Z.__esModule?Z:{default:Z}}function aH(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&J.indexOf("filter(")>-1&&(X==="ios_saf"||X==="safari"&&G<9.1))return(0,nH.default)(J.replace(/filter\(/g,W+"filter("),J,H)}e4.exports=M8.default});var YZ=A((F8,JZ)=>{Object.defineProperty(F8,"__esModule",{value:!0});F8.default=Jz;var rH=G1(),tH=eH(rH);function eH(Z){return Z&&Z.__esModule?Z:{default:Z}}var Zz={flex:!0,"inline-flex":!0};function Jz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(Z==="display"&&Zz[J]&&(X==="chrome"&&G<29&&G>20||(X==="safari"||X==="ios_saf")&&G<9&&G>6||X==="opera"&&(G===15||G===16)))return(0,tH.default)(W+J,J,H)}JZ.exports=F8.default});var XZ=A((V8,QZ)=>{Object.defineProperty(V8,"__esModule",{value:!0});V8.default=Wz;var Qz=G1(),Xz=Gz(Qz);function Gz(Z){return Z&&Z.__esModule?Z:{default:Z}}var $8={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end",flex:"flexbox","inline-flex":"inline-flexbox"},O8={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"};function Wz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H,requiresPrefix:z}=Q;if((O8.hasOwnProperty(Z)||Z==="display"&&typeof J==="string"&&J.indexOf("flex")>-1)&&(X==="ie_mob"||X==="ie")&&G===10){if(delete z[Z],!H&&!Array.isArray(Y[Z]))delete Y[Z];if(Z==="display"&&$8.hasOwnProperty(J))return(0,Xz.default)(W+$8[J],J,H);if(O8.hasOwnProperty(Z))Y[O8[Z]]=$8[J]||J}}QZ.exports=V8.default});var WZ=A((D8,GZ)=>{Object.defineProperty(D8,"__esModule",{value:!0});D8.default=Mz;var zz=G1(),Uz=Bz(zz);function Bz(Z){return Z&&Z.__esModule?Z:{default:Z}}var I8={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},q8={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"},Kz=["alignContent","alignSelf","order","flexGrow","flexShrink","flexBasis","flexDirection"],Lz=Object.keys(q8).concat(Kz);function Mz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H,requiresPrefix:z}=Q;if((Lz.indexOf(Z)>-1||Z==="display"&&typeof J==="string"&&J.indexOf("flex")>-1)&&(X==="firefox"&&G<22||X==="chrome"&&G<21||(X==="safari"||X==="ios_saf")&&G<=6.1||X==="android"&&G<4.4||X==="and_uc")){if(delete z[Z],!H&&!Array.isArray(Y[Z]))delete Y[Z];if(Z==="flexDirection"&&typeof J==="string"){if(J.indexOf("column")>-1)Y.WebkitBoxOrient="vertical";else Y.WebkitBoxOrient="horizontal";if(J.indexOf("reverse")>-1)Y.WebkitBoxDirection="reverse";else Y.WebkitBoxDirection="normal"}if(Z==="display"&&I8.hasOwnProperty(J))return(0,Uz.default)(W+I8[J],J,H);if(q8.hasOwnProperty(Z))Y[q8[Z]]=I8[J]||J}}GZ.exports=D8.default});var UZ=A((N8,zZ)=>{Object.defineProperty(N8,"__esModule",{value:!0});N8.default=Iz;var $z=G1(),Oz=Vz($z);function Vz(Z){return Z&&Z.__esModule?Z:{default:Z}}var HZ=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function Iz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&HZ.test(J)&&(X==="firefox"&&G<16||X==="chrome"&&G<26||(X==="safari"||X==="ios_saf")&&G<7||(X==="opera"||X==="op_mini")&&G<12.1||X==="android"&&G<4.4||X==="and_uc"))return(0,Oz.default)(J.replace(HZ,function(z){return W+z}),J,H)}zZ.exports=N8.default});var KZ=A((A8,BZ)=>{Object.defineProperty(A8,"__esModule",{value:!0});A8.default=Rz;var Dz=G1(),Nz=Az(Dz);function Az(Z){return Z&&Z.__esModule?Z:{default:Z}}function Rz(Z,J,Y,Q){var{browserName:X,cssPrefix:G,keepUnprefixed:W}=Q;if(typeof J==="string"&&J.indexOf("image-set(")>-1&&(X==="chrome"||X==="opera"||X==="and_chr"||X==="and_uc"||X==="ios_saf"||X==="safari"))return(0,Nz.default)(J.replace(/image-set\(/g,G+"image-set("),J,W)}BZ.exports=A8.default});var MZ=A((R8,LZ)=>{Object.defineProperty(R8,"__esModule",{value:!0});R8.default=Sz;var Tz=G1(),wz=Ez(Tz);function Ez(Z){return Z&&Z.__esModule?Z:{default:Z}}function Sz(Z,J,Y,Q){var{browserName:X,cssPrefix:G,keepUnprefixed:W}=Q;if(Z==="position"&&J==="sticky"&&(X==="safari"||X==="ios_saf"))return(0,wz.default)(G+J,J,W)}LZ.exports=R8.default});var $Z=A((P8,FZ)=>{Object.defineProperty(P8,"__esModule",{value:!0});P8.default=kz;var Cz=G1(),fz=jz(Cz);function jz(Z){return Z&&Z.__esModule?Z:{default:Z}}var _z={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},vz={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function kz(Z,J,Y,Q){var{cssPrefix:X,keepUnprefixed:G}=Q;if(_z.hasOwnProperty(Z)&&vz.hasOwnProperty(J))return(0,fz.default)(X+J,J,G)}FZ.exports=P8.default});var VZ=A((w8,OZ)=>{Object.defineProperty(w8,"__esModule",{value:!0});w8.default=uz;var bz=G8(),gz=yz(bz);function yz(Z){return Z&&Z.__esModule?Z:{default:Z}}var mz={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},T8=void 0;function uz(Z,J,Y,Q){var{cssPrefix:X,keepUnprefixed:G,requiresPrefix:W}=Q;if(typeof J==="string"&&mz.hasOwnProperty(Z)){if(!T8)T8=Object.keys(W).map(function(z){return(0,gz.default)(z)});var H=J.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return T8.forEach(function(z){H.forEach(function(U,B){if(U.indexOf(z)>-1&&z!=="order")H[B]=U.replace(z,X+z)+(G?","+U:"")})}),H.join(",")}}OZ.exports=w8.default});var iY={};H7(iY,{default:()=>zK,__values:()=>s5,__spreadArrays:()=>jY,__spreadArray:()=>_Y,__spread:()=>fY,__setFunctionName:()=>wY,__runInitializers:()=>PY,__rewriteRelativeImportExtension:()=>lY,__rest:()=>DY,__read:()=>z9,__propKey:()=>TY,__param:()=>AY,__metadata:()=>EY,__makeTemplateObject:()=>bY,__importStar:()=>gY,__importDefault:()=>yY,__generator:()=>xY,__extends:()=>qY,__exportStar:()=>CY,__esDecorate:()=>RY,__disposeResources:()=>pY,__decorate:()=>NY,__createBinding:()=>r5,__classPrivateFieldSet:()=>uY,__classPrivateFieldIn:()=>dY,__classPrivateFieldGet:()=>mY,__awaiter:()=>SY,__await:()=>I0,__asyncValues:()=>hY,__asyncGenerator:()=>vY,__asyncDelegator:()=>kY,__assign:()=>a5,__addDisposableResource:()=>cY});function qY(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Class extends value "+String(J)+" is not a constructor or null");W9(Z,J);function Y(){this.constructor=Z}Z.prototype=J===null?Object.create(J):(Y.prototype=J.prototype,new Y)}function DY(Z,J){var Y={};for(var Q in Z)if(Object.prototype.hasOwnProperty.call(Z,Q)&&J.indexOf(Q)<0)Y[Q]=Z[Q];if(Z!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var X=0,Q=Object.getOwnPropertySymbols(Z);X<Q.length;X++)if(J.indexOf(Q[X])<0&&Object.prototype.propertyIsEnumerable.call(Z,Q[X]))Y[Q[X]]=Z[Q[X]]}return Y}function NY(Z,J,Y,Q){var X=arguments.length,G=X<3?J:Q===null?Q=Object.getOwnPropertyDescriptor(J,Y):Q,W;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")G=Reflect.decorate(Z,J,Y,Q);else for(var H=Z.length-1;H>=0;H--)if(W=Z[H])G=(X<3?W(G):X>3?W(J,Y,G):W(J,Y))||G;return X>3&&G&&Object.defineProperty(J,Y,G),G}function AY(Z,J){return function(Y,Q){J(Y,Q,Z)}}function RY(Z,J,Y,Q,X,G){function W(D){if(D!==void 0&&typeof D!=="function")throw TypeError("Function expected");return D}var H=Q.kind,z=H==="getter"?"get":H==="setter"?"set":"value",U=!J&&Z?Q.static?Z:Z.prototype:null,B=J||(U?Object.getOwnPropertyDescriptor(U,Q.name):{}),L,V=!1;for(var M=Y.length-1;M>=0;M--){var K={};for(var F in Q)K[F]=F==="access"?{}:Q[F];for(var F in Q.access)K.access[F]=Q.access[F];K.addInitializer=function(D){if(V)throw TypeError("Cannot add initializers after decoration has completed");G.push(W(D||null))};var O=(0,Y[M])(H==="accessor"?{get:B.get,set:B.set}:B[z],K);if(H==="accessor"){if(O===void 0)continue;if(O===null||typeof O!=="object")throw TypeError("Object expected");if(L=W(O.get))B.get=L;if(L=W(O.set))B.set=L;if(L=W(O.init))X.unshift(L)}else if(L=W(O))if(H==="field")X.unshift(L);else B[z]=L}if(U)Object.defineProperty(U,Q.name,B);V=!0}function PY(Z,J,Y){var Q=arguments.length>2;for(var X=0;X<J.length;X++)Y=Q?J[X].call(Z,Y):J[X].call(Z);return Q?Y:void 0}function TY(Z){return typeof Z==="symbol"?Z:"".concat(Z)}function wY(Z,J,Y){if(typeof J==="symbol")J=J.description?"[".concat(J.description,"]"):"";return Object.defineProperty(Z,"name",{configurable:!0,value:Y?"".concat(Y," ",J):J})}function EY(Z,J){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(Z,J)}function SY(Z,J,Y,Q){function X(G){return G instanceof Y?G:new Y(function(W){W(G)})}return new(Y||(Y=Promise))(function(G,W){function H(B){try{U(Q.next(B))}catch(L){W(L)}}function z(B){try{U(Q.throw(B))}catch(L){W(L)}}function U(B){B.done?G(B.value):X(B.value).then(H,z)}U((Q=Q.apply(Z,J||[])).next())})}function xY(Z,J){var Y={label:0,sent:function(){if(G[0]&1)throw G[1];return G[1]},trys:[],ops:[]},Q,X,G,W=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return W.next=H(0),W.throw=H(1),W.return=H(2),typeof Symbol==="function"&&(W[Symbol.iterator]=function(){return this}),W;function H(U){return function(B){return z([U,B])}}function z(U){if(Q)throw TypeError("Generator is already executing.");while(W&&(W=0,U[0]&&(Y=0)),Y)try{if(Q=1,X&&(G=U[0]&2?X.return:U[0]?X.throw||((G=X.return)&&G.call(X),0):X.next)&&!(G=G.call(X,U[1])).done)return G;if(X=0,G)U=[U[0]&2,G.value];switch(U[0]){case 0:case 1:G=U;break;case 4:return Y.label++,{value:U[1],done:!1};case 5:Y.label++,X=U[1],U=[0];continue;case 7:U=Y.ops.pop(),Y.trys.pop();continue;default:if((G=Y.trys,!(G=G.length>0&&G[G.length-1]))&&(U[0]===6||U[0]===2)){Y=0;continue}if(U[0]===3&&(!G||U[1]>G[0]&&U[1]<G[3])){Y.label=U[1];break}if(U[0]===6&&Y.label<G[1]){Y.label=G[1],G=U;break}if(G&&Y.label<G[2]){Y.label=G[2],Y.ops.push(U);break}if(G[2])Y.ops.pop();Y.trys.pop();continue}U=J.call(Z,Y)}catch(B){U=[6,B],X=0}finally{Q=G=0}if(U[0]&5)throw U[1];return{value:U[0]?U[1]:void 0,done:!0}}}function CY(Z,J){for(var Y in Z)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(J,Y))r5(J,Z,Y)}function s5(Z){var J=typeof Symbol==="function"&&Symbol.iterator,Y=J&&Z[J],Q=0;if(Y)return Y.call(Z);if(Z&&typeof Z.length==="number")return{next:function(){if(Z&&Q>=Z.length)Z=void 0;return{value:Z&&Z[Q++],done:!Z}}};throw TypeError(J?"Object is not iterable.":"Symbol.iterator is not defined.")}function z9(Z,J){var Y=typeof Symbol==="function"&&Z[Symbol.iterator];if(!Y)return Z;var Q=Y.call(Z),X,G=[],W;try{while((J===void 0||J-- >0)&&!(X=Q.next()).done)G.push(X.value)}catch(H){W={error:H}}finally{try{if(X&&!X.done&&(Y=Q.return))Y.call(Q)}finally{if(W)throw W.error}}return G}function fY(){for(var Z=[],J=0;J<arguments.length;J++)Z=Z.concat(z9(arguments[J]));return Z}function jY(){for(var Z=0,J=0,Y=arguments.length;J<Y;J++)Z+=arguments[J].length;for(var Q=Array(Z),X=0,J=0;J<Y;J++)for(var G=arguments[J],W=0,H=G.length;W<H;W++,X++)Q[X]=G[W];return Q}function _Y(Z,J,Y){if(Y||arguments.length===2){for(var Q=0,X=J.length,G;Q<X;Q++)if(G||!(Q in J)){if(!G)G=Array.prototype.slice.call(J,0,Q);G[Q]=J[Q]}}return Z.concat(G||Array.prototype.slice.call(J))}function I0(Z){return this instanceof I0?(this.v=Z,this):new I0(Z)}function vY(Z,J,Y){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var Q=Y.apply(Z,J||[]),X,G=[];return X=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),H("next"),H("throw"),H("return",W),X[Symbol.asyncIterator]=function(){return this},X;function W(M){return function(K){return Promise.resolve(K).then(M,L)}}function H(M,K){if(Q[M]){if(X[M]=function(F){return new Promise(function(O,D){G.push([M,F,O,D])>1||z(M,F)})},K)X[M]=K(X[M])}}function z(M,K){try{U(Q[M](K))}catch(F){V(G[0][3],F)}}function U(M){M.value instanceof I0?Promise.resolve(M.value.v).then(B,L):V(G[0][2],M)}function B(M){z("next",M)}function L(M){z("throw",M)}function V(M,K){if(M(K),G.shift(),G.length)z(G[0][0],G[0][1])}}function kY(Z){var J,Y;return J={},Q("next"),Q("throw",function(X){throw X}),Q("return"),J[Symbol.iterator]=function(){return this},J;function Q(X,G){J[X]=Z[X]?function(W){return(Y=!Y)?{value:I0(Z[X](W)),done:!1}:G?G(W):W}:G}}function hY(Z){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var J=Z[Symbol.asyncIterator],Y;return J?J.call(Z):(Z=typeof s5==="function"?s5(Z):Z[Symbol.iterator](),Y={},Q("next"),Q("throw"),Q("return"),Y[Symbol.asyncIterator]=function(){return this},Y);function Q(G){Y[G]=Z[G]&&function(W){return new Promise(function(H,z){W=Z[G](W),X(H,z,W.done,W.value)})}}function X(G,W,H,z){Promise.resolve(z).then(function(U){G({value:U,done:H})},W)}}function bY(Z,J){if(Object.defineProperty)Object.defineProperty(Z,"raw",{value:J});else Z.raw=J;return Z}function gY(Z){if(Z&&Z.__esModule)return Z;var J={};if(Z!=null){for(var Y=H9(Z),Q=0;Q<Y.length;Q++)if(Y[Q]!=="default")r5(J,Z,Y[Q])}return WK(J,Z),J}function yY(Z){return Z&&Z.__esModule?Z:{default:Z}}function mY(Z,J,Y,Q){if(Y==="a"&&!Q)throw TypeError("Private accessor was defined without a getter");if(typeof J==="function"?Z!==J||!Q:!J.has(Z))throw TypeError("Cannot read private member from an object whose class did not declare it");return Y==="m"?Q:Y==="a"?Q.call(Z):Q?Q.value:J.get(Z)}function uY(Z,J,Y,Q,X){if(Q==="m")throw TypeError("Private method is not writable");if(Q==="a"&&!X)throw TypeError("Private accessor was defined without a setter");if(typeof J==="function"?Z!==J||!X:!J.has(Z))throw TypeError("Cannot write private member to an object whose class did not declare it");return Q==="a"?X.call(Z,Y):X?X.value=Y:J.set(Z,Y),Y}function dY(Z,J){if(J===null||typeof J!=="object"&&typeof J!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof Z==="function"?J===Z:Z.has(J)}function cY(Z,J,Y){if(J!==null&&J!==void 0){if(typeof J!=="object"&&typeof J!=="function")throw TypeError("Object expected.");var Q,X;if(Y){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");Q=J[Symbol.asyncDispose]}if(Q===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(Q=J[Symbol.dispose],Y)X=Q}if(typeof Q!=="function")throw TypeError("Object not disposable.");if(X)Q=function(){try{X.call(this)}catch(G){return Promise.reject(G)}};Z.stack.push({value:J,dispose:Q,async:Y})}else if(Y)Z.stack.push({async:!0});return J}function pY(Z){function J(G){Z.error=Z.hasError?new HK(G,Z.error,"An error was suppressed during disposal."):G,Z.hasError=!0}var Y,Q=0;function X(){while(Y=Z.stack.pop())try{if(!Y.async&&Q===1)return Q=0,Z.stack.push(Y),Promise.resolve().then(X);if(Y.dispose){var G=Y.dispose.call(Y.value);if(Y.async)return Q|=2,Promise.resolve(G).then(X,function(W){return J(W),X()})}else Q|=1}catch(W){J(W)}if(Q===1)return Z.hasError?Promise.reject(Z.error):Promise.resolve();if(Z.hasError)throw Z.error}return X()}function lY(Z,J){if(typeof Z==="string"&&/^\.\.?\//.test(Z))return Z.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(Y,Q,X,G,W){return Q?J?".jsx":".js":X&&(!G||!W)?Y:X+G+"."+W.toLowerCase()+"js"});return Z}var W9=function(Z,J){return W9=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,Q){Y.__proto__=Q}||function(Y,Q){for(var X in Q)if(Object.prototype.hasOwnProperty.call(Q,X))Y[X]=Q[X]},W9(Z,J)},a5=function(){return a5=Object.assign||function(J){for(var Y,Q=1,X=arguments.length;Q<X;Q++){Y=arguments[Q];for(var G in Y)if(Object.prototype.hasOwnProperty.call(Y,G))J[G]=Y[G]}return J},a5.apply(this,arguments)},r5,WK,H9=function(Z){return H9=Object.getOwnPropertyNames||function(J){var Y=[];for(var Q in J)if(Object.prototype.hasOwnProperty.call(J,Q))Y[Y.length]=Q;return Y},H9(Z)},HK,zK;var nY=z7(()=>{r5=Object.create?function(Z,J,Y,Q){if(Q===void 0)Q=Y;var X=Object.getOwnPropertyDescriptor(J,Y);if(!X||("get"in X?!J.__esModule:X.writable||X.configurable))X={enumerable:!0,get:function(){return J[Y]}};Object.defineProperty(Z,Q,X)}:function(Z,J,Y,Q){if(Q===void 0)Q=Y;Z[Q]=J[Y]};WK=Object.create?function(Z,J){Object.defineProperty(Z,"default",{enumerable:!0,value:J})}:function(Z,J){Z.default=J};HK=typeof SuppressedError==="function"?SuppressedError:function(Z,J,Y){var Q=Error(Y);return Q.name="SuppressedError",Q.error=Z,Q.suppressed=J,Q};zK={__extends:qY,__assign:a5,__rest:DY,__decorate:NY,__param:AY,__esDecorate:RY,__runInitializers:PY,__propKey:TY,__setFunctionName:wY,__metadata:EY,__awaiter:SY,__generator:xY,__createBinding:r5,__exportStar:CY,__values:s5,__read:z9,__spread:fY,__spreadArrays:jY,__spreadArray:_Y,__await:I0,__asyncGenerator:vY,__asyncDelegator:kY,__asyncValues:hY,__makeTemplateObject:bY,__importStar:gY,__importDefault:yY,__classPrivateFieldGet:mY,__classPrivateFieldSet:uY,__classPrivateFieldIn:dY,__addDisposableResource:cY,__disposeResources:pY,__rewriteRelativeImportExtension:lY}});var vQ=A((fq,_Q)=>{/*! Axios v1.13.4 Copyright (c) 2026 Matt Zabriskie and contributors */function BQ(Z,J){return function(){return Z.apply(J,arguments)}}var{toString:UK}=Object.prototype,{getPrototypeOf:O9}=Object,{iterator:X6,toStringTag:KQ}=Symbol,G6=((Z)=>(J)=>{let Y=UK.call(J);return Z[Y]||(Z[Y]=Y.slice(8,-1).toLowerCase())})(Object.create(null)),M1=(Z)=>{return Z=Z.toLowerCase(),(J)=>G6(J)===Z},W6=(Z)=>(J)=>typeof J===Z,{isArray:D0}=Array,q0=W6("undefined");function o0(Z){return Z!==null&&!q0(Z)&&Z.constructor!==null&&!q0(Z.constructor)&&t(Z.constructor.isBuffer)&&Z.constructor.isBuffer(Z)}var LQ=M1("ArrayBuffer");function BK(Z){let J;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)J=ArrayBuffer.isView(Z);else J=Z&&Z.buffer&&LQ(Z.buffer);return J}var KK=W6("string"),t=W6("function"),MQ=W6("number"),a0=(Z)=>Z!==null&&typeof Z==="object",LK=(Z)=>Z===!0||Z===!1,e5=(Z)=>{if(G6(Z)!=="object")return!1;let J=O9(Z);return(J===null||J===Object.prototype||Object.getPrototypeOf(J)===null)&&!(KQ in Z)&&!(X6 in Z)},MK=(Z)=>{if(!a0(Z)||o0(Z))return!1;try{return Object.keys(Z).length===0&&Object.getPrototypeOf(Z)===Object.prototype}catch(J){return!1}},FK=M1("Date"),$K=M1("File"),OK=M1("Blob"),VK=M1("FileList"),IK=(Z)=>a0(Z)&&t(Z.pipe),qK=(Z)=>{let J;return Z&&(typeof FormData==="function"&&Z instanceof FormData||t(Z.append)&&((J=G6(Z))==="formdata"||J==="object"&&t(Z.toString)&&Z.toString()==="[object FormData]"))},DK=M1("URLSearchParams"),[NK,AK,RK,PK]=["ReadableStream","Request","Response","Headers"].map(M1),TK=(Z)=>Z.trim?Z.trim():Z.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function s0(Z,J,{allOwnKeys:Y=!1}={}){if(Z===null||typeof Z>"u")return;let Q,X;if(typeof Z!=="object")Z=[Z];if(D0(Z))for(Q=0,X=Z.length;Q<X;Q++)J.call(null,Z[Q],Q,Z);else{if(o0(Z))return;let G=Y?Object.getOwnPropertyNames(Z):Object.keys(Z),W=G.length,H;for(Q=0;Q<W;Q++)H=G[Q],J.call(null,Z[H],H,Z)}}function FQ(Z,J){if(o0(Z))return null;J=J.toLowerCase();let Y=Object.keys(Z),Q=Y.length,X;while(Q-- >0)if(X=Y[Q],J===X.toLowerCase())return X;return null}var Y0=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})(),$Q=(Z)=>!q0(Z)&&Z!==Y0;function L9(){let{caseless:Z,skipUndefined:J}=$Q(this)&&this||{},Y={},Q=(X,G)=>{let W=Z&&FQ(Y,G)||G;if(e5(Y[W])&&e5(X))Y[W]=L9(Y[W],X);else if(e5(X))Y[W]=L9({},X);else if(D0(X))Y[W]=X.slice();else if(!J||!q0(X))Y[W]=X};for(let X=0,G=arguments.length;X<G;X++)arguments[X]&&s0(arguments[X],Q);return Y}var wK=(Z,J,Y,{allOwnKeys:Q}={})=>{return s0(J,(X,G)=>{if(Y&&t(X))Object.defineProperty(Z,G,{value:BQ(X,Y),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty(Z,G,{value:X,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:Q}),Z},EK=(Z)=>{if(Z.charCodeAt(0)===65279)Z=Z.slice(1);return Z},SK=(Z,J,Y,Q)=>{Z.prototype=Object.create(J.prototype,Q),Object.defineProperty(Z.prototype,"constructor",{value:Z,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(Z,"super",{value:J.prototype}),Y&&Object.assign(Z.prototype,Y)},xK=(Z,J,Y,Q)=>{let X,G,W,H={};if(J=J||{},Z==null)return J;do{X=Object.getOwnPropertyNames(Z),G=X.length;while(G-- >0)if(W=X[G],(!Q||Q(W,Z,J))&&!H[W])J[W]=Z[W],H[W]=!0;Z=Y!==!1&&O9(Z)}while(Z&&(!Y||Y(Z,J))&&Z!==Object.prototype);return J},CK=(Z,J,Y)=>{if(Z=String(Z),Y===void 0||Y>Z.length)Y=Z.length;Y-=J.length;let Q=Z.indexOf(J,Y);return Q!==-1&&Q===Y},fK=(Z)=>{if(!Z)return null;if(D0(Z))return Z;let J=Z.length;if(!MQ(J))return null;let Y=Array(J);while(J-- >0)Y[J]=Z[J];return Y},jK=((Z)=>{return(J)=>{return Z&&J instanceof Z}})(typeof Uint8Array<"u"&&O9(Uint8Array)),_K=(Z,J)=>{let Q=(Z&&Z[X6]).call(Z),X;while((X=Q.next())&&!X.done){let G=X.value;J.call(Z,G[0],G[1])}},vK=(Z,J)=>{let Y,Q=[];while((Y=Z.exec(J))!==null)Q.push(Y);return Q},kK=M1("HTMLFormElement"),hK=(Z)=>{return Z.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(Y,Q,X){return Q.toUpperCase()+X})},oY=(({hasOwnProperty:Z})=>(J,Y)=>Z.call(J,Y))(Object.prototype),bK=M1("RegExp"),OQ=(Z,J)=>{let Y=Object.getOwnPropertyDescriptors(Z),Q={};s0(Y,(X,G)=>{let W;if((W=J(X,G,Z))!==!1)Q[G]=W||X}),Object.defineProperties(Z,Q)},gK=(Z)=>{OQ(Z,(J,Y)=>{if(t(Z)&&["arguments","caller","callee"].indexOf(Y)!==-1)return!1;let Q=Z[Y];if(!t(Q))return;if(J.enumerable=!1,"writable"in J){J.writable=!1;return}if(!J.set)J.set=()=>{throw Error("Can not rewrite read-only method '"+Y+"'")}})},yK=(Z,J)=>{let Y={},Q=(X)=>{X.forEach((G)=>{Y[G]=!0})};return D0(Z)?Q(Z):Q(String(Z).split(J)),Y},mK=()=>{},uK=(Z,J)=>{return Z!=null&&Number.isFinite(Z=+Z)?Z:J};function dK(Z){return!!(Z&&t(Z.append)&&Z[KQ]==="FormData"&&Z[X6])}var cK=(Z)=>{let J=[,,,,,,,,,,],Y=(Q,X)=>{if(a0(Q)){if(J.indexOf(Q)>=0)return;if(o0(Q))return Q;if(!("toJSON"in Q)){J[X]=Q;let G=D0(Q)?[]:{};return s0(Q,(W,H)=>{let z=Y(W,X+1);!q0(z)&&(G[H]=z)}),J[X]=void 0,G}}return Q};return Y(Z,0)},pK=M1("AsyncFunction"),lK=(Z)=>Z&&(a0(Z)||t(Z))&&t(Z.then)&&t(Z.catch),VQ=((Z,J)=>{if(Z)return setImmediate;return J?((Y,Q)=>{return Y0.addEventListener("message",({source:X,data:G})=>{if(X===Y0&&G===Y)Q.length&&Q.shift()()},!1),(X)=>{Q.push(X),Y0.postMessage(Y,"*")}})(`axios@${Math.random()}`,[]):(Y)=>setTimeout(Y)})(typeof setImmediate==="function",t(Y0.postMessage)),iK=typeof queueMicrotask<"u"?queueMicrotask.bind(Y0):typeof process<"u"&&process.nextTick||VQ,nK=(Z)=>Z!=null&&t(Z[X6]),I={isArray:D0,isArrayBuffer:LQ,isBuffer:o0,isFormData:qK,isArrayBufferView:BK,isString:KK,isNumber:MQ,isBoolean:LK,isObject:a0,isPlainObject:e5,isEmptyObject:MK,isReadableStream:NK,isRequest:AK,isResponse:RK,isHeaders:PK,isUndefined:q0,isDate:FK,isFile:$K,isBlob:OK,isRegExp:bK,isFunction:t,isStream:IK,isURLSearchParams:DK,isTypedArray:jK,isFileList:VK,forEach:s0,merge:L9,extend:wK,trim:TK,stripBOM:EK,inherits:SK,toFlatObject:xK,kindOf:G6,kindOfTest:M1,endsWith:CK,toArray:fK,forEachEntry:_K,matchAll:vK,isHTMLForm:kK,hasOwnProperty:oY,hasOwnProp:oY,reduceDescriptors:OQ,freezeMethods:gK,toObjectSet:yK,toCamelCase:hK,noop:mK,toFiniteNumber:uK,findKey:FQ,global:Y0,isContextDefined:$Q,isSpecCompliantForm:dK,toJSONObject:cK,isAsyncFn:pK,isThenable:lK,setImmediate:VQ,asap:iK,isIterable:nK};class a extends Error{static from(Z,J,Y,Q,X,G){let W=new a(Z.message,J||Z.code,Y,Q,X);return W.cause=Z,W.name=Z.name,G&&Object.assign(W,G),W}constructor(Z,J,Y,Q,X){super(Z);if(this.name="AxiosError",this.isAxiosError=!0,J&&(this.code=J),Y&&(this.config=Y),Q&&(this.request=Q),X)this.response=X,this.status=X.status}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.status}}}a.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";a.ERR_BAD_OPTION="ERR_BAD_OPTION";a.ECONNABORTED="ECONNABORTED";a.ETIMEDOUT="ETIMEDOUT";a.ERR_NETWORK="ERR_NETWORK";a.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";a.ERR_DEPRECATED="ERR_DEPRECATED";a.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";a.ERR_BAD_REQUEST="ERR_BAD_REQUEST";a.ERR_CANCELED="ERR_CANCELED";a.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";a.ERR_INVALID_URL="ERR_INVALID_URL";var x=a,oK=null;function M9(Z){return I.isPlainObject(Z)||I.isArray(Z)}function IQ(Z){return I.endsWith(Z,"[]")?Z.slice(0,-2):Z}function aY(Z,J,Y){if(!Z)return J;return Z.concat(J).map(function(X,G){return X=IQ(X),!Y&&G?"["+X+"]":X}).join(Y?".":"")}function aK(Z){return I.isArray(Z)&&!Z.some(M9)}var sK=I.toFlatObject(I,{},null,function(J){return/^is[A-Z]/.test(J)});function H6(Z,J,Y){if(!I.isObject(Z))throw TypeError("target must be an object");J=J||new FormData,Y=I.toFlatObject(Y,{metaTokens:!0,dots:!1,indexes:!1},!1,function(F,O){return!I.isUndefined(O[F])});let Q=Y.metaTokens,X=Y.visitor||B,G=Y.dots,W=Y.indexes,z=(Y.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(J);if(!I.isFunction(X))throw TypeError("visitor must be a function");function U(K){if(K===null)return"";if(I.isDate(K))return K.toISOString();if(I.isBoolean(K))return K.toString();if(!z&&I.isBlob(K))throw new x("Blob is not supported. Use a Buffer instead.");if(I.isArrayBuffer(K)||I.isTypedArray(K))return z&&typeof Blob==="function"?new Blob([K]):Buffer.from(K);return K}function B(K,F,O){let D=K;if(K&&!O&&typeof K==="object"){if(I.endsWith(F,"{}"))F=Q?F:F.slice(0,-2),K=JSON.stringify(K);else if(I.isArray(K)&&aK(K)||(I.isFileList(K)||I.endsWith(F,"[]"))&&(D=I.toArray(K)))return F=IQ(F),D.forEach(function(N,q){!(I.isUndefined(N)||N===null)&&J.append(W===!0?aY([F],q,G):W===null?F:F+"[]",U(N))}),!1}if(M9(K))return!0;return J.append(aY(O,F,G),U(K)),!1}let L=[],V=Object.assign(sK,{defaultVisitor:B,convertValue:U,isVisitable:M9});function M(K,F){if(I.isUndefined(K))return;if(L.indexOf(K)!==-1)throw Error("Circular reference detected in "+F.join("."));L.push(K),I.forEach(K,function(D,P){if((!(I.isUndefined(D)||D===null)&&X.call(J,D,I.isString(P)?P.trim():P,F,V))===!0)M(D,F?F.concat(P):[P])}),L.pop()}if(!I.isObject(Z))throw TypeError("data must be an object");return M(Z),J}function sY(Z){let J={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(Z).replace(/[!'()~]|%20|%00/g,function(Q){return J[Q]})}function V9(Z,J){this._pairs=[],Z&&H6(Z,this,J)}var qQ=V9.prototype;qQ.append=function(J,Y){this._pairs.push([J,Y])};qQ.toString=function(J){let Y=J?function(Q){return J.call(this,Q,sY)}:sY;return this._pairs.map(function(X){return Y(X[0])+"="+Y(X[1])},"").join("&")};function rK(Z){return encodeURIComponent(Z).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function DQ(Z,J,Y){if(!J)return Z;let Q=Y&&Y.encode||rK,X=I.isFunction(Y)?{serialize:Y}:Y,G=X&&X.serialize,W;if(G)W=G(J,X);else W=I.isURLSearchParams(J)?J.toString():new V9(J,X).toString(Q);if(W){let H=Z.indexOf("#");if(H!==-1)Z=Z.slice(0,H);Z+=(Z.indexOf("?")===-1?"?":"&")+W}return Z}class NQ{constructor(){this.handlers=[]}use(Z,J,Y){return this.handlers.push({fulfilled:Z,rejected:J,synchronous:Y?Y.synchronous:!1,runWhen:Y?Y.runWhen:null}),this.handlers.length-1}eject(Z){if(this.handlers[Z])this.handlers[Z]=null}clear(){if(this.handlers)this.handlers=[]}forEach(Z){I.forEach(this.handlers,function(Y){if(Y!==null)Z(Y)})}}var rY=NQ,AQ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tK=typeof URLSearchParams<"u"?URLSearchParams:V9,eK=typeof FormData<"u"?FormData:null,ZL=typeof Blob<"u"?Blob:null,JL={isBrowser:!0,classes:{URLSearchParams:tK,FormData:eK,Blob:ZL},protocols:["http","https","file","blob","url","data"]},I9=typeof window<"u"&&typeof document<"u",F9=typeof navigator==="object"&&navigator||void 0,YL=I9&&(!F9||["ReactNative","NativeScript","NS"].indexOf(F9.product)<0),QL=(()=>{return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),XL=I9&&window.location.href||"http://localhost",GL=Object.freeze({__proto__:null,hasBrowserEnv:I9,hasStandardBrowserWebWorkerEnv:QL,hasStandardBrowserEnv:YL,navigator:F9,origin:XL}),i={...GL,...JL};function WL(Z,J){return H6(Z,new i.classes.URLSearchParams,{visitor:function(Y,Q,X,G){if(i.isNode&&I.isBuffer(Y))return this.append(Q,Y.toString("base64")),!1;return G.defaultVisitor.apply(this,arguments)},...J})}function HL(Z){return I.matchAll(/\w+|\[(\w*)]/g,Z).map((J)=>{return J[0]==="[]"?"":J[1]||J[0]})}function zL(Z){let J={},Y=Object.keys(Z),Q,X=Y.length,G;for(Q=0;Q<X;Q++)G=Y[Q],J[G]=Z[G];return J}function RQ(Z){function J(Y,Q,X,G){let W=Y[G++];if(W==="__proto__")return!0;let H=Number.isFinite(+W),z=G>=Y.length;if(W=!W&&I.isArray(X)?X.length:W,z){if(I.hasOwnProp(X,W))X[W]=[X[W],Q];else X[W]=Q;return!H}if(!X[W]||!I.isObject(X[W]))X[W]=[];if(J(Y,Q,X[W],G)&&I.isArray(X[W]))X[W]=zL(X[W]);return!H}if(I.isFormData(Z)&&I.isFunction(Z.entries)){let Y={};return I.forEachEntry(Z,(Q,X)=>{J(HL(Q),X,Y,0)}),Y}return null}function UL(Z,J,Y){if(I.isString(Z))try{return(J||JSON.parse)(Z),I.trim(Z)}catch(Q){if(Q.name!=="SyntaxError")throw Q}return(Y||JSON.stringify)(Z)}var q9={transitional:AQ,adapter:["xhr","http","fetch"],transformRequest:[function(J,Y){let Q=Y.getContentType()||"",X=Q.indexOf("application/json")>-1,G=I.isObject(J);if(G&&I.isHTMLForm(J))J=new FormData(J);if(I.isFormData(J))return X?JSON.stringify(RQ(J)):J;if(I.isArrayBuffer(J)||I.isBuffer(J)||I.isStream(J)||I.isFile(J)||I.isBlob(J)||I.isReadableStream(J))return J;if(I.isArrayBufferView(J))return J.buffer;if(I.isURLSearchParams(J))return Y.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),J.toString();let H;if(G){if(Q.indexOf("application/x-www-form-urlencoded")>-1)return WL(J,this.formSerializer).toString();if((H=I.isFileList(J))||Q.indexOf("multipart/form-data")>-1){let z=this.env&&this.env.FormData;return H6(H?{"files[]":J}:J,z&&new z,this.formSerializer)}}if(G||X)return Y.setContentType("application/json",!1),UL(J);return J}],transformResponse:[function(J){let Y=this.transitional||q9.transitional,Q=Y&&Y.forcedJSONParsing,X=this.responseType==="json";if(I.isResponse(J)||I.isReadableStream(J))return J;if(J&&I.isString(J)&&(Q&&!this.responseType||X)){let W=!(Y&&Y.silentJSONParsing)&&X;try{return JSON.parse(J,this.parseReviver)}catch(H){if(W){if(H.name==="SyntaxError")throw x.from(H,x.ERR_BAD_RESPONSE,this,null,this.response);throw H}}}return J}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:i.classes.FormData,Blob:i.classes.Blob},validateStatus:function(J){return J>=200&&J<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],(Z)=>{q9.headers[Z]={}});var D9=q9,BL=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),KL=(Z)=>{let J={},Y,Q,X;return Z&&Z.split(`
|
|
10
|
-
`).forEach(function(W){if(
|
|
11
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(Z){return Z instanceof this?Z:new this(Z)}static concat(Z,...J){let Y=new this(Z);return J.forEach((Q)=>Y.set(Q)),Y}static accessor(Z){let Y=(this[tY]=this[tY]={accessors:{}}).accessors,Q=this.prototype;function X(G){let W=i0(G);if(!Y[W])$L(Q,G),Y[W]=!0}return I.isArray(Z)?Z.forEach(X):X(Z),this}}r0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(r0.prototype,({value:Z},J)=>{let Y=J[0].toUpperCase()+J.slice(1);return{get:()=>Z,set(Q){this[Y]=Q}}});I.freezeMethods(r0);var L1=r0;function B9(Z,J){let Y=this||D9,Q=J||Y,X=L1.from(Q.headers),G=Q.data;return I.forEach(Z,function(H){G=H.call(Y,G,X.normalize(),J?J.status:void 0)}),X.normalize(),G}function PQ(Z){return!!(Z&&Z.__CANCEL__)}class TQ extends x{constructor(Z,J,Y){super(Z==null?"canceled":Z,x.ERR_CANCELED,J,Y);this.name="CanceledError",this.__CANCEL__=!0}}var t0=TQ;function wQ(Z,J,Y){let Q=Y.config.validateStatus;if(!Y.status||!Q||Q(Y.status))Z(Y);else J(new x("Request failed with status code "+Y.status,[x.ERR_BAD_REQUEST,x.ERR_BAD_RESPONSE][Math.floor(Y.status/100)-4],Y.config,Y.request,Y))}function OL(Z){let J=/^([-+\w]{1,25})(:?\/\/|:)/.exec(Z);return J&&J[1]||""}function VL(Z,J){Z=Z||10;let Y=Array(Z),Q=Array(Z),X=0,G=0,W;return J=J!==void 0?J:1000,function(z){let U=Date.now(),B=Q[G];if(!W)W=U;Y[X]=z,Q[X]=U;let L=G,V=0;while(L!==X)V+=Y[L++],L=L%Z;if(X=(X+1)%Z,X===G)G=(G+1)%Z;if(U-W<J)return;let M=B&&U-B;return M?Math.round(V*1000/M):void 0}}function IL(Z,J){let Y=0,Q=1000/J,X,G,W=(U,B=Date.now())=>{if(Y=B,X=null,G)clearTimeout(G),G=null;Z(...U)};return[(...U)=>{let B=Date.now(),L=B-Y;if(L>=Q)W(U,B);else if(X=U,!G)G=setTimeout(()=>{G=null,W(X)},Q-L)},()=>X&&W(X)]}var Q6=(Z,J,Y=3)=>{let Q=0,X=VL(50,250);return IL((G)=>{let W=G.loaded,H=G.lengthComputable?G.total:void 0,z=W-Q,U=X(z),B=W<=H;Q=W;let L={loaded:W,total:H,progress:H?W/H:void 0,bytes:z,rate:U?U:void 0,estimated:U&&H&&B?(H-W)/U:void 0,event:G,lengthComputable:H!=null,[J?"download":"upload"]:!0};Z(L)},Y)},eY=(Z,J)=>{let Y=Z!=null;return[(Q)=>J[0]({lengthComputable:Y,total:Z,loaded:Q}),J[1]]},ZQ=(Z)=>(...J)=>I.asap(()=>Z(...J)),qL=i.hasStandardBrowserEnv?((Z,J)=>(Y)=>{return Y=new URL(Y,i.origin),Z.protocol===Y.protocol&&Z.host===Y.host&&(J||Z.port===Y.port)})(new URL(i.origin),i.navigator&&/(msie|trident)/i.test(i.navigator.userAgent)):()=>!0,DL=i.hasStandardBrowserEnv?{write(Z,J,Y,Q,X,G,W){if(typeof document>"u")return;let H=[`${Z}=${encodeURIComponent(J)}`];if(I.isNumber(Y))H.push(`expires=${new Date(Y).toUTCString()}`);if(I.isString(Q))H.push(`path=${Q}`);if(I.isString(X))H.push(`domain=${X}`);if(G===!0)H.push("secure");if(I.isString(W))H.push(`SameSite=${W}`);document.cookie=H.join("; ")},read(Z){if(typeof document>"u")return null;let J=document.cookie.match(new RegExp("(?:^|; )"+Z+"=([^;]*)"));return J?decodeURIComponent(J[1]):null},remove(Z){this.write(Z,"",Date.now()-86400000,"/")}}:{write(){},read(){return null},remove(){}};function NL(Z){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(Z)}function AL(Z,J){return J?Z.replace(/\/?\/$/,"")+"/"+J.replace(/^\/+/,""):Z}function EQ(Z,J,Y){let Q=!NL(J);if(Z&&(Q||Y==!1))return AL(Z,J);return J}var JQ=(Z)=>Z instanceof L1?{...Z}:Z;function Q0(Z,J){J=J||{};let Y={};function Q(U,B,L,V){if(I.isPlainObject(U)&&I.isPlainObject(B))return I.merge.call({caseless:V},U,B);else if(I.isPlainObject(B))return I.merge({},B);else if(I.isArray(B))return B.slice();return B}function X(U,B,L,V){if(!I.isUndefined(B))return Q(U,B,L,V);else if(!I.isUndefined(U))return Q(void 0,U,L,V)}function G(U,B){if(!I.isUndefined(B))return Q(void 0,B)}function W(U,B){if(!I.isUndefined(B))return Q(void 0,B);else if(!I.isUndefined(U))return Q(void 0,U)}function H(U,B,L){if(L in J)return Q(U,B);else if(L in Z)return Q(void 0,U)}let z={url:G,method:G,data:G,baseURL:W,transformRequest:W,transformResponse:W,paramsSerializer:W,timeout:W,timeoutMessage:W,withCredentials:W,withXSRFToken:W,adapter:W,responseType:W,xsrfCookieName:W,xsrfHeaderName:W,onUploadProgress:W,onDownloadProgress:W,decompress:W,maxContentLength:W,maxBodyLength:W,beforeRedirect:W,transport:W,httpAgent:W,httpsAgent:W,cancelToken:W,socketPath:W,responseEncoding:W,validateStatus:H,headers:(U,B,L)=>X(JQ(U),JQ(B),L,!0)};return I.forEach(Object.keys({...Z,...J}),function(B){let L=z[B]||X,V=L(Z[B],J[B],B);I.isUndefined(V)&&L!==H||(Y[B]=V)}),Y}var SQ=(Z)=>{let J=Q0({},Z),{data:Y,withXSRFToken:Q,xsrfHeaderName:X,xsrfCookieName:G,headers:W,auth:H}=J;if(J.headers=W=L1.from(W),J.url=DQ(EQ(J.baseURL,J.url,J.allowAbsoluteUrls),Z.params,Z.paramsSerializer),H)W.set("Authorization","Basic "+btoa((H.username||"")+":"+(H.password?unescape(encodeURIComponent(H.password)):"")));if(I.isFormData(Y)){if(i.hasStandardBrowserEnv||i.hasStandardBrowserWebWorkerEnv)W.setContentType(void 0);else if(I.isFunction(Y.getHeaders)){let z=Y.getHeaders(),U=["content-type","content-length"];Object.entries(z).forEach(([B,L])=>{if(U.includes(B.toLowerCase()))W.set(B,L)})}}if(i.hasStandardBrowserEnv){if(Q&&I.isFunction(Q)&&(Q=Q(J)),Q||Q!==!1&&qL(J.url)){let z=X&&G&&DL.read(G);if(z)W.set(X,z)}}return J},RL=typeof XMLHttpRequest<"u",PL=RL&&function(Z){return new Promise(function(Y,Q){let X=SQ(Z),G=X.data,W=L1.from(X.headers).normalize(),{responseType:H,onUploadProgress:z,onDownloadProgress:U}=X,B,L,V,M,K;function F(){M&&M(),K&&K(),X.cancelToken&&X.cancelToken.unsubscribe(B),X.signal&&X.signal.removeEventListener("abort",B)}let O=new XMLHttpRequest;O.open(X.method.toUpperCase(),X.url,!0),O.timeout=X.timeout;function D(){if(!O)return;let N=L1.from("getAllResponseHeaders"in O&&O.getAllResponseHeaders()),T={data:!H||H==="text"||H==="json"?O.responseText:O.response,status:O.status,statusText:O.statusText,headers:N,config:Z,request:O};wQ(function(m){Y(m),F()},function(m){Q(m),F()},T),O=null}if("onloadend"in O)O.onloadend=D;else O.onreadystatechange=function(){if(!O||O.readyState!==4)return;if(O.status===0&&!(O.responseURL&&O.responseURL.indexOf("file:")===0))return;setTimeout(D)};if(O.onabort=function(){if(!O)return;Q(new x("Request aborted",x.ECONNABORTED,Z,O)),O=null},O.onerror=function(q){let T=q&&q.message?q.message:"Network Error",C=new x(T,x.ERR_NETWORK,Z,O);C.event=q||null,Q(C),O=null},O.ontimeout=function(){let q=X.timeout?"timeout of "+X.timeout+"ms exceeded":"timeout exceeded",T=X.transitional||AQ;if(X.timeoutErrorMessage)q=X.timeoutErrorMessage;Q(new x(q,T.clarifyTimeoutError?x.ETIMEDOUT:x.ECONNABORTED,Z,O)),O=null},G===void 0&&W.setContentType(null),"setRequestHeader"in O)I.forEach(W.toJSON(),function(q,T){O.setRequestHeader(T,q)});if(!I.isUndefined(X.withCredentials))O.withCredentials=!!X.withCredentials;if(H&&H!=="json")O.responseType=X.responseType;if(U)[V,K]=Q6(U,!0),O.addEventListener("progress",V);if(z&&O.upload)[L,M]=Q6(z),O.upload.addEventListener("progress",L),O.upload.addEventListener("loadend",M);if(X.cancelToken||X.signal){if(B=(N)=>{if(!O)return;Q(!N||N.type?new t0(null,Z,O):N),O.abort(),O=null},X.cancelToken&&X.cancelToken.subscribe(B),X.signal)X.signal.aborted?B():X.signal.addEventListener("abort",B)}let P=OL(X.url);if(P&&i.protocols.indexOf(P)===-1){Q(new x("Unsupported protocol "+P+":",x.ERR_BAD_REQUEST,Z));return}O.send(G||null)})},TL=(Z,J)=>{let{length:Y}=Z=Z?Z.filter(Boolean):[];if(J||Y){let Q=new AbortController,X,G=function(U){if(!X){X=!0,H();let B=U instanceof Error?U:this.reason;Q.abort(B instanceof x?B:new t0(B instanceof Error?B.message:B))}},W=J&&setTimeout(()=>{W=null,G(new x(`timeout of ${J}ms exceeded`,x.ETIMEDOUT))},J),H=()=>{if(Z)W&&clearTimeout(W),W=null,Z.forEach((U)=>{U.unsubscribe?U.unsubscribe(G):U.removeEventListener("abort",G)}),Z=null};Z.forEach((U)=>U.addEventListener("abort",G));let{signal:z}=Q;return z.unsubscribe=()=>I.asap(H),z}},wL=TL,EL=function*(Z,J){let Y=Z.byteLength;if(!J||Y<J){yield Z;return}let Q=0,X;while(Q<Y)X=Q+J,yield Z.slice(Q,X),Q=X},SL=async function*(Z,J){for await(let Y of xL(Z))yield*EL(Y,J)},xL=async function*(Z){if(Z[Symbol.asyncIterator]){yield*Z;return}let J=Z.getReader();try{for(;;){let{done:Y,value:Q}=await J.read();if(Y)break;yield Q}}finally{await J.cancel()}},YQ=(Z,J,Y,Q)=>{let X=SL(Z,J),G=0,W,H=(z)=>{if(!W)W=!0,Q&&Q(z)};return new ReadableStream({async pull(z){try{let{done:U,value:B}=await X.next();if(U){H(),z.close();return}let L=B.byteLength;if(Y){let V=G+=L;Y(V)}z.enqueue(new Uint8Array(B))}catch(U){throw H(U),U}},cancel(z){return H(z),X.return()}},{highWaterMark:2})},QQ=65536,{isFunction:t5}=I,CL=(({Request:Z,Response:J})=>({Request:Z,Response:J}))(I.global),{ReadableStream:XQ,TextEncoder:GQ}=I.global,WQ=(Z,...J)=>{try{return!!Z(...J)}catch(Y){return!1}},fL=(Z)=>{Z=I.merge.call({skipUndefined:!0},CL,Z);let{fetch:J,Request:Y,Response:Q}=Z,X=J?t5(J):typeof fetch==="function",G=t5(Y),W=t5(Q);if(!X)return!1;let H=X&&t5(XQ),z=X&&(typeof GQ==="function"?((K)=>(F)=>K.encode(F))(new GQ):async(K)=>new Uint8Array(await new Y(K).arrayBuffer())),U=G&&H&&WQ(()=>{let K=!1,F=new Y(i.origin,{body:new XQ,method:"POST",get duplex(){return K=!0,"half"}}).headers.has("Content-Type");return K&&!F}),B=W&&H&&WQ(()=>I.isReadableStream(new Q("").body)),L={stream:B&&((K)=>K.body)};X&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((K)=>{!L[K]&&(L[K]=(F,O)=>{let D=F&&F[K];if(D)return D.call(F);throw new x(`Response type '${K}' is not supported`,x.ERR_NOT_SUPPORT,O)})})})();let V=async(K)=>{if(K==null)return 0;if(I.isBlob(K))return K.size;if(I.isSpecCompliantForm(K))return(await new Y(i.origin,{method:"POST",body:K}).arrayBuffer()).byteLength;if(I.isArrayBufferView(K)||I.isArrayBuffer(K))return K.byteLength;if(I.isURLSearchParams(K))K=K+"";if(I.isString(K))return(await z(K)).byteLength},M=async(K,F)=>{let O=I.toFiniteNumber(K.getContentLength());return O==null?V(F):O};return async(K)=>{let{url:F,method:O,data:D,signal:P,cancelToken:N,timeout:q,onDownloadProgress:T,onUploadProgress:C,responseType:m,headers:i1,withCredentials:x1="same-origin",fetchOptions:C1}=SQ(K),v=J||fetch;m=m?(m+"").toLowerCase():"text";let N1=wL([P,N&&N.toAbortSignal()],q),c=null,A1=N1&&N1.unsubscribe&&(()=>{N1.unsubscribe()}),$;try{if(C&&U&&O!=="get"&&O!=="head"&&($=await M(i1,D))!==0){let j1=new Y(F,{method:"POST",body:D,duplex:"half"}),W0;if(I.isFormData(D)&&(W0=j1.headers.get("content-type")))i1.setContentType(W0);if(j1.body){let[P6,U5]=eY($,Q6(ZQ(C)));D=YQ(j1.body,QQ,P6,U5)}}if(!I.isString(x1))x1=x1?"include":"omit";let X1=G&&"credentials"in Y.prototype,g={...C1,signal:N1,method:O.toUpperCase(),headers:i1.normalize().toJSON(),body:D,duplex:"half",credentials:X1?x1:void 0};c=G&&new Y(F,g);let B1=await(G?v(c,C1):v(F,g)),f1=B&&(m==="stream"||m==="response");if(B&&(T||f1&&A1)){let j1={};["status","statusText","headers"].forEach((Q7)=>{j1[Q7]=B1[Q7]});let W0=I.toFiniteNumber(B1.headers.get("content-length")),[P6,U5]=T&&eY(W0,Q6(ZQ(T),!0))||[];B1=new Q(YQ(B1.body,QQ,P6,()=>{U5&&U5(),A1&&A1()}),j1)}m=m||"text";let R1=await L[I.findKey(L,m)||"text"](B1,K);return!f1&&A1&&A1(),await new Promise((j1,W0)=>{wQ(j1,W0,{data:R1,headers:L1.from(B1.headers),status:B1.status,statusText:B1.statusText,config:K,request:c})})}catch(X1){if(A1&&A1(),X1&&X1.name==="TypeError"&&/Load failed|fetch/i.test(X1.message))throw Object.assign(new x("Network Error",x.ERR_NETWORK,K,c),{cause:X1.cause||X1});throw x.from(X1,X1&&X1.code,K,c)}}},jL=new Map,xQ=(Z)=>{let J=Z&&Z.env||{},{fetch:Y,Request:Q,Response:X}=J,G=[Q,X,Y],W=G.length,H=W,z,U,B=jL;while(H--)z=G[H],U=B.get(z),U===void 0&&B.set(z,U=H?new Map:fL(J)),B=U;return U};xQ();var N9={http:oK,xhr:PL,fetch:{get:xQ}};I.forEach(N9,(Z,J)=>{if(Z){try{Object.defineProperty(Z,"name",{value:J})}catch(Y){}Object.defineProperty(Z,"adapterName",{value:J})}});var HQ=(Z)=>`- ${Z}`,_L=(Z)=>I.isFunction(Z)||Z===null||Z===!1;function vL(Z,J){Z=I.isArray(Z)?Z:[Z];let{length:Y}=Z,Q,X,G={};for(let W=0;W<Y;W++){Q=Z[W];let H;if(X=Q,!_L(Q)){if(X=N9[(H=String(Q)).toLowerCase()],X===void 0)throw new x(`Unknown adapter '${H}'`)}if(X&&(I.isFunction(X)||(X=X.get(J))))break;G[H||"#"+W]=X}if(!X){let W=Object.entries(G).map(([z,U])=>`adapter ${z} `+(U===!1?"is not supported by the environment":"is not available in the build")),H=Y?W.length>1?`since :
|
|
12
|
-
`+W.map(
|
|
13
|
-
`):" "+
|
|
14
|
-
`+X}catch(G){}}throw Y}}_request(Z,J){if(typeof Z==="string")J=J||{},J.url=Z;else J=Z||{};J=Q0(this.defaults,J);let{transitional:Y,paramsSerializer:Q,headers:X}=J;if(Y!==void 0)J6.assertOptions(Y,{silentJSONParsing:I1.transitional(I1.boolean),forcedJSONParsing:I1.transitional(I1.boolean),clarifyTimeoutError:I1.transitional(I1.boolean)},!1);if(Q!=null)if(I.isFunction(Q))J.paramsSerializer={serialize:Q};else J6.assertOptions(Q,{encode:I1.function,serialize:I1.function},!0);if(J.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)J.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else J.allowAbsoluteUrls=!0;J6.assertOptions(J,{baseUrl:I1.spelling("baseURL"),withXsrfToken:I1.spelling("withXSRFToken")},!0),J.method=(J.method||this.defaults.method||"get").toLowerCase();let G=X&&I.merge(X.common,X[J.method]);X&&I.forEach(["delete","get","head","post","put","patch","common"],(M)=>{delete X[M]}),J.headers=L1.concat(G,X);let W=[],H=!0;this.interceptors.request.forEach(function(K){if(typeof K.runWhen==="function"&&K.runWhen(J)===!1)return;H=H&&K.synchronous,W.unshift(K.fulfilled,K.rejected)});let z=[];this.interceptors.response.forEach(function(K){z.push(K.fulfilled,K.rejected)});let U,B=0,L;if(!H){let M=[zQ.bind(this),void 0];M.unshift(...W),M.push(...z),L=M.length,U=Promise.resolve(J);while(B<L)U=U.then(M[B++],M[B++]);return U}L=W.length;let V=J;while(B<L){let M=W[B++],K=W[B++];try{V=M(V)}catch(F){K.call(this,F);break}}try{U=zQ.call(this,V)}catch(M){return Promise.reject(M)}B=0,L=z.length;while(B<L)U=U.then(z[B++],z[B++]);return U}getUri(Z){Z=Q0(this.defaults,Z);let J=EQ(Z.baseURL,Z.url,Z.allowAbsoluteUrls);return DQ(J,Z.params,Z.paramsSerializer)}}I.forEach(["delete","get","head","options"],function(J){n0.prototype[J]=function(Y,Q){return this.request(Q0(Q||{},{method:J,url:Y,data:(Q||{}).data}))}});I.forEach(["post","put","patch"],function(J){function Y(Q){return function(G,W,H){return this.request(Q0(H||{},{method:J,headers:Q?{"Content-Type":"multipart/form-data"}:{},url:G,data:W}))}}n0.prototype[J]=Y(),n0.prototype[J+"Form"]=Y(!0)});var Y6=n0;class A9{constructor(Z){if(typeof Z!=="function")throw TypeError("executor must be a function.");let J;this.promise=new Promise(function(X){J=X});let Y=this;this.promise.then((Q)=>{if(!Y._listeners)return;let X=Y._listeners.length;while(X-- >0)Y._listeners[X](Q);Y._listeners=null}),this.promise.then=(Q)=>{let X,G=new Promise((W)=>{Y.subscribe(W),X=W}).then(Q);return G.cancel=function(){Y.unsubscribe(X)},G},Z(function(X,G,W){if(Y.reason)return;Y.reason=new t0(X,G,W),J(Y.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(Z){if(this.reason){Z(this.reason);return}if(this._listeners)this._listeners.push(Z);else this._listeners=[Z]}unsubscribe(Z){if(!this._listeners)return;let J=this._listeners.indexOf(Z);if(J!==-1)this._listeners.splice(J,1)}toAbortSignal(){let Z=new AbortController,J=(Y)=>{Z.abort(Y)};return this.subscribe(J),Z.signal.unsubscribe=()=>this.unsubscribe(J),Z.signal}static source(){let Z;return{token:new A9(function(Q){Z=Q}),cancel:Z}}}var hL=A9;function bL(Z){return function(Y){return Z.apply(null,Y)}}function gL(Z){return I.isObject(Z)&&Z.isAxiosError===!0}var $9={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries($9).forEach(([Z,J])=>{$9[J]=Z});var yL=$9;function jQ(Z){let J=new Y6(Z),Y=BQ(Y6.prototype.request,J);return I.extend(Y,Y6.prototype,J,{allOwnKeys:!0}),I.extend(Y,J,null,{allOwnKeys:!0}),Y.create=function(X){return jQ(Q0(Z,X))},Y}var b=jQ(D9);b.Axios=Y6;b.CanceledError=t0;b.CancelToken=hL;b.isCancel=PQ;b.VERSION=fQ;b.toFormData=H6;b.AxiosError=x;b.Cancel=b.CanceledError;b.all=function(J){return Promise.all(J)};b.spread=bL;b.isAxiosError=gL;b.mergeConfig=Q0;b.AxiosHeaders=L1;b.formToJSON=(Z)=>RQ(I.isHTMLForm(Z)?new FormData(Z):Z);b.getAdapter=CQ.getAdapter;b.HttpStatusCode=yL;b.default=b;_Q.exports=b});var P9=A((hQ)=>{Object.defineProperty(hQ,"__esModule",{value:!0});hQ.addAxiosDateTransformer=hQ.createAxiosDateTransformer=void 0;var mL=(nY(),CX(iY)),uL=mL.__importDefault(vQ()),dL=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(?:\.\d*)?(?:[-+]\d{2}:?\d{2}|Z)?)?$/,cL=(Z)=>{return dL.test(Z)},pL=(Z,J)=>{return!J||J.length===0||J.includes(Z)},lL=(Z,J,Y)=>{return typeof J==="string"&&cL(J)&&pL(Z,Y)},kQ=(Z,J)=>{if(typeof Z==="object"){for(let Y in Z)if(lL(Y,Z[Y],J))Z[Y]=new Date(Z[Y]);else if(typeof Z[Y]==="object")Z[Y]=kQ(Z[Y],J)}return Z},iL=(Z,J)=>{if(Z.data)Z.data=kQ(Z.data,J);return Z},nL=(Z={})=>{return hQ.addAxiosDateTransformer(uL.default.create(Z),Z)};hQ.createAxiosDateTransformer=nL;var oL=(Z,J)=>{let Y=J===null||J===void 0?void 0:J.allowlist;return Z.interceptors.response.use((Q)=>iL(Q,Y)),Z};hQ.addAxiosDateTransformer=oL});var x9=A((lQ)=>{Object.defineProperty(lQ,"__esModule",{value:!0});lQ.Doctype=lQ.CDATA=lQ.Tag=lQ.Style=lQ.Script=lQ.Comment=lQ.Directive=lQ.Text=lQ.Root=lQ.isTag=lQ.ElementType=void 0;var Q1;(function(Z){Z.Root="root",Z.Text="text",Z.Directive="directive",Z.Comment="comment",Z.Script="script",Z.Style="style",Z.Tag="tag",Z.CDATA="cdata",Z.Doctype="doctype"})(Q1=lQ.ElementType||(lQ.ElementType={}));function XM(Z){return Z.type===Q1.Tag||Z.type===Q1.Script||Z.type===Q1.Style}lQ.isTag=XM;lQ.Root=Q1.Root;lQ.Text=Q1.Text;lQ.Directive=Q1.Directive;lQ.Comment=Q1.Comment;lQ.Script=Q1.Script;lQ.Style=Q1.Style;lQ.Tag=Q1.Tag;lQ.CDATA=Q1.CDATA;lQ.Doctype=Q1.Doctype});var _9=A((E)=>{var p1=E&&E.__extends||function(){var Z=function(J,Y){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,X){Q.__proto__=X}||function(Q,X){for(var G in X)if(Object.prototype.hasOwnProperty.call(X,G))Q[G]=X[G]},Z(J,Y)};return function(J,Y){if(typeof Y!=="function"&&Y!==null)throw TypeError("Class extends value "+String(Y)+" is not a constructor or null");Z(J,Y);function Q(){this.constructor=J}J.prototype=Y===null?Object.create(Y):(Q.prototype=Y.prototype,new Q)}}(),e0=E&&E.__assign||function(){return e0=Object.assign||function(Z){for(var J,Y=1,Q=arguments.length;Y<Q;Y++){J=arguments[Y];for(var X in J)if(Object.prototype.hasOwnProperty.call(J,X))Z[X]=J[X]}return Z},e0.apply(this,arguments)};Object.defineProperty(E,"__esModule",{value:!0});E.cloneNode=E.hasChildren=E.isDocument=E.isDirective=E.isComment=E.isText=E.isCDATA=E.isTag=E.Element=E.Document=E.CDATA=E.NodeWithChildren=E.ProcessingInstruction=E.Comment=E.Text=E.DataNode=E.Node=void 0;var e=x9(),f9=function(){function Z(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(Z.prototype,"parentNode",{get:function(){return this.parent},set:function(J){this.parent=J},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"previousSibling",{get:function(){return this.prev},set:function(J){this.prev=J},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"nextSibling",{get:function(){return this.next},set:function(J){this.next=J},enumerable:!1,configurable:!0}),Z.prototype.cloneNode=function(J){if(J===void 0)J=!1;return j9(this,J)},Z}();E.Node=f9;var K6=function(Z){p1(J,Z);function J(Y){var Q=Z.call(this)||this;return Q.data=Y,Q}return Object.defineProperty(J.prototype,"nodeValue",{get:function(){return this.data},set:function(Y){this.data=Y},enumerable:!1,configurable:!0}),J}(f9);E.DataNode=K6;var nQ=function(Z){p1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=e.ElementType.Text,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),J}(K6);E.Text=nQ;var oQ=function(Z){p1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=e.ElementType.Comment,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),J}(K6);E.Comment=oQ;var aQ=function(Z){p1(J,Z);function J(Y,Q){var X=Z.call(this,Q)||this;return X.name=Y,X.type=e.ElementType.Directive,X}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),J}(K6);E.ProcessingInstruction=aQ;var L6=function(Z){p1(J,Z);function J(Y){var Q=Z.call(this)||this;return Q.children=Y,Q}return Object.defineProperty(J.prototype,"firstChild",{get:function(){var Y;return(Y=this.children[0])!==null&&Y!==void 0?Y:null},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"childNodes",{get:function(){return this.children},set:function(Y){this.children=Y},enumerable:!1,configurable:!0}),J}(f9);E.NodeWithChildren=L6;var sQ=function(Z){p1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=e.ElementType.CDATA,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),J}(L6);E.CDATA=sQ;var rQ=function(Z){p1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=e.ElementType.Root,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),J}(L6);E.Document=rQ;var tQ=function(Z){p1(J,Z);function J(Y,Q,X,G){if(X===void 0)X=[];if(G===void 0)G=Y==="script"?e.ElementType.Script:Y==="style"?e.ElementType.Style:e.ElementType.Tag;var W=Z.call(this,X)||this;return W.name=Y,W.attribs=Q,W.type=G,W}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"tagName",{get:function(){return this.name},set:function(Y){this.name=Y},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"attributes",{get:function(){var Y=this;return Object.keys(this.attribs).map(function(Q){var X,G;return{name:Q,value:Y.attribs[Q],namespace:(X=Y["x-attribsNamespace"])===null||X===void 0?void 0:X[Q],prefix:(G=Y["x-attribsPrefix"])===null||G===void 0?void 0:G[Q]}})},enumerable:!1,configurable:!0}),J}(L6);E.Element=tQ;function eQ(Z){return(0,e.isTag)(Z)}E.isTag=eQ;function Z3(Z){return Z.type===e.ElementType.CDATA}E.isCDATA=Z3;function J3(Z){return Z.type===e.ElementType.Text}E.isText=J3;function Y3(Z){return Z.type===e.ElementType.Comment}E.isComment=Y3;function Q3(Z){return Z.type===e.ElementType.Directive}E.isDirective=Q3;function X3(Z){return Z.type===e.ElementType.Root}E.isDocument=X3;function FM(Z){return Object.prototype.hasOwnProperty.call(Z,"children")}E.hasChildren=FM;function j9(Z,J){if(J===void 0)J=!1;var Y;if(J3(Z))Y=new nQ(Z.data);else if(Y3(Z))Y=new oQ(Z.data);else if(eQ(Z)){var Q=J?C9(Z.children):[],X=new tQ(Z.name,e0({},Z.attribs),Q);if(Q.forEach(function(z){return z.parent=X}),Z.namespace!=null)X.namespace=Z.namespace;if(Z["x-attribsNamespace"])X["x-attribsNamespace"]=e0({},Z["x-attribsNamespace"]);if(Z["x-attribsPrefix"])X["x-attribsPrefix"]=e0({},Z["x-attribsPrefix"]);Y=X}else if(Z3(Z)){var Q=J?C9(Z.children):[],G=new sQ(Q);Q.forEach(function(U){return U.parent=G}),Y=G}else if(X3(Z)){var Q=J?C9(Z.children):[],W=new rQ(Q);if(Q.forEach(function(U){return U.parent=W}),Z["x-mode"])W["x-mode"]=Z["x-mode"];Y=W}else if(Q3(Z)){var H=new aQ(Z.name,Z.data);if(Z["x-name"]!=null)H["x-name"]=Z["x-name"],H["x-publicId"]=Z["x-publicId"],H["x-systemId"]=Z["x-systemId"];Y=H}else throw Error("Not implemented yet: ".concat(Z.type));if(Y.startIndex=Z.startIndex,Y.endIndex=Z.endIndex,Z.sourceCodeLocation!=null)Y.sourceCodeLocation=Z.sourceCodeLocation;return Y}E.cloneNode=j9;function C9(Z){var J=Z.map(function(Q){return j9(Q,!0)});for(var Y=1;Y<J.length;Y++)J[Y].prev=J[Y-1],J[Y-1].next=J[Y];return J}});var k9=A((q1)=>{var $M=q1&&q1.__createBinding||(Object.create?function(Z,J,Y,Q){if(Q===void 0)Q=Y;var X=Object.getOwnPropertyDescriptor(J,Y);if(!X||("get"in X?!J.__esModule:X.writable||X.configurable))X={enumerable:!0,get:function(){return J[Y]}};Object.defineProperty(Z,Q,X)}:function(Z,J,Y,Q){if(Q===void 0)Q=Y;Z[Q]=J[Y]}),OM=q1&&q1.__exportStar||function(Z,J){for(var Y in Z)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(J,Y))$M(J,Z,Y)};Object.defineProperty(q1,"__esModule",{value:!0});q1.DomHandler=void 0;var v9=x9(),l1=_9();OM(_9(),q1);var G3={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},W3=function(){function Z(J,Y,Q){if(this.dom=[],this.root=new l1.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof Y==="function")Q=Y,Y=G3;if(typeof J==="object")Y=J,J=void 0;this.callback=J!==null&&J!==void 0?J:null,this.options=Y!==null&&Y!==void 0?Y:G3,this.elementCB=Q!==null&&Q!==void 0?Q:null}return Z.prototype.onparserinit=function(J){this.parser=J},Z.prototype.onreset=function(){this.dom=[],this.root=new l1.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},Z.prototype.onend=function(){if(this.done)return;this.done=!0,this.parser=null,this.handleCallback(null)},Z.prototype.onerror=function(J){this.handleCallback(J)},Z.prototype.onclosetag=function(){this.lastNode=null;var J=this.tagStack.pop();if(this.options.withEndIndices)J.endIndex=this.parser.endIndex;if(this.elementCB)this.elementCB(J)},Z.prototype.onopentag=function(J,Y){var Q=this.options.xmlMode?v9.ElementType.Tag:void 0,X=new l1.Element(J,Y,void 0,Q);this.addNode(X),this.tagStack.push(X)},Z.prototype.ontext=function(J){var Y=this.lastNode;if(Y&&Y.type===v9.ElementType.Text){if(Y.data+=J,this.options.withEndIndices)Y.endIndex=this.parser.endIndex}else{var Q=new l1.Text(J);this.addNode(Q),this.lastNode=Q}},Z.prototype.oncomment=function(J){if(this.lastNode&&this.lastNode.type===v9.ElementType.Comment){this.lastNode.data+=J;return}var Y=new l1.Comment(J);this.addNode(Y),this.lastNode=Y},Z.prototype.oncommentend=function(){this.lastNode=null},Z.prototype.oncdatastart=function(){var J=new l1.Text(""),Y=new l1.CDATA([J]);this.addNode(Y),J.parent=Y,this.lastNode=J},Z.prototype.oncdataend=function(){this.lastNode=null},Z.prototype.onprocessinginstruction=function(J,Y){var Q=new l1.ProcessingInstruction(J,Y);this.addNode(Q)},Z.prototype.handleCallback=function(J){if(typeof this.callback==="function")this.callback(J,this.dom);else if(J)throw J},Z.prototype.addNode=function(J){var Y=this.tagStack[this.tagStack.length-1],Q=Y.children[Y.children.length-1];if(this.options.withStartIndices)J.startIndex=this.parser.startIndex;if(this.options.withEndIndices)J.endIndex=this.parser.endIndex;if(Y.children.push(J),Q)J.prev=Q,Q.next=J;J.parent=Y,this.lastNode=null},Z}();q1.DomHandler=W3;q1.default=W3});var L3=A((H3)=>{Object.defineProperty(H3,"__esModule",{value:!0});H3.CARRIAGE_RETURN_PLACEHOLDER_REGEX=H3.CARRIAGE_RETURN_PLACEHOLDER=H3.CARRIAGE_RETURN_REGEX=H3.CARRIAGE_RETURN=H3.CASE_SENSITIVE_TAG_NAMES_MAP=H3.CASE_SENSITIVE_TAG_NAMES=void 0;H3.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];H3.CASE_SENSITIVE_TAG_NAMES_MAP=H3.CASE_SENSITIVE_TAG_NAMES.reduce(function(Z,J){return Z[J.toLowerCase()]=J,Z},{});H3.CARRIAGE_RETURN="\r";H3.CARRIAGE_RETURN_REGEX=new RegExp(H3.CARRIAGE_RETURN,"g");H3.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__");H3.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(H3.CARRIAGE_RETURN_PLACEHOLDER,"g")});var h9=A((O3)=>{Object.defineProperty(O3,"__esModule",{value:!0});O3.formatAttributes=M3;O3.escapeSpecialCharacters=NM;O3.revertEscapedCharacters=F3;O3.formatDOM=$3;var M6=k9(),Z5=L3();function qM(Z){return Z5.CASE_SENSITIVE_TAG_NAMES_MAP[Z]}function M3(Z){var J={},Y=0,Q=Z.length;for(;Y<Q;Y++){var X=Z[Y];J[X.name]=X.value}return J}function DM(Z){Z=Z.toLowerCase();var J=qM(Z);if(J)return J;return Z}function NM(Z){return Z.replace(Z5.CARRIAGE_RETURN_REGEX,Z5.CARRIAGE_RETURN_PLACEHOLDER)}function F3(Z){return Z.replace(Z5.CARRIAGE_RETURN_PLACEHOLDER_REGEX,Z5.CARRIAGE_RETURN)}function $3(Z,J,Y){var Q,X,G,W;if(J===void 0)J=null;var H=[],z,U=0,B=Z.length;for(;U<B;U++){var L=Z[U];switch(L.nodeType){case 1:{var V=DM(L.nodeName);z=new M6.Element(V,M3(L.attributes)),z.children=$3(V==="template"?L.content.childNodes:L.childNodes,z);break}case 3:z=new M6.Text(F3((Q=L.nodeValue)!==null&&Q!==void 0?Q:""));break;case 8:z=new M6.Comment((X=L.nodeValue)!==null&&X!==void 0?X:"");break;default:continue}var M=(G=H[U-1])!==null&&G!==void 0?G:null;if(M)M.next=z;z.parent=J,z.prev=M,z.next=null,H.push(z)}if(Y){if(z=new M6.ProcessingInstruction(Y.substring(0,Y.indexOf(" ")).toLowerCase(),Y),z.next=(W=H[0])!==null&&W!==void 0?W:null,z.parent=J,H.unshift(z),H[1])H[1].prev=H[0]}return H}});var P3=A((R3)=>{Object.defineProperty(R3,"__esModule",{value:!0});R3.default=SM;var wM=h9(),V3="html",I3="head",F6="body",EM=/<([a-zA-Z]+[0-9]?)/,q3=/<head[^]*>/i,D3=/<body[^]*>/i,O6=function(Z,J){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},b9=function(Z,J){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},N3=typeof window==="object"&&window.DOMParser;if(typeof N3==="function")g9=new N3,y9="text/html",b9=function(Z,J){if(J)Z="<".concat(J,">").concat(Z,"</").concat(J,">");return g9.parseFromString(Z,y9)},O6=b9;var g9,y9;if(typeof document==="object"&&document.implementation)N0=document.implementation.createHTMLDocument(),O6=function(Z,J){if(J){var Y=N0.documentElement.querySelector(J);if(Y)Y.innerHTML=Z;return N0}return N0.documentElement.innerHTML=Z,N0};var N0,$6=typeof document==="object"&&document.createElement("template"),m9;if($6&&$6.content)m9=function(Z){return $6.innerHTML=Z,$6.content.childNodes};var A3=function(){return document.createDocumentFragment().childNodes};function SM(Z){var J,Y,Q,X,G,W;Z=(0,wM.escapeSpecialCharacters)(Z);var H=EM.exec(Z),z=(J=H===null||H===void 0?void 0:H[1])===null||J===void 0?void 0:J.toLowerCase();switch(z){case V3:{var U=b9(Z);if(!q3.test(Z)){var B=U.querySelector(I3);(Y=B===null||B===void 0?void 0:B.parentNode)===null||Y===void 0||Y.removeChild(B)}if(!D3.test(Z)){var B=U.querySelector(F6);(Q=B===null||B===void 0?void 0:B.parentNode)===null||Q===void 0||Q.removeChild(B)}return U.querySelectorAll(V3)}case I3:case F6:{var L=O6(Z).querySelectorAll(z);if(D3.test(Z)&&q3.test(Z))return(G=(X=L[0].parentNode)===null||X===void 0?void 0:X.childNodes)!==null&&G!==void 0?G:A3();return L}default:{if(m9)return m9(Z);var B=O6(Z,F6).querySelector(F6);return(W=B===null||B===void 0?void 0:B.childNodes)!==null&&W!==void 0?W:A3()}}}});var T3=A((J5)=>{var CM=J5&&J5.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(J5,"__esModule",{value:!0});J5.default=vM;var fM=CM(P3()),jM=h9(),_M=/<(![a-zA-Z\s]+)>/;function vM(Z){if(typeof Z!=="string")throw TypeError("First argument must be a string");if(!Z)return[];var J=_M.exec(Z),Y=J?J[1]:void 0;return(0,jM.formatDOM)((0,fM.default)(Z),null,Y)}});var w3=A((bM)=>{var kM=0;bM.SAME=kM;var hM=1;bM.CAMELCASE=hM;bM.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}});var S3=A((sM)=>{function uM(Z){return d.hasOwnProperty(Z)?d[Z]:null}function s(Z,J,Y,Q,X,G,W){this.acceptsBooleans=J===2||J===3||J===4,this.attributeName=Q,this.attributeNamespace=X,this.mustUseProperty=Y,this.propertyName=Z,this.type=J,this.sanitizeURL=G,this.removeEmptyString=W}var d={},dM=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];dM.forEach((Z)=>{d[Z]=new s(Z,0,!1,Z,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([Z,J])=>{d[Z]=new s(Z,1,!1,J,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach((Z)=>{d[Z]=new s(Z,2,!1,Z.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((Z)=>{d[Z]=new s(Z,2,!1,Z,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"].forEach((Z)=>{d[Z]=new s(Z,3,!1,Z.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach((Z)=>{d[Z]=new s(Z,3,!0,Z,null,!1,!1)});["capture","download"].forEach((Z)=>{d[Z]=new s(Z,4,!1,Z,null,!1,!1)});["cols","rows","size","span"].forEach((Z)=>{d[Z]=new s(Z,6,!1,Z,null,!1,!1)});["rowSpan","start"].forEach((Z)=>{d[Z]=new s(Z,5,!1,Z.toLowerCase(),null,!1,!1)});var u9=/[\-\:]([a-z])/g,d9=(Z)=>Z[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"].forEach((Z)=>{let J=Z.replace(u9,d9);d[J]=new s(J,1,!1,Z,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((Z)=>{let J=Z.replace(u9,d9);d[J]=new s(J,1,!1,Z,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach((Z)=>{let J=Z.replace(u9,d9);d[J]=new s(J,1,!1,Z,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach((Z)=>{d[Z]=new s(Z,1,!1,Z.toLowerCase(),null,!1,!1)});var cM="xlinkHref";d[cM]=new s("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach((Z)=>{d[Z]=new s(Z,1,!1,Z.toLowerCase(),null,!0,!0)});var{CAMELCASE:pM,SAME:lM,possibleStandardNames:E3}=w3(),iM=":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",nM=iM+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",oM=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+nM+"]*$")),aM=Object.keys(E3).reduce((Z,J)=>{let Y=E3[J];if(Y===lM)Z[J]=J;else if(Y===pM)Z[J.toLowerCase()]=J;else Z[J]=Y;return Z},{});sM.BOOLEAN=3;sM.BOOLEANISH_STRING=2;sM.NUMERIC=5;sM.OVERLOADED_BOOLEAN=4;sM.POSITIVE_NUMERIC=6;sM.RESERVED=0;sM.STRING=1;sM.getPropertyInfo=uM;sM.isCustomAttribute=oM;sM.possibleStandardNames=aM});var v3=A((DD,_3)=>{var x3=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,H2=/\n/g,z2=/^\s*/,U2=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,B2=/^:\s*/,K2=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,L2=/^[;\s]*/,M2=/^\s+|\s+$/g,F2=`
|
|
15
|
-
`,C3="/",f3="*",X0="",$2="comment",O2="declaration";function V2(Z,J){if(typeof Z!=="string")throw TypeError("First argument must be a string");if(!Z)return[];J=J||{};var Y=1,Q=1;function X(K){var F=K.match(H2);if(F)Y+=F.length;var O=K.lastIndexOf(F2);Q=~O?K.length-O:Q+K.length}function G(){var K={line:Y,column:Q};return function(F){return F.position=new W(K),U(),F}}function W(K){this.start=K,this.end={line:Y,column:Q},this.source=J.source}W.prototype.content=Z;function H(K){var F=Error(J.source+":"+Y+":"+Q+": "+K);if(F.reason=K,F.filename=J.source,F.line=Y,F.column=Q,F.source=Z,J.silent);else throw F}function z(K){var F=K.exec(Z);if(!F)return;var O=F[0];return X(O),Z=Z.slice(O.length),F}function U(){z(z2)}function B(K){var F;K=K||[];while(F=L())if(F!==!1)K.push(F);return K}function L(){var K=G();if(C3!=Z.charAt(0)||f3!=Z.charAt(1))return;var F=2;while(X0!=Z.charAt(F)&&(f3!=Z.charAt(F)||C3!=Z.charAt(F+1)))++F;if(F+=2,X0===Z.charAt(F-1))return H("End of comment missing");var O=Z.slice(2,F-2);return Q+=2,X(O),Z=Z.slice(F),Q+=2,K({type:$2,comment:O})}function V(){var K=G(),F=z(U2);if(!F)return;if(L(),!z(B2))return H("property missing ':'");var O=z(K2),D=K({type:O2,property:j3(F[0].replace(x3,X0)),value:O?j3(O[0].replace(x3,X0)):X0});return z(L2),D}function M(){var K=[];B(K);var F;while(F=V())if(F!==!1)K.push(F),B(K);return K}return U(),M()}function j3(Z){return Z?Z.replace(M2,X0):X0}_3.exports=V2});var k3=A((Y5)=>{var I2=Y5&&Y5.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(Y5,"__esModule",{value:!0});Y5.default=D2;var q2=I2(v3());function D2(Z,J){let Y=null;if(!Z||typeof Z!=="string")return Y;let Q=(0,q2.default)(Z),X=typeof J==="function";return Q.forEach((G)=>{if(G.type!=="declaration")return;let{property:W,value:H}=G;if(X)J(W,H,G);else if(H)Y=Y||{},Y[W]=H}),Y}});var y3=A((b3)=>{Object.defineProperty(b3,"__esModule",{value:!0});b3.camelCase=void 0;var N2=/^--[a-zA-Z0-9_-]+$/,A2=/-([a-z])/g,R2=/^[^-]+$/,P2=/^-(webkit|moz|ms|o|khtml)-/,T2=/^-(ms)-/,w2=function(Z){return!Z||R2.test(Z)||N2.test(Z)},E2=function(Z,J){return J.toUpperCase()},h3=function(Z,J){return"".concat(J,"-")},S2=function(Z,J){if(J===void 0)J={};if(w2(Z))return Z;if(Z=Z.toLowerCase(),J.reactCompat)Z=Z.replace(T2,h3);else Z=Z.replace(P2,h3);return Z.replace(A2,E2)};b3.camelCase=S2});var u3=A((p9,m3)=>{var x2=p9&&p9.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}},C2=x2(k3()),f2=y3();function c9(Z,J){var Y={};if(!Z||typeof Z!=="string")return Y;return(0,C2.default)(Z,function(Q,X){if(Q&&X)Y[(0,f2.camelCase)(Q,J)]=X}),Y}c9.default=c9;m3.exports=c9});import*as d3 from"react";var l9=A((r)=>{var j2=r&&r.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(r,"__esModule",{value:!0});r.returnFirstArg=r.canTextBeChildOfNode=r.ELEMENTS_WITH_NO_TEXT_CHILDREN=r.PRESERVE_CUSTOM_ATTRIBUTES=void 0;r.isCustomComponent=k2;r.setStyleProp=b2;var _2=j2(u3()),v2=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function k2(Z,J){if(!Z.includes("-"))return Boolean(J&&typeof J.is==="string");if(v2.has(Z))return!1;return!0}var h2={reactCompat:!0};function b2(Z,J){if(typeof Z!=="string")return;if(!Z.trim()){J.style={};return}try{J.style=(0,_2.default)(Z,h2)}catch(Y){J.style={}}}r.PRESERVE_CUSTOM_ATTRIBUTES=Number(d3.version.split(".")[0])>=16;r.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var g2=function(Z){return!r.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(Z.name)};r.canTextBeChildOfNode=g2;var y2=function(Z){return Z};r.returnFirstArg=y2});var i9=A((l3)=>{Object.defineProperty(l3,"__esModule",{value:!0});l3.default=c2;var Q5=S3(),c3=l9(),m2=["checked","value"],u2=["input","select","textarea"],d2={reset:!0,submit:!0};function c2(Z,J){if(Z===void 0)Z={};var Y={},Q=Boolean(Z.type&&d2[Z.type]);for(var X in Z){var G=Z[X];if((0,Q5.isCustomAttribute)(X)){Y[X]=G;continue}var W=X.toLowerCase(),H=p3(W);if(H){var z=(0,Q5.getPropertyInfo)(H);if(m2.includes(H)&&u2.includes(J)&&!Q)H=p3("default"+W);switch(Y[H]=G,z===null||z===void 0?void 0:z.type){case Q5.BOOLEAN:Y[H]=!0;break;case Q5.OVERLOADED_BOOLEAN:if(G==="")Y[H]=!0;break}continue}if(c3.PRESERVE_CUSTOM_ATTRIBUTES)Y[X]=G}return(0,c3.setStyleProp)(Z.style,Y),Y}function p3(Z){return Q5.possibleStandardNames[Z]}});import*as A0 from"react";var n3=A((G5)=>{var l2=G5&&G5.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(G5,"__esModule",{value:!0});G5.default=i3;var i2=l2(i9()),X5=l9(),n2={cloneElement:A0.cloneElement,createElement:A0.createElement,isValidElement:A0.isValidElement};function i3(Z,J){var Y,Q,X,G,W;if(J===void 0)J={};var H=[],z=typeof J.replace==="function",U=(Y=J.transform)!==null&&Y!==void 0?Y:X5.returnFirstArg,B=(Q=J.library)!==null&&Q!==void 0?Q:n2,L=B.cloneElement,V=B.createElement,M=B.isValidElement,K=Z.length;for(var F=0;F<K;F++){var O=Z[F];if(z){var D=(X=J.replace)===null||X===void 0?void 0:X.call(J,O,F);if(M(D)){if(K>1)D=L(D,{key:(G=D.key)!==null&&G!==void 0?G:F});H.push(U(D,O,F));continue}}if(O.type==="text"){var P=!O.data.trim().length;if(P&&O.parent&&!(0,X5.canTextBeChildOfNode)(O.parent))continue;if(J.trim&&P)continue;H.push(U(O.data,O,F));continue}var N=O,q={};if(o2(N))(0,X5.setStyleProp)(N.attribs.style,N.attribs),q=N.attribs;else if(N.attribs)q=(0,i2.default)(N.attribs,N.name);var T=void 0;switch(O.type){case"script":case"style":if(O.children[0])q.dangerouslySetInnerHTML={__html:O.children[0].data};break;case"tag":if(O.name==="textarea"&&O.children[0])q.defaultValue=O.children[0].data;else if((W=O.children)===null||W===void 0?void 0:W.length)T=i3(O.children,J);break;default:continue}if(K>1)q.key=F;H.push(U(V(O.name,q,T),O,F))}return H.length===1?H[0]:H}function o2(Z){return X5.PRESERVE_CUSTOM_ATTRIBUTES&&Z.type==="tag"&&(0,X5.isCustomComponent)(Z.name,Z.attribs)}});var o9=A((y)=>{var n9=y&&y.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(y,"__esModule",{value:!0});y.htmlToDOM=y.domToReact=y.attributesToProps=y.Text=y.ProcessingInstruction=y.Element=y.Comment=void 0;y.default=r2;var o3=n9(T3());y.htmlToDOM=o3.default;var a2=n9(i9());y.attributesToProps=a2.default;var a3=n9(n3());y.domToReact=a3.default;var V6=k9();Object.defineProperty(y,"Comment",{enumerable:!0,get:function(){return V6.Comment}});Object.defineProperty(y,"Element",{enumerable:!0,get:function(){return V6.Element}});Object.defineProperty(y,"ProcessingInstruction",{enumerable:!0,get:function(){return V6.ProcessingInstruction}});Object.defineProperty(y,"Text",{enumerable:!0,get:function(){return V6.Text}});var s2={lowerCaseAttributeNames:!1};function r2(Z,J){var Y;if(typeof Z!=="string")throw TypeError("First argument must be a string");if(!Z)return[];return(0,a3.default)((0,o3.default)(Z,(Y=J===null||J===void 0?void 0:J.htmlparser2)!==null&&Y!==void 0?Y:s2),J)}});import{lazy as fX}from"react";var T6=new Map;function U7(Z,J){return fX(()=>{if(T6.has(J))return T6.get(J);let Y=Z().then((Q)=>Q);return T6.set(J,Y),Y})}var B7=new Map,jX=(Z)=>{if(!Z.name)throw Error("Component registration requires a name");if(!Z.component&&!Z.loader)throw Error(`Component "${Z.name}" requires component or loader`);let J={name:Z.name,component:Z.component,loader:Z.loader,metadata:Z.metadata,fallback:Z.fallback,isLazy:!1};if(!J.component&&J.loader)J.component=U7(J.loader,Z.name),J.loader=void 0,J.isLazy=!0;return J};function n1(Z){let J=jX(Z);return B7.set(J.name,J),J.component}var K7=(Z)=>{return B7.get(Z)};import{Suspense as cX,useContext as pX}from"react";import{createContext as _X}from"react";import{jsx as hX,Fragment as kX}from"react/jsx-runtime";var vX=_X(hX(kX,{})),_1=vX;import{createContext as bX,useContext as gX}from"react";var P0=bX(null),H0=()=>{let Z=gX(P0);if(!Z)throw Error("usePieConfig must be used within PieConfigProvider");return Z},yX=()=>{let{apiServer:Z}=H0();return Z},v1=yX,mX=()=>{let{centrifugeServer:Z}=H0();return Z},B5=mX,uX=()=>{let{enableRenderingLog:Z}=H0();return Z},k1=uX,dX=()=>{let{pageProcessor:Z}=H0();return Z},L7=dX;import{jsx as M7}from"react/jsx-runtime";function lX({uiConfig:Z,setUiAjaxConfiguration:J}){let Y=pX(_1),Q=k1();if(Q)console.log("[UI] Rendering component:",Z.card),console.log("[UI] Component data:",Z.data),console.log("[UI] Component content:",Z.content),console.log("[UI] Has setUiAjaxConfiguration:",!!J);let X=K7(Z.card);if(!X?.component){if(Q)console.warn(`[UI] Component not found in registry: ${Z.card}`),console.log("[UI] Returning fallback component");return Y}if(Q)console.log("[UI] Found component in registry:",{name:X.name,isLazy:X.isLazy,hasMetadata:!!X.metadata});let G=X.component,W=M7(G,{data:Z.data,content:Z.content,setUiAjaxConfiguration:J});if(X.isLazy){if(Q)console.log("[UI] Rendering lazy component with Suspense:",X.name);return M7(cX,{fallback:X.fallback??Y,children:W},`${X.name}`)}if(Q)console.log("[UI] Rendering component directly:",X.name);return W}var Z1=lX;import{useEffect as pF,useMemo as lF}from"react";import{QueryClient as iF,QueryClientProvider as nF,useQuery as oF}from"@tanstack/react-query";var w5=S(w6(),1),UJ=S(x6(),1);import zJ,{useState as SU,useContext as eZ,useRef as xU,useEffect as ZJ,forwardRef as CU}from"react";var VG={animationIterationCount:!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};function T0(Z,J){var Y=!VG[Z]&&typeof J==="number"&&J!==0;return Y?J+"px":J}function w0(Z,J){return Object.keys(Z).reduce(function(Y,Q){return Y[Q]=J(Z[Q],Q),Y},{})}function C6(Z){return w0(Z,function(J,Y){return T0(Y,Z[Y])+" !important"})}var IG=/([a-z])?([A-Z])/g,qG=function(J,Y,Q){return(Y||"")+"-"+Q.toLowerCase()},f6=function(J){return J.replace(IG,qG)},DG=function(J){return Object.keys(J).reduce(function(Y,Q){var X=f6(Q);if(/^ms-/.test(X))X="-".concat(X);return Y[X]=J[Q],Y},{})},C7=DG;var jZ=S(m7(),1),_Z=S(t7(),1),vZ=S(p6(),1);var j4=S(J4(),1),_4=S(Q4(),1),v4=S(G4(),1),k4=S(H4(),1),h4=S(B4(),1),b4=S(M4(),1),g4=S(O4(),1),y4=S(q4(),1),m4=S(N4(),1),u4=S(R4(),1),d4=S(T4(),1),c4=S(f4(),1),R=["Webkit"],z8=["Moz"],k=["ms"],p=["Webkit","Moz"],u=["Webkit","ms"],E0=["Webkit","Moz","ms"],p4={plugins:[j4.default,_4.default,v4.default,k4.default,h4.default,b4.default,g4.default,y4.default,m4.default,u4.default,d4.default,c4.default],prefixMap:{transform:u,transformOrigin:u,transformOriginX:u,transformOriginY:u,backfaceVisibility:R,perspective:R,perspectiveOrigin:R,transformStyle:R,transformOriginZ:R,animation:R,animationDelay:R,animationDirection:R,animationFillMode:R,animationDuration:R,animationIterationCount:R,animationName:R,animationPlayState:R,animationTimingFunction:R,appearance:p,userSelect:E0,fontKerning:R,textEmphasisPosition:R,textEmphasis:R,textEmphasisStyle:R,textEmphasisColor:R,boxDecorationBreak:R,clipPath:R,maskImage:R,maskMode:R,maskRepeat:R,maskPosition:R,maskClip:R,maskOrigin:R,maskSize:R,maskComposite:R,mask:R,maskBorderSource:R,maskBorderMode:R,maskBorderSlice:R,maskBorderWidth:R,maskBorderOutset:R,maskBorderRepeat:R,maskBorder:R,maskType:R,textDecorationStyle:p,textDecorationSkip:p,textDecorationLine:p,textDecorationColor:p,filter:R,fontFeatureSettings:p,breakAfter:E0,breakBefore:E0,breakInside:E0,columnCount:p,columnFill:p,columnGap:p,columnRule:p,columnRuleColor:p,columnRuleStyle:p,columnRuleWidth:p,columns:p,columnSpan:p,columnWidth:p,writingMode:u,flex:u,flexBasis:R,flexDirection:u,flexGrow:R,flexFlow:u,flexShrink:R,flexWrap:u,alignContent:R,alignItems:R,alignSelf:R,justifyContent:R,order:R,transitionDelay:R,transitionDuration:R,transitionProperty:R,transitionTimingFunction:R,backdropFilter:R,scrollSnapType:u,scrollSnapPointsX:u,scrollSnapPointsY:u,scrollSnapDestination:u,scrollSnapCoordinate:u,shapeImageThreshold:R,shapeImageMargin:R,shapeImageOutside:R,hyphens:E0,flowInto:u,flowFrom:u,regionFragment:u,boxSizing:z8,textAlignLast:z8,tabSize:z8,wrapFlow:k,wrapThrough:k,wrapMargin:k,touchAction:k,gridTemplateColumns:k,gridTemplateRows:k,gridTemplateAreas:k,gridTemplate:k,gridAutoColumns:k,gridAutoRows:k,gridAutoFlow:k,grid:k,gridRowStart:k,gridColumnStart:k,gridRowEnd:k,gridRow:k,gridColumn:k,gridColumnEnd:k,gridColumnGap:k,gridRowGap:k,gridArea:k,gridGap:k,textSizeAdjust:u,borderImage:R,borderImageOutset:R,borderImageRepeat:R,borderImageSlice:R,borderImageSource:R,borderImageWidth:R}};var IZ=S(n4(),1),qZ=S(a4(),1),DZ=S(t4(),1),NZ=S(ZZ(),1),AZ=S(YZ(),1),RZ=S(XZ(),1),PZ=S(WZ(),1),TZ=S(UZ(),1),wZ=S(KZ(),1),EZ=S(MZ(),1),SZ=S($Z(),1),xZ=S(VZ(),1),CZ={plugins:[IZ.default,qZ.default,DZ.default,NZ.default,AZ.default,RZ.default,PZ.default,TZ.default,wZ.default,EZ.default,SZ.default,xZ.default],prefixMap:{chrome:{transform:35,transformOrigin:35,transformOriginX:35,transformOriginY:35,backfaceVisibility:35,perspective:35,perspectiveOrigin:35,transformStyle:35,transformOriginZ:35,animation:42,animationDelay:42,animationDirection:42,animationFillMode:42,animationDuration:42,animationIterationCount:42,animationName:42,animationPlayState:42,animationTimingFunction:42,appearance:66,userSelect:53,fontKerning:32,textEmphasisPosition:66,textEmphasis:66,textEmphasisStyle:66,textEmphasisColor:66,boxDecorationBreak:66,clipPath:54,maskImage:66,maskMode:66,maskRepeat:66,maskPosition:66,maskClip:66,maskOrigin:66,maskSize:66,maskComposite:66,mask:66,maskBorderSource:66,maskBorderMode:66,maskBorderSlice:66,maskBorderWidth:66,maskBorderOutset:66,maskBorderRepeat:66,maskBorder:66,maskType:66,textDecorationStyle:56,textDecorationSkip:56,textDecorationLine:56,textDecorationColor:56,filter:52,fontFeatureSettings:47,breakAfter:49,breakBefore:49,breakInside:49,columnCount:49,columnFill:49,columnGap:49,columnRule:49,columnRuleColor:49,columnRuleStyle:49,columnRuleWidth:49,columns:49,columnSpan:49,columnWidth:49,writingMode:47},safari:{flex:8,flexBasis:8,flexDirection:8,flexGrow:8,flexFlow:8,flexShrink:8,flexWrap:8,alignContent:8,alignItems:8,alignSelf:8,justifyContent:8,order:8,transition:6,transitionDelay:6,transitionDuration:6,transitionProperty:6,transitionTimingFunction:6,transform:8,transformOrigin:8,transformOriginX:8,transformOriginY:8,backfaceVisibility:8,perspective:8,perspectiveOrigin:8,transformStyle:8,transformOriginZ:8,animation:8,animationDelay:8,animationDirection:8,animationFillMode:8,animationDuration:8,animationIterationCount:8,animationName:8,animationPlayState:8,animationTimingFunction:8,appearance:11,userSelect:11,backdropFilter:11,fontKerning:9,scrollSnapType:10.1,scrollSnapPointsX:10.1,scrollSnapPointsY:10.1,scrollSnapDestination:10.1,scrollSnapCoordinate:10.1,textEmphasisPosition:7,textEmphasis:7,textEmphasisStyle:7,textEmphasisColor:7,boxDecorationBreak:11,clipPath:11,maskImage:11,maskMode:11,maskRepeat:11,maskPosition:11,maskClip:11,maskOrigin:11,maskSize:11,maskComposite:11,mask:11,maskBorderSource:11,maskBorderMode:11,maskBorderSlice:11,maskBorderWidth:11,maskBorderOutset:11,maskBorderRepeat:11,maskBorder:11,maskType:11,textDecorationStyle:11,textDecorationSkip:11,textDecorationLine:11,textDecorationColor:11,shapeImageThreshold:10,shapeImageMargin:10,shapeImageOutside:10,filter:9,hyphens:11,flowInto:11,flowFrom:11,breakBefore:8,breakAfter:8,breakInside:8,regionFragment:11,columnCount:8,columnFill:8,columnGap:8,columnRule:8,columnRuleColor:8,columnRuleStyle:8,columnRuleWidth:8,columns:8,columnSpan:8,columnWidth:8,writingMode:10.1},firefox:{appearance:60,userSelect:60,boxSizing:28,textAlignLast:48,textDecorationStyle:35,textDecorationSkip:35,textDecorationLine:35,textDecorationColor:35,tabSize:60,hyphens:42,fontFeatureSettings:33,breakAfter:51,breakBefore:51,breakInside:51,columnCount:51,columnFill:51,columnGap:51,columnRule:51,columnRuleColor:51,columnRuleStyle:51,columnRuleWidth:51,columns:51,columnSpan:51,columnWidth:51},opera:{flex:16,flexBasis:16,flexDirection:16,flexGrow:16,flexFlow:16,flexShrink:16,flexWrap:16,alignContent:16,alignItems:16,alignSelf:16,justifyContent:16,order:16,transform:22,transformOrigin:22,transformOriginX:22,transformOriginY:22,backfaceVisibility:22,perspective:22,perspectiveOrigin:22,transformStyle:22,transformOriginZ:22,animation:29,animationDelay:29,animationDirection:29,animationFillMode:29,animationDuration:29,animationIterationCount:29,animationName:29,animationPlayState:29,animationTimingFunction:29,appearance:50,userSelect:40,fontKerning:19,textEmphasisPosition:50,textEmphasis:50,textEmphasisStyle:50,textEmphasisColor:50,boxDecorationBreak:50,clipPath:41,maskImage:50,maskMode:50,maskRepeat:50,maskPosition:50,maskClip:50,maskOrigin:50,maskSize:50,maskComposite:50,mask:50,maskBorderSource:50,maskBorderMode:50,maskBorderSlice:50,maskBorderWidth:50,maskBorderOutset:50,maskBorderRepeat:50,maskBorder:50,maskType:50,textDecorationStyle:43,textDecorationSkip:43,textDecorationLine:43,textDecorationColor:43,filter:39,fontFeatureSettings:34,breakAfter:36,breakBefore:36,breakInside:36,columnCount:36,columnFill:36,columnGap:36,columnRule:36,columnRuleColor:36,columnRuleStyle:36,columnRuleWidth:36,columns:36,columnSpan:36,columnWidth:36,writingMode:34},ie:{flex:10,flexDirection:10,flexFlow:10,flexWrap:10,transform:9,transformOrigin:9,transformOriginX:9,transformOriginY:9,userSelect:11,wrapFlow:11,wrapThrough:11,wrapMargin:11,scrollSnapType:11,scrollSnapPointsX:11,scrollSnapPointsY:11,scrollSnapDestination:11,scrollSnapCoordinate:11,touchAction:10,hyphens:11,flowInto:11,flowFrom:11,breakBefore:11,breakAfter:11,breakInside:11,regionFragment:11,gridTemplateColumns:11,gridTemplateRows:11,gridTemplateAreas:11,gridTemplate:11,gridAutoColumns:11,gridAutoRows:11,gridAutoFlow:11,grid:11,gridRowStart:11,gridColumnStart:11,gridRowEnd:11,gridRow:11,gridColumn:11,gridColumnEnd:11,gridColumnGap:11,gridRowGap:11,gridArea:11,gridGap:11,textSizeAdjust:11,writingMode:11},edge:{userSelect:17,wrapFlow:17,wrapThrough:17,wrapMargin:17,scrollSnapType:17,scrollSnapPointsX:17,scrollSnapPointsY:17,scrollSnapDestination:17,scrollSnapCoordinate:17,hyphens:17,flowInto:17,flowFrom:17,breakBefore:17,breakAfter:17,breakInside:17,regionFragment:17,gridTemplateColumns:15,gridTemplateRows:15,gridTemplateAreas:15,gridTemplate:15,gridAutoColumns:15,gridAutoRows:15,gridAutoFlow:15,grid:15,gridRowStart:15,gridColumnStart:15,gridRowEnd:15,gridRow:15,gridColumn:15,gridColumnEnd:15,gridColumnGap:15,gridRowGap:15,gridArea:15,gridGap:15},ios_saf:{flex:8.1,flexBasis:8.1,flexDirection:8.1,flexGrow:8.1,flexFlow:8.1,flexShrink:8.1,flexWrap:8.1,alignContent:8.1,alignItems:8.1,alignSelf:8.1,justifyContent:8.1,order:8.1,transition:6,transitionDelay:6,transitionDuration:6,transitionProperty:6,transitionTimingFunction:6,transform:8.1,transformOrigin:8.1,transformOriginX:8.1,transformOriginY:8.1,backfaceVisibility:8.1,perspective:8.1,perspectiveOrigin:8.1,transformStyle:8.1,transformOriginZ:8.1,animation:8.1,animationDelay:8.1,animationDirection:8.1,animationFillMode:8.1,animationDuration:8.1,animationIterationCount:8.1,animationName:8.1,animationPlayState:8.1,animationTimingFunction:8.1,appearance:11,userSelect:11,backdropFilter:11,fontKerning:11,scrollSnapType:10.3,scrollSnapPointsX:10.3,scrollSnapPointsY:10.3,scrollSnapDestination:10.3,scrollSnapCoordinate:10.3,boxDecorationBreak:11,clipPath:11,maskImage:11,maskMode:11,maskRepeat:11,maskPosition:11,maskClip:11,maskOrigin:11,maskSize:11,maskComposite:11,mask:11,maskBorderSource:11,maskBorderMode:11,maskBorderSlice:11,maskBorderWidth:11,maskBorderOutset:11,maskBorderRepeat:11,maskBorder:11,maskType:11,textSizeAdjust:11,textDecorationStyle:11,textDecorationSkip:11,textDecorationLine:11,textDecorationColor:11,shapeImageThreshold:10,shapeImageMargin:10,shapeImageOutside:10,filter:9,hyphens:11,flowInto:11,flowFrom:11,breakBefore:8.1,breakAfter:8.1,breakInside:8.1,regionFragment:11,columnCount:8.1,columnFill:8.1,columnGap:8.1,columnRule:8.1,columnRuleColor:8.1,columnRuleStyle:8.1,columnRuleWidth:8.1,columns:8.1,columnSpan:8.1,columnWidth:8.1,writingMode:10.3},android:{borderImage:4.2,borderImageOutset:4.2,borderImageRepeat:4.2,borderImageSlice:4.2,borderImageSource:4.2,borderImageWidth:4.2,flex:4.2,flexBasis:4.2,flexDirection:4.2,flexGrow:4.2,flexFlow:4.2,flexShrink:4.2,flexWrap:4.2,alignContent:4.2,alignItems:4.2,alignSelf:4.2,justifyContent:4.2,order:4.2,transition:4.2,transitionDelay:4.2,transitionDuration:4.2,transitionProperty:4.2,transitionTimingFunction:4.2,transform:4.4,transformOrigin:4.4,transformOriginX:4.4,transformOriginY:4.4,backfaceVisibility:4.4,perspective:4.4,perspectiveOrigin:4.4,transformStyle:4.4,transformOriginZ:4.4,animation:4.4,animationDelay:4.4,animationDirection:4.4,animationFillMode:4.4,animationDuration:4.4,animationIterationCount:4.4,animationName:4.4,animationPlayState:4.4,animationTimingFunction:4.4,appearance:62,userSelect:4.4,fontKerning:4.4,textEmphasisPosition:62,textEmphasis:62,textEmphasisStyle:62,textEmphasisColor:62,boxDecorationBreak:62,clipPath:4.4,maskImage:62,maskMode:62,maskRepeat:62,maskPosition:62,maskClip:62,maskOrigin:62,maskSize:62,maskComposite:62,mask:62,maskBorderSource:62,maskBorderMode:62,maskBorderSlice:62,maskBorderWidth:62,maskBorderOutset:62,maskBorderRepeat:62,maskBorder:62,maskType:62,filter:4.4,fontFeatureSettings:4.4,breakAfter:4.4,breakBefore:4.4,breakInside:4.4,columnCount:4.4,columnFill:4.4,columnGap:4.4,columnRule:4.4,columnRuleColor:4.4,columnRuleStyle:4.4,columnRuleWidth:4.4,columns:4.4,columnSpan:4.4,columnWidth:4.4,writingMode:4.4},and_chr:{appearance:62,textEmphasisPosition:62,textEmphasis:62,textEmphasisStyle:62,textEmphasisColor:62,boxDecorationBreak:62,maskImage:62,maskMode:62,maskRepeat:62,maskPosition:62,maskClip:62,maskOrigin:62,maskSize:62,maskComposite:62,mask:62,maskBorderSource:62,maskBorderMode:62,maskBorderSlice:62,maskBorderWidth:62,maskBorderOutset:62,maskBorderRepeat:62,maskBorder:62,maskType:62},and_uc:{flex:11.4,flexBasis:11.4,flexDirection:11.4,flexGrow:11.4,flexFlow:11.4,flexShrink:11.4,flexWrap:11.4,alignContent:11.4,alignItems:11.4,alignSelf:11.4,justifyContent:11.4,order:11.4,transform:11.4,transformOrigin:11.4,transformOriginX:11.4,transformOriginY:11.4,backfaceVisibility:11.4,perspective:11.4,perspectiveOrigin:11.4,transformStyle:11.4,transformOriginZ:11.4,animation:11.4,animationDelay:11.4,animationDirection:11.4,animationFillMode:11.4,animationDuration:11.4,animationIterationCount:11.4,animationName:11.4,animationPlayState:11.4,animationTimingFunction:11.4,appearance:11.4,userSelect:11.4,textEmphasisPosition:11.4,textEmphasis:11.4,textEmphasisStyle:11.4,textEmphasisColor:11.4,clipPath:11.4,maskImage:11.4,maskMode:11.4,maskRepeat:11.4,maskPosition:11.4,maskClip:11.4,maskOrigin:11.4,maskSize:11.4,maskComposite:11.4,mask:11.4,maskBorderSource:11.4,maskBorderMode:11.4,maskBorderSlice:11.4,maskBorderWidth:11.4,maskBorderOutset:11.4,maskBorderRepeat:11.4,maskBorder:11.4,maskType:11.4,textSizeAdjust:11.4,filter:11.4,hyphens:11.4,fontFeatureSettings:11.4,breakAfter:11.4,breakBefore:11.4,breakInside:11.4,columnCount:11.4,columnFill:11.4,columnGap:11.4,columnRule:11.4,columnRuleColor:11.4,columnRuleStyle:11.4,columnRuleWidth:11.4,columns:11.4,columnSpan:11.4,columnWidth:11.4,writingMode:11.4},op_mini:{}}};function O5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")O5=function(Y){return typeof Y};else O5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return O5(Z)}var kZ=jZ.default(p4),cz=_Z.default(CZ,kZ);function pz(Z){return Object.keys(Z).reduce(function(J,Y){var Q=Z[Y];if(Array.isArray(Q))Q=Q.join(";"+Y+":");else if(Q&&O5(Q)==="object"&&typeof Q.toString==="function")Q=Q.toString();return J[Y]=Q,J},{})}function lz(Z){return Object.keys(Z).reduce(function(J,Y){var Q=Z[Y];if(Array.isArray(Q))if(vZ.default.canUseDOM)Q=Q[Q.length-1].toString();else Q=Q.join(";".concat(f6(Y),":"));return J[Y]=Q,J},{})}var fZ,$5;function hZ(Z){var J=Z||global&&global.navigator&&global.navigator.userAgent;if(!$5||J!==fZ){if(J==="all")$5={prefix:kZ,prefixedKeyframes:"keyframes"};else $5=new cz({userAgent:J});fZ=J}return $5}function bZ(Z){return hZ(Z).prefixedKeyframes||"keyframes"}function V5(Z,J){var Y=pz(Z),Q=hZ(J),X=Q.prefix(Y),G=lz(X);return G}function iz(Z){return Object.keys(Z).map(function(J){return J+": "+Z[J]+";"}).join(`
|
|
16
|
-
`)}function h1(Z,J,Y){if(!J)return"";var Q=w0(J,function(H,z){return T0(z,H)}),X=V5(Q,Y),G=C7(X),W=iz(G);return Z+"{"+W+"}"}var nz=function(J){return J===null||typeof J>"u"?"main":J.toString()},I5=nz;var oz=function(J,Y,Q){var X=I5(Y);return!!J&&!!J._radiumStyleState&&!!J._radiumStyleState[X]&&J._radiumStyleState[X][Q]},q5=oz;var az=function(J){return typeof J.ref==="string"?J.ref:J.key},a1=az;var sz=function(J){return J._lastRadiumState||J.state&&J.state._radiumStyleState||{}},S0=sz;function x0(Z){if(!Z)return"";var J=5381,Y=Z.length-1;while(Y)J=J*33^Z.charCodeAt(Y),Y-=1;return(J>>>0).toString(16)}function D5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")D5=function(Y){return typeof Y};else D5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return D5(Z)}function N5(Z){return Z&&Z.constructor===Object&&Z.toString===Object.prototype.toString}function A5(Z){var J={};return Z.forEach(function(Y){if(!Y||D5(Y)!=="object")return;if(Array.isArray(Y))Y=A5(Y);Object.keys(Y).forEach(function(Q){if(!N5(Y[Q])||!N5(J[Q])){J[Q]=Y[Q];return}if(Q.indexOf("@media")===0){var X=Q;while(!0)if(X+=" ",!J[X]){J[X]=Y[Q];return}}J[Q]=A5([J[Q],Y[Q]])})}),J}var rz=function(){};var gZ=rz;function E8(Z){var{addCSS:J,config:Y,style:Q}=Z,X=function(H){var z=H,U=z.__process(Y.userAgent),B=U.animationName,L=U.css;return J(L),B},G=Object.keys(Q).reduce(function(W,H){var z=Q[H],U=Array.isArray(z);if(H==="animationName"&&z&&(z.__radiumKeyframes||U))if(U)z=z.map(X).join(", ");else z=X(z);return W[H]=z,W},{});return{style:G}}var tz=function(J){var{style:Y,mergeStyles:Q}=J,X=Array.isArray(Y)?Q(Y):Y;return{style:X}},yZ=tz;function S8(Z){var{config:J,style:Y}=Z,Q=V5(Y,J.userAgent);return{style:Q}}function x8(Z){var{isNestedStyle:J,style:Y}=Z,Q=Object.keys(Y).reduce(function(X,G){var W=Y[G];if(!J(W))X[G]=W;return X},{});return{style:Q}}var U0=[],R5=!1;function C8(){U0.forEach(function(Z){Z()})}var ez=function(J){if(U0.indexOf(J)===-1)U0.push(J);if(!R5)window.addEventListener("mouseup",C8),R5=!0;return{remove:function(){var Q=U0.indexOf(J);if(U0.splice(Q,1),U0.length===0&&R5)window.removeEventListener("mouseup",C8),R5=!1}}},mZ={subscribe:ez,__triggerForTests:C8};var uZ=function(J){return J===":hover"||J===":active"||J===":focus"},ZU=function(J){var{ExecutionEnvironment:Y,getComponentField:Q,getState:X,mergeStyles:G,props:W,setState:H,style:z}=J,U={},B={};if(z[":hover"]){var L=W.onMouseEnter;B.onMouseEnter=function(q){L&&L(q),H(":hover",!0)};var V=W.onMouseLeave;B.onMouseLeave=function(q){V&&V(q),H(":hover",!1)}}if(z[":active"]){var M=W.onMouseDown;B.onMouseDown=function(q){M&&M(q),U._lastMouseDown=Date.now(),H(":active","viamousedown")};var K=W.onKeyDown;B.onKeyDown=function(q){if(K&&K(q),q.key===" "||q.key==="Enter")H(":active","viakeydown")};var F=W.onKeyUp;B.onKeyUp=function(q){if(F&&F(q),q.key===" "||q.key==="Enter")H(":active",!1)}}if(z[":focus"]){var O=W.onFocus;B.onFocus=function(q){O&&O(q),H(":focus",!0)};var D=W.onBlur;B.onBlur=function(q){D&&D(q),H(":focus",!1)}}if(z[":active"]&&!Q("_radiumMouseUpListener")&&Y.canUseEventListeners)U._radiumMouseUpListener=mZ.subscribe(function(){Object.keys(Q("state")._radiumStyleState).forEach(function(q){if(X(":active",q)==="viamousedown")H(":active",!1,q)})});var P=W.disabled?[z[":disabled"]]:Object.keys(z).filter(function(q){return uZ(q)&&X(q)}).map(function(q){return z[q]}),N=G([z].concat(P));return N=Object.keys(N).reduce(function(q,T){if(!uZ(T)&&T!==":disabled")q[T]=N[T];return q},{}),{componentFields:U,props:B,style:N}},dZ=ZU;function JU(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J]!=null?arguments[J]:{},Q=Object.keys(Y);if(typeof Object.getOwnPropertySymbols==="function")Q=Q.concat(Object.getOwnPropertySymbols(Y).filter(function(X){return Object.getOwnPropertyDescriptor(Y,X).enumerable}));Q.forEach(function(X){YU(Z,X,Y[X])})}return Z}function YU(Z,J,Y){if(J in Z)Object.defineProperty(Z,J,{value:Y,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Y;return Z}var f8;function QU(Z){if(f8===void 0)f8=!!Z.canUseDOM&&!!window&&!!window.matchMedia&&function(J){return window.matchMedia(J)}||null;return f8}function cZ(Z,J){return Object.keys(Z).filter(function(Y){return J(Z[Y],Y)}).reduce(function(Y,Q){return Y[Q]=Z[Q],Y},{})}function XU(Z){return Object.keys(Z).reduce(function(J,Y){if(Y.indexOf("@media")!==0)J[Y]=Z[Y];return J},{})}function GU(Z){var{addCSS:J,appendImportantToEachValue:Y,cssRuleSetToString:Q,hash:X,isNestedStyle:G,style:W,userAgent:H}=Z,z="";return Object.keys(W).filter(function(U){return U.indexOf("@media")===0}).map(function(U){var B=Y(cZ(W[U],function(K){return!G(K)}));if(!Object.keys(B).length)return;var L=Q("",B,H),V="rmq-"+X(U+L),M=U+"{ ."+V+L+"}";J(M),z+=(z?" ":"")+V}),z}function WU(Z){var{listener:J,listenersByQuery:Y,matchMedia:Q,mediaQueryListsByQuery:X,query:G}=Z;G=G.replace("@media ","");var W=X[G];if(!W&&Q)X[G]=W=Q(G);if(!Y||!Y[G])W.addListener(J),Y[G]={remove:function(){W.removeListener(J)}};return W}function j8(Z){var{ExecutionEnvironment:J,addCSS:Y,appendImportantToEachValue:Q,config:X,cssRuleSetToString:G,getComponentField:W,getGlobalState:H,hash:z,isNestedStyle:U,mergeStyles:B,props:L,setState:V,style:M}=Z,K=XU(M),F=GU({addCSS:Y,appendImportantToEachValue:Q,cssRuleSetToString:G,hash:z,isNestedStyle:U,style:M,userAgent:X.userAgent}),O=F?{className:F+(L.className?" "+L.className:"")}:null,D=X.matchMedia||QU(J);if(!D)return{props:O,style:K};var P=JU({},W("_radiumMediaQueryListenersByQuery")),N=H("mediaQueryListsByQuery")||{};return Object.keys(M).filter(function(q){return q.indexOf("@media")===0}).map(function(q){var T=cZ(M[q],U);if(!Object.keys(T).length)return;var C=WU({listener:function(){return V(q,C.matches,"_all")},listenersByQuery:P,matchMedia:D,mediaQueryListsByQuery:N,query:q});if(C.matches)K=B([K,T])}),{componentFields:{_radiumMediaQueryListenersByQuery:P},globalState:{mediaQueryListsByQuery:N},props:O,style:K}}function _8(Z){var{addCSS:J,appendImportantToEachValue:Y,config:Q,cssRuleSetToString:X,hash:G,props:W,style:H}=Z,z=W.className,U=Object.keys(H).reduce(function(B,L){var V=H[L];if(L===":visited"){V=Y(V);var M=X("",V,Q.userAgent),K="rad-"+G(M),F="."+K+":visited"+M;J(F),z=(z?z+" ":"")+K}else B[L]=V;return B},{});return{props:z===W.className?null:{className:z},style:U}}var W1={checkProps:gZ,keyframes:E8,mergeStyleArray:yZ,prefix:S8,removeNestedStyles:x8,resolveInteractionStyles:dZ,resolveMediaQueries:j8,visited:_8};var nZ=S(p6(),1);import b1 from"react";function HU(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function pZ(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function zU(Z,J,Y){if(J)pZ(Z.prototype,J);if(Y)pZ(Z,Y);return Z}var lZ=function(){function Z(J){HU(this,Z),this._userAgent=void 0,this._listeners=void 0,this._cssSet=void 0,this._userAgent=J,this._listeners=[],this._cssSet={}}return zU(Z,[{key:"subscribe",value:function(Y){var Q=this;if(this._listeners.indexOf(Y)===-1)this._listeners.push(Y);return{remove:function(){var G=Q._listeners.indexOf(Y);if(G>-1)Q._listeners.splice(G,1)}}}},{key:"addCSS",value:function(Y){var Q=this;if(!this._cssSet[Y])this._cssSet[Y]=!0,this._emitChange();return{remove:function(){delete Q._cssSet[Y],Q._emitChange()}}}},{key:"getCSS",value:function(){return Object.keys(this._cssSet).join(`
|
|
17
|
-
`)}},{key:"_emitChange",value:function(){this._listeners.forEach(function(Y){return Y()})}}]),Z}();function B0(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J]!=null?arguments[J]:{},Q=Object.keys(Y);if(typeof Object.getOwnPropertySymbols==="function")Q=Q.concat(Object.getOwnPropertySymbols(Y).filter(function(X){return Object.getOwnPropertyDescriptor(Y,X).enumerable}));Q.forEach(function(X){UU(Z,X,Y[X])})}return Z}function UU(Z,J,Y){if(J in Z)Object.defineProperty(Z,J,{value:Y,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Y;return Z}function P5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")P5=function(Y){return typeof Y};else P5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return P5(Z)}var oZ={plugins:[W1.mergeStyleArray,W1.checkProps,W1.resolveMediaQueries,W1.resolveInteractionStyles,W1.keyframes,W1.visited,W1.removeNestedStyles,W1.prefix,W1.checkProps]},iZ={},BU=!1,s1=null,KU=function(J){return J.type&&!J.type._isRadiumEnhanced},LU=function(J){var{children:Y,component:Q,config:X,existingKeyMap:G,extraStateKeyMap:W}=J;if(!Y)return Y;var H=P5(Y);if(H==="string"||H==="number")return Y;if(H==="function")return function(){var V=Y.apply(this,arguments);if(b1.isValidElement(V)){var M=a1(V);delete W[M];var K=s1(Q,V,X,G,!0,W),F=K.element;return F}return V};if(b1.Children.count(Y)===1&&Y.type){var z=b1.Children.only(Y),U=a1(z);delete W[U];var B=s1(Q,z,X,G,!0,W),L=B.element;return L}return b1.Children.map(Y,function(V){if(b1.isValidElement(V)){var M=a1(V);delete W[M];var K=s1(Q,V,X,G,!0,W),F=K.element;return F}return V})},MU=function(J){var{component:Y,config:Q,existingKeyMap:X,props:G,extraStateKeyMap:W}=J,H=G;return Object.keys(G).forEach(function(z){if(z==="children")return;var U=G[z];if(b1.isValidElement(U)){var B=a1(U);delete W[B],H=B0({},H);var L=s1(Y,U,Q,X,!0,W),V=L.element;H[z]=V}}),H},FU=function(J){var{componentName:Y,existingKeyMap:Q,renderedElement:X}=J,G=a1(X),W=I5(G),H=!1,z=function(){if(H)return W;if(H=!0,Q[W]){var B;if(typeof X.type==="string")B=X.type;else if(X.type.constructor)B=X.type.constructor.displayName||X.type.constructor.name;throw Error("Radium requires each element with interactive styles to have a unique key, set using either the ref or key prop. "+(G?'Key "'+G+'" is a duplicate.':"Multiple elements have no key specified.")+' Component: "'+Y+'". '+(B?'Element: "'+B+'".':""))}return Q[W]=!0,W};return z},$U=function(J,Y,Q,X){if(!J._radiumIsMounted)return;var G=S0(J),W={_radiumStyleState:B0({},G)};W._radiumStyleState[Y]=B0({},W._radiumStyleState[Y]),W._radiumStyleState[Y][Q]=X,J._lastRadiumState=W._radiumStyleState,J.setState(W)},OU=function(J){var{component:Y,config:Q,existingKeyMap:X,props:G,renderedElement:W}=J;if(!b1.isValidElement(W)||typeof W.type!=="string"||!G.style)return G;var H=G,z=Q.plugins||oZ.plugins,U=Y.constructor.displayName||Y.constructor.name,B=FU({renderedElement:W,existingKeyMap:X,componentName:U}),L=function(P){return Y[P]},V=function(P){return iZ[P]},M=function(P,N){return q5(Y.state,N||B(),P)},K=function(P,N,q){return $U(Y,q||B(),P,N)},F=function(P){var N=Y._radiumStyleKeeper;if(!N){if(BU)return{remove:function(){}};throw Error("To use plugins requiring `addCSS` (e.g. keyframes, media queries), please wrap your application in the StyleRoot component. Component name: `"+U+"`.")}return N.addCSS(P)},O=G.style;if(z.forEach(function(D){var P=D({ExecutionEnvironment:nZ.default,addCSS:F,appendImportantToEachValue:C6,componentName:U,config:Q,cssRuleSetToString:h1,getComponentField:L,getGlobalState:V,getState:M,hash:x0,mergeStyles:A5,props:H,setState:K,isNestedStyle:N5,style:O})||{};O=P.style||O,H=P.props&&Object.keys(P.props).length?B0({},H,P.props):H;var N=P.componentFields||{};Object.keys(N).forEach(function(T){Y[T]=N[T]});var q=P.globalState||{};Object.keys(q).forEach(function(T){iZ[T]=q[T]})}),O!==G.style)H=B0({},H,{style:O});return H},VU=function(J,Y,Q){if(typeof J.type==="string")Y=B0({},Y,{"data-radium":!0});return b1.cloneElement(J,Y,Q)};s1=function(J,Y){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oZ,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,W=arguments.length>5?arguments[5]:void 0;if(!W){var H=S0(J);W=Object.keys(H).reduce(function(M,K){if(K!=="main")M[K]=!0;return M},{})}if(Array.isArray(Y)&&!Y.props){var z=Y.map(function(M){if(W){var K=a1(M);delete W[K]}return s1(J,M,Q,X,G,W).element});return{extraStateKeyMap:W,element:z}}if(!Y||Y.props&&Y.props["data-radium"]||G&&!KU(Y))return{extraStateKeyMap:W,element:Y};var U=Y.props.children,B=LU({children:U,component:J,config:Q,existingKeyMap:X,extraStateKeyMap:W}),L=MU({component:J,config:Q,existingKeyMap:X,extraStateKeyMap:W,props:Y.props});if(L=OU({component:J,config:Q,existingKeyMap:X,props:L,renderedElement:Y}),B===U&&L===Y.props)return{extraStateKeyMap:W,element:Y};var V=VU(Y,L!==Y.props?L:{},B);return{extraStateKeyMap:W,element:V}};var aZ=s1;var rZ=S(x6(),1);import T5,{useContext as sZ}from"react";function v8(){return v8=Object.assign||function(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J];for(var Q in Y)if(Object.prototype.hasOwnProperty.call(Y,Q))Z[Q]=Y[Q]}return Z},v8.apply(this,arguments)}var C0=T5.createContext(void 0),K0=T5.createContext(void 0);function L0(Z){var J=T5.forwardRef(function(Y,Q){var X=sZ(K0),G=sZ(C0);return T5.createElement(Z,v8({ref:Q},Y,{radiumConfigContext:X,styleKeeperContext:G}))});return J.displayName="withRadiumContexts(".concat(Z.displayName||Z.name||"Component",")"),rZ.default(J,Z)}function r1(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")r1=function(Y){return typeof Y};else r1=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return r1(Z)}function QJ(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function tZ(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function IU(Z,J,Y){if(J)tZ(Z.prototype,J);if(Y)tZ(Z,Y);return Z}function XJ(Z,J){if(J&&(r1(J)==="object"||typeof J==="function"))return J;return GJ(Z)}function GJ(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function g1(Z,J,Y){if(typeof Reflect<"u"&&Reflect.get)g1=Reflect.get;else g1=function(X,G,W){var H=qU(X,G);if(!H)return;var z=Object.getOwnPropertyDescriptor(H,G);if(z.get)return z.get.call(W);return z.value};return g1(Z,J,Y||Z)}function qU(Z,J){while(!Object.prototype.hasOwnProperty.call(Z,J))if(Z=$1(Z),Z===null)break;return Z}function $1(Z){return $1=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},$1(Z)}function WJ(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)k8(Z,J)}function k8(Z,J){return k8=Object.setPrototypeOf||function(Q,X){return Q.__proto__=X,Q},k8(Z,J)}function DU(Z,J){return RU(Z)||AU(Z,J)||NU()}function NU(){throw TypeError("Invalid attempt to destructure non-iterable instance")}function AU(Z,J){var Y=[],Q=!0,X=!1,G=void 0;try{for(var W=Z[Symbol.iterator](),H;!(Q=(H=W.next()).done);Q=!0)if(Y.push(H.value),J&&Y.length===J)break}catch(z){X=!0,G=z}finally{try{if(!Q&&W.return!=null)W.return()}finally{if(X)throw G}}return Y}function RU(Z){if(Array.isArray(Z))return Z}function h8(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J]!=null?arguments[J]:{},Q=Object.keys(Y);if(typeof Object.getOwnPropertySymbols==="function")Q=Q.concat(Object.getOwnPropertySymbols(Y).filter(function(X){return Object.getOwnPropertyDescriptor(Y,X).enumerable}));Q.forEach(function(X){PU(Z,X,Y[X])})}return Z}function PU(Z,J,Y){if(J in Z)Object.defineProperty(Z,J,{value:Y,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Y;return Z}function HJ(Z,J){if(Z==null)return{};var Y=TU(Z,J),Q,X;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(Z);for(X=0;X<G.length;X++){if(Q=G[X],J.indexOf(Q)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Z,Q))continue;Y[Q]=Z[Q]}}return Y}function TU(Z,J){if(Z==null)return{};var Y={},Q=Object.keys(Z),X,G;for(G=0;G<Q.length;G++){if(X=Q[G],J.indexOf(X)>=0)continue;Y[X]=Z[X]}return Y}function wU(Z){var J=EU(Z,"string");return r1(J)==="symbol"?J:String(J)}function EU(Z,J){if(r1(Z)!=="object"||Z===null)return Z;var Y=Z[Symbol.toPrimitive];if(Y!==void 0){var Q=Y.call(Z,J||"default");if(r1(Q)!=="object")return Q;throw TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(Z)}var fU=["arguments","callee","caller","length","name","prototype","type"],E5,BJ;function jU(Z,J){Object.getOwnPropertyNames(Z).forEach(function(Y){if(fU.indexOf(Y)<0&&!J.hasOwnProperty(Y)){var Q=Object.getOwnPropertyDescriptor(Z,Y);Q&&Object.defineProperty(J,Y,Q)}})}function _U(Z){var J=Z.prototype||{};return!Z.isReactComponent&&!J.isReactComponent&&!Z.render&&!J.render}function vU(Z){return typeof Z==="function"&&/^\s*class\s+/.test(Z.toString())}function kU(Z,J){BJ.forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(Z,Y),X=(Q||{}).value;if(!X)return;var G=Object.getOwnPropertyDescriptor(E5,Y),W=(G||{}).value,H=J.prototype[Y];if(!H&&X!==W)Q&&Object.defineProperty(J.prototype,Y,Q),delete Z[Y]})}function KJ(Z){if(Z._extraRadiumStateKeys&&Z._extraRadiumStateKeys.length>0){var J=Z._extraRadiumStateKeys.reduce(function(Y,Q){var X=Y[Q],G=HJ(Y,[Q].map(wU));return G},S0(Z));Z._lastRadiumState=J,Z.setState({_radiumStyleState:J})}}function LJ(Z){var{_radiumMouseUpListener:J,_radiumMediaQueryListenersByQuery:Y}=Z;if(Z._radiumIsMounted=!1,J)J.remove();if(Y)Object.keys(Y).forEach(function(Q){Y[Q].remove()},Z)}function MJ(Z,J,Y){var Q=Z||J||Y;if(Y&&Q!==Y)Q=h8({},Y,Q);return Q}function FJ(Z,J,Y,Q){var X=aZ(Z,J,Y),G=X.extraStateKeyMap,W=X.element;if(Z._extraRadiumStateKeys=Object.keys(G),Q)return zJ.createElement(K0.Provider,{value:Q},W);return W}function JJ(Z,J){var Y=zJ.forwardRef(function(Q,X){var G=Q.radiumConfig,W=HJ(Q,["radiumConfig"]),H=eZ(K0),z=eZ(C0),U=SU({_radiumStyleState:{}}),B=DU(U,2),L=B[0],V=B[1],M=xU({state:L,setState:V,_radiumMediaQueryListenersByQuery:void 0,_radiumMouseUpListener:void 0,_radiumIsMounted:!0,_lastRadiumState:void 0,_extraRadiumStateKeys:void 0,_radiumStyleKeeper:z}).current;M.state=L,ZJ(function(){return function(){LJ(M)}},[M]);var K=M._extraRadiumStateKeys&&M._extraRadiumStateKeys.length>0;ZJ(function(){KJ(M)},[K,M]);var F=Z(W,X),O=MJ(G,H,J);return FJ(M,F,O,G)});return Y._isRadiumEnhanced=!0,Y.defaultProps=Z.defaultProps,UJ.default(Y,Z)}function hU(Z,J,Y){var Q=function(X){WJ(G,X);function G(){var W;QJ(this,G),W=XJ(this,$1(G).apply(this,arguments)),W.state=W.state||{},W._radiumStyleKeeper=W.props.styleKeeperContext,W._radiumMediaQueryListenersByQuery=W._radiumMediaQueryListenersByQuery,W._radiumMouseUpListener=W._radiumMouseUpListener,W._radiumIsMounted=!0,W._lastRadiumState=void 0,W._extraRadiumStateKeys=void 0,W.state._radiumStyleState={};var H=GJ(W);return kU(H,J),W}return IU(G,[{key:"componentDidUpdate",value:function(H,z,U){if(g1($1(G.prototype),"componentDidUpdate",this))g1($1(G.prototype),"componentDidUpdate",this).call(this,H,z,U);KJ(this)}},{key:"componentWillUnmount",value:function(){if(g1($1(G.prototype),"componentWillUnmount",this))g1($1(G.prototype),"componentWillUnmount",this).call(this);LJ(this)}},{key:"render",value:function(){var H=g1($1(G.prototype),"render",this).call(this),z=MJ(this.props.radiumConfig,this.props.radiumConfigContext,Y);return FJ(this,H,z,this.props.radiumConfig)}}]),G}(J);if(Q._isRadiumEnhanced=!0,E5=Q.prototype,BJ=Object.getOwnPropertyNames(E5).filter(function(X){return X!=="constructor"&&typeof E5[X]==="function"}),jU(Z,Q),Q.propTypes&&Q.propTypes.style)Q.propTypes=h8({},Q.propTypes,{style:w5.default.oneOfType([w5.default.array,w5.default.object])});return Q.displayName=Z.displayName||Z.name||"Component",L0(Q)}function bU(Z){return Z=function(J){function Y(){var Q=Reflect.construct(J,arguments,this.constructor);return Q}return Reflect.setPrototypeOf(Y.prototype,J.prototype),Reflect.setPrototypeOf(Y,J),Y}(Z),Z}var YJ=CU(function(){return null}).$$typeof;function M0(Z){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(YJ&&Z.$$typeof===YJ)return JJ(Z.render,J);if(typeof Z!=="function")return gU(J,Z);var Y=Z;if(_U(Y))return JJ(Y,J);var Q=Y;if(vU(Q))Q=bU(Q);if(Q===Y)Q=function(X){WJ(G,X);function G(){return QJ(this,G),XJ(this,$1(G).apply(this,arguments))}return G}(Q);return hU(Y,Q,J)}function gU(Z,J){var Y=h8({},Z,J);return function(Q){return M0(Q,Y)}}var S5=S(w6(),1);import pU,{PureComponent as lU}from"react";function F0(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")F0=function(Y){return typeof Y};else F0=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return F0(Z)}function yU(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function $J(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function mU(Z,J,Y){if(J)$J(Z.prototype,J);if(Y)$J(Z,Y);return Z}function uU(Z,J){if(J&&(F0(J)==="object"||typeof J==="function"))return J;return dU(Z)}function dU(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function b8(Z){return b8=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},b8(Z)}function cU(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)g8(Z,J)}function g8(Z,J){return g8=Object.setPrototypeOf||function(Q,X){return Q.__proto__=X,Q},g8(Z,J)}var y8=function(Z){cU(J,Z);function J(){return yU(this,J),uU(this,b8(J).apply(this,arguments))}return mU(J,[{key:"_buildStyles",value:function(Q){var X=this,G=this.props.radiumConfig&&this.props.radiumConfig.userAgent||this.props.radiumConfigContext&&this.props.radiumConfigContext.userAgent,W=this.props.scopeSelector,H=Object.keys(Q).reduce(function(U,B){if(F0(Q[B])!=="object")U[B]=Q[B];return U},{}),z=Object.keys(H).length?h1(W||"",H,G):"";return z+Object.keys(Q).reduce(function(U,B){var L=Q[B];if(B==="mediaQueries")U+=X._buildMediaQueryString(L);else if(F0(Q[B])==="object"){var V=W?B.split(",").map(function(M){return W+" "+M.trim()}).join(","):B;U+=h1(V,L,G)}return U},"")}},{key:"_buildMediaQueryString",value:function(Q){var X=this,G="";return Object.keys(Q).forEach(function(W){G+="@media "+W+"{"+X._buildStyles(Q[W])+"}"}),G}},{key:"render",value:function(){if(!this.props.rules)return null;var Q=this._buildStyles(this.props.rules);return pU.createElement("style",{dangerouslySetInnerHTML:{__html:Q}})}}]),J}(lU);y8.propTypes={radiumConfig:S5.default.object,rules:S5.default.object,scopeSelector:S5.default.string};y8.defaultProps={scopeSelector:""};var OJ=L0(y8);import C5,{useContext as YB,useRef as QB}from"react";import rU,{Component as tU}from"react";function x5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")x5=function(Y){return typeof Y};else x5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return x5(Z)}function iU(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function VJ(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function nU(Z,J,Y){if(J)VJ(Z.prototype,J);if(Y)VJ(Z,Y);return Z}function oU(Z,J){if(J&&(x5(J)==="object"||typeof J==="function"))return J;return aU(Z)}function aU(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function m8(Z){return m8=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},m8(Z)}function sU(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)u8(Z,J)}function u8(Z,J){return u8=Object.setPrototypeOf||function(Q,X){return Q.__proto__=X,Q},u8(Z,J)}var eU=function(Z){sU(J,Z);function J(){var Y;if(iU(this,J),Y=oU(this,m8(J).apply(this,arguments)),Y.styleKeeper=void 0,Y._subscription=void 0,Y._root=void 0,Y._css=void 0,Y._onChange=function(){var Q=Y.styleKeeper.getCSS();if(Q!==Y._css){if(Y._root)Y._root.innerHTML=Q;else throw Error("No root style object found, even after StyleSheet mount.");Y._css=Q}},!Y.props.styleKeeperContext)throw Error("StyleRoot is required to use StyleSheet");return Y.styleKeeper=Y.props.styleKeeperContext,Y._css=Y.styleKeeper.getCSS(),Y}return nU(J,[{key:"componentDidMount",value:function(){this._subscription=this.styleKeeper.subscribe(this._onChange),this._onChange()}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"componentWillUnmount",value:function(){if(this._subscription)this._subscription.remove()}},{key:"render",value:function(){var Q=this;return rU.createElement("style",{dangerouslySetInnerHTML:{__html:this._css},ref:function(G){Q._root=G}})}}]),J}(tU),IJ=L0(eU);function ZB(Z,J){if(Z==null)return{};var Y=JB(Z,J),Q,X;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(Z);for(X=0;X<G.length;X++){if(Q=G[X],J.indexOf(Q)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Z,Q))continue;Y[Q]=Z[Q]}}return Y}function JB(Z,J){if(Z==null)return{};var Y={},Q=Object.keys(Z),X,G;for(G=0;G<Q.length;G++){if(X=Q[G],J.indexOf(X)>=0)continue;Y[X]=Z[X]}return Y}function XB(Z,J){var Y=Z&&Z.userAgent||J&&J.userAgent;return new lZ(Y)}var GB=M0(function(Z){var J=Z.children,Y=ZB(Z,["children"]);return C5.createElement("div",Y,J,C5.createElement(IJ,null))}),WB=function(J){var Y=J.radiumConfig,Q=YB(K0),X=QB(XB(Y,Q));return C5.createElement(C0.Provider,{value:X.current},C5.createElement(GB,J))},qJ=WB;function d8(Z,J){return{__radiumKeyframes:!0,__process:function(Q){var X=bZ(Q),G=Object.keys(Z).map(function(z){return h1(z,Z[z],Q)}).join(`
|
|
18
|
-
`),W=(J?J+"-":"")+"radium-animation-"+x0(G),H="@"+X+" "+W+` {
|
|
19
|
-
|
|
9
|
+
*/(function(){var Z=!!(typeof window<"u"&&window.document&&window.document.createElement),J={canUseDOM:Z,canUseWorkers:typeof Worker<"u",canUseEventListeners:Z&&!!(window.addEventListener||window.attachEvent),canUseViewport:Z&&!!window.screen};if(typeof define==="function"&&typeof define.amd==="object"&&define.amd)define(function(){return J});else if(typeof q5<"u"&&q5.exports)q5.exports=J;else window.ExecutionEnvironment=J})()});var o1=A((a6,z4)=>{Object.defineProperty(a6,"__esModule",{value:!0});a6.default=qW;var IW=/-webkit-|-moz-|-ms-/;function qW(Z){return typeof Z==="string"&&IW.test(Z)}z4.exports=a6.default});var B4=A((s6,U4)=>{Object.defineProperty(s6,"__esModule",{value:!0});s6.default=TW;var NW=o1(),AW=RW(NW);function RW(Z){return Z&&Z.__esModule?Z:{default:Z}}var PW=["-webkit-","-moz-",""];function TW(Z,J){if(typeof J==="string"&&!(0,AW.default)(J)&&J.indexOf("calc(")>-1)return PW.map(function(Y){return J.replace(/calc\(/g,Y+"calc(")})}U4.exports=s6.default});var L4=A((r6,K4)=>{Object.defineProperty(r6,"__esModule",{value:!0});r6.default=fW;var EW=o1(),SW=xW(EW);function xW(Z){return Z&&Z.__esModule?Z:{default:Z}}var CW=["-webkit-",""];function fW(Z,J){if(typeof J==="string"&&!(0,SW.default)(J)&&J.indexOf("cross-fade(")>-1)return CW.map(function(Y){return J.replace(/cross-fade\(/g,Y+"cross-fade(")})}K4.exports=r6.default});var $4=A((t6,M4)=>{Object.defineProperty(t6,"__esModule",{value:!0});t6.default=kW;var _W=["-webkit-","-moz-",""],vW={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function kW(Z,J){if(Z==="cursor"&&vW.hasOwnProperty(J))return _W.map(function(Y){return Y+J})}M4.exports=t6.default});var O4=A((e6,F4)=>{Object.defineProperty(e6,"__esModule",{value:!0});e6.default=uW;var bW=o1(),gW=yW(bW);function yW(Z){return Z&&Z.__esModule?Z:{default:Z}}var mW=["-webkit-",""];function uW(Z,J){if(typeof J==="string"&&!(0,gW.default)(J)&&J.indexOf("filter(")>-1)return mW.map(function(Y){return J.replace(/filter\(/g,Y+"filter(")})}F4.exports=e6.default});var q4=A((Z8,I4)=>{Object.defineProperty(Z8,"__esModule",{value:!0});Z8.default=cW;var V4={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function cW(Z,J){if(Z==="display"&&V4.hasOwnProperty(J))return V4[J]}I4.exports=Z8.default});var A4=A((J8,N4)=>{Object.defineProperty(J8,"__esModule",{value:!0});J8.default=iW;var lW={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},D4={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"};function iW(Z,J,Y){if(D4.hasOwnProperty(Z))Y[D4[Z]]=lW[J]||J}N4.exports=J8.default});var T4=A((Y8,P4)=>{Object.defineProperty(Y8,"__esModule",{value:!0});Y8.default=aW;var oW={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},R4={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};function aW(Z,J,Y){if(Z==="flexDirection"&&typeof J==="string"){if(J.indexOf("column")>-1)Y.WebkitBoxOrient="vertical";else Y.WebkitBoxOrient="horizontal";if(J.indexOf("reverse")>-1)Y.WebkitBoxDirection="reverse";else Y.WebkitBoxDirection="normal"}if(R4.hasOwnProperty(Z))Y[R4[Z]]=oW[J]||J}P4.exports=Y8.default});var S4=A((G8,E4)=>{Object.defineProperty(G8,"__esModule",{value:!0});G8.default=JH;var rW=o1(),tW=eW(rW);function eW(Z){return Z&&Z.__esModule?Z:{default:Z}}var ZH=["-webkit-","-moz-",""],w4=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function JH(Z,J){if(typeof J==="string"&&!(0,tW.default)(J)&&w4.test(J))return ZH.map(function(Y){return J.replace(w4,function(G){return Y+G})})}E4.exports=G8.default});var C4=A((Q8,x4)=>{Object.defineProperty(Q8,"__esModule",{value:!0});Q8.default=HH;var GH=o1(),QH=XH(GH);function XH(Z){return Z&&Z.__esModule?Z:{default:Z}}var WH=["-webkit-",""];function HH(Z,J){if(typeof J==="string"&&!(0,QH.default)(J)&&J.indexOf("image-set(")>-1)return WH.map(function(Y){return J.replace(/image-set\(/g,Y+"image-set(")})}x4.exports=Q8.default});var j4=A((X8,f4)=>{Object.defineProperty(X8,"__esModule",{value:!0});X8.default=UH;function UH(Z,J){if(Z==="position"&&J==="sticky")return["-webkit-sticky","sticky"]}f4.exports=X8.default});var v4=A((W8,_4)=>{Object.defineProperty(W8,"__esModule",{value:!0});W8.default=$H;var KH=["-webkit-","-moz-",""],LH={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},MH={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function $H(Z,J){if(LH.hasOwnProperty(Z)&&MH.hasOwnProperty(J))return KH.map(function(Y){return Y+J})}_4.exports=W8.default});var h4=A((LO,k4)=>{var OH=/[A-Z]/g,VH=/^ms-/,H8={};function IH(Z){return"-"+Z.toLowerCase()}function qH(Z){if(H8.hasOwnProperty(Z))return H8[Z];var J=Z.replace(OH,IH);return H8[Z]=VH.test(J)?"-"+J:J}k4.exports=qH});var U8=A((z8,b4)=>{Object.defineProperty(z8,"__esModule",{value:!0});z8.default=RH;var DH=h4(),NH=AH(DH);function AH(Z){return Z&&Z.__esModule?Z:{default:Z}}function RH(Z){return(0,NH.default)(Z)}b4.exports=z8.default});var m4=A((K8,y4)=>{Object.defineProperty(K8,"__esModule",{value:!0});K8.default=_H;var TH=U8(),wH=B8(TH),EH=o1(),SH=B8(EH),xH=O5(),g4=B8(xH);function B8(Z){return Z&&Z.__esModule?Z:{default:Z}}var CH={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},fH={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function jH(Z,J){if((0,SH.default)(Z))return Z;var Y=Z.split(/,(?![^()]*(?:\([^()]*\))?\))/g);for(var G=0,Q=Y.length;G<Q;++G){var X=Y[G],W=[X];for(var H in J){var z=(0,wH.default)(H);if(X.indexOf(z)>-1&&z!=="order"){var U=J[H];for(var B=0,L=U.length;B<L;++B)W.unshift(X.replace(z,fH[U[B]]+z))}}Y[G]=W.join(",")}return Y.join(",")}function _H(Z,J,Y,G){if(typeof J==="string"&&CH.hasOwnProperty(Z)){var Q=jH(J,G),X=Q.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(H){return!/-moz-|-ms-/.test(H)}).join(",");if(Z.indexOf("Webkit")>-1)return X;var W=Q.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(H){return!/-webkit-|-ms-/.test(H)}).join(",");if(Z.indexOf("Moz")>-1)return W;return Y["Webkit"+(0,g4.default)(Z)]=X,Y["Moz"+(0,g4.default)(Z)]=W,Q}}y4.exports=K8.default});var U1=A((M8,ZZ)=>{Object.defineProperty(M8,"__esModule",{value:!0});M8.default=kH;function kH(Z,J,Y){if(Y)return[Z,J];return Z}ZZ.exports=M8.default});var YZ=A(($8,JZ)=>{Object.defineProperty($8,"__esModule",{value:!0});$8.default=mH;var bH=U1(),gH=yH(bH);function yH(Z){return Z&&Z.__esModule?Z:{default:Z}}function mH(Z,J,Y,G){var{browserName:Q,browserVersion:X,cssPrefix:W,keepUnprefixed:H}=G;if(typeof J==="string"&&J.indexOf("calc(")>-1&&(Q==="firefox"&&X<15||Q==="chrome"&&X<25||Q==="safari"&&X<6.1||Q==="ios_saf"&&X<7))return(0,gH.default)(J.replace(/calc\(/g,W+"calc("),J,H)}JZ.exports=$8.default});var QZ=A((F8,GZ)=>{Object.defineProperty(F8,"__esModule",{value:!0});F8.default=lH;var dH=U1(),cH=pH(dH);function pH(Z){return Z&&Z.__esModule?Z:{default:Z}}function lH(Z,J,Y,G){var{browserName:Q,browserVersion:X,cssPrefix:W,keepUnprefixed:H}=G;if(typeof J==="string"&&J.indexOf("cross-fade(")>-1&&(Q==="chrome"||Q==="opera"||Q==="and_chr"||(Q==="ios_saf"||Q==="safari")&&X<10))return(0,cH.default)(J.replace(/cross-fade\(/g,W+"cross-fade("),J,H)}GZ.exports=F8.default});var HZ=A((O8,WZ)=>{Object.defineProperty(O8,"__esModule",{value:!0});O8.default=rH;var nH=U1(),XZ=oH(nH);function oH(Z){return Z&&Z.__esModule?Z:{default:Z}}var aH={grab:!0,grabbing:!0},sH={"zoom-in":!0,"zoom-out":!0};function rH(Z,J,Y,G){var{browserName:Q,browserVersion:X,cssPrefix:W,keepUnprefixed:H}=G;if(Z==="cursor"&&aH[J]&&(Q==="firefox"||Q==="chrome"||Q==="safari"||Q==="opera"))return(0,XZ.default)(W+J,J,H);if(Z==="cursor"&&sH[J]&&(Q==="firefox"&&X<24||Q==="chrome"&&X<37||Q==="safari"&&X<9||Q==="opera"&&X<24))return(0,XZ.default)(W+J,J,H)}WZ.exports=O8.default});var UZ=A((V8,zZ)=>{Object.defineProperty(V8,"__esModule",{value:!0});V8.default=Yz;var eH=U1(),Zz=Jz(eH);function Jz(Z){return Z&&Z.__esModule?Z:{default:Z}}function Yz(Z,J,Y,G){var{browserName:Q,browserVersion:X,cssPrefix:W,keepUnprefixed:H}=G;if(typeof J==="string"&&J.indexOf("filter(")>-1&&(Q==="ios_saf"||Q==="safari"&&X<9.1))return(0,Zz.default)(J.replace(/filter\(/g,W+"filter("),J,H)}zZ.exports=V8.default});var KZ=A((I8,BZ)=>{Object.defineProperty(I8,"__esModule",{value:!0});I8.default=zz;var Qz=U1(),Xz=Wz(Qz);function Wz(Z){return Z&&Z.__esModule?Z:{default:Z}}var Hz={flex:!0,"inline-flex":!0};function zz(Z,J,Y,G){var{browserName:Q,browserVersion:X,cssPrefix:W,keepUnprefixed:H}=G;if(Z==="display"&&Hz[J]&&(Q==="chrome"&&X<29&&X>20||(Q==="safari"||Q==="ios_saf")&&X<9&&X>6||Q==="opera"&&(X===15||X===16)))return(0,Xz.default)(W+J,J,H)}BZ.exports=I8.default});var MZ=A((N8,LZ)=>{Object.defineProperty(N8,"__esModule",{value:!0});N8.default=Mz;var Bz=U1(),Kz=Lz(Bz);function Lz(Z){return Z&&Z.__esModule?Z:{default:Z}}var q8={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end",flex:"flexbox","inline-flex":"inline-flexbox"},D8={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"};function Mz(Z,J,Y,G){var{browserName:Q,browserVersion:X,cssPrefix:W,keepUnprefixed:H,requiresPrefix:z}=G;if((D8.hasOwnProperty(Z)||Z==="display"&&typeof J==="string"&&J.indexOf("flex")>-1)&&(Q==="ie_mob"||Q==="ie")&&X===10){if(delete z[Z],!H&&!Array.isArray(Y[Z]))delete Y[Z];if(Z==="display"&&q8.hasOwnProperty(J))return(0,Kz.default)(W+q8[J],J,H);if(D8.hasOwnProperty(Z))Y[D8[Z]]=q8[J]||J}}LZ.exports=N8.default});var FZ=A((P8,$Z)=>{Object.defineProperty(P8,"__esModule",{value:!0});P8.default=Dz;var Fz=U1(),Oz=Vz(Fz);function Vz(Z){return Z&&Z.__esModule?Z:{default:Z}}var A8={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},R8={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"},Iz=["alignContent","alignSelf","order","flexGrow","flexShrink","flexBasis","flexDirection"],qz=Object.keys(R8).concat(Iz);function Dz(Z,J,Y,G){var{browserName:Q,browserVersion:X,cssPrefix:W,keepUnprefixed:H,requiresPrefix:z}=G;if((qz.indexOf(Z)>-1||Z==="display"&&typeof J==="string"&&J.indexOf("flex")>-1)&&(Q==="firefox"&&X<22||Q==="chrome"&&X<21||(Q==="safari"||Q==="ios_saf")&&X<=6.1||Q==="android"&&X<4.4||Q==="and_uc")){if(delete z[Z],!H&&!Array.isArray(Y[Z]))delete Y[Z];if(Z==="flexDirection"&&typeof J==="string"){if(J.indexOf("column")>-1)Y.WebkitBoxOrient="vertical";else Y.WebkitBoxOrient="horizontal";if(J.indexOf("reverse")>-1)Y.WebkitBoxDirection="reverse";else Y.WebkitBoxDirection="normal"}if(Z==="display"&&A8.hasOwnProperty(J))return(0,Oz.default)(W+A8[J],J,H);if(R8.hasOwnProperty(Z))Y[R8[Z]]=A8[J]||J}}$Z.exports=P8.default});var IZ=A((T8,VZ)=>{Object.defineProperty(T8,"__esModule",{value:!0});T8.default=Tz;var Az=U1(),Rz=Pz(Az);function Pz(Z){return Z&&Z.__esModule?Z:{default:Z}}var OZ=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function Tz(Z,J,Y,G){var{browserName:Q,browserVersion:X,cssPrefix:W,keepUnprefixed:H}=G;if(typeof J==="string"&&OZ.test(J)&&(Q==="firefox"&&X<16||Q==="chrome"&&X<26||(Q==="safari"||Q==="ios_saf")&&X<7||(Q==="opera"||Q==="op_mini")&&X<12.1||Q==="android"&&X<4.4||Q==="and_uc"))return(0,Rz.default)(J.replace(OZ,function(z){return W+z}),J,H)}VZ.exports=T8.default});var DZ=A((w8,qZ)=>{Object.defineProperty(w8,"__esModule",{value:!0});w8.default=Cz;var Ez=U1(),Sz=xz(Ez);function xz(Z){return Z&&Z.__esModule?Z:{default:Z}}function Cz(Z,J,Y,G){var{browserName:Q,cssPrefix:X,keepUnprefixed:W}=G;if(typeof J==="string"&&J.indexOf("image-set(")>-1&&(Q==="chrome"||Q==="opera"||Q==="and_chr"||Q==="and_uc"||Q==="ios_saf"||Q==="safari"))return(0,Sz.default)(J.replace(/image-set\(/g,X+"image-set("),J,W)}qZ.exports=w8.default});var AZ=A((E8,NZ)=>{Object.defineProperty(E8,"__esModule",{value:!0});E8.default=kz;var jz=U1(),_z=vz(jz);function vz(Z){return Z&&Z.__esModule?Z:{default:Z}}function kz(Z,J,Y,G){var{browserName:Q,cssPrefix:X,keepUnprefixed:W}=G;if(Z==="position"&&J==="sticky"&&(Q==="safari"||Q==="ios_saf"))return(0,_z.default)(X+J,J,W)}NZ.exports=E8.default});var PZ=A((S8,RZ)=>{Object.defineProperty(S8,"__esModule",{value:!0});S8.default=dz;var bz=U1(),gz=yz(bz);function yz(Z){return Z&&Z.__esModule?Z:{default:Z}}var mz={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},uz={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function dz(Z,J,Y,G){var{cssPrefix:Q,keepUnprefixed:X}=G;if(mz.hasOwnProperty(Z)&&uz.hasOwnProperty(J))return(0,gz.default)(Q+J,J,X)}RZ.exports=S8.default});var wZ=A((C8,TZ)=>{Object.defineProperty(C8,"__esModule",{value:!0});C8.default=oz;var pz=U8(),lz=iz(pz);function iz(Z){return Z&&Z.__esModule?Z:{default:Z}}var nz={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},x8=void 0;function oz(Z,J,Y,G){var{cssPrefix:Q,keepUnprefixed:X,requiresPrefix:W}=G;if(typeof J==="string"&&nz.hasOwnProperty(Z)){if(!x8)x8=Object.keys(W).map(function(z){return(0,lz.default)(z)});var H=J.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return x8.forEach(function(z){H.forEach(function(U,B){if(U.indexOf(z)>-1&&z!=="order")H[B]=U.replace(z,Q+z)+(X?","+U:"")})}),H.join(",")}}TZ.exports=C8.default});var JG={};O7(JG,{default:()=>FK,__values:()=>J6,__spreadArrays:()=>uY,__spreadArray:()=>dY,__spread:()=>mY,__setFunctionName:()=>kY,__runInitializers:()=>_Y,__rewriteRelativeImportExtension:()=>ZG,__rest:()=>xY,__read:()=>L9,__propKey:()=>vY,__param:()=>fY,__metadata:()=>hY,__makeTemplateObject:()=>iY,__importStar:()=>nY,__importDefault:()=>oY,__generator:()=>gY,__extends:()=>SY,__exportStar:()=>yY,__esDecorate:()=>jY,__disposeResources:()=>eY,__decorate:()=>CY,__createBinding:()=>Y6,__classPrivateFieldSet:()=>sY,__classPrivateFieldIn:()=>rY,__classPrivateFieldGet:()=>aY,__awaiter:()=>bY,__await:()=>I0,__asyncValues:()=>lY,__asyncGenerator:()=>cY,__asyncDelegator:()=>pY,__assign:()=>Z6,__addDisposableResource:()=>tY});function SY(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Class extends value "+String(J)+" is not a constructor or null");B9(Z,J);function Y(){this.constructor=Z}Z.prototype=J===null?Object.create(J):(Y.prototype=J.prototype,new Y)}function xY(Z,J){var Y={};for(var G in Z)if(Object.prototype.hasOwnProperty.call(Z,G)&&J.indexOf(G)<0)Y[G]=Z[G];if(Z!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var Q=0,G=Object.getOwnPropertySymbols(Z);Q<G.length;Q++)if(J.indexOf(G[Q])<0&&Object.prototype.propertyIsEnumerable.call(Z,G[Q]))Y[G[Q]]=Z[G[Q]]}return Y}function CY(Z,J,Y,G){var Q=arguments.length,X=Q<3?J:G===null?G=Object.getOwnPropertyDescriptor(J,Y):G,W;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")X=Reflect.decorate(Z,J,Y,G);else for(var H=Z.length-1;H>=0;H--)if(W=Z[H])X=(Q<3?W(X):Q>3?W(J,Y,X):W(J,Y))||X;return Q>3&&X&&Object.defineProperty(J,Y,X),X}function fY(Z,J){return function(Y,G){J(Y,G,Z)}}function jY(Z,J,Y,G,Q,X){function W(N){if(N!==void 0&&typeof N!=="function")throw TypeError("Function expected");return N}var H=G.kind,z=H==="getter"?"get":H==="setter"?"set":"value",U=!J&&Z?G.static?Z:Z.prototype:null,B=J||(U?Object.getOwnPropertyDescriptor(U,G.name):{}),L,F=!1;for(var M=Y.length-1;M>=0;M--){var K={};for(var $ in G)K[$]=$==="access"?{}:G[$];for(var $ in G.access)K.access[$]=G.access[$];K.addInitializer=function(N){if(F)throw TypeError("Cannot add initializers after decoration has completed");X.push(W(N||null))};var V=(0,Y[M])(H==="accessor"?{get:B.get,set:B.set}:B[z],K);if(H==="accessor"){if(V===void 0)continue;if(V===null||typeof V!=="object")throw TypeError("Object expected");if(L=W(V.get))B.get=L;if(L=W(V.set))B.set=L;if(L=W(V.init))Q.unshift(L)}else if(L=W(V))if(H==="field")Q.unshift(L);else B[z]=L}if(U)Object.defineProperty(U,G.name,B);F=!0}function _Y(Z,J,Y){var G=arguments.length>2;for(var Q=0;Q<J.length;Q++)Y=G?J[Q].call(Z,Y):J[Q].call(Z);return G?Y:void 0}function vY(Z){return typeof Z==="symbol"?Z:"".concat(Z)}function kY(Z,J,Y){if(typeof J==="symbol")J=J.description?"[".concat(J.description,"]"):"";return Object.defineProperty(Z,"name",{configurable:!0,value:Y?"".concat(Y," ",J):J})}function hY(Z,J){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(Z,J)}function bY(Z,J,Y,G){function Q(X){return X instanceof Y?X:new Y(function(W){W(X)})}return new(Y||(Y=Promise))(function(X,W){function H(B){try{U(G.next(B))}catch(L){W(L)}}function z(B){try{U(G.throw(B))}catch(L){W(L)}}function U(B){B.done?X(B.value):Q(B.value).then(H,z)}U((G=G.apply(Z,J||[])).next())})}function gY(Z,J){var Y={label:0,sent:function(){if(X[0]&1)throw X[1];return X[1]},trys:[],ops:[]},G,Q,X,W=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return W.next=H(0),W.throw=H(1),W.return=H(2),typeof Symbol==="function"&&(W[Symbol.iterator]=function(){return this}),W;function H(U){return function(B){return z([U,B])}}function z(U){if(G)throw TypeError("Generator is already executing.");while(W&&(W=0,U[0]&&(Y=0)),Y)try{if(G=1,Q&&(X=U[0]&2?Q.return:U[0]?Q.throw||((X=Q.return)&&X.call(Q),0):Q.next)&&!(X=X.call(Q,U[1])).done)return X;if(Q=0,X)U=[U[0]&2,X.value];switch(U[0]){case 0:case 1:X=U;break;case 4:return Y.label++,{value:U[1],done:!1};case 5:Y.label++,Q=U[1],U=[0];continue;case 7:U=Y.ops.pop(),Y.trys.pop();continue;default:if((X=Y.trys,!(X=X.length>0&&X[X.length-1]))&&(U[0]===6||U[0]===2)){Y=0;continue}if(U[0]===3&&(!X||U[1]>X[0]&&U[1]<X[3])){Y.label=U[1];break}if(U[0]===6&&Y.label<X[1]){Y.label=X[1],X=U;break}if(X&&Y.label<X[2]){Y.label=X[2],Y.ops.push(U);break}if(X[2])Y.ops.pop();Y.trys.pop();continue}U=J.call(Z,Y)}catch(B){U=[6,B],Q=0}finally{G=X=0}if(U[0]&5)throw U[1];return{value:U[0]?U[1]:void 0,done:!0}}}function yY(Z,J){for(var Y in Z)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(J,Y))Y6(J,Z,Y)}function J6(Z){var J=typeof Symbol==="function"&&Symbol.iterator,Y=J&&Z[J],G=0;if(Y)return Y.call(Z);if(Z&&typeof Z.length==="number")return{next:function(){if(Z&&G>=Z.length)Z=void 0;return{value:Z&&Z[G++],done:!Z}}};throw TypeError(J?"Object is not iterable.":"Symbol.iterator is not defined.")}function L9(Z,J){var Y=typeof Symbol==="function"&&Z[Symbol.iterator];if(!Y)return Z;var G=Y.call(Z),Q,X=[],W;try{while((J===void 0||J-- >0)&&!(Q=G.next()).done)X.push(Q.value)}catch(H){W={error:H}}finally{try{if(Q&&!Q.done&&(Y=G.return))Y.call(G)}finally{if(W)throw W.error}}return X}function mY(){for(var Z=[],J=0;J<arguments.length;J++)Z=Z.concat(L9(arguments[J]));return Z}function uY(){for(var Z=0,J=0,Y=arguments.length;J<Y;J++)Z+=arguments[J].length;for(var G=Array(Z),Q=0,J=0;J<Y;J++)for(var X=arguments[J],W=0,H=X.length;W<H;W++,Q++)G[Q]=X[W];return G}function dY(Z,J,Y){if(Y||arguments.length===2){for(var G=0,Q=J.length,X;G<Q;G++)if(X||!(G in J)){if(!X)X=Array.prototype.slice.call(J,0,G);X[G]=J[G]}}return Z.concat(X||Array.prototype.slice.call(J))}function I0(Z){return this instanceof I0?(this.v=Z,this):new I0(Z)}function cY(Z,J,Y){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var G=Y.apply(Z,J||[]),Q,X=[];return Q=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),H("next"),H("throw"),H("return",W),Q[Symbol.asyncIterator]=function(){return this},Q;function W(M){return function(K){return Promise.resolve(K).then(M,L)}}function H(M,K){if(G[M]){if(Q[M]=function($){return new Promise(function(V,N){X.push([M,$,V,N])>1||z(M,$)})},K)Q[M]=K(Q[M])}}function z(M,K){try{U(G[M](K))}catch($){F(X[0][3],$)}}function U(M){M.value instanceof I0?Promise.resolve(M.value.v).then(B,L):F(X[0][2],M)}function B(M){z("next",M)}function L(M){z("throw",M)}function F(M,K){if(M(K),X.shift(),X.length)z(X[0][0],X[0][1])}}function pY(Z){var J,Y;return J={},G("next"),G("throw",function(Q){throw Q}),G("return"),J[Symbol.iterator]=function(){return this},J;function G(Q,X){J[Q]=Z[Q]?function(W){return(Y=!Y)?{value:I0(Z[Q](W)),done:!1}:X?X(W):W}:X}}function lY(Z){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var J=Z[Symbol.asyncIterator],Y;return J?J.call(Z):(Z=typeof J6==="function"?J6(Z):Z[Symbol.iterator](),Y={},G("next"),G("throw"),G("return"),Y[Symbol.asyncIterator]=function(){return this},Y);function G(X){Y[X]=Z[X]&&function(W){return new Promise(function(H,z){W=Z[X](W),Q(H,z,W.done,W.value)})}}function Q(X,W,H,z){Promise.resolve(z).then(function(U){X({value:U,done:H})},W)}}function iY(Z,J){if(Object.defineProperty)Object.defineProperty(Z,"raw",{value:J});else Z.raw=J;return Z}function nY(Z){if(Z&&Z.__esModule)return Z;var J={};if(Z!=null){for(var Y=K9(Z),G=0;G<Y.length;G++)if(Y[G]!=="default")Y6(J,Z,Y[G])}return MK(J,Z),J}function oY(Z){return Z&&Z.__esModule?Z:{default:Z}}function aY(Z,J,Y,G){if(Y==="a"&&!G)throw TypeError("Private accessor was defined without a getter");if(typeof J==="function"?Z!==J||!G:!J.has(Z))throw TypeError("Cannot read private member from an object whose class did not declare it");return Y==="m"?G:Y==="a"?G.call(Z):G?G.value:J.get(Z)}function sY(Z,J,Y,G,Q){if(G==="m")throw TypeError("Private method is not writable");if(G==="a"&&!Q)throw TypeError("Private accessor was defined without a setter");if(typeof J==="function"?Z!==J||!Q:!J.has(Z))throw TypeError("Cannot write private member to an object whose class did not declare it");return G==="a"?Q.call(Z,Y):Q?Q.value=Y:J.set(Z,Y),Y}function rY(Z,J){if(J===null||typeof J!=="object"&&typeof J!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof Z==="function"?J===Z:Z.has(J)}function tY(Z,J,Y){if(J!==null&&J!==void 0){if(typeof J!=="object"&&typeof J!=="function")throw TypeError("Object expected.");var G,Q;if(Y){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");G=J[Symbol.asyncDispose]}if(G===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(G=J[Symbol.dispose],Y)Q=G}if(typeof G!=="function")throw TypeError("Object not disposable.");if(Q)G=function(){try{Q.call(this)}catch(X){return Promise.reject(X)}};Z.stack.push({value:J,dispose:G,async:Y})}else if(Y)Z.stack.push({async:!0});return J}function eY(Z){function J(X){Z.error=Z.hasError?new $K(X,Z.error,"An error was suppressed during disposal."):X,Z.hasError=!0}var Y,G=0;function Q(){while(Y=Z.stack.pop())try{if(!Y.async&&G===1)return G=0,Z.stack.push(Y),Promise.resolve().then(Q);if(Y.dispose){var X=Y.dispose.call(Y.value);if(Y.async)return G|=2,Promise.resolve(X).then(Q,function(W){return J(W),Q()})}else G|=1}catch(W){J(W)}if(G===1)return Z.hasError?Promise.reject(Z.error):Promise.resolve();if(Z.hasError)throw Z.error}return Q()}function ZG(Z,J){if(typeof Z==="string"&&/^\.\.?\//.test(Z))return Z.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(Y,G,Q,X,W){return G?J?".jsx":".js":Q&&(!X||!W)?Y:Q+X+"."+W.toLowerCase()+"js"});return Z}var B9=function(Z,J){return B9=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,G){Y.__proto__=G}||function(Y,G){for(var Q in G)if(Object.prototype.hasOwnProperty.call(G,Q))Y[Q]=G[Q]},B9(Z,J)},Z6=function(){return Z6=Object.assign||function(J){for(var Y,G=1,Q=arguments.length;G<Q;G++){Y=arguments[G];for(var X in Y)if(Object.prototype.hasOwnProperty.call(Y,X))J[X]=Y[X]}return J},Z6.apply(this,arguments)},Y6,MK,K9=function(Z){return K9=Object.getOwnPropertyNames||function(J){var Y=[];for(var G in J)if(Object.prototype.hasOwnProperty.call(J,G))Y[Y.length]=G;return Y},K9(Z)},$K,FK;var YG=V7(()=>{Y6=Object.create?function(Z,J,Y,G){if(G===void 0)G=Y;var Q=Object.getOwnPropertyDescriptor(J,Y);if(!Q||("get"in Q?!J.__esModule:Q.writable||Q.configurable))Q={enumerable:!0,get:function(){return J[Y]}};Object.defineProperty(Z,G,Q)}:function(Z,J,Y,G){if(G===void 0)G=Y;Z[G]=J[Y]};MK=Object.create?function(Z,J){Object.defineProperty(Z,"default",{enumerable:!0,value:J})}:function(Z,J){Z.default=J};$K=typeof SuppressedError==="function"?SuppressedError:function(Z,J,Y){var G=Error(Y);return G.name="SuppressedError",G.error=Z,G.suppressed=J,G};FK={__extends:SY,__assign:Z6,__rest:xY,__decorate:CY,__param:fY,__esDecorate:jY,__runInitializers:_Y,__propKey:vY,__setFunctionName:kY,__metadata:hY,__awaiter:bY,__generator:gY,__createBinding:Y6,__exportStar:yY,__values:J6,__read:L9,__spread:mY,__spreadArrays:uY,__spreadArray:dY,__await:I0,__asyncGenerator:cY,__asyncDelegator:pY,__asyncValues:lY,__makeTemplateObject:iY,__importStar:nY,__importDefault:oY,__classPrivateFieldGet:aY,__classPrivateFieldSet:sY,__classPrivateFieldIn:rY,__addDisposableResource:tY,__disposeResources:eY,__rewriteRelativeImportExtension:ZG}});var cG=A((YD,dG)=>{/*! Axios v1.13.4 Copyright (c) 2026 Matt Zabriskie and contributors */function qG(Z,J){return function(){return Z.apply(J,arguments)}}var{toString:OK}=Object.prototype,{getPrototypeOf:D9}=Object,{iterator:U6,toStringTag:DG}=Symbol,B6=((Z)=>(J)=>{let Y=OK.call(J);return Z[Y]||(Z[Y]=Y.slice(8,-1).toLowerCase())})(Object.create(null)),$1=(Z)=>{return Z=Z.toLowerCase(),(J)=>B6(J)===Z},K6=(Z)=>(J)=>typeof J===Z,{isArray:D0}=Array,q0=K6("undefined");function r0(Z){return Z!==null&&!q0(Z)&&Z.constructor!==null&&!q0(Z.constructor)&&Z1(Z.constructor.isBuffer)&&Z.constructor.isBuffer(Z)}var NG=$1("ArrayBuffer");function VK(Z){let J;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)J=ArrayBuffer.isView(Z);else J=Z&&Z.buffer&&NG(Z.buffer);return J}var IK=K6("string"),Z1=K6("function"),AG=K6("number"),t0=(Z)=>Z!==null&&typeof Z==="object",qK=(Z)=>Z===!0||Z===!1,Q6=(Z)=>{if(B6(Z)!=="object")return!1;let J=D9(Z);return(J===null||J===Object.prototype||Object.getPrototypeOf(J)===null)&&!(DG in Z)&&!(U6 in Z)},DK=(Z)=>{if(!t0(Z)||r0(Z))return!1;try{return Object.keys(Z).length===0&&Object.getPrototypeOf(Z)===Object.prototype}catch(J){return!1}},NK=$1("Date"),AK=$1("File"),RK=$1("Blob"),PK=$1("FileList"),TK=(Z)=>t0(Z)&&Z1(Z.pipe),wK=(Z)=>{let J;return Z&&(typeof FormData==="function"&&Z instanceof FormData||Z1(Z.append)&&((J=B6(Z))==="formdata"||J==="object"&&Z1(Z.toString)&&Z.toString()==="[object FormData]"))},EK=$1("URLSearchParams"),[SK,xK,CK,fK]=["ReadableStream","Request","Response","Headers"].map($1),jK=(Z)=>Z.trim?Z.trim():Z.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function e0(Z,J,{allOwnKeys:Y=!1}={}){if(Z===null||typeof Z>"u")return;let G,Q;if(typeof Z!=="object")Z=[Z];if(D0(Z))for(G=0,Q=Z.length;G<Q;G++)J.call(null,Z[G],G,Z);else{if(r0(Z))return;let X=Y?Object.getOwnPropertyNames(Z):Object.keys(Z),W=X.length,H;for(G=0;G<W;G++)H=X[G],J.call(null,Z[H],H,Z)}}function RG(Z,J){if(r0(Z))return null;J=J.toLowerCase();let Y=Object.keys(Z),G=Y.length,Q;while(G-- >0)if(Q=Y[G],J===Q.toLowerCase())return Q;return null}var Y0=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})(),PG=(Z)=>!q0(Z)&&Z!==Y0;function O9(){let{caseless:Z,skipUndefined:J}=PG(this)&&this||{},Y={},G=(Q,X)=>{let W=Z&&RG(Y,X)||X;if(Q6(Y[W])&&Q6(Q))Y[W]=O9(Y[W],Q);else if(Q6(Q))Y[W]=O9({},Q);else if(D0(Q))Y[W]=Q.slice();else if(!J||!q0(Q))Y[W]=Q};for(let Q=0,X=arguments.length;Q<X;Q++)arguments[Q]&&e0(arguments[Q],G);return Y}var _K=(Z,J,Y,{allOwnKeys:G}={})=>{return e0(J,(Q,X)=>{if(Y&&Z1(Q))Object.defineProperty(Z,X,{value:qG(Q,Y),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty(Z,X,{value:Q,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:G}),Z},vK=(Z)=>{if(Z.charCodeAt(0)===65279)Z=Z.slice(1);return Z},kK=(Z,J,Y,G)=>{Z.prototype=Object.create(J.prototype,G),Object.defineProperty(Z.prototype,"constructor",{value:Z,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(Z,"super",{value:J.prototype}),Y&&Object.assign(Z.prototype,Y)},hK=(Z,J,Y,G)=>{let Q,X,W,H={};if(J=J||{},Z==null)return J;do{Q=Object.getOwnPropertyNames(Z),X=Q.length;while(X-- >0)if(W=Q[X],(!G||G(W,Z,J))&&!H[W])J[W]=Z[W],H[W]=!0;Z=Y!==!1&&D9(Z)}while(Z&&(!Y||Y(Z,J))&&Z!==Object.prototype);return J},bK=(Z,J,Y)=>{if(Z=String(Z),Y===void 0||Y>Z.length)Y=Z.length;Y-=J.length;let G=Z.indexOf(J,Y);return G!==-1&&G===Y},gK=(Z)=>{if(!Z)return null;if(D0(Z))return Z;let J=Z.length;if(!AG(J))return null;let Y=Array(J);while(J-- >0)Y[J]=Z[J];return Y},yK=((Z)=>{return(J)=>{return Z&&J instanceof Z}})(typeof Uint8Array<"u"&&D9(Uint8Array)),mK=(Z,J)=>{let G=(Z&&Z[U6]).call(Z),Q;while((Q=G.next())&&!Q.done){let X=Q.value;J.call(Z,X[0],X[1])}},uK=(Z,J)=>{let Y,G=[];while((Y=Z.exec(J))!==null)G.push(Y);return G},dK=$1("HTMLFormElement"),cK=(Z)=>{return Z.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(Y,G,Q){return G.toUpperCase()+Q})},GG=(({hasOwnProperty:Z})=>(J,Y)=>Z.call(J,Y))(Object.prototype),pK=$1("RegExp"),TG=(Z,J)=>{let Y=Object.getOwnPropertyDescriptors(Z),G={};e0(Y,(Q,X)=>{let W;if((W=J(Q,X,Z))!==!1)G[X]=W||Q}),Object.defineProperties(Z,G)},lK=(Z)=>{TG(Z,(J,Y)=>{if(Z1(Z)&&["arguments","caller","callee"].indexOf(Y)!==-1)return!1;let G=Z[Y];if(!Z1(G))return;if(J.enumerable=!1,"writable"in J){J.writable=!1;return}if(!J.set)J.set=()=>{throw Error("Can not rewrite read-only method '"+Y+"'")}})},iK=(Z,J)=>{let Y={},G=(Q)=>{Q.forEach((X)=>{Y[X]=!0})};return D0(Z)?G(Z):G(String(Z).split(J)),Y},nK=()=>{},oK=(Z,J)=>{return Z!=null&&Number.isFinite(Z=+Z)?Z:J};function aK(Z){return!!(Z&&Z1(Z.append)&&Z[DG]==="FormData"&&Z[U6])}var sK=(Z)=>{let J=[,,,,,,,,,,],Y=(G,Q)=>{if(t0(G)){if(J.indexOf(G)>=0)return;if(r0(G))return G;if(!("toJSON"in G)){J[Q]=G;let X=D0(G)?[]:{};return e0(G,(W,H)=>{let z=Y(W,Q+1);!q0(z)&&(X[H]=z)}),J[Q]=void 0,X}}return G};return Y(Z,0)},rK=$1("AsyncFunction"),tK=(Z)=>Z&&(t0(Z)||Z1(Z))&&Z1(Z.then)&&Z1(Z.catch),wG=((Z,J)=>{if(Z)return setImmediate;return J?((Y,G)=>{return Y0.addEventListener("message",({source:Q,data:X})=>{if(Q===Y0&&X===Y)G.length&&G.shift()()},!1),(Q)=>{G.push(Q),Y0.postMessage(Y,"*")}})(`axios@${Math.random()}`,[]):(Y)=>setTimeout(Y)})(typeof setImmediate==="function",Z1(Y0.postMessage)),eK=typeof queueMicrotask<"u"?queueMicrotask.bind(Y0):typeof process<"u"&&process.nextTick||wG,ZL=(Z)=>Z!=null&&Z1(Z[U6]),I={isArray:D0,isArrayBuffer:NG,isBuffer:r0,isFormData:wK,isArrayBufferView:VK,isString:IK,isNumber:AG,isBoolean:qK,isObject:t0,isPlainObject:Q6,isEmptyObject:DK,isReadableStream:SK,isRequest:xK,isResponse:CK,isHeaders:fK,isUndefined:q0,isDate:NK,isFile:AK,isBlob:RK,isRegExp:pK,isFunction:Z1,isStream:TK,isURLSearchParams:EK,isTypedArray:yK,isFileList:PK,forEach:e0,merge:O9,extend:_K,trim:jK,stripBOM:vK,inherits:kK,toFlatObject:hK,kindOf:B6,kindOfTest:$1,endsWith:bK,toArray:gK,forEachEntry:mK,matchAll:uK,isHTMLForm:dK,hasOwnProperty:GG,hasOwnProp:GG,reduceDescriptors:TG,freezeMethods:lK,toObjectSet:iK,toCamelCase:cK,noop:nK,toFiniteNumber:oK,findKey:RG,global:Y0,isContextDefined:PG,isSpecCompliantForm:aK,toJSONObject:sK,isAsyncFn:rK,isThenable:tK,setImmediate:wG,asap:eK,isIterable:ZL};class a extends Error{static from(Z,J,Y,G,Q,X){let W=new a(Z.message,J||Z.code,Y,G,Q);return W.cause=Z,W.name=Z.name,X&&Object.assign(W,X),W}constructor(Z,J,Y,G,Q){super(Z);if(this.name="AxiosError",this.isAxiosError=!0,J&&(this.code=J),Y&&(this.config=Y),G&&(this.request=G),Q)this.response=Q,this.status=Q.status}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.status}}}a.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";a.ERR_BAD_OPTION="ERR_BAD_OPTION";a.ECONNABORTED="ECONNABORTED";a.ETIMEDOUT="ETIMEDOUT";a.ERR_NETWORK="ERR_NETWORK";a.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";a.ERR_DEPRECATED="ERR_DEPRECATED";a.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";a.ERR_BAD_REQUEST="ERR_BAD_REQUEST";a.ERR_CANCELED="ERR_CANCELED";a.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";a.ERR_INVALID_URL="ERR_INVALID_URL";var x=a,JL=null;function V9(Z){return I.isPlainObject(Z)||I.isArray(Z)}function EG(Z){return I.endsWith(Z,"[]")?Z.slice(0,-2):Z}function QG(Z,J,Y){if(!Z)return J;return Z.concat(J).map(function(Q,X){return Q=EG(Q),!Y&&X?"["+Q+"]":Q}).join(Y?".":"")}function YL(Z){return I.isArray(Z)&&!Z.some(V9)}var GL=I.toFlatObject(I,{},null,function(J){return/^is[A-Z]/.test(J)});function L6(Z,J,Y){if(!I.isObject(Z))throw TypeError("target must be an object");J=J||new FormData,Y=I.toFlatObject(Y,{metaTokens:!0,dots:!1,indexes:!1},!1,function($,V){return!I.isUndefined(V[$])});let G=Y.metaTokens,Q=Y.visitor||B,X=Y.dots,W=Y.indexes,z=(Y.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(J);if(!I.isFunction(Q))throw TypeError("visitor must be a function");function U(K){if(K===null)return"";if(I.isDate(K))return K.toISOString();if(I.isBoolean(K))return K.toString();if(!z&&I.isBlob(K))throw new x("Blob is not supported. Use a Buffer instead.");if(I.isArrayBuffer(K)||I.isTypedArray(K))return z&&typeof Blob==="function"?new Blob([K]):Buffer.from(K);return K}function B(K,$,V){let N=K;if(K&&!V&&typeof K==="object"){if(I.endsWith($,"{}"))$=G?$:$.slice(0,-2),K=JSON.stringify(K);else if(I.isArray(K)&&YL(K)||(I.isFileList(K)||I.endsWith($,"[]"))&&(N=I.toArray(K)))return $=EG($),N.forEach(function(D,q){!(I.isUndefined(D)||D===null)&&J.append(W===!0?QG([$],q,X):W===null?$:$+"[]",U(D))}),!1}if(V9(K))return!0;return J.append(QG(V,$,X),U(K)),!1}let L=[],F=Object.assign(GL,{defaultVisitor:B,convertValue:U,isVisitable:V9});function M(K,$){if(I.isUndefined(K))return;if(L.indexOf(K)!==-1)throw Error("Circular reference detected in "+$.join("."));L.push(K),I.forEach(K,function(N,P){if((!(I.isUndefined(N)||N===null)&&Q.call(J,N,I.isString(P)?P.trim():P,$,F))===!0)M(N,$?$.concat(P):[P])}),L.pop()}if(!I.isObject(Z))throw TypeError("data must be an object");return M(Z),J}function XG(Z){let J={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(Z).replace(/[!'()~]|%20|%00/g,function(G){return J[G]})}function N9(Z,J){this._pairs=[],Z&&L6(Z,this,J)}var SG=N9.prototype;SG.append=function(J,Y){this._pairs.push([J,Y])};SG.toString=function(J){let Y=J?function(G){return J.call(this,G,XG)}:XG;return this._pairs.map(function(Q){return Y(Q[0])+"="+Y(Q[1])},"").join("&")};function QL(Z){return encodeURIComponent(Z).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function xG(Z,J,Y){if(!J)return Z;let G=Y&&Y.encode||QL,Q=I.isFunction(Y)?{serialize:Y}:Y,X=Q&&Q.serialize,W;if(X)W=X(J,Q);else W=I.isURLSearchParams(J)?J.toString():new N9(J,Q).toString(G);if(W){let H=Z.indexOf("#");if(H!==-1)Z=Z.slice(0,H);Z+=(Z.indexOf("?")===-1?"?":"&")+W}return Z}class CG{constructor(){this.handlers=[]}use(Z,J,Y){return this.handlers.push({fulfilled:Z,rejected:J,synchronous:Y?Y.synchronous:!1,runWhen:Y?Y.runWhen:null}),this.handlers.length-1}eject(Z){if(this.handlers[Z])this.handlers[Z]=null}clear(){if(this.handlers)this.handlers=[]}forEach(Z){I.forEach(this.handlers,function(Y){if(Y!==null)Z(Y)})}}var WG=CG,fG={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},XL=typeof URLSearchParams<"u"?URLSearchParams:N9,WL=typeof FormData<"u"?FormData:null,HL=typeof Blob<"u"?Blob:null,zL={isBrowser:!0,classes:{URLSearchParams:XL,FormData:WL,Blob:HL},protocols:["http","https","file","blob","url","data"]},A9=typeof window<"u"&&typeof document<"u",I9=typeof navigator==="object"&&navigator||void 0,UL=A9&&(!I9||["ReactNative","NativeScript","NS"].indexOf(I9.product)<0),BL=(()=>{return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),KL=A9&&window.location.href||"http://localhost",LL=Object.freeze({__proto__:null,hasBrowserEnv:A9,hasStandardBrowserWebWorkerEnv:BL,hasStandardBrowserEnv:UL,navigator:I9,origin:KL}),i={...LL,...zL};function ML(Z,J){return L6(Z,new i.classes.URLSearchParams,{visitor:function(Y,G,Q,X){if(i.isNode&&I.isBuffer(Y))return this.append(G,Y.toString("base64")),!1;return X.defaultVisitor.apply(this,arguments)},...J})}function $L(Z){return I.matchAll(/\w+|\[(\w*)]/g,Z).map((J)=>{return J[0]==="[]"?"":J[1]||J[0]})}function FL(Z){let J={},Y=Object.keys(Z),G,Q=Y.length,X;for(G=0;G<Q;G++)X=Y[G],J[X]=Z[X];return J}function jG(Z){function J(Y,G,Q,X){let W=Y[X++];if(W==="__proto__")return!0;let H=Number.isFinite(+W),z=X>=Y.length;if(W=!W&&I.isArray(Q)?Q.length:W,z){if(I.hasOwnProp(Q,W))Q[W]=[Q[W],G];else Q[W]=G;return!H}if(!Q[W]||!I.isObject(Q[W]))Q[W]=[];if(J(Y,G,Q[W],X)&&I.isArray(Q[W]))Q[W]=FL(Q[W]);return!H}if(I.isFormData(Z)&&I.isFunction(Z.entries)){let Y={};return I.forEachEntry(Z,(G,Q)=>{J($L(G),Q,Y,0)}),Y}return null}function OL(Z,J,Y){if(I.isString(Z))try{return(J||JSON.parse)(Z),I.trim(Z)}catch(G){if(G.name!=="SyntaxError")throw G}return(Y||JSON.stringify)(Z)}var R9={transitional:fG,adapter:["xhr","http","fetch"],transformRequest:[function(J,Y){let G=Y.getContentType()||"",Q=G.indexOf("application/json")>-1,X=I.isObject(J);if(X&&I.isHTMLForm(J))J=new FormData(J);if(I.isFormData(J))return Q?JSON.stringify(jG(J)):J;if(I.isArrayBuffer(J)||I.isBuffer(J)||I.isStream(J)||I.isFile(J)||I.isBlob(J)||I.isReadableStream(J))return J;if(I.isArrayBufferView(J))return J.buffer;if(I.isURLSearchParams(J))return Y.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),J.toString();let H;if(X){if(G.indexOf("application/x-www-form-urlencoded")>-1)return ML(J,this.formSerializer).toString();if((H=I.isFileList(J))||G.indexOf("multipart/form-data")>-1){let z=this.env&&this.env.FormData;return L6(H?{"files[]":J}:J,z&&new z,this.formSerializer)}}if(X||Q)return Y.setContentType("application/json",!1),OL(J);return J}],transformResponse:[function(J){let Y=this.transitional||R9.transitional,G=Y&&Y.forcedJSONParsing,Q=this.responseType==="json";if(I.isResponse(J)||I.isReadableStream(J))return J;if(J&&I.isString(J)&&(G&&!this.responseType||Q)){let W=!(Y&&Y.silentJSONParsing)&&Q;try{return JSON.parse(J,this.parseReviver)}catch(H){if(W){if(H.name==="SyntaxError")throw x.from(H,x.ERR_BAD_RESPONSE,this,null,this.response);throw H}}}return J}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:i.classes.FormData,Blob:i.classes.Blob},validateStatus:function(J){return J>=200&&J<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],(Z)=>{R9.headers[Z]={}});var P9=R9,VL=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),IL=(Z)=>{let J={},Y,G,Q;return Z&&Z.split(`
|
|
10
|
+
`).forEach(function(W){if(Q=W.indexOf(":"),Y=W.substring(0,Q).trim().toLowerCase(),G=W.substring(Q+1).trim(),!Y||J[Y]&&VL[Y])return;if(Y==="set-cookie")if(J[Y])J[Y].push(G);else J[Y]=[G];else J[Y]=J[Y]?J[Y]+", "+G:G}),J},HG=Symbol("internals");function a0(Z){return Z&&String(Z).trim().toLowerCase()}function X6(Z){if(Z===!1||Z==null)return Z;return I.isArray(Z)?Z.map(X6):String(Z)}function qL(Z){let J=Object.create(null),Y=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,G;while(G=Y.exec(Z))J[G[1]]=G[2];return J}var DL=(Z)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(Z.trim());function M9(Z,J,Y,G,Q){if(I.isFunction(G))return G.call(this,J,Y);if(Q)J=Y;if(!I.isString(J))return;if(I.isString(G))return J.indexOf(G)!==-1;if(I.isRegExp(G))return G.test(J)}function NL(Z){return Z.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(J,Y,G)=>{return Y.toUpperCase()+G})}function AL(Z,J){let Y=I.toCamelCase(" "+J);["get","set","has"].forEach((G)=>{Object.defineProperty(Z,G+Y,{value:function(Q,X,W){return this[G].call(this,J,Q,X,W)},configurable:!0})})}class Z5{constructor(Z){Z&&this.set(Z)}set(Z,J,Y){let G=this;function Q(W,H,z){let U=a0(H);if(!U)throw Error("header name must be a non-empty string");let B=I.findKey(G,U);if(!B||G[B]===void 0||z===!0||z===void 0&&G[B]!==!1)G[B||H]=X6(W)}let X=(W,H)=>I.forEach(W,(z,U)=>Q(z,U,H));if(I.isPlainObject(Z)||Z instanceof this.constructor)X(Z,J);else if(I.isString(Z)&&(Z=Z.trim())&&!DL(Z))X(IL(Z),J);else if(I.isObject(Z)&&I.isIterable(Z)){let W={},H,z;for(let U of Z){if(!I.isArray(U))throw TypeError("Object iterator must return a key-value pair");W[z=U[0]]=(H=W[z])?I.isArray(H)?[...H,U[1]]:[H,U[1]]:U[1]}X(W,J)}else Z!=null&&Q(J,Z,Y);return this}get(Z,J){if(Z=a0(Z),Z){let Y=I.findKey(this,Z);if(Y){let G=this[Y];if(!J)return G;if(J===!0)return qL(G);if(I.isFunction(J))return J.call(this,G,Y);if(I.isRegExp(J))return J.exec(G);throw TypeError("parser must be boolean|regexp|function")}}}has(Z,J){if(Z=a0(Z),Z){let Y=I.findKey(this,Z);return!!(Y&&this[Y]!==void 0&&(!J||M9(this,this[Y],Y,J)))}return!1}delete(Z,J){let Y=this,G=!1;function Q(X){if(X=a0(X),X){let W=I.findKey(Y,X);if(W&&(!J||M9(Y,Y[W],W,J)))delete Y[W],G=!0}}if(I.isArray(Z))Z.forEach(Q);else Q(Z);return G}clear(Z){let J=Object.keys(this),Y=J.length,G=!1;while(Y--){let Q=J[Y];if(!Z||M9(this,this[Q],Q,Z,!0))delete this[Q],G=!0}return G}normalize(Z){let J=this,Y={};return I.forEach(this,(G,Q)=>{let X=I.findKey(Y,Q);if(X){J[X]=X6(G),delete J[Q];return}let W=Z?NL(Q):String(Q).trim();if(W!==Q)delete J[Q];J[W]=X6(G),Y[W]=!0}),this}concat(...Z){return this.constructor.concat(this,...Z)}toJSON(Z){let J=Object.create(null);return I.forEach(this,(Y,G)=>{Y!=null&&Y!==!1&&(J[G]=Z&&I.isArray(Y)?Y.join(", "):Y)}),J}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([Z,J])=>Z+": "+J).join(`
|
|
11
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(Z){return Z instanceof this?Z:new this(Z)}static concat(Z,...J){let Y=new this(Z);return J.forEach((G)=>Y.set(G)),Y}static accessor(Z){let Y=(this[HG]=this[HG]={accessors:{}}).accessors,G=this.prototype;function Q(X){let W=a0(X);if(!Y[W])AL(G,X),Y[W]=!0}return I.isArray(Z)?Z.forEach(Q):Q(Z),this}}Z5.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(Z5.prototype,({value:Z},J)=>{let Y=J[0].toUpperCase()+J.slice(1);return{get:()=>Z,set(G){this[Y]=G}}});I.freezeMethods(Z5);var M1=Z5;function $9(Z,J){let Y=this||P9,G=J||Y,Q=M1.from(G.headers),X=G.data;return I.forEach(Z,function(H){X=H.call(Y,X,Q.normalize(),J?J.status:void 0)}),Q.normalize(),X}function _G(Z){return!!(Z&&Z.__CANCEL__)}class vG extends x{constructor(Z,J,Y){super(Z==null?"canceled":Z,x.ERR_CANCELED,J,Y);this.name="CanceledError",this.__CANCEL__=!0}}var J5=vG;function kG(Z,J,Y){let G=Y.config.validateStatus;if(!Y.status||!G||G(Y.status))Z(Y);else J(new x("Request failed with status code "+Y.status,[x.ERR_BAD_REQUEST,x.ERR_BAD_RESPONSE][Math.floor(Y.status/100)-4],Y.config,Y.request,Y))}function RL(Z){let J=/^([-+\w]{1,25})(:?\/\/|:)/.exec(Z);return J&&J[1]||""}function PL(Z,J){Z=Z||10;let Y=Array(Z),G=Array(Z),Q=0,X=0,W;return J=J!==void 0?J:1000,function(z){let U=Date.now(),B=G[X];if(!W)W=U;Y[Q]=z,G[Q]=U;let L=X,F=0;while(L!==Q)F+=Y[L++],L=L%Z;if(Q=(Q+1)%Z,Q===X)X=(X+1)%Z;if(U-W<J)return;let M=B&&U-B;return M?Math.round(F*1000/M):void 0}}function TL(Z,J){let Y=0,G=1000/J,Q,X,W=(U,B=Date.now())=>{if(Y=B,Q=null,X)clearTimeout(X),X=null;Z(...U)};return[(...U)=>{let B=Date.now(),L=B-Y;if(L>=G)W(U,B);else if(Q=U,!X)X=setTimeout(()=>{X=null,W(Q)},G-L)},()=>Q&&W(Q)]}var z6=(Z,J,Y=3)=>{let G=0,Q=PL(50,250);return TL((X)=>{let W=X.loaded,H=X.lengthComputable?X.total:void 0,z=W-G,U=Q(z),B=W<=H;G=W;let L={loaded:W,total:H,progress:H?W/H:void 0,bytes:z,rate:U?U:void 0,estimated:U&&H&&B?(H-W)/U:void 0,event:X,lengthComputable:H!=null,[J?"download":"upload"]:!0};Z(L)},Y)},zG=(Z,J)=>{let Y=Z!=null;return[(G)=>J[0]({lengthComputable:Y,total:Z,loaded:G}),J[1]]},UG=(Z)=>(...J)=>I.asap(()=>Z(...J)),wL=i.hasStandardBrowserEnv?((Z,J)=>(Y)=>{return Y=new URL(Y,i.origin),Z.protocol===Y.protocol&&Z.host===Y.host&&(J||Z.port===Y.port)})(new URL(i.origin),i.navigator&&/(msie|trident)/i.test(i.navigator.userAgent)):()=>!0,EL=i.hasStandardBrowserEnv?{write(Z,J,Y,G,Q,X,W){if(typeof document>"u")return;let H=[`${Z}=${encodeURIComponent(J)}`];if(I.isNumber(Y))H.push(`expires=${new Date(Y).toUTCString()}`);if(I.isString(G))H.push(`path=${G}`);if(I.isString(Q))H.push(`domain=${Q}`);if(X===!0)H.push("secure");if(I.isString(W))H.push(`SameSite=${W}`);document.cookie=H.join("; ")},read(Z){if(typeof document>"u")return null;let J=document.cookie.match(new RegExp("(?:^|; )"+Z+"=([^;]*)"));return J?decodeURIComponent(J[1]):null},remove(Z){this.write(Z,"",Date.now()-86400000,"/")}}:{write(){},read(){return null},remove(){}};function SL(Z){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(Z)}function xL(Z,J){return J?Z.replace(/\/?\/$/,"")+"/"+J.replace(/^\/+/,""):Z}function hG(Z,J,Y){let G=!SL(J);if(Z&&(G||Y==!1))return xL(Z,J);return J}var BG=(Z)=>Z instanceof M1?{...Z}:Z;function G0(Z,J){J=J||{};let Y={};function G(U,B,L,F){if(I.isPlainObject(U)&&I.isPlainObject(B))return I.merge.call({caseless:F},U,B);else if(I.isPlainObject(B))return I.merge({},B);else if(I.isArray(B))return B.slice();return B}function Q(U,B,L,F){if(!I.isUndefined(B))return G(U,B,L,F);else if(!I.isUndefined(U))return G(void 0,U,L,F)}function X(U,B){if(!I.isUndefined(B))return G(void 0,B)}function W(U,B){if(!I.isUndefined(B))return G(void 0,B);else if(!I.isUndefined(U))return G(void 0,U)}function H(U,B,L){if(L in J)return G(U,B);else if(L in Z)return G(void 0,U)}let z={url:X,method:X,data:X,baseURL:W,transformRequest:W,transformResponse:W,paramsSerializer:W,timeout:W,timeoutMessage:W,withCredentials:W,withXSRFToken:W,adapter:W,responseType:W,xsrfCookieName:W,xsrfHeaderName:W,onUploadProgress:W,onDownloadProgress:W,decompress:W,maxContentLength:W,maxBodyLength:W,beforeRedirect:W,transport:W,httpAgent:W,httpsAgent:W,cancelToken:W,socketPath:W,responseEncoding:W,validateStatus:H,headers:(U,B,L)=>Q(BG(U),BG(B),L,!0)};return I.forEach(Object.keys({...Z,...J}),function(B){let L=z[B]||Q,F=L(Z[B],J[B],B);I.isUndefined(F)&&L!==H||(Y[B]=F)}),Y}var bG=(Z)=>{let J=G0({},Z),{data:Y,withXSRFToken:G,xsrfHeaderName:Q,xsrfCookieName:X,headers:W,auth:H}=J;if(J.headers=W=M1.from(W),J.url=xG(hG(J.baseURL,J.url,J.allowAbsoluteUrls),Z.params,Z.paramsSerializer),H)W.set("Authorization","Basic "+btoa((H.username||"")+":"+(H.password?unescape(encodeURIComponent(H.password)):"")));if(I.isFormData(Y)){if(i.hasStandardBrowserEnv||i.hasStandardBrowserWebWorkerEnv)W.setContentType(void 0);else if(I.isFunction(Y.getHeaders)){let z=Y.getHeaders(),U=["content-type","content-length"];Object.entries(z).forEach(([B,L])=>{if(U.includes(B.toLowerCase()))W.set(B,L)})}}if(i.hasStandardBrowserEnv){if(G&&I.isFunction(G)&&(G=G(J)),G||G!==!1&&wL(J.url)){let z=Q&&X&&EL.read(X);if(z)W.set(Q,z)}}return J},CL=typeof XMLHttpRequest<"u",fL=CL&&function(Z){return new Promise(function(Y,G){let Q=bG(Z),X=Q.data,W=M1.from(Q.headers).normalize(),{responseType:H,onUploadProgress:z,onDownloadProgress:U}=Q,B,L,F,M,K;function $(){M&&M(),K&&K(),Q.cancelToken&&Q.cancelToken.unsubscribe(B),Q.signal&&Q.signal.removeEventListener("abort",B)}let V=new XMLHttpRequest;V.open(Q.method.toUpperCase(),Q.url,!0),V.timeout=Q.timeout;function N(){if(!V)return;let D=M1.from("getAllResponseHeaders"in V&&V.getAllResponseHeaders()),T={data:!H||H==="text"||H==="json"?V.responseText:V.response,status:V.status,statusText:V.statusText,headers:D,config:Z,request:V};kG(function(m){Y(m),$()},function(m){G(m),$()},T),V=null}if("onloadend"in V)V.onloadend=N;else V.onreadystatechange=function(){if(!V||V.readyState!==4)return;if(V.status===0&&!(V.responseURL&&V.responseURL.indexOf("file:")===0))return;setTimeout(N)};if(V.onabort=function(){if(!V)return;G(new x("Request aborted",x.ECONNABORTED,Z,V)),V=null},V.onerror=function(q){let T=q&&q.message?q.message:"Network Error",C=new x(T,x.ERR_NETWORK,Z,V);C.event=q||null,G(C),V=null},V.ontimeout=function(){let q=Q.timeout?"timeout of "+Q.timeout+"ms exceeded":"timeout exceeded",T=Q.transitional||fG;if(Q.timeoutErrorMessage)q=Q.timeoutErrorMessage;G(new x(q,T.clarifyTimeoutError?x.ETIMEDOUT:x.ECONNABORTED,Z,V)),V=null},X===void 0&&W.setContentType(null),"setRequestHeader"in V)I.forEach(W.toJSON(),function(q,T){V.setRequestHeader(T,q)});if(!I.isUndefined(Q.withCredentials))V.withCredentials=!!Q.withCredentials;if(H&&H!=="json")V.responseType=Q.responseType;if(U)[F,K]=z6(U,!0),V.addEventListener("progress",F);if(z&&V.upload)[L,M]=z6(z),V.upload.addEventListener("progress",L),V.upload.addEventListener("loadend",M);if(Q.cancelToken||Q.signal){if(B=(D)=>{if(!V)return;G(!D||D.type?new J5(null,Z,V):D),V.abort(),V=null},Q.cancelToken&&Q.cancelToken.subscribe(B),Q.signal)Q.signal.aborted?B():Q.signal.addEventListener("abort",B)}let P=RL(Q.url);if(P&&i.protocols.indexOf(P)===-1){G(new x("Unsupported protocol "+P+":",x.ERR_BAD_REQUEST,Z));return}V.send(X||null)})},jL=(Z,J)=>{let{length:Y}=Z=Z?Z.filter(Boolean):[];if(J||Y){let G=new AbortController,Q,X=function(U){if(!Q){Q=!0,H();let B=U instanceof Error?U:this.reason;G.abort(B instanceof x?B:new J5(B instanceof Error?B.message:B))}},W=J&&setTimeout(()=>{W=null,X(new x(`timeout of ${J}ms exceeded`,x.ETIMEDOUT))},J),H=()=>{if(Z)W&&clearTimeout(W),W=null,Z.forEach((U)=>{U.unsubscribe?U.unsubscribe(X):U.removeEventListener("abort",X)}),Z=null};Z.forEach((U)=>U.addEventListener("abort",X));let{signal:z}=G;return z.unsubscribe=()=>I.asap(H),z}},_L=jL,vL=function*(Z,J){let Y=Z.byteLength;if(!J||Y<J){yield Z;return}let G=0,Q;while(G<Y)Q=G+J,yield Z.slice(G,Q),G=Q},kL=async function*(Z,J){for await(let Y of hL(Z))yield*vL(Y,J)},hL=async function*(Z){if(Z[Symbol.asyncIterator]){yield*Z;return}let J=Z.getReader();try{for(;;){let{done:Y,value:G}=await J.read();if(Y)break;yield G}}finally{await J.cancel()}},KG=(Z,J,Y,G)=>{let Q=kL(Z,J),X=0,W,H=(z)=>{if(!W)W=!0,G&&G(z)};return new ReadableStream({async pull(z){try{let{done:U,value:B}=await Q.next();if(U){H(),z.close();return}let L=B.byteLength;if(Y){let F=X+=L;Y(F)}z.enqueue(new Uint8Array(B))}catch(U){throw H(U),U}},cancel(z){return H(z),Q.return()}},{highWaterMark:2})},LG=65536,{isFunction:G6}=I,bL=(({Request:Z,Response:J})=>({Request:Z,Response:J}))(I.global),{ReadableStream:MG,TextEncoder:$G}=I.global,FG=(Z,...J)=>{try{return!!Z(...J)}catch(Y){return!1}},gL=(Z)=>{Z=I.merge.call({skipUndefined:!0},bL,Z);let{fetch:J,Request:Y,Response:G}=Z,Q=J?G6(J):typeof fetch==="function",X=G6(Y),W=G6(G);if(!Q)return!1;let H=Q&&G6(MG),z=Q&&(typeof $G==="function"?((K)=>($)=>K.encode($))(new $G):async(K)=>new Uint8Array(await new Y(K).arrayBuffer())),U=X&&H&&FG(()=>{let K=!1,$=new Y(i.origin,{body:new MG,method:"POST",get duplex(){return K=!0,"half"}}).headers.has("Content-Type");return K&&!$}),B=W&&H&&FG(()=>I.isReadableStream(new G("").body)),L={stream:B&&((K)=>K.body)};Q&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((K)=>{!L[K]&&(L[K]=($,V)=>{let N=$&&$[K];if(N)return N.call($);throw new x(`Response type '${K}' is not supported`,x.ERR_NOT_SUPPORT,V)})})})();let F=async(K)=>{if(K==null)return 0;if(I.isBlob(K))return K.size;if(I.isSpecCompliantForm(K))return(await new Y(i.origin,{method:"POST",body:K}).arrayBuffer()).byteLength;if(I.isArrayBufferView(K)||I.isArrayBuffer(K))return K.byteLength;if(I.isURLSearchParams(K))K=K+"";if(I.isString(K))return(await z(K)).byteLength},M=async(K,$)=>{let V=I.toFiniteNumber(K.getContentLength());return V==null?F($):V};return async(K)=>{let{url:$,method:V,data:N,signal:P,cancelToken:D,timeout:q,onDownloadProgress:T,onUploadProgress:C,responseType:m,headers:n1,withCredentials:C1="same-origin",fetchOptions:f1}=bG(K),v=J||fetch;m=m?(m+"").toLowerCase():"text";let A1=_L([P,D&&D.toAbortSignal()],q),c=null,R1=A1&&A1.unsubscribe&&(()=>{A1.unsubscribe()}),O;try{if(C&&U&&V!=="get"&&V!=="head"&&(O=await M(n1,N))!==0){let _1=new Y($,{method:"POST",body:N,duplex:"half"}),W0;if(I.isFormData(N)&&(W0=_1.headers.get("content-type")))n1.setContentType(W0);if(_1.body){let[S6,$5]=zG(O,z6(UG(C)));N=KG(_1.body,LG,S6,$5)}}if(!I.isString(C1))C1=C1?"include":"omit";let z1=X&&"credentials"in Y.prototype,g={...f1,signal:A1,method:V.toUpperCase(),headers:n1.normalize().toJSON(),body:N,duplex:"half",credentials:z1?C1:void 0};c=X&&new Y($,g);let K1=await(X?v(c,f1):v($,g)),j1=B&&(m==="stream"||m==="response");if(B&&(T||j1&&R1)){let _1={};["status","statusText","headers"].forEach((L7)=>{_1[L7]=K1[L7]});let W0=I.toFiniteNumber(K1.headers.get("content-length")),[S6,$5]=T&&zG(W0,z6(UG(T),!0))||[];K1=new G(KG(K1.body,LG,S6,()=>{$5&&$5(),R1&&R1()}),_1)}m=m||"text";let P1=await L[I.findKey(L,m)||"text"](K1,K);return!j1&&R1&&R1(),await new Promise((_1,W0)=>{kG(_1,W0,{data:P1,headers:M1.from(K1.headers),status:K1.status,statusText:K1.statusText,config:K,request:c})})}catch(z1){if(R1&&R1(),z1&&z1.name==="TypeError"&&/Load failed|fetch/i.test(z1.message))throw Object.assign(new x("Network Error",x.ERR_NETWORK,K,c),{cause:z1.cause||z1});throw x.from(z1,z1&&z1.code,K,c)}}},yL=new Map,gG=(Z)=>{let J=Z&&Z.env||{},{fetch:Y,Request:G,Response:Q}=J,X=[G,Q,Y],W=X.length,H=W,z,U,B=yL;while(H--)z=X[H],U=B.get(z),U===void 0&&B.set(z,U=H?new Map:gL(J)),B=U;return U};gG();var T9={http:JL,xhr:fL,fetch:{get:gG}};I.forEach(T9,(Z,J)=>{if(Z){try{Object.defineProperty(Z,"name",{value:J})}catch(Y){}Object.defineProperty(Z,"adapterName",{value:J})}});var OG=(Z)=>`- ${Z}`,mL=(Z)=>I.isFunction(Z)||Z===null||Z===!1;function uL(Z,J){Z=I.isArray(Z)?Z:[Z];let{length:Y}=Z,G,Q,X={};for(let W=0;W<Y;W++){G=Z[W];let H;if(Q=G,!mL(G)){if(Q=T9[(H=String(G)).toLowerCase()],Q===void 0)throw new x(`Unknown adapter '${H}'`)}if(Q&&(I.isFunction(Q)||(Q=Q.get(J))))break;X[H||"#"+W]=Q}if(!Q){let W=Object.entries(X).map(([z,U])=>`adapter ${z} `+(U===!1?"is not supported by the environment":"is not available in the build")),H=Y?W.length>1?`since :
|
|
12
|
+
`+W.map(OG).join(`
|
|
13
|
+
`):" "+OG(W[0]):"as no adapter specified";throw new x("There is no suitable adapter to dispatch the request "+H,"ERR_NOT_SUPPORT")}return Q}var yG={getAdapter:uL,adapters:T9};function F9(Z){if(Z.cancelToken)Z.cancelToken.throwIfRequested();if(Z.signal&&Z.signal.aborted)throw new J5(null,Z)}function VG(Z){if(F9(Z),Z.headers=M1.from(Z.headers),Z.data=$9.call(Z,Z.transformRequest),["post","put","patch"].indexOf(Z.method)!==-1)Z.headers.setContentType("application/x-www-form-urlencoded",!1);return yG.getAdapter(Z.adapter||P9.adapter,Z)(Z).then(function(G){return F9(Z),G.data=$9.call(Z,Z.transformResponse,G),G.headers=M1.from(G.headers),G},function(G){if(!_G(G)){if(F9(Z),G&&G.response)G.response.data=$9.call(Z,Z.transformResponse,G.response),G.response.headers=M1.from(G.response.headers)}return Promise.reject(G)})}var mG="1.13.4",M6={};["object","boolean","number","function","string","symbol"].forEach((Z,J)=>{M6[Z]=function(G){return typeof G===Z||"a"+(J<1?"n ":" ")+Z}});var IG={};M6.transitional=function(J,Y,G){function Q(X,W){return"[Axios v"+mG+"] Transitional option '"+X+"'"+W+(G?". "+G:"")}return(X,W,H)=>{if(J===!1)throw new x(Q(W," has been removed"+(Y?" in "+Y:"")),x.ERR_DEPRECATED);if(Y&&!IG[W])IG[W]=!0,console.warn(Q(W," has been deprecated since v"+Y+" and will be removed in the near future"));return J?J(X,W,H):!0}};M6.spelling=function(J){return(Y,G)=>{return console.warn(`${G} is likely a misspelling of ${J}`),!0}};function dL(Z,J,Y){if(typeof Z!=="object")throw new x("options must be an object",x.ERR_BAD_OPTION_VALUE);let G=Object.keys(Z),Q=G.length;while(Q-- >0){let X=G[Q],W=J[X];if(W){let H=Z[X],z=H===void 0||W(H,X,Z);if(z!==!0)throw new x("option "+X+" must be "+z,x.ERR_BAD_OPTION_VALUE);continue}if(Y!==!0)throw new x("Unknown option "+X,x.ERR_BAD_OPTION)}}var W6={assertOptions:dL,validators:M6},q1=W6.validators;class s0{constructor(Z){this.defaults=Z||{},this.interceptors={request:new WG,response:new WG}}async request(Z,J){try{return await this._request(Z,J)}catch(Y){if(Y instanceof Error){let G={};Error.captureStackTrace?Error.captureStackTrace(G):G=Error();let Q=G.stack?G.stack.replace(/^.+\n/,""):"";try{if(!Y.stack)Y.stack=Q;else if(Q&&!String(Y.stack).endsWith(Q.replace(/^.+\n.+\n/,"")))Y.stack+=`
|
|
14
|
+
`+Q}catch(X){}}throw Y}}_request(Z,J){if(typeof Z==="string")J=J||{},J.url=Z;else J=Z||{};J=G0(this.defaults,J);let{transitional:Y,paramsSerializer:G,headers:Q}=J;if(Y!==void 0)W6.assertOptions(Y,{silentJSONParsing:q1.transitional(q1.boolean),forcedJSONParsing:q1.transitional(q1.boolean),clarifyTimeoutError:q1.transitional(q1.boolean)},!1);if(G!=null)if(I.isFunction(G))J.paramsSerializer={serialize:G};else W6.assertOptions(G,{encode:q1.function,serialize:q1.function},!0);if(J.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)J.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else J.allowAbsoluteUrls=!0;W6.assertOptions(J,{baseUrl:q1.spelling("baseURL"),withXsrfToken:q1.spelling("withXSRFToken")},!0),J.method=(J.method||this.defaults.method||"get").toLowerCase();let X=Q&&I.merge(Q.common,Q[J.method]);Q&&I.forEach(["delete","get","head","post","put","patch","common"],(M)=>{delete Q[M]}),J.headers=M1.concat(X,Q);let W=[],H=!0;this.interceptors.request.forEach(function(K){if(typeof K.runWhen==="function"&&K.runWhen(J)===!1)return;H=H&&K.synchronous,W.unshift(K.fulfilled,K.rejected)});let z=[];this.interceptors.response.forEach(function(K){z.push(K.fulfilled,K.rejected)});let U,B=0,L;if(!H){let M=[VG.bind(this),void 0];M.unshift(...W),M.push(...z),L=M.length,U=Promise.resolve(J);while(B<L)U=U.then(M[B++],M[B++]);return U}L=W.length;let F=J;while(B<L){let M=W[B++],K=W[B++];try{F=M(F)}catch($){K.call(this,$);break}}try{U=VG.call(this,F)}catch(M){return Promise.reject(M)}B=0,L=z.length;while(B<L)U=U.then(z[B++],z[B++]);return U}getUri(Z){Z=G0(this.defaults,Z);let J=hG(Z.baseURL,Z.url,Z.allowAbsoluteUrls);return xG(J,Z.params,Z.paramsSerializer)}}I.forEach(["delete","get","head","options"],function(J){s0.prototype[J]=function(Y,G){return this.request(G0(G||{},{method:J,url:Y,data:(G||{}).data}))}});I.forEach(["post","put","patch"],function(J){function Y(G){return function(X,W,H){return this.request(G0(H||{},{method:J,headers:G?{"Content-Type":"multipart/form-data"}:{},url:X,data:W}))}}s0.prototype[J]=Y(),s0.prototype[J+"Form"]=Y(!0)});var H6=s0;class w9{constructor(Z){if(typeof Z!=="function")throw TypeError("executor must be a function.");let J;this.promise=new Promise(function(Q){J=Q});let Y=this;this.promise.then((G)=>{if(!Y._listeners)return;let Q=Y._listeners.length;while(Q-- >0)Y._listeners[Q](G);Y._listeners=null}),this.promise.then=(G)=>{let Q,X=new Promise((W)=>{Y.subscribe(W),Q=W}).then(G);return X.cancel=function(){Y.unsubscribe(Q)},X},Z(function(Q,X,W){if(Y.reason)return;Y.reason=new J5(Q,X,W),J(Y.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(Z){if(this.reason){Z(this.reason);return}if(this._listeners)this._listeners.push(Z);else this._listeners=[Z]}unsubscribe(Z){if(!this._listeners)return;let J=this._listeners.indexOf(Z);if(J!==-1)this._listeners.splice(J,1)}toAbortSignal(){let Z=new AbortController,J=(Y)=>{Z.abort(Y)};return this.subscribe(J),Z.signal.unsubscribe=()=>this.unsubscribe(J),Z.signal}static source(){let Z;return{token:new w9(function(G){Z=G}),cancel:Z}}}var cL=w9;function pL(Z){return function(Y){return Z.apply(null,Y)}}function lL(Z){return I.isObject(Z)&&Z.isAxiosError===!0}var q9={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(q9).forEach(([Z,J])=>{q9[J]=Z});var iL=q9;function uG(Z){let J=new H6(Z),Y=qG(H6.prototype.request,J);return I.extend(Y,H6.prototype,J,{allOwnKeys:!0}),I.extend(Y,J,null,{allOwnKeys:!0}),Y.create=function(Q){return uG(G0(Z,Q))},Y}var b=uG(P9);b.Axios=H6;b.CanceledError=J5;b.CancelToken=cL;b.isCancel=_G;b.VERSION=mG;b.toFormData=L6;b.AxiosError=x;b.Cancel=b.CanceledError;b.all=function(J){return Promise.all(J)};b.spread=pL;b.isAxiosError=lL;b.mergeConfig=G0;b.AxiosHeaders=M1;b.formToJSON=(Z)=>jG(I.isHTMLForm(Z)?new FormData(Z):Z);b.getAdapter=yG.getAdapter;b.HttpStatusCode=iL;b.default=b;dG.exports=b});var S9=A((lG)=>{Object.defineProperty(lG,"__esModule",{value:!0});lG.addAxiosDateTransformer=lG.createAxiosDateTransformer=void 0;var nL=(YG(),bX(JG)),oL=nL.__importDefault(cG()),aL=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(?:\.\d*)?(?:[-+]\d{2}:?\d{2}|Z)?)?$/,sL=(Z)=>{return aL.test(Z)},rL=(Z,J)=>{return!J||J.length===0||J.includes(Z)},tL=(Z,J,Y)=>{return typeof J==="string"&&sL(J)&&rL(Z,Y)},pG=(Z,J)=>{if(typeof Z==="object"){for(let Y in Z)if(tL(Y,Z[Y],J))Z[Y]=new Date(Z[Y]);else if(typeof Z[Y]==="object")Z[Y]=pG(Z[Y],J)}return Z},eL=(Z,J)=>{if(Z.data)Z.data=pG(Z.data,J);return Z},ZM=(Z={})=>{return lG.addAxiosDateTransformer(oL.default.create(Z),Z)};lG.createAxiosDateTransformer=ZM;var JM=(Z,J)=>{let Y=J===null||J===void 0?void 0:J.allowlist;return Z.interceptors.response.use((G)=>eL(G,Y)),Z};lG.addAxiosDateTransformer=JM});var _9=A((ZQ)=>{Object.defineProperty(ZQ,"__esModule",{value:!0});ZQ.Doctype=ZQ.CDATA=ZQ.Tag=ZQ.Style=ZQ.Script=ZQ.Comment=ZQ.Directive=ZQ.Text=ZQ.Root=ZQ.isTag=ZQ.ElementType=void 0;var X1;(function(Z){Z.Root="root",Z.Text="text",Z.Directive="directive",Z.Comment="comment",Z.Script="script",Z.Style="style",Z.Tag="tag",Z.CDATA="cdata",Z.Doctype="doctype"})(X1=ZQ.ElementType||(ZQ.ElementType={}));function KM(Z){return Z.type===X1.Tag||Z.type===X1.Script||Z.type===X1.Style}ZQ.isTag=KM;ZQ.Root=X1.Root;ZQ.Text=X1.Text;ZQ.Directive=X1.Directive;ZQ.Comment=X1.Comment;ZQ.Script=X1.Script;ZQ.Style=X1.Style;ZQ.Tag=X1.Tag;ZQ.CDATA=X1.CDATA;ZQ.Doctype=X1.Doctype});var b9=A((E)=>{var l1=E&&E.__extends||function(){var Z=function(J,Y){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Q){G.__proto__=Q}||function(G,Q){for(var X in Q)if(Object.prototype.hasOwnProperty.call(Q,X))G[X]=Q[X]},Z(J,Y)};return function(J,Y){if(typeof Y!=="function"&&Y!==null)throw TypeError("Class extends value "+String(Y)+" is not a constructor or null");Z(J,Y);function G(){this.constructor=J}J.prototype=Y===null?Object.create(Y):(G.prototype=Y.prototype,new G)}}(),G5=E&&E.__assign||function(){return G5=Object.assign||function(Z){for(var J,Y=1,G=arguments.length;Y<G;Y++){J=arguments[Y];for(var Q in J)if(Object.prototype.hasOwnProperty.call(J,Q))Z[Q]=J[Q]}return Z},G5.apply(this,arguments)};Object.defineProperty(E,"__esModule",{value:!0});E.cloneNode=E.hasChildren=E.isDocument=E.isDirective=E.isComment=E.isText=E.isCDATA=E.isTag=E.Element=E.Document=E.CDATA=E.NodeWithChildren=E.ProcessingInstruction=E.Comment=E.Text=E.DataNode=E.Node=void 0;var J1=_9(),k9=function(){function Z(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(Z.prototype,"parentNode",{get:function(){return this.parent},set:function(J){this.parent=J},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"previousSibling",{get:function(){return this.prev},set:function(J){this.prev=J},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"nextSibling",{get:function(){return this.next},set:function(J){this.next=J},enumerable:!1,configurable:!0}),Z.prototype.cloneNode=function(J){if(J===void 0)J=!1;return h9(this,J)},Z}();E.Node=k9;var F6=function(Z){l1(J,Z);function J(Y){var G=Z.call(this)||this;return G.data=Y,G}return Object.defineProperty(J.prototype,"nodeValue",{get:function(){return this.data},set:function(Y){this.data=Y},enumerable:!1,configurable:!0}),J}(k9);E.DataNode=F6;var YQ=function(Z){l1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=J1.ElementType.Text,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),J}(F6);E.Text=YQ;var GQ=function(Z){l1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=J1.ElementType.Comment,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),J}(F6);E.Comment=GQ;var QQ=function(Z){l1(J,Z);function J(Y,G){var Q=Z.call(this,G)||this;return Q.name=Y,Q.type=J1.ElementType.Directive,Q}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),J}(F6);E.ProcessingInstruction=QQ;var O6=function(Z){l1(J,Z);function J(Y){var G=Z.call(this)||this;return G.children=Y,G}return Object.defineProperty(J.prototype,"firstChild",{get:function(){var Y;return(Y=this.children[0])!==null&&Y!==void 0?Y:null},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"childNodes",{get:function(){return this.children},set:function(Y){this.children=Y},enumerable:!1,configurable:!0}),J}(k9);E.NodeWithChildren=O6;var XQ=function(Z){l1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=J1.ElementType.CDATA,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),J}(O6);E.CDATA=XQ;var WQ=function(Z){l1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=J1.ElementType.Root,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),J}(O6);E.Document=WQ;var HQ=function(Z){l1(J,Z);function J(Y,G,Q,X){if(Q===void 0)Q=[];if(X===void 0)X=Y==="script"?J1.ElementType.Script:Y==="style"?J1.ElementType.Style:J1.ElementType.Tag;var W=Z.call(this,Q)||this;return W.name=Y,W.attribs=G,W.type=X,W}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"tagName",{get:function(){return this.name},set:function(Y){this.name=Y},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"attributes",{get:function(){var Y=this;return Object.keys(this.attribs).map(function(G){var Q,X;return{name:G,value:Y.attribs[G],namespace:(Q=Y["x-attribsNamespace"])===null||Q===void 0?void 0:Q[G],prefix:(X=Y["x-attribsPrefix"])===null||X===void 0?void 0:X[G]}})},enumerable:!1,configurable:!0}),J}(O6);E.Element=HQ;function zQ(Z){return(0,J1.isTag)(Z)}E.isTag=zQ;function UQ(Z){return Z.type===J1.ElementType.CDATA}E.isCDATA=UQ;function BQ(Z){return Z.type===J1.ElementType.Text}E.isText=BQ;function KQ(Z){return Z.type===J1.ElementType.Comment}E.isComment=KQ;function LQ(Z){return Z.type===J1.ElementType.Directive}E.isDirective=LQ;function MQ(Z){return Z.type===J1.ElementType.Root}E.isDocument=MQ;function NM(Z){return Object.prototype.hasOwnProperty.call(Z,"children")}E.hasChildren=NM;function h9(Z,J){if(J===void 0)J=!1;var Y;if(BQ(Z))Y=new YQ(Z.data);else if(KQ(Z))Y=new GQ(Z.data);else if(zQ(Z)){var G=J?v9(Z.children):[],Q=new HQ(Z.name,G5({},Z.attribs),G);if(G.forEach(function(z){return z.parent=Q}),Z.namespace!=null)Q.namespace=Z.namespace;if(Z["x-attribsNamespace"])Q["x-attribsNamespace"]=G5({},Z["x-attribsNamespace"]);if(Z["x-attribsPrefix"])Q["x-attribsPrefix"]=G5({},Z["x-attribsPrefix"]);Y=Q}else if(UQ(Z)){var G=J?v9(Z.children):[],X=new XQ(G);G.forEach(function(U){return U.parent=X}),Y=X}else if(MQ(Z)){var G=J?v9(Z.children):[],W=new WQ(G);if(G.forEach(function(U){return U.parent=W}),Z["x-mode"])W["x-mode"]=Z["x-mode"];Y=W}else if(LQ(Z)){var H=new QQ(Z.name,Z.data);if(Z["x-name"]!=null)H["x-name"]=Z["x-name"],H["x-publicId"]=Z["x-publicId"],H["x-systemId"]=Z["x-systemId"];Y=H}else throw Error("Not implemented yet: ".concat(Z.type));if(Y.startIndex=Z.startIndex,Y.endIndex=Z.endIndex,Z.sourceCodeLocation!=null)Y.sourceCodeLocation=Z.sourceCodeLocation;return Y}E.cloneNode=h9;function v9(Z){var J=Z.map(function(G){return h9(G,!0)});for(var Y=1;Y<J.length;Y++)J[Y].prev=J[Y-1],J[Y-1].next=J[Y];return J}});var y9=A((D1)=>{var AM=D1&&D1.__createBinding||(Object.create?function(Z,J,Y,G){if(G===void 0)G=Y;var Q=Object.getOwnPropertyDescriptor(J,Y);if(!Q||("get"in Q?!J.__esModule:Q.writable||Q.configurable))Q={enumerable:!0,get:function(){return J[Y]}};Object.defineProperty(Z,G,Q)}:function(Z,J,Y,G){if(G===void 0)G=Y;Z[G]=J[Y]}),RM=D1&&D1.__exportStar||function(Z,J){for(var Y in Z)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(J,Y))AM(J,Z,Y)};Object.defineProperty(D1,"__esModule",{value:!0});D1.DomHandler=void 0;var g9=_9(),i1=b9();RM(b9(),D1);var $Q={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},FQ=function(){function Z(J,Y,G){if(this.dom=[],this.root=new i1.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof Y==="function")G=Y,Y=$Q;if(typeof J==="object")Y=J,J=void 0;this.callback=J!==null&&J!==void 0?J:null,this.options=Y!==null&&Y!==void 0?Y:$Q,this.elementCB=G!==null&&G!==void 0?G:null}return Z.prototype.onparserinit=function(J){this.parser=J},Z.prototype.onreset=function(){this.dom=[],this.root=new i1.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},Z.prototype.onend=function(){if(this.done)return;this.done=!0,this.parser=null,this.handleCallback(null)},Z.prototype.onerror=function(J){this.handleCallback(J)},Z.prototype.onclosetag=function(){this.lastNode=null;var J=this.tagStack.pop();if(this.options.withEndIndices)J.endIndex=this.parser.endIndex;if(this.elementCB)this.elementCB(J)},Z.prototype.onopentag=function(J,Y){var G=this.options.xmlMode?g9.ElementType.Tag:void 0,Q=new i1.Element(J,Y,void 0,G);this.addNode(Q),this.tagStack.push(Q)},Z.prototype.ontext=function(J){var Y=this.lastNode;if(Y&&Y.type===g9.ElementType.Text){if(Y.data+=J,this.options.withEndIndices)Y.endIndex=this.parser.endIndex}else{var G=new i1.Text(J);this.addNode(G),this.lastNode=G}},Z.prototype.oncomment=function(J){if(this.lastNode&&this.lastNode.type===g9.ElementType.Comment){this.lastNode.data+=J;return}var Y=new i1.Comment(J);this.addNode(Y),this.lastNode=Y},Z.prototype.oncommentend=function(){this.lastNode=null},Z.prototype.oncdatastart=function(){var J=new i1.Text(""),Y=new i1.CDATA([J]);this.addNode(Y),J.parent=Y,this.lastNode=J},Z.prototype.oncdataend=function(){this.lastNode=null},Z.prototype.onprocessinginstruction=function(J,Y){var G=new i1.ProcessingInstruction(J,Y);this.addNode(G)},Z.prototype.handleCallback=function(J){if(typeof this.callback==="function")this.callback(J,this.dom);else if(J)throw J},Z.prototype.addNode=function(J){var Y=this.tagStack[this.tagStack.length-1],G=Y.children[Y.children.length-1];if(this.options.withStartIndices)J.startIndex=this.parser.startIndex;if(this.options.withEndIndices)J.endIndex=this.parser.endIndex;if(Y.children.push(J),G)J.prev=G,G.next=J;J.parent=Y,this.lastNode=null},Z}();D1.DomHandler=FQ;D1.default=FQ});var NQ=A((OQ)=>{Object.defineProperty(OQ,"__esModule",{value:!0});OQ.CARRIAGE_RETURN_PLACEHOLDER_REGEX=OQ.CARRIAGE_RETURN_PLACEHOLDER=OQ.CARRIAGE_RETURN_REGEX=OQ.CARRIAGE_RETURN=OQ.CASE_SENSITIVE_TAG_NAMES_MAP=OQ.CASE_SENSITIVE_TAG_NAMES=void 0;OQ.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];OQ.CASE_SENSITIVE_TAG_NAMES_MAP=OQ.CASE_SENSITIVE_TAG_NAMES.reduce(function(Z,J){return Z[J.toLowerCase()]=J,Z},{});OQ.CARRIAGE_RETURN="\r";OQ.CARRIAGE_RETURN_REGEX=new RegExp(OQ.CARRIAGE_RETURN,"g");OQ.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__");OQ.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(OQ.CARRIAGE_RETURN_PLACEHOLDER,"g")});var m9=A((TQ)=>{Object.defineProperty(TQ,"__esModule",{value:!0});TQ.formatAttributes=AQ;TQ.hasOpenTag=SM;TQ.escapeSpecialCharacters=xM;TQ.revertEscapedCharacters=RQ;TQ.formatDOM=PQ;var V6=y9(),Q5=NQ();function wM(Z){return Q5.CASE_SENSITIVE_TAG_NAMES_MAP[Z]}function AQ(Z){var J={},Y=0,G=Z.length;for(;Y<G;Y++){var Q=Z[Y];J[Q.name]=Q.value}return J}function EM(Z){Z=Z.toLowerCase();var J=wM(Z);if(J)return J;return Z}function SM(Z,J){var Y="<"+J,G=Z.toLowerCase().indexOf(Y);if(G===-1)return!1;var Q=Z[G+Y.length];return Q===">"||Q===" "||Q==="\t"||Q===`
|
|
15
|
+
`||Q==="\r"||Q==="/"}function xM(Z){return Z.replace(Q5.CARRIAGE_RETURN_REGEX,Q5.CARRIAGE_RETURN_PLACEHOLDER)}function RQ(Z){return Z.replace(Q5.CARRIAGE_RETURN_PLACEHOLDER_REGEX,Q5.CARRIAGE_RETURN)}function PQ(Z,J,Y){var G,Q,X,W;if(J===void 0)J=null;var H=[],z,U=0,B=Z.length;for(;U<B;U++){var L=Z[U];switch(L.nodeType){case 1:{var F=EM(L.nodeName);z=new V6.Element(F,AQ(L.attributes)),z.children=PQ(F==="template"?L.content.childNodes:L.childNodes,z);break}case 3:z=new V6.Text(RQ((G=L.nodeValue)!==null&&G!==void 0?G:""));break;case 8:z=new V6.Comment((Q=L.nodeValue)!==null&&Q!==void 0?Q:"");break;default:continue}var M=(X=H[U-1])!==null&&X!==void 0?X:null;if(M)M.next=z;z.parent=J,z.prev=M,z.next=null,H.push(z)}if(Y){if(z=new V6.ProcessingInstruction(Y.substring(0,Y.indexOf(" ")).toLowerCase(),Y),z.next=(W=H[0])!==null&&W!==void 0?W:null,z.parent=J,H.unshift(z),H[1])H[1].prev=H[0]}return H}});var CQ=A((xQ)=>{Object.defineProperty(xQ,"__esModule",{value:!0});xQ.default=hM;var X5=m9(),wQ="html",I6="head",N0="body",kM=/<([a-zA-Z]+[0-9]?)/,D6=function(Z,J){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},u9=function(Z,J){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},EQ=typeof window==="object"&&window.DOMParser;if(typeof EQ==="function")d9=new EQ,c9="text/html",u9=function(Z,J){if(J)Z="<".concat(J,">").concat(Z,"</").concat(J,">");return d9.parseFromString(Z,c9)},D6=u9;var d9,c9;if(typeof document==="object"&&document.implementation)A0=document.implementation.createHTMLDocument(),D6=function(Z,J){if(J){var Y=A0.documentElement.querySelector(J);if(Y)Y.innerHTML=Z;return A0}return A0.documentElement.innerHTML=Z,A0};var A0,q6=typeof document==="object"&&document.createElement("template"),p9;if(q6&&q6.content)p9=function(Z){return q6.innerHTML=Z,q6.content.childNodes};var SQ=function(){return document.createDocumentFragment().childNodes};function hM(Z){var J,Y,G,Q,X,W;Z=(0,X5.escapeSpecialCharacters)(Z);var H=kM.exec(Z),z=(J=H===null||H===void 0?void 0:H[1])===null||J===void 0?void 0:J.toLowerCase();switch(z){case wQ:{var U=u9(Z);if(!(0,X5.hasOpenTag)(Z,I6)){var B=U.querySelector(I6);(Y=B===null||B===void 0?void 0:B.parentNode)===null||Y===void 0||Y.removeChild(B)}if(!(0,X5.hasOpenTag)(Z,N0)){var B=U.querySelector(N0);(G=B===null||B===void 0?void 0:B.parentNode)===null||G===void 0||G.removeChild(B)}return U.querySelectorAll(wQ)}case I6:case N0:{var L=D6(Z).querySelectorAll(z);if((0,X5.hasOpenTag)(Z,N0)&&(0,X5.hasOpenTag)(Z,I6))return(X=(Q=L[0].parentNode)===null||Q===void 0?void 0:Q.childNodes)!==null&&X!==void 0?X:SQ();return L}default:{if(p9)return p9(Z);var B=D6(Z,N0).querySelector(N0);return(W=B===null||B===void 0?void 0:B.childNodes)!==null&&W!==void 0?W:SQ()}}}});var fQ=A((W5)=>{var gM=W5&&W5.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(W5,"__esModule",{value:!0});W5.default=dM;var yM=gM(CQ()),mM=m9(),uM=/<(![a-zA-Z\s]+)>/;function dM(Z){if(typeof Z!=="string")throw TypeError("First argument must be a string");if(!Z)return[];var J=uM.exec(Z),Y=J?J[1]:void 0;return(0,mM.formatDOM)((0,yM.default)(Z),null,Y)}});var jQ=A((lM)=>{var cM=0;lM.SAME=cM;var pM=1;lM.CAMELCASE=pM;lM.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}});var vQ=A((Q2)=>{function aM(Z){return d.hasOwnProperty(Z)?d[Z]:null}function r(Z,J,Y,G,Q,X,W){this.acceptsBooleans=J===2||J===3||J===4,this.attributeName=G,this.attributeNamespace=Q,this.mustUseProperty=Y,this.propertyName=Z,this.type=J,this.sanitizeURL=X,this.removeEmptyString=W}var d={},sM=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];sM.forEach((Z)=>{d[Z]=new r(Z,0,!1,Z,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([Z,J])=>{d[Z]=new r(Z,1,!1,J,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach((Z)=>{d[Z]=new r(Z,2,!1,Z.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((Z)=>{d[Z]=new r(Z,2,!1,Z,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"].forEach((Z)=>{d[Z]=new r(Z,3,!1,Z.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach((Z)=>{d[Z]=new r(Z,3,!0,Z,null,!1,!1)});["capture","download"].forEach((Z)=>{d[Z]=new r(Z,4,!1,Z,null,!1,!1)});["cols","rows","size","span"].forEach((Z)=>{d[Z]=new r(Z,6,!1,Z,null,!1,!1)});["rowSpan","start"].forEach((Z)=>{d[Z]=new r(Z,5,!1,Z.toLowerCase(),null,!1,!1)});var l9=/[\-\:]([a-z])/g,i9=(Z)=>Z[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"].forEach((Z)=>{let J=Z.replace(l9,i9);d[J]=new r(J,1,!1,Z,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((Z)=>{let J=Z.replace(l9,i9);d[J]=new r(J,1,!1,Z,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach((Z)=>{let J=Z.replace(l9,i9);d[J]=new r(J,1,!1,Z,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach((Z)=>{d[Z]=new r(Z,1,!1,Z.toLowerCase(),null,!1,!1)});var rM="xlinkHref";d[rM]=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach((Z)=>{d[Z]=new r(Z,1,!1,Z.toLowerCase(),null,!0,!0)});var{CAMELCASE:tM,SAME:eM,possibleStandardNames:_Q}=jQ(),Z2=":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",J2=Z2+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Y2=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+J2+"]*$")),G2=Object.keys(_Q).reduce((Z,J)=>{let Y=_Q[J];if(Y===eM)Z[J]=J;else if(Y===tM)Z[J.toLowerCase()]=J;else Z[J]=Y;return Z},{});Q2.BOOLEAN=3;Q2.BOOLEANISH_STRING=2;Q2.NUMERIC=5;Q2.OVERLOADED_BOOLEAN=4;Q2.POSITIVE_NUMERIC=6;Q2.RESERVED=0;Q2.STRING=1;Q2.getPropertyInfo=aM;Q2.isCustomAttribute=Y2;Q2.possibleStandardNames=G2});var mQ=A((lD,yQ)=>{var kQ=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,F2=/\n/g,O2=/^\s*/,V2=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,I2=/^:\s*/,q2=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,D2=/^[;\s]*/,N2=/^\s+|\s+$/g,A2=`
|
|
16
|
+
`,hQ="/",bQ="*",Q0="",R2="comment",P2="declaration";function T2(Z,J){if(typeof Z!=="string")throw TypeError("First argument must be a string");if(!Z)return[];J=J||{};var Y=1,G=1;function Q(K){var $=K.match(F2);if($)Y+=$.length;var V=K.lastIndexOf(A2);G=~V?K.length-V:G+K.length}function X(){var K={line:Y,column:G};return function($){return $.position=new W(K),U(),$}}function W(K){this.start=K,this.end={line:Y,column:G},this.source=J.source}W.prototype.content=Z;function H(K){var $=Error(J.source+":"+Y+":"+G+": "+K);if($.reason=K,$.filename=J.source,$.line=Y,$.column=G,$.source=Z,J.silent);else throw $}function z(K){var $=K.exec(Z);if(!$)return;var V=$[0];return Q(V),Z=Z.slice(V.length),$}function U(){z(O2)}function B(K){var $;K=K||[];while($=L())if($!==!1)K.push($);return K}function L(){var K=X();if(hQ!=Z.charAt(0)||bQ!=Z.charAt(1))return;var $=2;while(Q0!=Z.charAt($)&&(bQ!=Z.charAt($)||hQ!=Z.charAt($+1)))++$;if($+=2,Q0===Z.charAt($-1))return H("End of comment missing");var V=Z.slice(2,$-2);return G+=2,Q(V),Z=Z.slice($),G+=2,K({type:R2,comment:V})}function F(){var K=X(),$=z(V2);if(!$)return;if(L(),!z(I2))return H("property missing ':'");var V=z(q2),N=K({type:P2,property:gQ($[0].replace(kQ,Q0)),value:V?gQ(V[0].replace(kQ,Q0)):Q0});return z(D2),N}function M(){var K=[];B(K);var $;while($=F())if($!==!1)K.push($),B(K);return K}return U(),M()}function gQ(Z){return Z?Z.replace(N2,Q0):Q0}yQ.exports=T2});var uQ=A((H5)=>{var w2=H5&&H5.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(H5,"__esModule",{value:!0});H5.default=S2;var E2=w2(mQ());function S2(Z,J){let Y=null;if(!Z||typeof Z!=="string")return Y;let G=(0,E2.default)(Z),Q=typeof J==="function";return G.forEach((X)=>{if(X.type!=="declaration")return;let{property:W,value:H}=X;if(Q)J(W,H,X);else if(H)Y=Y||{},Y[W]=H}),Y}});var lQ=A((cQ)=>{Object.defineProperty(cQ,"__esModule",{value:!0});cQ.camelCase=void 0;var x2=/^--[a-zA-Z0-9_-]+$/,C2=/-([a-z])/g,f2=/^[^-]+$/,j2=/^-(webkit|moz|ms|o|khtml)-/,_2=/^-(ms)-/,v2=function(Z){return!Z||f2.test(Z)||x2.test(Z)},k2=function(Z,J){return J.toUpperCase()},dQ=function(Z,J){return"".concat(J,"-")},h2=function(Z,J){if(J===void 0)J={};if(v2(Z))return Z;if(Z=Z.toLowerCase(),J.reactCompat)Z=Z.replace(_2,dQ);else Z=Z.replace(j2,dQ);return Z.replace(C2,k2)};cQ.camelCase=h2});var nQ=A((o9,iQ)=>{var b2=o9&&o9.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}},g2=b2(uQ()),y2=lQ();function n9(Z,J){var Y={};if(!Z||typeof Z!=="string")return Y;return(0,g2.default)(Z,function(G,Q){if(G&&Q)Y[(0,y2.camelCase)(G,J)]=Q}),Y}n9.default=n9;iQ.exports=n9});import*as oQ from"react";var a9=A((t)=>{var m2=t&&t.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(t,"__esModule",{value:!0});t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0;t.isCustomComponent=c2;t.setStyleProp=l2;var u2=m2(nQ()),d2=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function c2(Z,J){if(!Z.includes("-"))return Boolean(J&&typeof J.is==="string");if(d2.has(Z))return!1;return!0}var p2={reactCompat:!0};function l2(Z,J){if(typeof Z!=="string")return;if(!Z.trim()){J.style={};return}try{J.style=(0,u2.default)(Z,p2)}catch(Y){J.style={}}}t.PRESERVE_CUSTOM_ATTRIBUTES=Number(oQ.version.split(".")[0])>=16;t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var i2=function(Z){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(Z.name)};t.canTextBeChildOfNode=i2;var n2=function(Z){return Z};t.returnFirstArg=n2});var s9=A((rQ)=>{Object.defineProperty(rQ,"__esModule",{value:!0});rQ.default=r2;var z5=vQ(),aQ=a9(),o2=["checked","value"],a2=["input","select","textarea"],s2={reset:!0,submit:!0};function r2(Z,J){if(Z===void 0)Z={};var Y={},G=Boolean(Z.type&&s2[Z.type]);for(var Q in Z){var X=Z[Q];if((0,z5.isCustomAttribute)(Q)){Y[Q]=X;continue}var W=Q.toLowerCase(),H=sQ(W);if(H){var z=(0,z5.getPropertyInfo)(H);if(o2.includes(H)&&a2.includes(J)&&!G)H=sQ("default"+W);switch(Y[H]=X,z===null||z===void 0?void 0:z.type){case z5.BOOLEAN:Y[H]=!0;break;case z5.OVERLOADED_BOOLEAN:if(X==="")Y[H]=!0;break}continue}if(aQ.PRESERVE_CUSTOM_ATTRIBUTES)Y[Q]=X}return(0,aQ.setStyleProp)(Z.style,Y),Y}function sQ(Z){return z5.possibleStandardNames[Z]}});import*as R0 from"react";var eQ=A((B5)=>{var e2=B5&&B5.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(B5,"__esModule",{value:!0});B5.default=tQ;var Z$=e2(s9()),U5=a9(),J$={cloneElement:R0.cloneElement,createElement:R0.createElement,isValidElement:R0.isValidElement};function tQ(Z,J){var Y,G,Q,X,W;if(J===void 0)J={};var H=[],z=typeof J.replace==="function",U=(Y=J.transform)!==null&&Y!==void 0?Y:U5.returnFirstArg,B=(G=J.library)!==null&&G!==void 0?G:J$,L=B.cloneElement,F=B.createElement,M=B.isValidElement,K=Z.length;for(var $=0;$<K;$++){var V=Z[$];if(z){var N=(Q=J.replace)===null||Q===void 0?void 0:Q.call(J,V,$);if(M(N)){if(K>1)N=L(N,{key:(X=N.key)!==null&&X!==void 0?X:$});H.push(U(N,V,$));continue}}if(V.type==="text"){var P=!V.data.trim().length;if(P&&V.parent&&!(0,U5.canTextBeChildOfNode)(V.parent))continue;if(J.trim&&P)continue;H.push(U(V.data,V,$));continue}var D=V,q={};if(Y$(D))(0,U5.setStyleProp)(D.attribs.style,D.attribs),q=D.attribs;else if(D.attribs)q=(0,Z$.default)(D.attribs,D.name);var T=void 0;switch(V.type){case"script":case"style":if(V.children[0])q.dangerouslySetInnerHTML={__html:V.children[0].data};break;case"tag":if(V.name==="textarea"&&V.children[0])q.defaultValue=V.children[0].data;else if((W=V.children)===null||W===void 0?void 0:W.length)T=tQ(V.children,J);break;default:continue}if(K>1)q.key=$;H.push(U(F(V.name,q,T),V,$))}return H.length===1?H[0]:H}function Y$(Z){return U5.PRESERVE_CUSTOM_ATTRIBUTES&&Z.type==="tag"&&(0,U5.isCustomComponent)(Z.name,Z.attribs)}});var t9=A((y)=>{var r9=y&&y.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(y,"__esModule",{value:!0});y.htmlToDOM=y.domToReact=y.attributesToProps=y.Text=y.ProcessingInstruction=y.Element=y.Comment=void 0;y.default=X$;var ZX=r9(fQ());y.htmlToDOM=ZX.default;var G$=r9(s9());y.attributesToProps=G$.default;var JX=r9(eQ());y.domToReact=JX.default;var N6=y9();Object.defineProperty(y,"Comment",{enumerable:!0,get:function(){return N6.Comment}});Object.defineProperty(y,"Element",{enumerable:!0,get:function(){return N6.Element}});Object.defineProperty(y,"ProcessingInstruction",{enumerable:!0,get:function(){return N6.ProcessingInstruction}});Object.defineProperty(y,"Text",{enumerable:!0,get:function(){return N6.Text}});var Q$={lowerCaseAttributeNames:!1};function X$(Z,J){var Y;if(typeof Z!=="string")throw TypeError("First argument must be a string");if(!Z)return[];return(0,JX.default)((0,ZX.default)(Z,(Y=J===null||J===void 0?void 0:J.htmlparser2)!==null&&Y!==void 0?Y:Q$),J)}});import{lazy as gX}from"react";var x6=new Map;function I7(Z,J){return gX(()=>{if(x6.has(J))return x6.get(J);let Y=Z().then((G)=>G);return x6.set(J,Y),Y})}var q7=new Map,yX=(Z)=>{if(!Z.name)throw Error("Component registration requires a name");if(!Z.component&&!Z.loader)throw Error(`Component "${Z.name}" requires component or loader`);let J={name:Z.name,component:Z.component,loader:Z.loader,metadata:Z.metadata,fallback:Z.fallback,isLazy:!1};if(!J.component&&J.loader)J.component=I7(J.loader,Z.name),J.loader=void 0,J.isLazy=!0;return J};function F1(Z){let J=yX(Z);return q7.set(J.name,J),J.component}var D7=(Z)=>{return q7.get(Z)};import{Suspense as sX,useContext as rX}from"react";import{createContext as mX}from"react";import{jsx as cX,Fragment as dX}from"react/jsx-runtime";var uX=mX(cX(dX,{})),v1=uX;import{createContext as pX,useContext as lX}from"react";var E0=pX(null),H0=()=>{let Z=lX(E0);if(!Z)throw Error("usePieConfig must be used within PieConfigProvider");return Z},iX=()=>{let{apiServer:Z}=H0();return Z},k1=iX,nX=()=>{let{centrifugeServer:Z}=H0();return Z},F5=nX,oX=()=>{let{enableRenderingLog:Z}=H0();return Z},h1=oX,aX=()=>{let{pageProcessor:Z}=H0();return Z},N7=aX;import{jsx as A7}from"react/jsx-runtime";function tX({uiConfig:Z,setUiAjaxConfiguration:J}){let Y=rX(v1),G=h1();if(G)console.log("[UI] Rendering component:",Z.card),console.log("[UI] Component data:",Z.data),console.log("[UI] Component content:",Z.content),console.log("[UI] Has setUiAjaxConfiguration:",!!J);let Q=D7(Z.card);if(!Q?.component){if(G)console.warn(`[UI] Component not found in registry: ${Z.card}`),console.log("[UI] Returning fallback component");return Y}if(G)console.log("[UI] Found component in registry:",{name:Q.name,isLazy:Q.isLazy,hasMetadata:!!Q.metadata});let X=Q.component,W=A7(X,{data:Z.data,content:Z.content,setUiAjaxConfiguration:J});if(Q.isLazy){if(G)console.log("[UI] Rendering lazy component with Suspense:",Q.name);return A7(sX,{fallback:Q.fallback??Y,children:W},`${Q.name}`)}if(G)console.log("[UI] Rendering component directly:",Q.name);return W}var Y1=tX;import{useEffect as FF,useMemo as OF}from"react";import{QueryClient as VF,QueryClientProvider as IF,useQuery as qF}from"@tanstack/react-query";var f5=S(C6(),1),IJ=S(_6(),1);import VJ,{useState as kU,useContext as zJ,useRef as hU,useEffect as UJ,forwardRef as bU}from"react";var P3={animationIterationCount:!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};function S0(Z,J){var Y=!P3[Z]&&typeof J==="number"&&J!==0;return Y?J+"px":J}function x0(Z,J){return Object.keys(Z).reduce(function(Y,G){return Y[G]=J(Z[G],G),Y},{})}function v6(Z){return x0(Z,function(J,Y){return S0(Y,Z[Y])+" !important"})}var T3=/([a-z])?([A-Z])/g,w3=function(J,Y,G){return(Y||"")+"-"+G.toLowerCase()},k6=function(J){return J.replace(T3,w3)},E3=function(J){return Object.keys(J).reduce(function(Y,G){var Q=k6(G);if(/^ms-/.test(Q))Q="-".concat(Q);return Y[Q]=J[G],Y},{})},y7=E3;var uZ=S(a7(),1),dZ=S(H4(),1),cZ=S(o6(),1);var u4=S(B4(),1),d4=S(L4(),1),c4=S($4(),1),p4=S(O4(),1),l4=S(q4(),1),i4=S(A4(),1),n4=S(T4(),1),o4=S(S4(),1),a4=S(C4(),1),s4=S(j4(),1),r4=S(v4(),1),t4=S(m4(),1),R=["Webkit"],L8=["Moz"],k=["ms"],p=["Webkit","Moz"],u=["Webkit","ms"],C0=["Webkit","Moz","ms"],e4={plugins:[u4.default,d4.default,c4.default,p4.default,l4.default,i4.default,n4.default,o4.default,a4.default,s4.default,r4.default,t4.default],prefixMap:{transform:u,transformOrigin:u,transformOriginX:u,transformOriginY:u,backfaceVisibility:R,perspective:R,perspectiveOrigin:R,transformStyle:R,transformOriginZ:R,animation:R,animationDelay:R,animationDirection:R,animationFillMode:R,animationDuration:R,animationIterationCount:R,animationName:R,animationPlayState:R,animationTimingFunction:R,appearance:p,userSelect:C0,fontKerning:R,textEmphasisPosition:R,textEmphasis:R,textEmphasisStyle:R,textEmphasisColor:R,boxDecorationBreak:R,clipPath:R,maskImage:R,maskMode:R,maskRepeat:R,maskPosition:R,maskClip:R,maskOrigin:R,maskSize:R,maskComposite:R,mask:R,maskBorderSource:R,maskBorderMode:R,maskBorderSlice:R,maskBorderWidth:R,maskBorderOutset:R,maskBorderRepeat:R,maskBorder:R,maskType:R,textDecorationStyle:p,textDecorationSkip:p,textDecorationLine:p,textDecorationColor:p,filter:R,fontFeatureSettings:p,breakAfter:C0,breakBefore:C0,breakInside:C0,columnCount:p,columnFill:p,columnGap:p,columnRule:p,columnRuleColor:p,columnRuleStyle:p,columnRuleWidth:p,columns:p,columnSpan:p,columnWidth:p,writingMode:u,flex:u,flexBasis:R,flexDirection:u,flexGrow:R,flexFlow:u,flexShrink:R,flexWrap:u,alignContent:R,alignItems:R,alignSelf:R,justifyContent:R,order:R,transitionDelay:R,transitionDuration:R,transitionProperty:R,transitionTimingFunction:R,backdropFilter:R,scrollSnapType:u,scrollSnapPointsX:u,scrollSnapPointsY:u,scrollSnapDestination:u,scrollSnapCoordinate:u,shapeImageThreshold:R,shapeImageMargin:R,shapeImageOutside:R,hyphens:C0,flowInto:u,flowFrom:u,regionFragment:u,boxSizing:L8,textAlignLast:L8,tabSize:L8,wrapFlow:k,wrapThrough:k,wrapMargin:k,touchAction:k,gridTemplateColumns:k,gridTemplateRows:k,gridTemplateAreas:k,gridTemplate:k,gridAutoColumns:k,gridAutoRows:k,gridAutoFlow:k,grid:k,gridRowStart:k,gridColumnStart:k,gridRowEnd:k,gridRow:k,gridColumn:k,gridColumnEnd:k,gridColumnGap:k,gridRowGap:k,gridArea:k,gridGap:k,textSizeAdjust:u,borderImage:R,borderImageOutset:R,borderImageRepeat:R,borderImageSlice:R,borderImageSource:R,borderImageWidth:R}};var EZ=S(YZ(),1),SZ=S(QZ(),1),xZ=S(HZ(),1),CZ=S(UZ(),1),fZ=S(KZ(),1),jZ=S(MZ(),1),_Z=S(FZ(),1),vZ=S(IZ(),1),kZ=S(DZ(),1),hZ=S(AZ(),1),bZ=S(PZ(),1),gZ=S(wZ(),1),yZ={plugins:[EZ.default,SZ.default,xZ.default,CZ.default,fZ.default,jZ.default,_Z.default,vZ.default,kZ.default,hZ.default,bZ.default,gZ.default],prefixMap:{chrome:{transform:35,transformOrigin:35,transformOriginX:35,transformOriginY:35,backfaceVisibility:35,perspective:35,perspectiveOrigin:35,transformStyle:35,transformOriginZ:35,animation:42,animationDelay:42,animationDirection:42,animationFillMode:42,animationDuration:42,animationIterationCount:42,animationName:42,animationPlayState:42,animationTimingFunction:42,appearance:66,userSelect:53,fontKerning:32,textEmphasisPosition:66,textEmphasis:66,textEmphasisStyle:66,textEmphasisColor:66,boxDecorationBreak:66,clipPath:54,maskImage:66,maskMode:66,maskRepeat:66,maskPosition:66,maskClip:66,maskOrigin:66,maskSize:66,maskComposite:66,mask:66,maskBorderSource:66,maskBorderMode:66,maskBorderSlice:66,maskBorderWidth:66,maskBorderOutset:66,maskBorderRepeat:66,maskBorder:66,maskType:66,textDecorationStyle:56,textDecorationSkip:56,textDecorationLine:56,textDecorationColor:56,filter:52,fontFeatureSettings:47,breakAfter:49,breakBefore:49,breakInside:49,columnCount:49,columnFill:49,columnGap:49,columnRule:49,columnRuleColor:49,columnRuleStyle:49,columnRuleWidth:49,columns:49,columnSpan:49,columnWidth:49,writingMode:47},safari:{flex:8,flexBasis:8,flexDirection:8,flexGrow:8,flexFlow:8,flexShrink:8,flexWrap:8,alignContent:8,alignItems:8,alignSelf:8,justifyContent:8,order:8,transition:6,transitionDelay:6,transitionDuration:6,transitionProperty:6,transitionTimingFunction:6,transform:8,transformOrigin:8,transformOriginX:8,transformOriginY:8,backfaceVisibility:8,perspective:8,perspectiveOrigin:8,transformStyle:8,transformOriginZ:8,animation:8,animationDelay:8,animationDirection:8,animationFillMode:8,animationDuration:8,animationIterationCount:8,animationName:8,animationPlayState:8,animationTimingFunction:8,appearance:11,userSelect:11,backdropFilter:11,fontKerning:9,scrollSnapType:10.1,scrollSnapPointsX:10.1,scrollSnapPointsY:10.1,scrollSnapDestination:10.1,scrollSnapCoordinate:10.1,textEmphasisPosition:7,textEmphasis:7,textEmphasisStyle:7,textEmphasisColor:7,boxDecorationBreak:11,clipPath:11,maskImage:11,maskMode:11,maskRepeat:11,maskPosition:11,maskClip:11,maskOrigin:11,maskSize:11,maskComposite:11,mask:11,maskBorderSource:11,maskBorderMode:11,maskBorderSlice:11,maskBorderWidth:11,maskBorderOutset:11,maskBorderRepeat:11,maskBorder:11,maskType:11,textDecorationStyle:11,textDecorationSkip:11,textDecorationLine:11,textDecorationColor:11,shapeImageThreshold:10,shapeImageMargin:10,shapeImageOutside:10,filter:9,hyphens:11,flowInto:11,flowFrom:11,breakBefore:8,breakAfter:8,breakInside:8,regionFragment:11,columnCount:8,columnFill:8,columnGap:8,columnRule:8,columnRuleColor:8,columnRuleStyle:8,columnRuleWidth:8,columns:8,columnSpan:8,columnWidth:8,writingMode:10.1},firefox:{appearance:60,userSelect:60,boxSizing:28,textAlignLast:48,textDecorationStyle:35,textDecorationSkip:35,textDecorationLine:35,textDecorationColor:35,tabSize:60,hyphens:42,fontFeatureSettings:33,breakAfter:51,breakBefore:51,breakInside:51,columnCount:51,columnFill:51,columnGap:51,columnRule:51,columnRuleColor:51,columnRuleStyle:51,columnRuleWidth:51,columns:51,columnSpan:51,columnWidth:51},opera:{flex:16,flexBasis:16,flexDirection:16,flexGrow:16,flexFlow:16,flexShrink:16,flexWrap:16,alignContent:16,alignItems:16,alignSelf:16,justifyContent:16,order:16,transform:22,transformOrigin:22,transformOriginX:22,transformOriginY:22,backfaceVisibility:22,perspective:22,perspectiveOrigin:22,transformStyle:22,transformOriginZ:22,animation:29,animationDelay:29,animationDirection:29,animationFillMode:29,animationDuration:29,animationIterationCount:29,animationName:29,animationPlayState:29,animationTimingFunction:29,appearance:50,userSelect:40,fontKerning:19,textEmphasisPosition:50,textEmphasis:50,textEmphasisStyle:50,textEmphasisColor:50,boxDecorationBreak:50,clipPath:41,maskImage:50,maskMode:50,maskRepeat:50,maskPosition:50,maskClip:50,maskOrigin:50,maskSize:50,maskComposite:50,mask:50,maskBorderSource:50,maskBorderMode:50,maskBorderSlice:50,maskBorderWidth:50,maskBorderOutset:50,maskBorderRepeat:50,maskBorder:50,maskType:50,textDecorationStyle:43,textDecorationSkip:43,textDecorationLine:43,textDecorationColor:43,filter:39,fontFeatureSettings:34,breakAfter:36,breakBefore:36,breakInside:36,columnCount:36,columnFill:36,columnGap:36,columnRule:36,columnRuleColor:36,columnRuleStyle:36,columnRuleWidth:36,columns:36,columnSpan:36,columnWidth:36,writingMode:34},ie:{flex:10,flexDirection:10,flexFlow:10,flexWrap:10,transform:9,transformOrigin:9,transformOriginX:9,transformOriginY:9,userSelect:11,wrapFlow:11,wrapThrough:11,wrapMargin:11,scrollSnapType:11,scrollSnapPointsX:11,scrollSnapPointsY:11,scrollSnapDestination:11,scrollSnapCoordinate:11,touchAction:10,hyphens:11,flowInto:11,flowFrom:11,breakBefore:11,breakAfter:11,breakInside:11,regionFragment:11,gridTemplateColumns:11,gridTemplateRows:11,gridTemplateAreas:11,gridTemplate:11,gridAutoColumns:11,gridAutoRows:11,gridAutoFlow:11,grid:11,gridRowStart:11,gridColumnStart:11,gridRowEnd:11,gridRow:11,gridColumn:11,gridColumnEnd:11,gridColumnGap:11,gridRowGap:11,gridArea:11,gridGap:11,textSizeAdjust:11,writingMode:11},edge:{userSelect:17,wrapFlow:17,wrapThrough:17,wrapMargin:17,scrollSnapType:17,scrollSnapPointsX:17,scrollSnapPointsY:17,scrollSnapDestination:17,scrollSnapCoordinate:17,hyphens:17,flowInto:17,flowFrom:17,breakBefore:17,breakAfter:17,breakInside:17,regionFragment:17,gridTemplateColumns:15,gridTemplateRows:15,gridTemplateAreas:15,gridTemplate:15,gridAutoColumns:15,gridAutoRows:15,gridAutoFlow:15,grid:15,gridRowStart:15,gridColumnStart:15,gridRowEnd:15,gridRow:15,gridColumn:15,gridColumnEnd:15,gridColumnGap:15,gridRowGap:15,gridArea:15,gridGap:15},ios_saf:{flex:8.1,flexBasis:8.1,flexDirection:8.1,flexGrow:8.1,flexFlow:8.1,flexShrink:8.1,flexWrap:8.1,alignContent:8.1,alignItems:8.1,alignSelf:8.1,justifyContent:8.1,order:8.1,transition:6,transitionDelay:6,transitionDuration:6,transitionProperty:6,transitionTimingFunction:6,transform:8.1,transformOrigin:8.1,transformOriginX:8.1,transformOriginY:8.1,backfaceVisibility:8.1,perspective:8.1,perspectiveOrigin:8.1,transformStyle:8.1,transformOriginZ:8.1,animation:8.1,animationDelay:8.1,animationDirection:8.1,animationFillMode:8.1,animationDuration:8.1,animationIterationCount:8.1,animationName:8.1,animationPlayState:8.1,animationTimingFunction:8.1,appearance:11,userSelect:11,backdropFilter:11,fontKerning:11,scrollSnapType:10.3,scrollSnapPointsX:10.3,scrollSnapPointsY:10.3,scrollSnapDestination:10.3,scrollSnapCoordinate:10.3,boxDecorationBreak:11,clipPath:11,maskImage:11,maskMode:11,maskRepeat:11,maskPosition:11,maskClip:11,maskOrigin:11,maskSize:11,maskComposite:11,mask:11,maskBorderSource:11,maskBorderMode:11,maskBorderSlice:11,maskBorderWidth:11,maskBorderOutset:11,maskBorderRepeat:11,maskBorder:11,maskType:11,textSizeAdjust:11,textDecorationStyle:11,textDecorationSkip:11,textDecorationLine:11,textDecorationColor:11,shapeImageThreshold:10,shapeImageMargin:10,shapeImageOutside:10,filter:9,hyphens:11,flowInto:11,flowFrom:11,breakBefore:8.1,breakAfter:8.1,breakInside:8.1,regionFragment:11,columnCount:8.1,columnFill:8.1,columnGap:8.1,columnRule:8.1,columnRuleColor:8.1,columnRuleStyle:8.1,columnRuleWidth:8.1,columns:8.1,columnSpan:8.1,columnWidth:8.1,writingMode:10.3},android:{borderImage:4.2,borderImageOutset:4.2,borderImageRepeat:4.2,borderImageSlice:4.2,borderImageSource:4.2,borderImageWidth:4.2,flex:4.2,flexBasis:4.2,flexDirection:4.2,flexGrow:4.2,flexFlow:4.2,flexShrink:4.2,flexWrap:4.2,alignContent:4.2,alignItems:4.2,alignSelf:4.2,justifyContent:4.2,order:4.2,transition:4.2,transitionDelay:4.2,transitionDuration:4.2,transitionProperty:4.2,transitionTimingFunction:4.2,transform:4.4,transformOrigin:4.4,transformOriginX:4.4,transformOriginY:4.4,backfaceVisibility:4.4,perspective:4.4,perspectiveOrigin:4.4,transformStyle:4.4,transformOriginZ:4.4,animation:4.4,animationDelay:4.4,animationDirection:4.4,animationFillMode:4.4,animationDuration:4.4,animationIterationCount:4.4,animationName:4.4,animationPlayState:4.4,animationTimingFunction:4.4,appearance:62,userSelect:4.4,fontKerning:4.4,textEmphasisPosition:62,textEmphasis:62,textEmphasisStyle:62,textEmphasisColor:62,boxDecorationBreak:62,clipPath:4.4,maskImage:62,maskMode:62,maskRepeat:62,maskPosition:62,maskClip:62,maskOrigin:62,maskSize:62,maskComposite:62,mask:62,maskBorderSource:62,maskBorderMode:62,maskBorderSlice:62,maskBorderWidth:62,maskBorderOutset:62,maskBorderRepeat:62,maskBorder:62,maskType:62,filter:4.4,fontFeatureSettings:4.4,breakAfter:4.4,breakBefore:4.4,breakInside:4.4,columnCount:4.4,columnFill:4.4,columnGap:4.4,columnRule:4.4,columnRuleColor:4.4,columnRuleStyle:4.4,columnRuleWidth:4.4,columns:4.4,columnSpan:4.4,columnWidth:4.4,writingMode:4.4},and_chr:{appearance:62,textEmphasisPosition:62,textEmphasis:62,textEmphasisStyle:62,textEmphasisColor:62,boxDecorationBreak:62,maskImage:62,maskMode:62,maskRepeat:62,maskPosition:62,maskClip:62,maskOrigin:62,maskSize:62,maskComposite:62,mask:62,maskBorderSource:62,maskBorderMode:62,maskBorderSlice:62,maskBorderWidth:62,maskBorderOutset:62,maskBorderRepeat:62,maskBorder:62,maskType:62},and_uc:{flex:11.4,flexBasis:11.4,flexDirection:11.4,flexGrow:11.4,flexFlow:11.4,flexShrink:11.4,flexWrap:11.4,alignContent:11.4,alignItems:11.4,alignSelf:11.4,justifyContent:11.4,order:11.4,transform:11.4,transformOrigin:11.4,transformOriginX:11.4,transformOriginY:11.4,backfaceVisibility:11.4,perspective:11.4,perspectiveOrigin:11.4,transformStyle:11.4,transformOriginZ:11.4,animation:11.4,animationDelay:11.4,animationDirection:11.4,animationFillMode:11.4,animationDuration:11.4,animationIterationCount:11.4,animationName:11.4,animationPlayState:11.4,animationTimingFunction:11.4,appearance:11.4,userSelect:11.4,textEmphasisPosition:11.4,textEmphasis:11.4,textEmphasisStyle:11.4,textEmphasisColor:11.4,clipPath:11.4,maskImage:11.4,maskMode:11.4,maskRepeat:11.4,maskPosition:11.4,maskClip:11.4,maskOrigin:11.4,maskSize:11.4,maskComposite:11.4,mask:11.4,maskBorderSource:11.4,maskBorderMode:11.4,maskBorderSlice:11.4,maskBorderWidth:11.4,maskBorderOutset:11.4,maskBorderRepeat:11.4,maskBorder:11.4,maskType:11.4,textSizeAdjust:11.4,filter:11.4,hyphens:11.4,fontFeatureSettings:11.4,breakAfter:11.4,breakBefore:11.4,breakInside:11.4,columnCount:11.4,columnFill:11.4,columnGap:11.4,columnRule:11.4,columnRuleColor:11.4,columnRuleStyle:11.4,columnRuleWidth:11.4,columns:11.4,columnSpan:11.4,columnWidth:11.4,writingMode:11.4},op_mini:{}}};function N5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")N5=function(Y){return typeof Y};else N5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return N5(Z)}var pZ=uZ.default(e4),sz=dZ.default(yZ,pZ);function rz(Z){return Object.keys(Z).reduce(function(J,Y){var G=Z[Y];if(Array.isArray(G))G=G.join(";"+Y+":");else if(G&&N5(G)==="object"&&typeof G.toString==="function")G=G.toString();return J[Y]=G,J},{})}function tz(Z){return Object.keys(Z).reduce(function(J,Y){var G=Z[Y];if(Array.isArray(G))if(cZ.default.canUseDOM)G=G[G.length-1].toString();else G=G.join(";".concat(k6(Y),":"));return J[Y]=G,J},{})}var mZ,D5;function lZ(Z){var J=Z||global&&global.navigator&&global.navigator.userAgent;if(!D5||J!==mZ){if(J==="all")D5={prefix:pZ,prefixedKeyframes:"keyframes"};else D5=new sz({userAgent:J});mZ=J}return D5}function iZ(Z){return lZ(Z).prefixedKeyframes||"keyframes"}function A5(Z,J){var Y=rz(Z),G=lZ(J),Q=G.prefix(Y),X=tz(Q);return X}function ez(Z){return Object.keys(Z).map(function(J){return J+": "+Z[J]+";"}).join(`
|
|
17
|
+
`)}function b1(Z,J,Y){if(!J)return"";var G=x0(J,function(H,z){return S0(z,H)}),Q=A5(G,Y),X=y7(Q),W=ez(X);return Z+"{"+W+"}"}var ZU=function(J){return J===null||typeof J>"u"?"main":J.toString()},R5=ZU;var JU=function(J,Y,G){var Q=R5(Y);return!!J&&!!J._radiumStyleState&&!!J._radiumStyleState[Q]&&J._radiumStyleState[Q][G]},P5=JU;var YU=function(J){return typeof J.ref==="string"?J.ref:J.key},a1=YU;var GU=function(J){return J._lastRadiumState||J.state&&J.state._radiumStyleState||{}},f0=GU;function j0(Z){if(!Z)return"";var J=5381,Y=Z.length-1;while(Y)J=J*33^Z.charCodeAt(Y),Y-=1;return(J>>>0).toString(16)}function T5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")T5=function(Y){return typeof Y};else T5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return T5(Z)}function w5(Z){return Z&&Z.constructor===Object&&Z.toString===Object.prototype.toString}function E5(Z){var J={};return Z.forEach(function(Y){if(!Y||T5(Y)!=="object")return;if(Array.isArray(Y))Y=E5(Y);Object.keys(Y).forEach(function(G){if(!w5(Y[G])||!w5(J[G])){J[G]=Y[G];return}if(G.indexOf("@media")===0){var Q=G;while(!0)if(Q+=" ",!J[Q]){J[Q]=Y[G];return}}J[G]=E5([J[G],Y[G]])})}),J}var QU=function(){};var nZ=QU;function f8(Z){var{addCSS:J,config:Y,style:G}=Z,Q=function(H){var z=H,U=z.__process(Y.userAgent),B=U.animationName,L=U.css;return J(L),B},X=Object.keys(G).reduce(function(W,H){var z=G[H],U=Array.isArray(z);if(H==="animationName"&&z&&(z.__radiumKeyframes||U))if(U)z=z.map(Q).join(", ");else z=Q(z);return W[H]=z,W},{});return{style:X}}var XU=function(J){var{style:Y,mergeStyles:G}=J,Q=Array.isArray(Y)?G(Y):Y;return{style:Q}},oZ=XU;function j8(Z){var{config:J,style:Y}=Z,G=A5(Y,J.userAgent);return{style:G}}function _8(Z){var{isNestedStyle:J,style:Y}=Z,G=Object.keys(Y).reduce(function(Q,X){var W=Y[X];if(!J(W))Q[X]=W;return Q},{});return{style:G}}var U0=[],S5=!1;function v8(){U0.forEach(function(Z){Z()})}var WU=function(J){if(U0.indexOf(J)===-1)U0.push(J);if(!S5)window.addEventListener("mouseup",v8),S5=!0;return{remove:function(){var G=U0.indexOf(J);if(U0.splice(G,1),U0.length===0&&S5)window.removeEventListener("mouseup",v8),S5=!1}}},aZ={subscribe:WU,__triggerForTests:v8};var sZ=function(J){return J===":hover"||J===":active"||J===":focus"},HU=function(J){var{ExecutionEnvironment:Y,getComponentField:G,getState:Q,mergeStyles:X,props:W,setState:H,style:z}=J,U={},B={};if(z[":hover"]){var L=W.onMouseEnter;B.onMouseEnter=function(q){L&&L(q),H(":hover",!0)};var F=W.onMouseLeave;B.onMouseLeave=function(q){F&&F(q),H(":hover",!1)}}if(z[":active"]){var M=W.onMouseDown;B.onMouseDown=function(q){M&&M(q),U._lastMouseDown=Date.now(),H(":active","viamousedown")};var K=W.onKeyDown;B.onKeyDown=function(q){if(K&&K(q),q.key===" "||q.key==="Enter")H(":active","viakeydown")};var $=W.onKeyUp;B.onKeyUp=function(q){if($&&$(q),q.key===" "||q.key==="Enter")H(":active",!1)}}if(z[":focus"]){var V=W.onFocus;B.onFocus=function(q){V&&V(q),H(":focus",!0)};var N=W.onBlur;B.onBlur=function(q){N&&N(q),H(":focus",!1)}}if(z[":active"]&&!G("_radiumMouseUpListener")&&Y.canUseEventListeners)U._radiumMouseUpListener=aZ.subscribe(function(){Object.keys(G("state")._radiumStyleState).forEach(function(q){if(Q(":active",q)==="viamousedown")H(":active",!1,q)})});var P=W.disabled?[z[":disabled"]]:Object.keys(z).filter(function(q){return sZ(q)&&Q(q)}).map(function(q){return z[q]}),D=X([z].concat(P));return D=Object.keys(D).reduce(function(q,T){if(!sZ(T)&&T!==":disabled")q[T]=D[T];return q},{}),{componentFields:U,props:B,style:D}},rZ=HU;function zU(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J]!=null?arguments[J]:{},G=Object.keys(Y);if(typeof Object.getOwnPropertySymbols==="function")G=G.concat(Object.getOwnPropertySymbols(Y).filter(function(Q){return Object.getOwnPropertyDescriptor(Y,Q).enumerable}));G.forEach(function(Q){UU(Z,Q,Y[Q])})}return Z}function UU(Z,J,Y){if(J in Z)Object.defineProperty(Z,J,{value:Y,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Y;return Z}var k8;function BU(Z){if(k8===void 0)k8=!!Z.canUseDOM&&!!window&&!!window.matchMedia&&function(J){return window.matchMedia(J)}||null;return k8}function tZ(Z,J){return Object.keys(Z).filter(function(Y){return J(Z[Y],Y)}).reduce(function(Y,G){return Y[G]=Z[G],Y},{})}function KU(Z){return Object.keys(Z).reduce(function(J,Y){if(Y.indexOf("@media")!==0)J[Y]=Z[Y];return J},{})}function LU(Z){var{addCSS:J,appendImportantToEachValue:Y,cssRuleSetToString:G,hash:Q,isNestedStyle:X,style:W,userAgent:H}=Z,z="";return Object.keys(W).filter(function(U){return U.indexOf("@media")===0}).map(function(U){var B=Y(tZ(W[U],function(K){return!X(K)}));if(!Object.keys(B).length)return;var L=G("",B,H),F="rmq-"+Q(U+L),M=U+"{ ."+F+L+"}";J(M),z+=(z?" ":"")+F}),z}function MU(Z){var{listener:J,listenersByQuery:Y,matchMedia:G,mediaQueryListsByQuery:Q,query:X}=Z;X=X.replace("@media ","");var W=Q[X];if(!W&&G)Q[X]=W=G(X);if(!Y||!Y[X])W.addListener(J),Y[X]={remove:function(){W.removeListener(J)}};return W}function h8(Z){var{ExecutionEnvironment:J,addCSS:Y,appendImportantToEachValue:G,config:Q,cssRuleSetToString:X,getComponentField:W,getGlobalState:H,hash:z,isNestedStyle:U,mergeStyles:B,props:L,setState:F,style:M}=Z,K=KU(M),$=LU({addCSS:Y,appendImportantToEachValue:G,cssRuleSetToString:X,hash:z,isNestedStyle:U,style:M,userAgent:Q.userAgent}),V=$?{className:$+(L.className?" "+L.className:"")}:null,N=Q.matchMedia||BU(J);if(!N)return{props:V,style:K};var P=zU({},W("_radiumMediaQueryListenersByQuery")),D=H("mediaQueryListsByQuery")||{};return Object.keys(M).filter(function(q){return q.indexOf("@media")===0}).map(function(q){var T=tZ(M[q],U);if(!Object.keys(T).length)return;var C=MU({listener:function(){return F(q,C.matches,"_all")},listenersByQuery:P,matchMedia:N,mediaQueryListsByQuery:D,query:q});if(C.matches)K=B([K,T])}),{componentFields:{_radiumMediaQueryListenersByQuery:P},globalState:{mediaQueryListsByQuery:D},props:V,style:K}}function b8(Z){var{addCSS:J,appendImportantToEachValue:Y,config:G,cssRuleSetToString:Q,hash:X,props:W,style:H}=Z,z=W.className,U=Object.keys(H).reduce(function(B,L){var F=H[L];if(L===":visited"){F=Y(F);var M=Q("",F,G.userAgent),K="rad-"+X(M),$="."+K+":visited"+M;J($),z=(z?z+" ":"")+K}else B[L]=F;return B},{});return{props:z===W.className?null:{className:z},style:U}}var B1={checkProps:nZ,keyframes:f8,mergeStyleArray:oZ,prefix:j8,removeNestedStyles:_8,resolveInteractionStyles:rZ,resolveMediaQueries:h8,visited:b8};var YJ=S(o6(),1);import g1 from"react";function $U(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function eZ(Z,J){for(var Y=0;Y<J.length;Y++){var G=J[Y];if(G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G)G.writable=!0;Object.defineProperty(Z,G.key,G)}}function FU(Z,J,Y){if(J)eZ(Z.prototype,J);if(Y)eZ(Z,Y);return Z}var ZJ=function(){function Z(J){$U(this,Z),this._userAgent=void 0,this._listeners=void 0,this._cssSet=void 0,this._userAgent=J,this._listeners=[],this._cssSet={}}return FU(Z,[{key:"subscribe",value:function(Y){var G=this;if(this._listeners.indexOf(Y)===-1)this._listeners.push(Y);return{remove:function(){var X=G._listeners.indexOf(Y);if(X>-1)G._listeners.splice(X,1)}}}},{key:"addCSS",value:function(Y){var G=this;if(!this._cssSet[Y])this._cssSet[Y]=!0,this._emitChange();return{remove:function(){delete G._cssSet[Y],G._emitChange()}}}},{key:"getCSS",value:function(){return Object.keys(this._cssSet).join(`
|
|
18
|
+
`)}},{key:"_emitChange",value:function(){this._listeners.forEach(function(Y){return Y()})}}]),Z}();function B0(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J]!=null?arguments[J]:{},G=Object.keys(Y);if(typeof Object.getOwnPropertySymbols==="function")G=G.concat(Object.getOwnPropertySymbols(Y).filter(function(Q){return Object.getOwnPropertyDescriptor(Y,Q).enumerable}));G.forEach(function(Q){OU(Z,Q,Y[Q])})}return Z}function OU(Z,J,Y){if(J in Z)Object.defineProperty(Z,J,{value:Y,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Y;return Z}function x5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")x5=function(Y){return typeof Y};else x5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return x5(Z)}var GJ={plugins:[B1.mergeStyleArray,B1.checkProps,B1.resolveMediaQueries,B1.resolveInteractionStyles,B1.keyframes,B1.visited,B1.removeNestedStyles,B1.prefix,B1.checkProps]},JJ={},VU=!1,s1=null,IU=function(J){return J.type&&!J.type._isRadiumEnhanced},qU=function(J){var{children:Y,component:G,config:Q,existingKeyMap:X,extraStateKeyMap:W}=J;if(!Y)return Y;var H=x5(Y);if(H==="string"||H==="number")return Y;if(H==="function")return function(){var F=Y.apply(this,arguments);if(g1.isValidElement(F)){var M=a1(F);delete W[M];var K=s1(G,F,Q,X,!0,W),$=K.element;return $}return F};if(g1.Children.count(Y)===1&&Y.type){var z=g1.Children.only(Y),U=a1(z);delete W[U];var B=s1(G,z,Q,X,!0,W),L=B.element;return L}return g1.Children.map(Y,function(F){if(g1.isValidElement(F)){var M=a1(F);delete W[M];var K=s1(G,F,Q,X,!0,W),$=K.element;return $}return F})},DU=function(J){var{component:Y,config:G,existingKeyMap:Q,props:X,extraStateKeyMap:W}=J,H=X;return Object.keys(X).forEach(function(z){if(z==="children")return;var U=X[z];if(g1.isValidElement(U)){var B=a1(U);delete W[B],H=B0({},H);var L=s1(Y,U,G,Q,!0,W),F=L.element;H[z]=F}}),H},NU=function(J){var{componentName:Y,existingKeyMap:G,renderedElement:Q}=J,X=a1(Q),W=R5(X),H=!1,z=function(){if(H)return W;if(H=!0,G[W]){var B;if(typeof Q.type==="string")B=Q.type;else if(Q.type.constructor)B=Q.type.constructor.displayName||Q.type.constructor.name;throw Error("Radium requires each element with interactive styles to have a unique key, set using either the ref or key prop. "+(X?'Key "'+X+'" is a duplicate.':"Multiple elements have no key specified.")+' Component: "'+Y+'". '+(B?'Element: "'+B+'".':""))}return G[W]=!0,W};return z},AU=function(J,Y,G,Q){if(!J._radiumIsMounted)return;var X=f0(J),W={_radiumStyleState:B0({},X)};W._radiumStyleState[Y]=B0({},W._radiumStyleState[Y]),W._radiumStyleState[Y][G]=Q,J._lastRadiumState=W._radiumStyleState,J.setState(W)},RU=function(J){var{component:Y,config:G,existingKeyMap:Q,props:X,renderedElement:W}=J;if(!g1.isValidElement(W)||typeof W.type!=="string"||!X.style)return X;var H=X,z=G.plugins||GJ.plugins,U=Y.constructor.displayName||Y.constructor.name,B=NU({renderedElement:W,existingKeyMap:Q,componentName:U}),L=function(P){return Y[P]},F=function(P){return JJ[P]},M=function(P,D){return P5(Y.state,D||B(),P)},K=function(P,D,q){return AU(Y,q||B(),P,D)},$=function(P){var D=Y._radiumStyleKeeper;if(!D){if(VU)return{remove:function(){}};throw Error("To use plugins requiring `addCSS` (e.g. keyframes, media queries), please wrap your application in the StyleRoot component. Component name: `"+U+"`.")}return D.addCSS(P)},V=X.style;if(z.forEach(function(N){var P=N({ExecutionEnvironment:YJ.default,addCSS:$,appendImportantToEachValue:v6,componentName:U,config:G,cssRuleSetToString:b1,getComponentField:L,getGlobalState:F,getState:M,hash:j0,mergeStyles:E5,props:H,setState:K,isNestedStyle:w5,style:V})||{};V=P.style||V,H=P.props&&Object.keys(P.props).length?B0({},H,P.props):H;var D=P.componentFields||{};Object.keys(D).forEach(function(T){Y[T]=D[T]});var q=P.globalState||{};Object.keys(q).forEach(function(T){JJ[T]=q[T]})}),V!==X.style)H=B0({},H,{style:V});return H},PU=function(J,Y,G){if(typeof J.type==="string")Y=B0({},Y,{"data-radium":!0});return g1.cloneElement(J,Y,G)};s1=function(J,Y){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:GJ,Q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},X=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,W=arguments.length>5?arguments[5]:void 0;if(!W){var H=f0(J);W=Object.keys(H).reduce(function(M,K){if(K!=="main")M[K]=!0;return M},{})}if(Array.isArray(Y)&&!Y.props){var z=Y.map(function(M){if(W){var K=a1(M);delete W[K]}return s1(J,M,G,Q,X,W).element});return{extraStateKeyMap:W,element:z}}if(!Y||Y.props&&Y.props["data-radium"]||X&&!IU(Y))return{extraStateKeyMap:W,element:Y};var U=Y.props.children,B=qU({children:U,component:J,config:G,existingKeyMap:Q,extraStateKeyMap:W}),L=DU({component:J,config:G,existingKeyMap:Q,extraStateKeyMap:W,props:Y.props});if(L=RU({component:J,config:G,existingKeyMap:Q,props:L,renderedElement:Y}),B===U&&L===Y.props)return{extraStateKeyMap:W,element:Y};var F=PU(Y,L!==Y.props?L:{},B);return{extraStateKeyMap:W,element:F}};var QJ=s1;var WJ=S(_6(),1);import C5,{useContext as XJ}from"react";function g8(){return g8=Object.assign||function(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J];for(var G in Y)if(Object.prototype.hasOwnProperty.call(Y,G))Z[G]=Y[G]}return Z},g8.apply(this,arguments)}var _0=C5.createContext(void 0),K0=C5.createContext(void 0);function L0(Z){var J=C5.forwardRef(function(Y,G){var Q=XJ(K0),X=XJ(_0);return C5.createElement(Z,g8({ref:G},Y,{radiumConfigContext:Q,styleKeeperContext:X}))});return J.displayName="withRadiumContexts(".concat(Z.displayName||Z.name||"Component",")"),WJ.default(J,Z)}function r1(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")r1=function(Y){return typeof Y};else r1=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return r1(Z)}function LJ(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function HJ(Z,J){for(var Y=0;Y<J.length;Y++){var G=J[Y];if(G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G)G.writable=!0;Object.defineProperty(Z,G.key,G)}}function TU(Z,J,Y){if(J)HJ(Z.prototype,J);if(Y)HJ(Z,Y);return Z}function MJ(Z,J){if(J&&(r1(J)==="object"||typeof J==="function"))return J;return $J(Z)}function $J(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function y1(Z,J,Y){if(typeof Reflect<"u"&&Reflect.get)y1=Reflect.get;else y1=function(Q,X,W){var H=wU(Q,X);if(!H)return;var z=Object.getOwnPropertyDescriptor(H,X);if(z.get)return z.get.call(W);return z.value};return y1(Z,J,Y||Z)}function wU(Z,J){while(!Object.prototype.hasOwnProperty.call(Z,J))if(Z=O1(Z),Z===null)break;return Z}function O1(Z){return O1=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},O1(Z)}function FJ(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)y8(Z,J)}function y8(Z,J){return y8=Object.setPrototypeOf||function(G,Q){return G.__proto__=Q,G},y8(Z,J)}function EU(Z,J){return CU(Z)||xU(Z,J)||SU()}function SU(){throw TypeError("Invalid attempt to destructure non-iterable instance")}function xU(Z,J){var Y=[],G=!0,Q=!1,X=void 0;try{for(var W=Z[Symbol.iterator](),H;!(G=(H=W.next()).done);G=!0)if(Y.push(H.value),J&&Y.length===J)break}catch(z){Q=!0,X=z}finally{try{if(!G&&W.return!=null)W.return()}finally{if(Q)throw X}}return Y}function CU(Z){if(Array.isArray(Z))return Z}function m8(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J]!=null?arguments[J]:{},G=Object.keys(Y);if(typeof Object.getOwnPropertySymbols==="function")G=G.concat(Object.getOwnPropertySymbols(Y).filter(function(Q){return Object.getOwnPropertyDescriptor(Y,Q).enumerable}));G.forEach(function(Q){fU(Z,Q,Y[Q])})}return Z}function fU(Z,J,Y){if(J in Z)Object.defineProperty(Z,J,{value:Y,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Y;return Z}function OJ(Z,J){if(Z==null)return{};var Y=jU(Z,J),G,Q;if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(Z);for(Q=0;Q<X.length;Q++){if(G=X[Q],J.indexOf(G)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Z,G))continue;Y[G]=Z[G]}}return Y}function jU(Z,J){if(Z==null)return{};var Y={},G=Object.keys(Z),Q,X;for(X=0;X<G.length;X++){if(Q=G[X],J.indexOf(Q)>=0)continue;Y[Q]=Z[Q]}return Y}function _U(Z){var J=vU(Z,"string");return r1(J)==="symbol"?J:String(J)}function vU(Z,J){if(r1(Z)!=="object"||Z===null)return Z;var Y=Z[Symbol.toPrimitive];if(Y!==void 0){var G=Y.call(Z,J||"default");if(r1(G)!=="object")return G;throw TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(Z)}var gU=["arguments","callee","caller","length","name","prototype","type"],j5,qJ;function yU(Z,J){Object.getOwnPropertyNames(Z).forEach(function(Y){if(gU.indexOf(Y)<0&&!J.hasOwnProperty(Y)){var G=Object.getOwnPropertyDescriptor(Z,Y);G&&Object.defineProperty(J,Y,G)}})}function mU(Z){var J=Z.prototype||{};return!Z.isReactComponent&&!J.isReactComponent&&!Z.render&&!J.render}function uU(Z){return typeof Z==="function"&&/^\s*class\s+/.test(Z.toString())}function dU(Z,J){qJ.forEach(function(Y){var G=Object.getOwnPropertyDescriptor(Z,Y),Q=(G||{}).value;if(!Q)return;var X=Object.getOwnPropertyDescriptor(j5,Y),W=(X||{}).value,H=J.prototype[Y];if(!H&&Q!==W)G&&Object.defineProperty(J.prototype,Y,G),delete Z[Y]})}function DJ(Z){if(Z._extraRadiumStateKeys&&Z._extraRadiumStateKeys.length>0){var J=Z._extraRadiumStateKeys.reduce(function(Y,G){var Q=Y[G],X=OJ(Y,[G].map(_U));return X},f0(Z));Z._lastRadiumState=J,Z.setState({_radiumStyleState:J})}}function NJ(Z){var{_radiumMouseUpListener:J,_radiumMediaQueryListenersByQuery:Y}=Z;if(Z._radiumIsMounted=!1,J)J.remove();if(Y)Object.keys(Y).forEach(function(G){Y[G].remove()},Z)}function AJ(Z,J,Y){var G=Z||J||Y;if(Y&&G!==Y)G=m8({},Y,G);return G}function RJ(Z,J,Y,G){var Q=QJ(Z,J,Y),X=Q.extraStateKeyMap,W=Q.element;if(Z._extraRadiumStateKeys=Object.keys(X),G)return VJ.createElement(K0.Provider,{value:G},W);return W}function BJ(Z,J){var Y=VJ.forwardRef(function(G,Q){var X=G.radiumConfig,W=OJ(G,["radiumConfig"]),H=zJ(K0),z=zJ(_0),U=kU({_radiumStyleState:{}}),B=EU(U,2),L=B[0],F=B[1],M=hU({state:L,setState:F,_radiumMediaQueryListenersByQuery:void 0,_radiumMouseUpListener:void 0,_radiumIsMounted:!0,_lastRadiumState:void 0,_extraRadiumStateKeys:void 0,_radiumStyleKeeper:z}).current;M.state=L,UJ(function(){return function(){NJ(M)}},[M]);var K=M._extraRadiumStateKeys&&M._extraRadiumStateKeys.length>0;UJ(function(){DJ(M)},[K,M]);var $=Z(W,Q),V=AJ(X,H,J);return RJ(M,$,V,X)});return Y._isRadiumEnhanced=!0,Y.defaultProps=Z.defaultProps,IJ.default(Y,Z)}function cU(Z,J,Y){var G=function(Q){FJ(X,Q);function X(){var W;LJ(this,X),W=MJ(this,O1(X).apply(this,arguments)),W.state=W.state||{},W._radiumStyleKeeper=W.props.styleKeeperContext,W._radiumMediaQueryListenersByQuery=W._radiumMediaQueryListenersByQuery,W._radiumMouseUpListener=W._radiumMouseUpListener,W._radiumIsMounted=!0,W._lastRadiumState=void 0,W._extraRadiumStateKeys=void 0,W.state._radiumStyleState={};var H=$J(W);return dU(H,J),W}return TU(X,[{key:"componentDidUpdate",value:function(H,z,U){if(y1(O1(X.prototype),"componentDidUpdate",this))y1(O1(X.prototype),"componentDidUpdate",this).call(this,H,z,U);DJ(this)}},{key:"componentWillUnmount",value:function(){if(y1(O1(X.prototype),"componentWillUnmount",this))y1(O1(X.prototype),"componentWillUnmount",this).call(this);NJ(this)}},{key:"render",value:function(){var H=y1(O1(X.prototype),"render",this).call(this),z=AJ(this.props.radiumConfig,this.props.radiumConfigContext,Y);return RJ(this,H,z,this.props.radiumConfig)}}]),X}(J);if(G._isRadiumEnhanced=!0,j5=G.prototype,qJ=Object.getOwnPropertyNames(j5).filter(function(Q){return Q!=="constructor"&&typeof j5[Q]==="function"}),yU(Z,G),G.propTypes&&G.propTypes.style)G.propTypes=m8({},G.propTypes,{style:f5.default.oneOfType([f5.default.array,f5.default.object])});return G.displayName=Z.displayName||Z.name||"Component",L0(G)}function pU(Z){return Z=function(J){function Y(){var G=Reflect.construct(J,arguments,this.constructor);return G}return Reflect.setPrototypeOf(Y.prototype,J.prototype),Reflect.setPrototypeOf(Y,J),Y}(Z),Z}var KJ=bU(function(){return null}).$$typeof;function M0(Z){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(KJ&&Z.$$typeof===KJ)return BJ(Z.render,J);if(typeof Z!=="function")return lU(J,Z);var Y=Z;if(mU(Y))return BJ(Y,J);var G=Y;if(uU(G))G=pU(G);if(G===Y)G=function(Q){FJ(X,Q);function X(){return LJ(this,X),MJ(this,O1(X).apply(this,arguments))}return X}(G);return cU(Y,G,J)}function lU(Z,J){var Y=m8({},Z,J);return function(G){return M0(G,Y)}}var _5=S(C6(),1);import rU,{PureComponent as tU}from"react";function $0(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")$0=function(Y){return typeof Y};else $0=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return $0(Z)}function iU(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function PJ(Z,J){for(var Y=0;Y<J.length;Y++){var G=J[Y];if(G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G)G.writable=!0;Object.defineProperty(Z,G.key,G)}}function nU(Z,J,Y){if(J)PJ(Z.prototype,J);if(Y)PJ(Z,Y);return Z}function oU(Z,J){if(J&&($0(J)==="object"||typeof J==="function"))return J;return aU(Z)}function aU(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function u8(Z){return u8=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},u8(Z)}function sU(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)d8(Z,J)}function d8(Z,J){return d8=Object.setPrototypeOf||function(G,Q){return G.__proto__=Q,G},d8(Z,J)}var c8=function(Z){sU(J,Z);function J(){return iU(this,J),oU(this,u8(J).apply(this,arguments))}return nU(J,[{key:"_buildStyles",value:function(G){var Q=this,X=this.props.radiumConfig&&this.props.radiumConfig.userAgent||this.props.radiumConfigContext&&this.props.radiumConfigContext.userAgent,W=this.props.scopeSelector,H=Object.keys(G).reduce(function(U,B){if($0(G[B])!=="object")U[B]=G[B];return U},{}),z=Object.keys(H).length?b1(W||"",H,X):"";return z+Object.keys(G).reduce(function(U,B){var L=G[B];if(B==="mediaQueries")U+=Q._buildMediaQueryString(L);else if($0(G[B])==="object"){var F=W?B.split(",").map(function(M){return W+" "+M.trim()}).join(","):B;U+=b1(F,L,X)}return U},"")}},{key:"_buildMediaQueryString",value:function(G){var Q=this,X="";return Object.keys(G).forEach(function(W){X+="@media "+W+"{"+Q._buildStyles(G[W])+"}"}),X}},{key:"render",value:function(){if(!this.props.rules)return null;var G=this._buildStyles(this.props.rules);return rU.createElement("style",{dangerouslySetInnerHTML:{__html:G}})}}]),J}(tU);c8.propTypes={radiumConfig:_5.default.object,rules:_5.default.object,scopeSelector:_5.default.string};c8.defaultProps={scopeSelector:""};var TJ=L0(c8);import k5,{useContext as UB,useRef as BB}from"react";import QB,{Component as XB}from"react";function v5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")v5=function(Y){return typeof Y};else v5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return v5(Z)}function eU(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function wJ(Z,J){for(var Y=0;Y<J.length;Y++){var G=J[Y];if(G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G)G.writable=!0;Object.defineProperty(Z,G.key,G)}}function ZB(Z,J,Y){if(J)wJ(Z.prototype,J);if(Y)wJ(Z,Y);return Z}function JB(Z,J){if(J&&(v5(J)==="object"||typeof J==="function"))return J;return YB(Z)}function YB(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function p8(Z){return p8=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},p8(Z)}function GB(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)l8(Z,J)}function l8(Z,J){return l8=Object.setPrototypeOf||function(G,Q){return G.__proto__=Q,G},l8(Z,J)}var WB=function(Z){GB(J,Z);function J(){var Y;if(eU(this,J),Y=JB(this,p8(J).apply(this,arguments)),Y.styleKeeper=void 0,Y._subscription=void 0,Y._root=void 0,Y._css=void 0,Y._onChange=function(){var G=Y.styleKeeper.getCSS();if(G!==Y._css){if(Y._root)Y._root.innerHTML=G;else throw Error("No root style object found, even after StyleSheet mount.");Y._css=G}},!Y.props.styleKeeperContext)throw Error("StyleRoot is required to use StyleSheet");return Y.styleKeeper=Y.props.styleKeeperContext,Y._css=Y.styleKeeper.getCSS(),Y}return ZB(J,[{key:"componentDidMount",value:function(){this._subscription=this.styleKeeper.subscribe(this._onChange),this._onChange()}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"componentWillUnmount",value:function(){if(this._subscription)this._subscription.remove()}},{key:"render",value:function(){var G=this;return QB.createElement("style",{dangerouslySetInnerHTML:{__html:this._css},ref:function(X){G._root=X}})}}]),J}(XB),EJ=L0(WB);function HB(Z,J){if(Z==null)return{};var Y=zB(Z,J),G,Q;if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(Z);for(Q=0;Q<X.length;Q++){if(G=X[Q],J.indexOf(G)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Z,G))continue;Y[G]=Z[G]}}return Y}function zB(Z,J){if(Z==null)return{};var Y={},G=Object.keys(Z),Q,X;for(X=0;X<G.length;X++){if(Q=G[X],J.indexOf(Q)>=0)continue;Y[Q]=Z[Q]}return Y}function KB(Z,J){var Y=Z&&Z.userAgent||J&&J.userAgent;return new ZJ(Y)}var LB=M0(function(Z){var J=Z.children,Y=HB(Z,["children"]);return k5.createElement("div",Y,J,k5.createElement(EJ,null))}),MB=function(J){var Y=J.radiumConfig,G=UB(K0),Q=BB(KB(Y,G));return k5.createElement(_0.Provider,{value:Q.current},k5.createElement(LB,J))},SJ=MB;function i8(Z,J){return{__radiumKeyframes:!0,__process:function(G){var Q=iZ(G),X=Object.keys(Z).map(function(z){return b1(z,Z[z],G)}).join(`
|
|
19
|
+
`),W=(J?J+"-":"")+"radium-animation-"+j0(X),H="@"+Q+" "+W+` {
|
|
20
|
+
`+X+`
|
|
20
21
|
}
|
|
21
|
-
`;return{css:H,animationName:W}}}}function $0(Z){return M0(Z)}$0.Plugins=W1;$0.Style=OJ;$0.StyleRoot=qJ;$0.getState=q5;$0.keyframes=d8;var H1=$0;function c8(Z){return{all:Z=Z||new Map,on:function(J,Y){var Q=Z.get(J);Q?Q.push(Y):Z.set(J,[Y])},off:function(J,Y){var Q=Z.get(J);Q&&(Y?Q.splice(Q.indexOf(Y)>>>0,1):Z.set(J,[]))},emit:function(J,Y){var Q=Z.get(J);Q&&Q.slice().map(function(X){X(Y)}),(Q=Z.get("*"))&&Q.slice().map(function(X){X(J,Y)})}}}import{createContext as HB}from"react";var f0=c8(),zB=HB(f0),y1=zB;var K1=Object.create(null);K1.open="0";K1.close="1";K1.ping="2";K1.pong="3";K1.message="4";K1.upgrade="5";K1.noop="6";var j0=Object.create(null);Object.keys(K1).forEach((Z)=>{j0[K1[Z]]=Z});var _0={type:"error",data:"parser error"};var AJ=typeof Blob==="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",RJ=typeof ArrayBuffer==="function",PJ=(Z)=>{return typeof ArrayBuffer.isView==="function"?ArrayBuffer.isView(Z):Z&&Z.buffer instanceof ArrayBuffer},v0=({type:Z,data:J},Y,Q)=>{if(AJ&&J instanceof Blob)if(Y)return Q(J);else return DJ(J,Q);else if(RJ&&(J instanceof ArrayBuffer||PJ(J)))if(Y)return Q(J);else return DJ(new Blob([J]),Q);return Q(K1[Z]+(J||""))},DJ=(Z,J)=>{let Y=new FileReader;return Y.onload=function(){let Q=Y.result.split(",")[1];J("b"+(Q||""))},Y.readAsDataURL(Z)};function NJ(Z){if(Z instanceof Uint8Array)return Z;else if(Z instanceof ArrayBuffer)return new Uint8Array(Z);else return new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength)}var p8;function TJ(Z,J){if(AJ&&Z.data instanceof Blob)return Z.data.arrayBuffer().then(NJ).then(J);else if(RJ&&(Z.data instanceof ArrayBuffer||PJ(Z.data)))return J(NJ(Z.data));v0(Z,!1,(Y)=>{if(!p8)p8=new TextEncoder;J(p8.encode(Y))})}var k0=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let Z=0;Z<64;Z++)k0["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(Z)]=Z;var wJ=(Z)=>{let J=Z.length*0.75,Y=Z.length,Q,X=0,G,W,H,z;if(Z[Z.length-1]==="="){if(J--,Z[Z.length-2]==="=")J--}let U=new ArrayBuffer(J),B=new Uint8Array(U);for(Q=0;Q<Y;Q+=4)G=k0[Z.charCodeAt(Q)],W=k0[Z.charCodeAt(Q+1)],H=k0[Z.charCodeAt(Q+2)],z=k0[Z.charCodeAt(Q+3)],B[X++]=G<<2|W>>4,B[X++]=(W&15)<<4|H>>2,B[X++]=(H&3)<<6|z&63;return U};var UB=typeof ArrayBuffer==="function",h0=(Z,J)=>{if(typeof Z!=="string")return{type:"message",data:EJ(Z,J)};let Y=Z.charAt(0);if(Y==="b")return{type:"message",data:BB(Z.substring(1),J)};if(!j0[Y])return _0;return Z.length>1?{type:j0[Y],data:Z.substring(1)}:{type:j0[Y]}},BB=(Z,J)=>{if(UB){let Y=wJ(Z);return EJ(Y,J)}else return{base64:!0,data:Z}},EJ=(Z,J)=>{switch(J){case"blob":if(Z instanceof Blob)return Z;else return new Blob([Z]);case"arraybuffer":default:if(Z instanceof ArrayBuffer)return Z;else return Z.buffer}};var SJ=String.fromCharCode(30),xJ=(Z,J)=>{let Y=Z.length,Q=Array(Y),X=0;Z.forEach((G,W)=>{v0(G,!1,(H)=>{if(Q[W]=H,++X===Y)J(Q.join(SJ))})})},CJ=(Z,J)=>{let Y=Z.split(SJ),Q=[];for(let X=0;X<Y.length;X++){let G=h0(Y[X],J);if(Q.push(G),G.type==="error")break}return Q};function fJ(){return new TransformStream({transform(Z,J){TJ(Z,(Y)=>{let Q=Y.length,X;if(Q<126)X=new Uint8Array(1),new DataView(X.buffer).setUint8(0,Q);else if(Q<65536){X=new Uint8Array(3);let G=new DataView(X.buffer);G.setUint8(0,126),G.setUint16(1,Q)}else{X=new Uint8Array(9);let G=new DataView(X.buffer);G.setUint8(0,127),G.setBigUint64(1,BigInt(Q))}if(Z.data&&typeof Z.data!=="string")X[0]|=128;J.enqueue(X),J.enqueue(Y)})}})}var l8;function f5(Z){return Z.reduce((J,Y)=>J+Y.length,0)}function j5(Z,J){if(Z[0].length===J)return Z.shift();let Y=new Uint8Array(J),Q=0;for(let X=0;X<J;X++)if(Y[X]=Z[0][Q++],Q===Z[0].length)Z.shift(),Q=0;if(Z.length&&Q<Z[0].length)Z[0]=Z[0].slice(Q);return Y}function jJ(Z,J){if(!l8)l8=new TextDecoder;let Y=[],Q=0,X=-1,G=!1;return new TransformStream({transform(W,H){Y.push(W);while(!0){if(Q===0){if(f5(Y)<1)break;let z=j5(Y,1);if(G=(z[0]&128)===128,X=z[0]&127,X<126)Q=3;else if(X===126)Q=1;else Q=2}else if(Q===1){if(f5(Y)<2)break;let z=j5(Y,2);X=new DataView(z.buffer,z.byteOffset,z.length).getUint16(0),Q=3}else if(Q===2){if(f5(Y)<8)break;let z=j5(Y,8),U=new DataView(z.buffer,z.byteOffset,z.length),B=U.getUint32(0);if(B>Math.pow(2,21)-1){H.enqueue(_0);break}X=B*Math.pow(2,32)+U.getUint32(4),Q=3}else{if(f5(Y)<X)break;let z=j5(Y,X);H.enqueue(h0(G?z:l8.decode(z),J)),Q=0}if(X===0||X>Z){H.enqueue(_0);break}}}})}var i8=4;function j(Z){if(Z)return KB(Z)}function KB(Z){for(var J in j.prototype)Z[J]=j.prototype[J];return Z}j.prototype.on=j.prototype.addEventListener=function(Z,J){return this._callbacks=this._callbacks||{},(this._callbacks["$"+Z]=this._callbacks["$"+Z]||[]).push(J),this};j.prototype.once=function(Z,J){function Y(){this.off(Z,Y),J.apply(this,arguments)}return Y.fn=J,this.on(Z,Y),this};j.prototype.off=j.prototype.removeListener=j.prototype.removeAllListeners=j.prototype.removeEventListener=function(Z,J){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var Y=this._callbacks["$"+Z];if(!Y)return this;if(arguments.length==1)return delete this._callbacks["$"+Z],this;var Q;for(var X=0;X<Y.length;X++)if(Q=Y[X],Q===J||Q.fn===J){Y.splice(X,1);break}if(Y.length===0)delete this._callbacks["$"+Z];return this};j.prototype.emit=function(Z){this._callbacks=this._callbacks||{};var J=Array(arguments.length-1),Y=this._callbacks["$"+Z];for(var Q=1;Q<arguments.length;Q++)J[Q-1]=arguments[Q];if(Y){Y=Y.slice(0);for(var Q=0,X=Y.length;Q<X;++Q)Y[Q].apply(this,J)}return this};j.prototype.emitReserved=j.prototype.emit;j.prototype.listeners=function(Z){return this._callbacks=this._callbacks||{},this._callbacks["$"+Z]||[]};j.prototype.hasListeners=function(Z){return!!this.listeners(Z).length};var P1=(()=>{if(typeof Promise==="function"&&typeof Promise.resolve==="function")return(J)=>Promise.resolve().then(J);else return(J,Y)=>Y(J,0)})(),n=(()=>{if(typeof self<"u")return self;else if(typeof window<"u")return window;else return Function("return this")()})(),_J="arraybuffer";function vJ(){}function _5(Z,...J){return J.reduce((Y,Q)=>{if(Z.hasOwnProperty(Q))Y[Q]=Z[Q];return Y},{})}var LB=n.setTimeout,MB=n.clearTimeout;function T1(Z,J){if(J.useNativeTimers)Z.setTimeoutFn=LB.bind(n),Z.clearTimeoutFn=MB.bind(n);else Z.setTimeoutFn=n.setTimeout.bind(n),Z.clearTimeoutFn=n.clearTimeout.bind(n)}var FB=1.33;function kJ(Z){if(typeof Z==="string")return $B(Z);return Math.ceil((Z.byteLength||Z.size)*FB)}function $B(Z){let J=0,Y=0;for(let Q=0,X=Z.length;Q<X;Q++)if(J=Z.charCodeAt(Q),J<128)Y+=1;else if(J<2048)Y+=2;else if(J<55296||J>=57344)Y+=3;else Q++,Y+=4;return Y}function v5(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function hJ(Z){let J="";for(let Y in Z)if(Z.hasOwnProperty(Y)){if(J.length)J+="&";J+=encodeURIComponent(Y)+"="+encodeURIComponent(Z[Y])}return J}function bJ(Z){let J={},Y=Z.split("&");for(let Q=0,X=Y.length;Q<X;Q++){let G=Y[Q].split("=");J[decodeURIComponent(G[0])]=decodeURIComponent(G[1])}return J}class n8 extends Error{constructor(Z,J,Y){super(Z);this.description=J,this.context=Y,this.type="TransportError"}}class m1 extends j{constructor(Z){super();this.writable=!1,T1(this,Z),this.opts=Z,this.query=Z.query,this.socket=Z.socket,this.supportsBinary=!Z.forceBase64}onError(Z,J,Y){return super.emitReserved("error",new n8(Z,J,Y)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){if(this.readyState==="opening"||this.readyState==="open")this.doClose(),this.onClose();return this}send(Z){if(this.readyState==="open")this.write(Z)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(Z){let J=h0(Z,this.socket.binaryType);this.onPacket(J)}onPacket(Z){super.emitReserved("packet",Z)}onClose(Z){this.readyState="closed",super.emitReserved("close",Z)}pause(Z){}createUri(Z,J={}){return Z+"://"+this._hostname()+this._port()+this.opts.path+this._query(J)}_hostname(){let Z=this.opts.hostname;return Z.indexOf(":")===-1?Z:"["+Z+"]"}_port(){if(this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80))return":"+this.opts.port;else return""}_query(Z){let J=hJ(Z);return J.length?"?"+J:""}}class k5 extends m1{constructor(){super(...arguments);this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(Z){this.readyState="pausing";let J=()=>{this.readyState="paused",Z()};if(this._polling||!this.writable){let Y=0;if(this._polling)Y++,this.once("pollComplete",function(){--Y||J()});if(!this.writable)Y++,this.once("drain",function(){--Y||J()})}else J()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(Z){let J=(Y)=>{if(this.readyState==="opening"&&Y.type==="open")this.onOpen();if(Y.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(Y)};if(CJ(Z,this.socket.binaryType).forEach(J),this.readyState!=="closed"){if(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open")this._poll()}}doClose(){let Z=()=>{this.write([{type:"close"}])};if(this.readyState==="open")Z();else this.once("open",Z)}write(Z){this.writable=!1,xJ(Z,(J)=>{this.doWrite(J,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let Z=this.opts.secure?"https":"http",J=this.query||{};if(this.opts.timestampRequests!==!1)J[this.opts.timestampParam]=v5();if(!this.supportsBinary&&!J.sid)J.b64=1;return this.createUri(Z,J)}}var gJ=!1;try{gJ=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch(Z){}var yJ=gJ;function OB(){}class uJ extends k5{constructor(Z){super(Z);if(typeof location<"u"){let J=location.protocol==="https:",Y=location.port;if(!Y)Y=J?"443":"80";this.xd=typeof location<"u"&&Z.hostname!==location.hostname||Y!==Z.port}}doWrite(Z,J){let Y=this.request({method:"POST",data:Z});Y.on("success",J),Y.on("error",(Q,X)=>{this.onError("xhr post error",Q,X)})}doPoll(){let Z=this.request();Z.on("data",this.onData.bind(this)),Z.on("error",(J,Y)=>{this.onError("xhr poll error",J,Y)}),this.pollXhr=Z}}class O1 extends j{constructor(Z,J,Y){super();this.createRequest=Z,T1(this,Y),this._opts=Y,this._method=Y.method||"GET",this._uri=J,this._data=Y.data!==void 0?Y.data:null,this._create()}_create(){var Z;let J=_5(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");J.xdomain=!!this._opts.xd;let Y=this._xhr=this.createRequest(J);try{Y.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){Y.setDisableHeaderCheck&&Y.setDisableHeaderCheck(!0);for(let Q in this._opts.extraHeaders)if(this._opts.extraHeaders.hasOwnProperty(Q))Y.setRequestHeader(Q,this._opts.extraHeaders[Q])}}catch(Q){}if(this._method==="POST")try{Y.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(Q){}try{Y.setRequestHeader("Accept","*/*")}catch(Q){}if((Z=this._opts.cookieJar)===null||Z===void 0||Z.addCookies(Y),"withCredentials"in Y)Y.withCredentials=this._opts.withCredentials;if(this._opts.requestTimeout)Y.timeout=this._opts.requestTimeout;Y.onreadystatechange=()=>{var Q;if(Y.readyState===3)(Q=this._opts.cookieJar)===null||Q===void 0||Q.parseCookies(Y.getResponseHeader("set-cookie"));if(Y.readyState!==4)return;if(Y.status===200||Y.status===1223)this._onLoad();else this.setTimeoutFn(()=>{this._onError(typeof Y.status==="number"?Y.status:0)},0)},Y.send(this._data)}catch(Q){this.setTimeoutFn(()=>{this._onError(Q)},0);return}if(typeof document<"u")this._index=O1.requestsCount++,O1.requests[this._index]=this}_onError(Z){this.emitReserved("error",Z,this._xhr),this._cleanup(!0)}_cleanup(Z){if(typeof this._xhr>"u"||this._xhr===null)return;if(this._xhr.onreadystatechange=OB,Z)try{this._xhr.abort()}catch(J){}if(typeof document<"u")delete O1.requests[this._index];this._xhr=null}_onLoad(){let Z=this._xhr.responseText;if(Z!==null)this.emitReserved("data",Z),this.emitReserved("success"),this._cleanup()}abort(){this._cleanup()}}O1.requestsCount=0;O1.requests={};if(typeof document<"u"){if(typeof attachEvent==="function")attachEvent("onunload",mJ);else if(typeof addEventListener==="function"){let Z="onpagehide"in n?"pagehide":"unload";addEventListener(Z,mJ,!1)}}function mJ(){for(let Z in O1.requests)if(O1.requests.hasOwnProperty(Z))O1.requests[Z].abort()}var VB=function(){let Z=dJ({xdomain:!1});return Z&&Z.responseType!==null}();class t1 extends uJ{constructor(Z){super(Z);let J=Z&&Z.forceBase64;this.supportsBinary=VB&&!J}request(Z={}){return Object.assign(Z,{xd:this.xd},this.opts),new O1(dJ,this.uri(),Z)}}function dJ(Z){let J=Z.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!J||yJ))return new XMLHttpRequest}catch(Y){}if(!J)try{return new n[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(Y){}}var cJ=typeof navigator<"u"&&typeof navigator.product==="string"&&navigator.product.toLowerCase()==="reactnative";class pJ extends m1{get name(){return"websocket"}doOpen(){let Z=this.uri(),J=this.opts.protocols,Y=cJ?{}:_5(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");if(this.opts.extraHeaders)Y.headers=this.opts.extraHeaders;try{this.ws=this.createSocket(Z,J,Y)}catch(Q){return this.emitReserved("error",Q)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{if(this.opts.autoUnref)this.ws._socket.unref();this.onOpen()},this.ws.onclose=(Z)=>this.onClose({description:"websocket connection closed",context:Z}),this.ws.onmessage=(Z)=>this.onData(Z.data),this.ws.onerror=(Z)=>this.onError("websocket error",Z)}write(Z){this.writable=!1;for(let J=0;J<Z.length;J++){let Y=Z[J],Q=J===Z.length-1;v0(Y,this.supportsBinary,(X)=>{try{this.doWrite(Y,X)}catch(G){}if(Q)P1(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){if(typeof this.ws<"u")this.ws.onerror=()=>{},this.ws.close(),this.ws=null}uri(){let Z=this.opts.secure?"wss":"ws",J=this.query||{};if(this.opts.timestampRequests)J[this.opts.timestampParam]=v5();if(!this.supportsBinary)J.b64=1;return this.createUri(Z,J)}}var o8=n.WebSocket||n.MozWebSocket;class e1 extends pJ{createSocket(Z,J,Y){return!cJ?J?new o8(Z,J):new o8(Z):new o8(Z,J,Y)}doWrite(Z,J){this.ws.send(J)}}class b0 extends m1{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(Z){return this.emitReserved("error",Z)}this._transport.closed.then(()=>{this.onClose()}).catch((Z)=>{this.onError("webtransport error",Z)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then((Z)=>{let J=jJ(Number.MAX_SAFE_INTEGER,this.socket.binaryType),Y=Z.readable.pipeThrough(J).getReader(),Q=fJ();Q.readable.pipeTo(Z.writable),this._writer=Q.writable.getWriter();let X=()=>{Y.read().then(({done:W,value:H})=>{if(W)return;this.onPacket(H),X()}).catch((W)=>{})};X();let G={type:"open"};if(this.query.sid)G.data=`{"sid":"${this.query.sid}"}`;this._writer.write(G).then(()=>this.onOpen())})})}write(Z){this.writable=!1;for(let J=0;J<Z.length;J++){let Y=Z[J],Q=J===Z.length-1;this._writer.write(Y).then(()=>{if(Q)P1(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var Z;(Z=this._transport)===null||Z===void 0||Z.close()}}var a8={websocket:e1,webtransport:b0,polling:t1};var IB=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,qB=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function O0(Z){if(Z.length>8000)throw"URI too long";let J=Z,Y=Z.indexOf("["),Q=Z.indexOf("]");if(Y!=-1&&Q!=-1)Z=Z.substring(0,Y)+Z.substring(Y,Q).replace(/:/g,";")+Z.substring(Q,Z.length);let X=IB.exec(Z||""),G={},W=14;while(W--)G[qB[W]]=X[W]||"";if(Y!=-1&&Q!=-1)G.source=J,G.host=G.host.substring(1,G.host.length-1).replace(/;/g,":"),G.authority=G.authority.replace("[","").replace("]","").replace(/;/g,":"),G.ipv6uri=!0;return G.pathNames=DB(G,G.path),G.queryKey=NB(G,G.query),G}function DB(Z,J){let Y=/\/{2,9}/g,Q=J.replace(Y,"/").split("/");if(J.slice(0,1)=="/"||J.length===0)Q.splice(0,1);if(J.slice(-1)=="/")Q.splice(Q.length-1,1);return Q}function NB(Z,J){let Y={};return J.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(Q,X,G){if(X)Y[X]=G}),Y}var s8=typeof addEventListener==="function"&&typeof removeEventListener==="function",h5=[];if(s8)addEventListener("offline",()=>{h5.forEach((Z)=>Z())},!1);class w1 extends j{constructor(Z,J){super();if(this.binaryType=_J,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,Z&&typeof Z==="object")J=Z,Z=null;if(Z){let Y=O0(Z);if(J.hostname=Y.host,J.secure=Y.protocol==="https"||Y.protocol==="wss",J.port=Y.port,Y.query)J.query=Y.query}else if(J.host)J.hostname=O0(J.host).host;if(T1(this,J),this.secure=J.secure!=null?J.secure:typeof location<"u"&&location.protocol==="https:",J.hostname&&!J.port)J.port=this.secure?"443":"80";if(this.hostname=J.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=J.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},J.transports.forEach((Y)=>{let Q=Y.prototype.name;this.transports.push(Q),this._transportsByName[Q]=Y}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},J),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query==="string")this.opts.query=bJ(this.opts.query);if(s8){if(this.opts.closeOnBeforeunload)this._beforeunloadEventListener=()=>{if(this.transport)this.transport.removeAllListeners(),this.transport.close()},addEventListener("beforeunload",this._beforeunloadEventListener,!1);if(this.hostname!=="localhost")this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},h5.push(this._offlineEventListener)}if(this.opts.withCredentials)this._cookieJar=vJ();this._open()}createTransport(Z){let J=Object.assign({},this.opts.query);if(J.EIO=i8,J.transport=Z,this.id)J.sid=this.id;let Y=Object.assign({},this.opts,{query:J,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[Z]);return new this._transportsByName[Z](Y)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let Z=this.opts.rememberUpgrade&&w1.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let J=this.createTransport(Z);J.open(),this.setTransport(J)}setTransport(Z){if(this.transport)this.transport.removeAllListeners();this.transport=Z,Z.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",(J)=>this._onClose("transport close",J))}onOpen(){this.readyState="open",w1.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(Z){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",Z),this.emitReserved("heartbeat"),Z.type){case"open":this.onHandshake(JSON.parse(Z.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let J=Error("server error");J.code=Z.data,this._onError(J);break;case"message":this.emitReserved("data",Z.data),this.emitReserved("message",Z.data);break}}onHandshake(Z){if(this.emitReserved("handshake",Z),this.id=Z.sid,this.transport.query.sid=Z.sid,this._pingInterval=Z.pingInterval,this._pingTimeout=Z.pingTimeout,this._maxPayload=Z.maxPayload,this.onOpen(),this.readyState==="closed")return;this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let Z=this._pingInterval+this._pingTimeout;if(this._pingTimeoutTime=Date.now()+Z,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},Z),this.opts.autoUnref)this._pingTimeoutTimer.unref()}_onDrain(){if(this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0)this.emitReserved("drain");else this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let Z=this._getWritablePackets();this.transport.send(Z),this._prevBufferLen=Z.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let J=1;for(let Y=0;Y<this.writeBuffer.length;Y++){let Q=this.writeBuffer[Y].data;if(Q)J+=kJ(Q);if(Y>0&&J>this._maxPayload)return this.writeBuffer.slice(0,Y);J+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let Z=Date.now()>this._pingTimeoutTime;if(Z)this._pingTimeoutTime=0,P1(()=>{this._onClose("ping timeout")},this.setTimeoutFn);return Z}write(Z,J,Y){return this._sendPacket("message",Z,J,Y),this}send(Z,J,Y){return this._sendPacket("message",Z,J,Y),this}_sendPacket(Z,J,Y,Q){if(typeof J==="function")Q=J,J=void 0;if(typeof Y==="function")Q=Y,Y=null;if(this.readyState==="closing"||this.readyState==="closed")return;Y=Y||{},Y.compress=Y.compress!==!1;let X={type:Z,data:J,options:Y};if(this.emitReserved("packetCreate",X),this.writeBuffer.push(X),Q)this.once("flush",Q);this.flush()}close(){let Z=()=>{this._onClose("forced close"),this.transport.close()},J=()=>{this.off("upgrade",J),this.off("upgradeError",J),Z()},Y=()=>{this.once("upgrade",J),this.once("upgradeError",J)};if(this.readyState==="opening"||this.readyState==="open")if(this.readyState="closing",this.writeBuffer.length)this.once("drain",()=>{if(this.upgrading)Y();else Z()});else if(this.upgrading)Y();else Z();return this}_onError(Z){if(w1.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",Z),this._onClose("transport error",Z)}_onClose(Z,J){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),s8){if(this._beforeunloadEventListener)removeEventListener("beforeunload",this._beforeunloadEventListener,!1);if(this._offlineEventListener){let Y=h5.indexOf(this._offlineEventListener);if(Y!==-1)h5.splice(Y,1)}}this.readyState="closed",this.id=null,this.emitReserved("close",Z,J),this.writeBuffer=[],this._prevBufferLen=0}}}w1.protocol=i8;class r8 extends w1{constructor(){super(...arguments);this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let Z=0;Z<this._upgrades.length;Z++)this._probe(this._upgrades[Z])}_probe(Z){let J=this.createTransport(Z),Y=!1;w1.priorWebsocketSuccess=!1;let Q=()=>{if(Y)return;J.send([{type:"ping",data:"probe"}]),J.once("packet",(B)=>{if(Y)return;if(B.type==="pong"&&B.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",J),!J)return;w1.priorWebsocketSuccess=J.name==="websocket",this.transport.pause(()=>{if(Y)return;if(this.readyState==="closed")return;U(),this.setTransport(J),J.send([{type:"upgrade"}]),this.emitReserved("upgrade",J),J=null,this.upgrading=!1,this.flush()})}else{let L=Error("probe error");L.transport=J.name,this.emitReserved("upgradeError",L)}})};function X(){if(Y)return;Y=!0,U(),J.close(),J=null}let G=(B)=>{let L=Error("probe error: "+B);L.transport=J.name,X(),this.emitReserved("upgradeError",L)};function W(){G("transport closed")}function H(){G("socket closed")}function z(B){if(J&&B.name!==J.name)X()}let U=()=>{J.removeListener("open",Q),J.removeListener("error",G),J.removeListener("close",W),this.off("close",H),this.off("upgrading",z)};if(J.once("open",Q),J.once("error",G),J.once("close",W),this.once("close",H),this.once("upgrading",z),this._upgrades.indexOf("webtransport")!==-1&&Z!=="webtransport")this.setTimeoutFn(()=>{if(!Y)J.open()},200);else J.open()}onHandshake(Z){this._upgrades=this._filterUpgrades(Z.upgrades),super.onHandshake(Z)}_filterUpgrades(Z){let J=[];for(let Y=0;Y<Z.length;Y++)if(~this.transports.indexOf(Z[Y]))J.push(Z[Y]);return J}}class g0 extends r8{constructor(Z,J={}){let Y=typeof Z==="object"?Z:J;if(!Y.transports||Y.transports&&typeof Y.transports[0]==="string")Y.transports=(Y.transports||["polling","websocket","webtransport"]).map((Q)=>a8[Q]).filter((Q)=>!!Q);super(Z,Y)}}var RI=g0.protocol;function lJ(Z,J="",Y){let Q=Z;if(Y=Y||typeof location<"u"&&location,Z==null)Z=Y.protocol+"//"+Y.host;if(typeof Z==="string"){if(Z.charAt(0)==="/")if(Z.charAt(1)==="/")Z=Y.protocol+Z;else Z=Y.host+Z;if(!/^(https?|wss?):\/\//.test(Z))if(typeof Y<"u")Z=Y.protocol+"//"+Z;else Z="https://"+Z;Q=O0(Z)}if(!Q.port){if(/^(http|ws)$/.test(Q.protocol))Q.port="80";else if(/^(http|ws)s$/.test(Q.protocol))Q.port="443"}Q.path=Q.path||"/";let G=Q.host.indexOf(":")!==-1?"["+Q.host+"]":Q.host;return Q.id=Q.protocol+"://"+G+":"+Q.port+J,Q.href=Q.protocol+"://"+G+(Y&&Y.port===Q.port?"":":"+Q.port),Q}var J9={};H7(J9,{protocol:()=>sJ,isPacketValid:()=>fB,PacketType:()=>w,Encoder:()=>rJ,Decoder:()=>Z9});var RB=typeof ArrayBuffer==="function",PB=(Z)=>{return typeof ArrayBuffer.isView==="function"?ArrayBuffer.isView(Z):Z.buffer instanceof ArrayBuffer},iJ=Object.prototype.toString,TB=typeof Blob==="function"||typeof Blob<"u"&&iJ.call(Blob)==="[object BlobConstructor]",wB=typeof File==="function"||typeof File<"u"&&iJ.call(File)==="[object FileConstructor]";function m0(Z){return RB&&(Z instanceof ArrayBuffer||PB(Z))||TB&&Z instanceof Blob||wB&&Z instanceof File}function y0(Z,J){if(!Z||typeof Z!=="object")return!1;if(Array.isArray(Z)){for(let Y=0,Q=Z.length;Y<Q;Y++)if(y0(Z[Y]))return!0;return!1}if(m0(Z))return!0;if(Z.toJSON&&typeof Z.toJSON==="function"&&arguments.length===1)return y0(Z.toJSON(),!0);for(let Y in Z)if(Object.prototype.hasOwnProperty.call(Z,Y)&&y0(Z[Y]))return!0;return!1}function nJ(Z){let J=[],Y=Z.data,Q=Z;return Q.data=t8(Y,J),Q.attachments=J.length,{packet:Q,buffers:J}}function t8(Z,J){if(!Z)return Z;if(m0(Z)){let Y={_placeholder:!0,num:J.length};return J.push(Z),Y}else if(Array.isArray(Z)){let Y=Array(Z.length);for(let Q=0;Q<Z.length;Q++)Y[Q]=t8(Z[Q],J);return Y}else if(typeof Z==="object"&&!(Z instanceof Date)){let Y={};for(let Q in Z)if(Object.prototype.hasOwnProperty.call(Z,Q))Y[Q]=t8(Z[Q],J);return Y}return Z}function oJ(Z,J){return Z.data=e8(Z.data,J),delete Z.attachments,Z}function e8(Z,J){if(!Z)return Z;if(Z&&Z._placeholder===!0)if(typeof Z.num==="number"&&Z.num>=0&&Z.num<J.length)return J[Z.num];else throw Error("illegal attachments");else if(Array.isArray(Z))for(let Y=0;Y<Z.length;Y++)Z[Y]=e8(Z[Y],J);else if(typeof Z==="object"){for(let Y in Z)if(Object.prototype.hasOwnProperty.call(Z,Y))Z[Y]=e8(Z[Y],J)}return Z}var aJ=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],sJ=5,w;(function(Z){Z[Z.CONNECT=0]="CONNECT",Z[Z.DISCONNECT=1]="DISCONNECT",Z[Z.EVENT=2]="EVENT",Z[Z.ACK=3]="ACK",Z[Z.CONNECT_ERROR=4]="CONNECT_ERROR",Z[Z.BINARY_EVENT=5]="BINARY_EVENT",Z[Z.BINARY_ACK=6]="BINARY_ACK"})(w||(w={}));class rJ{constructor(Z){this.replacer=Z}encode(Z){if(Z.type===w.EVENT||Z.type===w.ACK){if(y0(Z))return this.encodeAsBinary({type:Z.type===w.EVENT?w.BINARY_EVENT:w.BINARY_ACK,nsp:Z.nsp,data:Z.data,id:Z.id})}return[this.encodeAsString(Z)]}encodeAsString(Z){let J=""+Z.type;if(Z.type===w.BINARY_EVENT||Z.type===w.BINARY_ACK)J+=Z.attachments+"-";if(Z.nsp&&Z.nsp!=="/")J+=Z.nsp+",";if(Z.id!=null)J+=Z.id;if(Z.data!=null)J+=JSON.stringify(Z.data,this.replacer);return J}encodeAsBinary(Z){let J=nJ(Z),Y=this.encodeAsString(J.packet),Q=J.buffers;return Q.unshift(Y),Q}}class Z9 extends j{constructor(Z){super();this.reviver=Z}add(Z){let J;if(typeof Z==="string"){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");J=this.decodeString(Z);let Y=J.type===w.BINARY_EVENT;if(Y||J.type===w.BINARY_ACK){if(J.type=Y?w.EVENT:w.ACK,this.reconstructor=new tJ(J),J.attachments===0)super.emitReserved("decoded",J)}else super.emitReserved("decoded",J)}else if(m0(Z)||Z.base64){if(!this.reconstructor)throw Error("got binary data when not reconstructing a packet");else if(J=this.reconstructor.takeBinaryData(Z),J)this.reconstructor=null,super.emitReserved("decoded",J)}else throw Error("Unknown type: "+Z)}decodeString(Z){let J=0,Y={type:Number(Z.charAt(0))};if(w[Y.type]===void 0)throw Error("unknown packet type "+Y.type);if(Y.type===w.BINARY_EVENT||Y.type===w.BINARY_ACK){let X=J+1;while(Z.charAt(++J)!=="-"&&J!=Z.length);let G=Z.substring(X,J);if(G!=Number(G)||Z.charAt(J)!=="-")throw Error("Illegal attachments");Y.attachments=Number(G)}if(Z.charAt(J+1)==="/"){let X=J+1;while(++J){if(Z.charAt(J)===",")break;if(J===Z.length)break}Y.nsp=Z.substring(X,J)}else Y.nsp="/";let Q=Z.charAt(J+1);if(Q!==""&&Number(Q)==Q){let X=J+1;while(++J){let G=Z.charAt(J);if(G==null||Number(G)!=G){--J;break}if(J===Z.length)break}Y.id=Number(Z.substring(X,J+1))}if(Z.charAt(++J)){let X=this.tryParse(Z.substr(J));if(Z9.isPayloadValid(Y.type,X))Y.data=X;else throw Error("invalid payload")}return Y}tryParse(Z){try{return JSON.parse(Z,this.reviver)}catch(J){return!1}}static isPayloadValid(Z,J){switch(Z){case w.CONNECT:return b5(J);case w.DISCONNECT:return J===void 0;case w.CONNECT_ERROR:return typeof J==="string"||b5(J);case w.EVENT:case w.BINARY_EVENT:return Array.isArray(J)&&(typeof J[0]==="number"||typeof J[0]==="string"&&aJ.indexOf(J[0])===-1);case w.ACK:case w.BINARY_ACK:return Array.isArray(J)}}destroy(){if(this.reconstructor)this.reconstructor.finishedReconstruction(),this.reconstructor=null}}class tJ{constructor(Z){this.packet=Z,this.buffers=[],this.reconPack=Z}takeBinaryData(Z){if(this.buffers.push(Z),this.buffers.length===this.reconPack.attachments){let J=oJ(this.reconPack,this.buffers);return this.finishedReconstruction(),J}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function EB(Z){return typeof Z==="string"}var SB=Number.isInteger||function(Z){return typeof Z==="number"&&isFinite(Z)&&Math.floor(Z)===Z};function xB(Z){return Z===void 0||SB(Z)}function b5(Z){return Object.prototype.toString.call(Z)==="[object Object]"}function CB(Z,J){switch(Z){case w.CONNECT:return J===void 0||b5(J);case w.DISCONNECT:return J===void 0;case w.EVENT:return Array.isArray(J)&&(typeof J[0]==="number"||typeof J[0]==="string"&&aJ.indexOf(J[0])===-1);case w.ACK:return Array.isArray(J);case w.CONNECT_ERROR:return typeof J==="string"||b5(J);default:return!1}}function fB(Z){return EB(Z.nsp)&&xB(Z.id)&&CB(Z.type,Z.data)}function Y1(Z,J,Y){return Z.on(J,Y),function(){Z.off(J,Y)}}var jB=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class u0 extends j{constructor(Z,J,Y){super();if(this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=Z,this.nsp=J,Y&&Y.auth)this.auth=Y.auth;if(this._opts=Object.assign({},Y),this.io._autoConnect)this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let Z=this.io;this.subs=[Y1(Z,"open",this.onopen.bind(this)),Y1(Z,"packet",this.onpacket.bind(this)),Y1(Z,"error",this.onerror.bind(this)),Y1(Z,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){if(this.connected)return this;if(this.subEvents(),!this.io._reconnecting)this.io.open();if(this.io._readyState==="open")this.onopen();return this}open(){return this.connect()}send(...Z){return Z.unshift("message"),this.emit.apply(this,Z),this}emit(Z,...J){var Y,Q,X;if(jB.hasOwnProperty(Z))throw Error('"'+Z.toString()+'" is a reserved event name');if(J.unshift(Z),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(J),this;let G={type:w.EVENT,data:J};if(G.options={},G.options.compress=this.flags.compress!==!1,typeof J[J.length-1]==="function"){let U=this.ids++,B=J.pop();this._registerAckCallback(U,B),G.id=U}let W=(Q=(Y=this.io.engine)===null||Y===void 0?void 0:Y.transport)===null||Q===void 0?void 0:Q.writable,H=this.connected&&!((X=this.io.engine)===null||X===void 0?void 0:X._hasPingExpired());if(this.flags.volatile&&!W);else if(H)this.notifyOutgoingListeners(G),this.packet(G);else this.sendBuffer.push(G);return this.flags={},this}_registerAckCallback(Z,J){var Y;let Q=(Y=this.flags.timeout)!==null&&Y!==void 0?Y:this._opts.ackTimeout;if(Q===void 0){this.acks[Z]=J;return}let X=this.io.setTimeoutFn(()=>{delete this.acks[Z];for(let W=0;W<this.sendBuffer.length;W++)if(this.sendBuffer[W].id===Z)this.sendBuffer.splice(W,1);J.call(this,Error("operation has timed out"))},Q),G=(...W)=>{this.io.clearTimeoutFn(X),J.apply(this,W)};G.withError=!0,this.acks[Z]=G}emitWithAck(Z,...J){return new Promise((Y,Q)=>{let X=(G,W)=>{return G?Q(G):Y(W)};X.withError=!0,J.push(X),this.emit(Z,...J)})}_addToQueue(Z){let J;if(typeof Z[Z.length-1]==="function")J=Z.pop();let Y={id:this._queueSeq++,tryCount:0,pending:!1,args:Z,flags:Object.assign({fromQueue:!0},this.flags)};Z.push((Q,...X)=>{if(Y!==this._queue[0]);if(Q!==null){if(Y.tryCount>this._opts.retries){if(this._queue.shift(),J)J(Q)}}else if(this._queue.shift(),J)J(null,...X);return Y.pending=!1,this._drainQueue()}),this._queue.push(Y),this._drainQueue()}_drainQueue(Z=!1){if(!this.connected||this._queue.length===0)return;let J=this._queue[0];if(J.pending&&!Z)return;J.pending=!0,J.tryCount++,this.flags=J.flags,this.emit.apply(this,J.args)}packet(Z){Z.nsp=this.nsp,this.io._packet(Z)}onopen(){if(typeof this.auth=="function")this.auth((Z)=>{this._sendConnectPacket(Z)});else this._sendConnectPacket(this.auth)}_sendConnectPacket(Z){this.packet({type:w.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},Z):Z})}onerror(Z){if(!this.connected)this.emitReserved("connect_error",Z)}onclose(Z,J){this.connected=!1,delete this.id,this.emitReserved("disconnect",Z,J),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((Z)=>{if(!this.sendBuffer.some((Y)=>String(Y.id)===Z)){let Y=this.acks[Z];if(delete this.acks[Z],Y.withError)Y.call(this,Error("socket has been disconnected"))}})}onpacket(Z){if(Z.nsp!==this.nsp)return;switch(Z.type){case w.CONNECT:if(Z.data&&Z.data.sid)this.onconnect(Z.data.sid,Z.data.pid);else this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case w.EVENT:case w.BINARY_EVENT:this.onevent(Z);break;case w.ACK:case w.BINARY_ACK:this.onack(Z);break;case w.DISCONNECT:this.ondisconnect();break;case w.CONNECT_ERROR:this.destroy();let Y=Error(Z.data.message);Y.data=Z.data.data,this.emitReserved("connect_error",Y);break}}onevent(Z){let J=Z.data||[];if(Z.id!=null)J.push(this.ack(Z.id));if(this.connected)this.emitEvent(J);else this.receiveBuffer.push(Object.freeze(J))}emitEvent(Z){if(this._anyListeners&&this._anyListeners.length){let J=this._anyListeners.slice();for(let Y of J)Y.apply(this,Z)}if(super.emit.apply(this,Z),this._pid&&Z.length&&typeof Z[Z.length-1]==="string")this._lastOffset=Z[Z.length-1]}ack(Z){let J=this,Y=!1;return function(...Q){if(Y)return;Y=!0,J.packet({type:w.ACK,id:Z,data:Q})}}onack(Z){let J=this.acks[Z.id];if(typeof J!=="function")return;if(delete this.acks[Z.id],J.withError)Z.data.unshift(null);J.apply(this,Z.data)}onconnect(Z,J){this.id=Z,this.recovered=J&&this._pid===J,this._pid=J,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach((Z)=>this.emitEvent(Z)),this.receiveBuffer=[],this.sendBuffer.forEach((Z)=>{this.notifyOutgoingListeners(Z),this.packet(Z)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){if(this.subs)this.subs.forEach((Z)=>Z()),this.subs=void 0;this.io._destroy(this)}disconnect(){if(this.connected)this.packet({type:w.DISCONNECT});if(this.destroy(),this.connected)this.onclose("io client disconnect");return this}close(){return this.disconnect()}compress(Z){return this.flags.compress=Z,this}get volatile(){return this.flags.volatile=!0,this}timeout(Z){return this.flags.timeout=Z,this}onAny(Z){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(Z),this}prependAny(Z){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(Z),this}offAny(Z){if(!this._anyListeners)return this;if(Z){let J=this._anyListeners;for(let Y=0;Y<J.length;Y++)if(Z===J[Y])return J.splice(Y,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(Z){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(Z),this}prependAnyOutgoing(Z){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(Z),this}offAnyOutgoing(Z){if(!this._anyOutgoingListeners)return this;if(Z){let J=this._anyOutgoingListeners;for(let Y=0;Y<J.length;Y++)if(Z===J[Y])return J.splice(Y,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(Z){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let J=this._anyOutgoingListeners.slice();for(let Y of J)Y.apply(this,Z.data)}}}function Z0(Z){Z=Z||{},this.ms=Z.min||100,this.max=Z.max||1e4,this.factor=Z.factor||2,this.jitter=Z.jitter>0&&Z.jitter<=1?Z.jitter:0,this.attempts=0}Z0.prototype.duration=function(){var Z=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var J=Math.random(),Y=Math.floor(J*this.jitter*Z);Z=(Math.floor(J*10)&1)==0?Z-Y:Z+Y}return Math.min(Z,this.max)|0};Z0.prototype.reset=function(){this.attempts=0};Z0.prototype.setMin=function(Z){this.ms=Z};Z0.prototype.setMax=function(Z){this.max=Z};Z0.prototype.setJitter=function(Z){this.jitter=Z};class d0 extends j{constructor(Z,J){var Y;super();if(this.nsps={},this.subs=[],Z&&typeof Z==="object")J=Z,Z=void 0;J=J||{},J.path=J.path||"/socket.io",this.opts=J,T1(this,J),this.reconnection(J.reconnection!==!1),this.reconnectionAttempts(J.reconnectionAttempts||1/0),this.reconnectionDelay(J.reconnectionDelay||1000),this.reconnectionDelayMax(J.reconnectionDelayMax||5000),this.randomizationFactor((Y=J.randomizationFactor)!==null&&Y!==void 0?Y:0.5),this.backoff=new Z0({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(J.timeout==null?20000:J.timeout),this._readyState="closed",this.uri=Z;let Q=J.parser||J9;if(this.encoder=new Q.Encoder,this.decoder=new Q.Decoder,this._autoConnect=J.autoConnect!==!1,this._autoConnect)this.open()}reconnection(Z){if(!arguments.length)return this._reconnection;if(this._reconnection=!!Z,!Z)this.skipReconnect=!0;return this}reconnectionAttempts(Z){if(Z===void 0)return this._reconnectionAttempts;return this._reconnectionAttempts=Z,this}reconnectionDelay(Z){var J;if(Z===void 0)return this._reconnectionDelay;return this._reconnectionDelay=Z,(J=this.backoff)===null||J===void 0||J.setMin(Z),this}randomizationFactor(Z){var J;if(Z===void 0)return this._randomizationFactor;return this._randomizationFactor=Z,(J=this.backoff)===null||J===void 0||J.setJitter(Z),this}reconnectionDelayMax(Z){var J;if(Z===void 0)return this._reconnectionDelayMax;return this._reconnectionDelayMax=Z,(J=this.backoff)===null||J===void 0||J.setMax(Z),this}timeout(Z){if(!arguments.length)return this._timeout;return this._timeout=Z,this}maybeReconnectOnOpen(){if(!this._reconnecting&&this._reconnection&&this.backoff.attempts===0)this.reconnect()}open(Z){if(~this._readyState.indexOf("open"))return this;this.engine=new g0(this.uri,this.opts);let J=this.engine,Y=this;this._readyState="opening",this.skipReconnect=!1;let Q=Y1(J,"open",function(){Y.onopen(),Z&&Z()}),X=(W)=>{if(this.cleanup(),this._readyState="closed",this.emitReserved("error",W),Z)Z(W);else this.maybeReconnectOnOpen()},G=Y1(J,"error",X);if(this._timeout!==!1){let W=this._timeout,H=this.setTimeoutFn(()=>{Q(),X(Error("timeout")),J.close()},W);if(this.opts.autoUnref)H.unref();this.subs.push(()=>{this.clearTimeoutFn(H)})}return this.subs.push(Q),this.subs.push(G),this}connect(Z){return this.open(Z)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let Z=this.engine;this.subs.push(Y1(Z,"ping",this.onping.bind(this)),Y1(Z,"data",this.ondata.bind(this)),Y1(Z,"error",this.onerror.bind(this)),Y1(Z,"close",this.onclose.bind(this)),Y1(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(Z){try{this.decoder.add(Z)}catch(J){this.onclose("parse error",J)}}ondecoded(Z){P1(()=>{this.emitReserved("packet",Z)},this.setTimeoutFn)}onerror(Z){this.emitReserved("error",Z)}socket(Z,J){let Y=this.nsps[Z];if(!Y)Y=new u0(this,Z,J),this.nsps[Z]=Y;else if(this._autoConnect&&!Y.active)Y.connect();return Y}_destroy(Z){let J=Object.keys(this.nsps);for(let Y of J)if(this.nsps[Y].active)return;this._close()}_packet(Z){let J=this.encoder.encode(Z);for(let Y=0;Y<J.length;Y++)this.engine.write(J[Y],Z.options)}cleanup(){this.subs.forEach((Z)=>Z()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(Z,J){var Y;if(this.cleanup(),(Y=this.engine)===null||Y===void 0||Y.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",Z,J),this._reconnection&&!this.skipReconnect)this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let Z=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let J=this.backoff.duration();this._reconnecting=!0;let Y=this.setTimeoutFn(()=>{if(Z.skipReconnect)return;if(this.emitReserved("reconnect_attempt",Z.backoff.attempts),Z.skipReconnect)return;Z.open((Q)=>{if(Q)Z._reconnecting=!1,Z.reconnect(),this.emitReserved("reconnect_error",Q);else Z.onreconnect()})},J);if(this.opts.autoUnref)Y.unref();this.subs.push(()=>{this.clearTimeoutFn(Y)})}}onreconnect(){let Z=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",Z)}}var c0={};function p0(Z,J){if(typeof Z==="object")J=Z,Z=void 0;J=J||{};let Y=lJ(Z,J.path||"/socket.io"),Q=Y.source,X=Y.id,G=Y.path,W=c0[X]&&G in c0[X].nsps,H=J.forceNew||J["force new connection"]||J.multiplex===!1||W,z;if(H)z=new d0(Q,J);else{if(!c0[X])c0[X]=new d0(Q,J);z=c0[X]}if(Y.query&&!J.query)J.query=Y.queryKey;return z.socket(Y.path,J)}Object.assign(p0,{Manager:d0,Socket:u0,io:p0,connect:p0});import{createContext as _B}from"react";var g5=(Z)=>p0(Z,{autoConnect:!1,transports:["websocket"]}),vB=_B(null),u1=vB;import{createContext as rB}from"react";function l(Z,J,Y,Q){function X(G){return G instanceof Y?G:new Y(function(W){W(G)})}return new(Y||(Y=Promise))(function(G,W){function H(B){try{U(Q.next(B))}catch(L){W(L)}}function z(B){try{U(Q.throw(B))}catch(L){W(L)}}function U(B){B.done?G(B.value):X(B.value).then(H,z)}U((Q=Q.apply(Z,J||[])).next())})}function kB(Z){return Z&&Z.__esModule&&Object.prototype.hasOwnProperty.call(Z,"default")?Z.default:Z}var G9={exports:{}},V0=typeof Reflect==="object"?Reflect:null,eJ=V0&&typeof V0.apply==="function"?V0.apply:function(J,Y,Q){return Function.prototype.apply.call(J,Y,Q)},y5;if(V0&&typeof V0.ownKeys==="function")y5=V0.ownKeys;else if(Object.getOwnPropertySymbols)y5=function(J){return Object.getOwnPropertyNames(J).concat(Object.getOwnPropertySymbols(J))};else y5=function(J){return Object.getOwnPropertyNames(J)};function hB(Z){if(console&&console.warn)console.warn(Z)}var JY=Number.isNaN||function(J){return J!==J};function f(){f.init.call(this)}G9.exports=f;G9.exports.once=mB;f.EventEmitter=f;f.prototype._events=void 0;f.prototype._eventsCount=0;f.prototype._maxListeners=void 0;var ZY=10;function p5(Z){if(typeof Z!=="function")throw TypeError('The "listener" argument must be of type Function. Received type '+typeof Z)}Object.defineProperty(f,"defaultMaxListeners",{enumerable:!0,get:function(){return ZY},set:function(Z){if(typeof Z!=="number"||Z<0||JY(Z))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Z+".");ZY=Z}});f.init=function(){if(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)this._events=Object.create(null),this._eventsCount=0;this._maxListeners=this._maxListeners||void 0};f.prototype.setMaxListeners=function(J){if(typeof J!=="number"||J<0||JY(J))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+J+".");return this._maxListeners=J,this};function YY(Z){if(Z._maxListeners===void 0)return f.defaultMaxListeners;return Z._maxListeners}f.prototype.getMaxListeners=function(){return YY(this)};f.prototype.emit=function(J){var Y=[];for(var Q=1;Q<arguments.length;Q++)Y.push(arguments[Q]);var X=J==="error",G=this._events;if(G!==void 0)X=X&&G.error===void 0;else if(!X)return!1;if(X){var W;if(Y.length>0)W=Y[0];if(W instanceof Error)throw W;var H=Error("Unhandled error."+(W?" ("+W.message+")":""));throw H.context=W,H}var z=G[J];if(z===void 0)return!1;if(typeof z==="function")eJ(z,this,Y);else{var U=z.length,B=HY(z,U);for(var Q=0;Q<U;++Q)eJ(B[Q],this,Y)}return!0};function QY(Z,J,Y,Q){var X,G,W;if(p5(Y),G=Z._events,G===void 0)G=Z._events=Object.create(null),Z._eventsCount=0;else{if(G.newListener!==void 0)Z.emit("newListener",J,Y.listener?Y.listener:Y),G=Z._events;W=G[J]}if(W===void 0)W=G[J]=Y,++Z._eventsCount;else{if(typeof W==="function")W=G[J]=Q?[Y,W]:[W,Y];else if(Q)W.unshift(Y);else W.push(Y);if(X=YY(Z),X>0&&W.length>X&&!W.warned){W.warned=!0;var H=Error("Possible EventEmitter memory leak detected. "+W.length+" "+String(J)+" listeners added. Use emitter.setMaxListeners() to increase limit");H.name="MaxListenersExceededWarning",H.emitter=Z,H.type=J,H.count=W.length,hB(H)}}return Z}f.prototype.addListener=function(J,Y){return QY(this,J,Y,!1)};f.prototype.on=f.prototype.addListener;f.prototype.prependListener=function(J,Y){return QY(this,J,Y,!0)};function bB(){if(!this.fired){if(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0)return this.listener.call(this.target);return this.listener.apply(this.target,arguments)}}function XY(Z,J,Y){var Q={fired:!1,wrapFn:void 0,target:Z,type:J,listener:Y},X=bB.bind(Q);return X.listener=Y,Q.wrapFn=X,X}f.prototype.once=function(J,Y){return p5(Y),this.on(J,XY(this,J,Y)),this};f.prototype.prependOnceListener=function(J,Y){return p5(Y),this.prependListener(J,XY(this,J,Y)),this};f.prototype.removeListener=function(J,Y){var Q,X,G,W,H;if(p5(Y),X=this._events,X===void 0)return this;if(Q=X[J],Q===void 0)return this;if(Q===Y||Q.listener===Y){if(--this._eventsCount===0)this._events=Object.create(null);else if(delete X[J],X.removeListener)this.emit("removeListener",J,Q.listener||Y)}else if(typeof Q!=="function"){G=-1;for(W=Q.length-1;W>=0;W--)if(Q[W]===Y||Q[W].listener===Y){H=Q[W].listener,G=W;break}if(G<0)return this;if(G===0)Q.shift();else gB(Q,G);if(Q.length===1)X[J]=Q[0];if(X.removeListener!==void 0)this.emit("removeListener",J,H||Y)}return this};f.prototype.off=f.prototype.removeListener;f.prototype.removeAllListeners=function(J){var Y,Q,X;if(Q=this._events,Q===void 0)return this;if(Q.removeListener===void 0){if(arguments.length===0)this._events=Object.create(null),this._eventsCount=0;else if(Q[J]!==void 0)if(--this._eventsCount===0)this._events=Object.create(null);else delete Q[J];return this}if(arguments.length===0){var G=Object.keys(Q),W;for(X=0;X<G.length;++X){if(W=G[X],W==="removeListener")continue;this.removeAllListeners(W)}return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Y=Q[J],typeof Y==="function")this.removeListener(J,Y);else if(Y!==void 0)for(X=Y.length-1;X>=0;X--)this.removeListener(J,Y[X]);return this};function GY(Z,J,Y){var Q=Z._events;if(Q===void 0)return[];var X=Q[J];if(X===void 0)return[];if(typeof X==="function")return Y?[X.listener||X]:[X];return Y?yB(X):HY(X,X.length)}f.prototype.listeners=function(J){return GY(this,J,!0)};f.prototype.rawListeners=function(J){return GY(this,J,!1)};f.listenerCount=function(Z,J){if(typeof Z.listenerCount==="function")return Z.listenerCount(J);else return WY.call(Z,J)};f.prototype.listenerCount=WY;function WY(Z){var J=this._events;if(J!==void 0){var Y=J[Z];if(typeof Y==="function")return 1;else if(Y!==void 0)return Y.length}return 0}f.prototype.eventNames=function(){return this._eventsCount>0?y5(this._events):[]};function HY(Z,J){var Y=Array(J);for(var Q=0;Q<J;++Q)Y[Q]=Z[Q];return Y}function gB(Z,J){for(;J+1<Z.length;J++)Z[J]=Z[J+1];Z.pop()}function yB(Z){var J=Array(Z.length);for(var Y=0;Y<J.length;++Y)J[Y]=Z[Y].listener||Z[Y];return J}function mB(Z,J){return new Promise(function(Y,Q){function X(W){Z.removeListener(J,G),Q(W)}function G(){if(typeof Z.removeListener==="function")Z.removeListener("error",X);Y([].slice.call(arguments))}if(zY(Z,J,G,{once:!0}),J!=="error")uB(Z,X,{once:!0})})}function uB(Z,J,Y){if(typeof Z.on==="function")zY(Z,"error",J,Y)}function zY(Z,J,Y,Q){if(typeof Z.on==="function")if(Q.once)Z.once(J,Y);else Z.on(J,Y);else if(typeof Z.addEventListener==="function")Z.addEventListener(J,function X(G){if(Q.once)Z.removeEventListener(J,X);Y(G)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Z)}var dB=G9.exports,UY=kB(dB),_;(function(Z){Z[Z.timeout=1]="timeout",Z[Z.transportClosed=2]="transportClosed",Z[Z.clientDisconnected=3]="clientDisconnected",Z[Z.clientClosed=4]="clientClosed",Z[Z.clientConnectToken=5]="clientConnectToken",Z[Z.clientRefreshToken=6]="clientRefreshToken",Z[Z.subscriptionUnsubscribed=7]="subscriptionUnsubscribed",Z[Z.subscriptionSubscribeToken=8]="subscriptionSubscribeToken",Z[Z.subscriptionRefreshToken=9]="subscriptionRefreshToken",Z[Z.transportWriteError=10]="transportWriteError",Z[Z.connectionClosed=11]="connectionClosed",Z[Z.badConfiguration=12]="badConfiguration"})(_||(_={}));var d1;(function(Z){Z[Z.connectCalled=0]="connectCalled",Z[Z.transportClosed=1]="transportClosed",Z[Z.noPing=2]="noPing",Z[Z.subscribeTimeout=3]="subscribeTimeout",Z[Z.unsubscribeError=4]="unsubscribeError"})(d1||(d1={}));var l0;(function(Z){Z[Z.disconnectCalled=0]="disconnectCalled",Z[Z.unauthorized=1]="unauthorized",Z[Z.badProtocol=2]="badProtocol",Z[Z.messageSizeLimit=3]="messageSizeLimit"})(l0||(l0={}));var m5;(function(Z){Z[Z.subscribeCalled=0]="subscribeCalled",Z[Z.transportClosed=1]="transportClosed"})(m5||(m5={}));var u5;(function(Z){Z[Z.unsubscribeCalled=0]="unsubscribeCalled",Z[Z.unauthorized=1]="unauthorized",Z[Z.clientClosed=2]="clientClosed"})(u5||(u5={}));var Y9;(function(Z){Z[Z.channelCompaction=1]="channelCompaction"})(Y9||(Y9={}));var h;(function(Z){Z.Disconnected="disconnected",Z.Connecting="connecting",Z.Connected="connected"})(h||(h={}));var o;(function(Z){Z.Unsubscribed="unsubscribed",Z.Subscribing="subscribing",Z.Subscribed="subscribed"})(o||(o={}));function cB(Z,J){return Z.lastIndexOf(J,0)===0}function BY(Z){if(Z===void 0||Z===null)return!1;return typeof Z==="function"}function pB(Z,J){if(globalThis.console){let Y=globalThis.console[Z];if(BY(Y))Y.apply(globalThis.console,J)}}function lB(Z,J){return Math.floor(Math.random()*(J-Z+1)+Z)}function d5(Z,J,Y){if(Z>31)Z=31;let Q=lB(0,Math.min(Y,J*Math.pow(2,Z)));return Math.min(Y,J+Q)}function iB(Z){return"error"in Z&&Z.error!==null}function c5(Z){return Math.min(Z*1000,2147483647)}class KY extends UY{constructor(Z,J,Y){super();if(this._resubscribeTimeout=null,this._refreshTimeout=null,this.channel=J,this.state=o.Unsubscribed,this._centrifuge=Z,this._token="",this._getToken=null,this._data=null,this._getData=null,this._recover=!1,this._offset=null,this._epoch=null,this._id=0,this._recoverable=!1,this._positioned=!1,this._joinLeave=!1,this._minResubscribeDelay=500,this._maxResubscribeDelay=20000,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=!1,this._refreshTimeout=null,this._delta="",this._delta_negotiated=!1,this._tagsFilter=null,this._prevValue=null,this._unsubPromise=Promise.resolve(),this._setOptions(Y),this._centrifuge._debugEnabled)this.on("state",(Q)=>{this._debug("subscription state",J,Q.oldState,"->",Q.newState)}),this.on("error",(Q)=>{this._debug("subscription error",J,Q)});else this.on("error",function(){Function.prototype()})}ready(Z){if(this.state===o.Unsubscribed)return Promise.reject({code:_.subscriptionUnsubscribed,message:this.state});if(this.state===o.Subscribed)return Promise.resolve();return new Promise((J,Y)=>{let Q={resolve:J,reject:Y};if(Z)Q.timeout=setTimeout(function(){Y({code:_.timeout,message:"timeout"})},Z);this._promises[this._nextPromiseId()]=Q})}subscribe(){if(this._isSubscribed())return;this._resubscribeAttempts=0,this._setSubscribing(m5.subscribeCalled,"subscribe called")}unsubscribe(){this._unsubPromise=this._setUnsubscribed(u5.unsubscribeCalled,"unsubscribe called",!0)}publish(Z){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.publish(this.channel,Z)})}presence(){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presence(this.channel)})}presenceStats(){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presenceStats(this.channel)})}history(Z){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.history(this.channel,Z)})}setTagsFilter(Z){if(Z&&this._delta)throw Error("cannot use delta and tagsFilter together");this._tagsFilter=Z}setData(Z){this._data=Z}_methodCall(){if(this._isSubscribed())return Promise.resolve();if(this._isUnsubscribed())return Promise.reject({code:_.subscriptionUnsubscribed,message:this.state});return new Promise((Z,J)=>{let Y=this._centrifuge._config.timeout,Q=setTimeout(()=>{J({code:_.timeout,message:"timeout"})},Y);this._promises[this._nextPromiseId()]={timeout:Q,resolve:Z,reject:J}})}_nextPromiseId(){return++this._promiseId}_needRecover(){return this._recover===!0}_isUnsubscribed(){return this.state===o.Unsubscribed}_isSubscribing(){return this.state===o.Subscribing}_isSubscribed(){return this.state===o.Subscribed}_setState(Z){if(this.state!==Z){let J=this.state;return this.state=Z,this.emit("state",{newState:Z,oldState:J,channel:this.channel}),!0}return!1}_usesToken(){return this._token!==""||this._getToken!==null}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout()}_clearSubscribedState(){this._clearRefreshTimeout()}_setSubscribed(Z){if(!this._isSubscribing())return;if(this._clearSubscribingState(),Z.id)this._id=Z.id;if(Z.recoverable)this._recover=!0,this._offset=Z.offset||0,this._epoch=Z.epoch||"";if(Z.delta)this._delta_negotiated=!0;else this._delta_negotiated=!1;this._setState(o.Subscribed);let J=this._centrifuge._getSubscribeContext(this.channel,Z);this.emit("subscribed",J),this._resolvePromises();let Y=Z.publications;if(Y&&Y.length>0)for(let Q in Y){if(!Y.hasOwnProperty(Q))continue;this._handlePublication(Y[Q])}if(Z.expires===!0)this._refreshTimeout=setTimeout(()=>this._refresh(),c5(Z.ttl))}_setSubscribing(Z,J){return l(this,void 0,void 0,function*(){if(this._isSubscribing())return;if(this._isSubscribed())this._clearSubscribedState();if(this._setState(o.Subscribing))this.emit("subscribing",{channel:this.channel,code:Z,reason:J});if(this._centrifuge._transport&&this._centrifuge._transport.emulation())yield this._unsubPromise;if(!this._isSubscribing())return;this._subscribe()})}_subscribe(){if(this._debug("subscribing on",this.channel),!this._isTransportOpen())return this._debug("delay subscribe on",this.channel,"till connected"),null;if(this._inflight)return null;if(this._inflight=!0,this._canSubscribeWithoutGettingToken())return this._subscribeWithoutToken();return this._getSubscriptionToken().then((Z)=>this._handleTokenResponse(Z)).catch((Z)=>this._handleTokenError(Z)),null}_isTransportOpen(){return this._centrifuge._transportIsOpen}_canSubscribeWithoutGettingToken(){return!this._usesToken()||!!this._token}_subscribeWithoutToken(){if(this._getData)return this._getDataAndSubscribe(this._token),null;else return this._sendSubscribe(this._token)}_getDataAndSubscribe(Z){if(!this._getData){this._inflight=!1;return}this._getData({channel:this.channel}).then((J)=>{if(!this._isSubscribing()){this._inflight=!1;return}this._data=J,this._sendSubscribe(Z)}).catch((J)=>this._handleGetDataError(J))}_handleGetDataError(Z){if(!this._isSubscribing()){this._inflight=!1;return}if(Z instanceof V1){this._inflight=!1,this._failUnauthorized();return}this.emit("error",{type:"subscribeData",channel:this.channel,error:{code:_.badConfiguration,message:(Z===null||Z===void 0?void 0:Z.toString())||""}}),this._inflight=!1,this._scheduleResubscribe()}_handleTokenResponse(Z){if(!this._isSubscribing()){this._inflight=!1;return}if(!Z){this._inflight=!1,this._failUnauthorized();return}if(this._token=Z,this._getData)this._getDataAndSubscribe(Z);else this._sendSubscribe(Z)}_handleTokenError(Z){if(!this._isSubscribing()){this._inflight=!1;return}if(Z instanceof V1){this._inflight=!1,this._failUnauthorized();return}this.emit("error",{type:"subscribeToken",channel:this.channel,error:{code:_.subscriptionSubscribeToken,message:(Z===null||Z===void 0?void 0:Z.toString())||""}}),this._inflight=!1,this._scheduleResubscribe()}_sendSubscribe(Z){if(!this._isTransportOpen())return this._inflight=!1,null;let J=this._buildSubscribeCommand(Z);return this._centrifuge._call(J).then((Y)=>{this._inflight=!1;let Q=Y.reply.subscribe;if(this._handleSubscribeResponse(Q),Y.next)Y.next()},(Y)=>{if(this._inflight=!1,this._handleSubscribeError(Y.error),Y.next)Y.next()}),J}_buildSubscribeCommand(Z){let J={channel:this.channel};if(Z)J.token=Z;if(this._data)J.data=this._data;if(this._positioned)J.positioned=!0;if(this._recoverable)J.recoverable=!0;if(this._joinLeave)J.join_leave=!0;if(J.flag=Y9.channelCompaction,this._needRecover()){J.recover=!0;let Y=this._getOffset();if(Y)J.offset=Y;let Q=this._getEpoch();if(Q)J.epoch=Q}if(this._delta)J.delta=this._delta;if(this._tagsFilter)J.tf=this._tagsFilter;return{subscribe:J}}_debug(...Z){this._centrifuge._debug(...Z)}_handleSubscribeError(Z){if(!this._isSubscribing())return;if(Z.code===_.timeout){this._centrifuge._disconnect(d1.subscribeTimeout,"subscribe timeout",!0);return}this._subscribeError(Z)}_handleSubscribeResponse(Z){if(!this._isSubscribing())return;this._setSubscribed(Z)}_setUnsubscribed(Z,J,Y){if(this._isUnsubscribed())return Promise.resolve();let Q=Promise.resolve();if(this._isSubscribed()){if(Y)Q=this._centrifuge._unsubscribe(this);this._clearSubscribedState()}else if(this._isSubscribing()){if(this._inflight&&Y)Q=this._centrifuge._unsubscribe(this);this._clearSubscribingState()}if(this._inflight=!1,this._setState(o.Unsubscribed))this.emit("unsubscribed",{channel:this.channel,code:Z,reason:J});return this._rejectPromises({code:_.subscriptionUnsubscribed,message:this.state}),Q}_handlePublication(Z){if(this._delta&&this._delta_negotiated){let{newData:Y,newPrevValue:Q}=this._centrifuge._codec.applyDeltaIfNeeded(Z,this._prevValue);Z.data=Y,this._prevValue=Q}let J=this._centrifuge._getPublicationContext(this.channel,Z);if(this.emit("publication",J),Z.offset)this._offset=Z.offset}_handleJoin(Z){let J=this._centrifuge._getJoinLeaveContext(Z.info);this.emit("join",{channel:this.channel,info:J})}_handleLeave(Z){let J=this._centrifuge._getJoinLeaveContext(Z.info);this.emit("leave",{channel:this.channel,info:J})}_resolvePromises(){for(let Z in this._promises){if(!this._promises.hasOwnProperty(Z))continue;if(this._promises[Z].timeout)clearTimeout(this._promises[Z].timeout);this._promises[Z].resolve(),delete this._promises[Z]}}_rejectPromises(Z){for(let J in this._promises){if(!this._promises.hasOwnProperty(J))continue;if(this._promises[J].timeout)clearTimeout(this._promises[J].timeout);this._promises[J].reject(Z),delete this._promises[J]}}_scheduleResubscribe(){if(!this._isSubscribing()){this._debug("not in subscribing state, skip resubscribe scheduling",this.channel);return}let Z=this,J=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout(function(){if(Z._isSubscribing())Z._subscribe()},J),this._debug("resubscribe scheduled after "+J,this.channel)}_subscribeError(Z){if(!this._isSubscribing())return;if(Z.code<100||Z.code===109||Z.temporary===!0){if(Z.code===109)this._token="";let J={channel:this.channel,type:"subscribe",error:Z};if(this._centrifuge.state===h.Connected)this.emit("error",J);this._scheduleResubscribe()}else this._setUnsubscribed(Z.code,Z.message,!1)}_getResubscribeDelay(){let Z=d5(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,Z}_setOptions(Z){if(!Z)return;if(Z.since)this._offset=Z.since.offset||0,this._epoch=Z.since.epoch||"",this._recover=!0;if(Z.data)this._data=Z.data;if(Z.getData)this._getData=Z.getData;if(Z.minResubscribeDelay!==void 0)this._minResubscribeDelay=Z.minResubscribeDelay;if(Z.maxResubscribeDelay!==void 0)this._maxResubscribeDelay=Z.maxResubscribeDelay;if(Z.token)this._token=Z.token;if(Z.getToken)this._getToken=Z.getToken;if(Z.positioned===!0)this._positioned=!0;if(Z.recoverable===!0)this._recoverable=!0;if(Z.joinLeave===!0)this._joinLeave=!0;if(Z.delta){if(Z.delta!=="fossil")throw Error("unsupported delta format");this._delta=Z.delta}if(Z.tagsFilter)this._tagsFilter=Z.tagsFilter;if(this._tagsFilter&&this._delta)throw Error("cannot use delta and tagsFilter together")}_getOffset(){let Z=this._offset;if(Z!==null)return Z;return 0}_getEpoch(){let Z=this._epoch;if(Z!==null)return Z;return""}_clearRefreshTimeout(){if(this._refreshTimeout!==null)clearTimeout(this._refreshTimeout),this._refreshTimeout=null}_clearResubscribeTimeout(){if(this._resubscribeTimeout!==null)clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null}_getSubscriptionToken(){this._debug("get subscription token for channel",this.channel);let Z={channel:this.channel},J=this._getToken;if(J===null)return this.emit("error",{type:"configuration",channel:this.channel,error:{code:_.badConfiguration,message:"provide a function to get channel subscription token"}}),Promise.reject(new V1(""));return J(Z)}_refresh(){this._clearRefreshTimeout();let Z=this;this._getSubscriptionToken().then(function(J){if(!Z._isSubscribed())return;if(!J){Z._failUnauthorized();return}Z._token=J;let Q={sub_refresh:{channel:Z.channel,token:J}};Z._centrifuge._call(Q).then((X)=>{let G=X.reply.sub_refresh;if(Z._refreshResponse(G),X.next)X.next()},(X)=>{if(Z._refreshError(X.error),X.next)X.next()})}).catch(function(J){if(J instanceof V1){Z._failUnauthorized();return}Z.emit("error",{type:"refreshToken",channel:Z.channel,error:{code:_.subscriptionRefreshToken,message:J!==void 0?J.toString():""}}),Z._refreshTimeout=setTimeout(()=>Z._refresh(),Z._getRefreshRetryDelay())})}_refreshResponse(Z){if(!this._isSubscribed())return;if(this._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),Z.expires===!0)this._refreshTimeout=setTimeout(()=>this._refresh(),c5(Z.ttl))}_refreshError(Z){if(!this._isSubscribed())return;if(Z.code<100||Z.temporary===!0)this.emit("error",{type:"refresh",channel:this.channel,error:Z}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay());else this._setUnsubscribed(Z.code,Z.message,!0)}_getRefreshRetryDelay(){return d5(0,1e4,20000)}_failUnauthorized(){this._setUnsubscribed(u5.unauthorized,"unauthorized",!0)}}class LY{constructor(Z,J){this.endpoint=Z,this.options=J,this._transport=null}name(){return"sockjs"}subName(){return"sockjs-"+this._transport.transport}emulation(){return!1}supported(){return this.options.sockjs!==null}initialize(Z,J){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{J.onOpen()},this._transport.onerror=(Y)=>{J.onError(Y)},this._transport.onclose=(Y)=>{J.onClose(Y)},this._transport.onmessage=(Y)=>{J.onMessage(Y.data)}}close(){this._transport.close()}send(Z){this._transport.send(Z)}}class Q9{constructor(Z,J){this.endpoint=Z,this.options=J,this._transport=null}name(){return"websocket"}subName(){return"websocket"}emulation(){return!1}supported(){return this.options.websocket!==void 0&&this.options.websocket!==null}initialize(Z,J){let Y="";if(Z==="protobuf")Y="centrifuge-protobuf";if(Y!=="")this._transport=new this.options.websocket(this.endpoint,Y);else this._transport=new this.options.websocket(this.endpoint);if(Z==="protobuf")this._transport.binaryType="arraybuffer";this._transport.onopen=()=>{J.onOpen()},this._transport.onerror=(Q)=>{J.onError(Q)},this._transport.onclose=(Q)=>{J.onClose(Q)},this._transport.onmessage=(Q)=>{J.onMessage(Q.data)}}close(){this._transport.close()}send(Z){this._transport.send(Z)}}class MY{constructor(Z,J){this.endpoint=Z,this.options=J,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"http_stream"}subName(){return"http_stream"}emulation(){return!0}_handleErrors(Z){if(!Z.ok)throw Error(Z.status);return Z}_fetchEventTarget(Z,J,Y){let Q=new EventTarget,X=Z.options.fetch;return X(J,Y).then(Z._handleErrors).then((G)=>{Q.dispatchEvent(new Event("open"));let W="",H=0,z=new Uint8Array,U=G.body.getReader();return new Z.options.readableStream({start(B){function L(){return U.read().then(({done:V,value:M})=>{if(V){Q.dispatchEvent(new Event("close")),B.close();return}try{if(Z._protocol==="json"){W+=Z._utf8decoder.decode(M);while(H<W.length)if(W[H]===`
|
|
22
|
-
`){let K=W.substring(0,H);
|
|
23
|
-
`){let H=Y.substring(0,
|
|
24
|
-
`);else J=Z;try{yield this._writer.write(J)}catch(Y){this.close()}})}}var
|
|
25
|
-
`)throw Error("size integer not terminated by '\\n'");let H=new
|
|
22
|
+
`;return{css:H,animationName:W}}}}function F0(Z){return M0(Z)}F0.Plugins=B1;F0.Style=TJ;F0.StyleRoot=SJ;F0.getState=P5;F0.keyframes=i8;var e=F0;function n8(Z){return{all:Z=Z||new Map,on:function(J,Y){var G=Z.get(J);G?G.push(Y):Z.set(J,[Y])},off:function(J,Y){var G=Z.get(J);G&&(Y?G.splice(G.indexOf(Y)>>>0,1):Z.set(J,[]))},emit:function(J,Y){var G=Z.get(J);G&&G.slice().map(function(Q){Q(Y)}),(G=Z.get("*"))&&G.slice().map(function(Q){Q(J,Y)})}}}import{createContext as $B}from"react";var v0=n8(),FB=$B(v0),m1=FB;var L1=Object.create(null);L1.open="0";L1.close="1";L1.ping="2";L1.pong="3";L1.message="4";L1.upgrade="5";L1.noop="6";var k0=Object.create(null);Object.keys(L1).forEach((Z)=>{k0[L1[Z]]=Z});var h0={type:"error",data:"parser error"};var fJ=typeof Blob==="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",jJ=typeof ArrayBuffer==="function",_J=(Z)=>{return typeof ArrayBuffer.isView==="function"?ArrayBuffer.isView(Z):Z&&Z.buffer instanceof ArrayBuffer},b0=({type:Z,data:J},Y,G)=>{if(fJ&&J instanceof Blob)if(Y)return G(J);else return xJ(J,G);else if(jJ&&(J instanceof ArrayBuffer||_J(J)))if(Y)return G(J);else return xJ(new Blob([J]),G);return G(L1[Z]+(J||""))},xJ=(Z,J)=>{let Y=new FileReader;return Y.onload=function(){let G=Y.result.split(",")[1];J("b"+(G||""))},Y.readAsDataURL(Z)};function CJ(Z){if(Z instanceof Uint8Array)return Z;else if(Z instanceof ArrayBuffer)return new Uint8Array(Z);else return new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength)}var o8;function vJ(Z,J){if(fJ&&Z.data instanceof Blob)return Z.data.arrayBuffer().then(CJ).then(J);else if(jJ&&(Z.data instanceof ArrayBuffer||_J(Z.data)))return J(CJ(Z.data));b0(Z,!1,(Y)=>{if(!o8)o8=new TextEncoder;J(o8.encode(Y))})}var g0=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let Z=0;Z<64;Z++)g0["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(Z)]=Z;var kJ=(Z)=>{let J=Z.length*0.75,Y=Z.length,G,Q=0,X,W,H,z;if(Z[Z.length-1]==="="){if(J--,Z[Z.length-2]==="=")J--}let U=new ArrayBuffer(J),B=new Uint8Array(U);for(G=0;G<Y;G+=4)X=g0[Z.charCodeAt(G)],W=g0[Z.charCodeAt(G+1)],H=g0[Z.charCodeAt(G+2)],z=g0[Z.charCodeAt(G+3)],B[Q++]=X<<2|W>>4,B[Q++]=(W&15)<<4|H>>2,B[Q++]=(H&3)<<6|z&63;return U};var OB=typeof ArrayBuffer==="function",y0=(Z,J)=>{if(typeof Z!=="string")return{type:"message",data:hJ(Z,J)};let Y=Z.charAt(0);if(Y==="b")return{type:"message",data:VB(Z.substring(1),J)};if(!k0[Y])return h0;return Z.length>1?{type:k0[Y],data:Z.substring(1)}:{type:k0[Y]}},VB=(Z,J)=>{if(OB){let Y=kJ(Z);return hJ(Y,J)}else return{base64:!0,data:Z}},hJ=(Z,J)=>{switch(J){case"blob":if(Z instanceof Blob)return Z;else return new Blob([Z]);case"arraybuffer":default:if(Z instanceof ArrayBuffer)return Z;else return Z.buffer}};var bJ=String.fromCharCode(30),gJ=(Z,J)=>{let Y=Z.length,G=Array(Y),Q=0;Z.forEach((X,W)=>{b0(X,!1,(H)=>{if(G[W]=H,++Q===Y)J(G.join(bJ))})})},yJ=(Z,J)=>{let Y=Z.split(bJ),G=[];for(let Q=0;Q<Y.length;Q++){let X=y0(Y[Q],J);if(G.push(X),X.type==="error")break}return G};function mJ(){return new TransformStream({transform(Z,J){vJ(Z,(Y)=>{let G=Y.length,Q;if(G<126)Q=new Uint8Array(1),new DataView(Q.buffer).setUint8(0,G);else if(G<65536){Q=new Uint8Array(3);let X=new DataView(Q.buffer);X.setUint8(0,126),X.setUint16(1,G)}else{Q=new Uint8Array(9);let X=new DataView(Q.buffer);X.setUint8(0,127),X.setBigUint64(1,BigInt(G))}if(Z.data&&typeof Z.data!=="string")Q[0]|=128;J.enqueue(Q),J.enqueue(Y)})}})}var a8;function h5(Z){return Z.reduce((J,Y)=>J+Y.length,0)}function b5(Z,J){if(Z[0].length===J)return Z.shift();let Y=new Uint8Array(J),G=0;for(let Q=0;Q<J;Q++)if(Y[Q]=Z[0][G++],G===Z[0].length)Z.shift(),G=0;if(Z.length&&G<Z[0].length)Z[0]=Z[0].slice(G);return Y}function uJ(Z,J){if(!a8)a8=new TextDecoder;let Y=[],G=0,Q=-1,X=!1;return new TransformStream({transform(W,H){Y.push(W);while(!0){if(G===0){if(h5(Y)<1)break;let z=b5(Y,1);if(X=(z[0]&128)===128,Q=z[0]&127,Q<126)G=3;else if(Q===126)G=1;else G=2}else if(G===1){if(h5(Y)<2)break;let z=b5(Y,2);Q=new DataView(z.buffer,z.byteOffset,z.length).getUint16(0),G=3}else if(G===2){if(h5(Y)<8)break;let z=b5(Y,8),U=new DataView(z.buffer,z.byteOffset,z.length),B=U.getUint32(0);if(B>Math.pow(2,21)-1){H.enqueue(h0);break}Q=B*Math.pow(2,32)+U.getUint32(4),G=3}else{if(h5(Y)<Q)break;let z=b5(Y,Q);H.enqueue(y0(X?z:a8.decode(z),J)),G=0}if(Q===0||Q>Z){H.enqueue(h0);break}}}})}var s8=4;function j(Z){if(Z)return IB(Z)}function IB(Z){for(var J in j.prototype)Z[J]=j.prototype[J];return Z}j.prototype.on=j.prototype.addEventListener=function(Z,J){return this._callbacks=this._callbacks||{},(this._callbacks["$"+Z]=this._callbacks["$"+Z]||[]).push(J),this};j.prototype.once=function(Z,J){function Y(){this.off(Z,Y),J.apply(this,arguments)}return Y.fn=J,this.on(Z,Y),this};j.prototype.off=j.prototype.removeListener=j.prototype.removeAllListeners=j.prototype.removeEventListener=function(Z,J){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var Y=this._callbacks["$"+Z];if(!Y)return this;if(arguments.length==1)return delete this._callbacks["$"+Z],this;var G;for(var Q=0;Q<Y.length;Q++)if(G=Y[Q],G===J||G.fn===J){Y.splice(Q,1);break}if(Y.length===0)delete this._callbacks["$"+Z];return this};j.prototype.emit=function(Z){this._callbacks=this._callbacks||{};var J=Array(arguments.length-1),Y=this._callbacks["$"+Z];for(var G=1;G<arguments.length;G++)J[G-1]=arguments[G];if(Y){Y=Y.slice(0);for(var G=0,Q=Y.length;G<Q;++G)Y[G].apply(this,J)}return this};j.prototype.emitReserved=j.prototype.emit;j.prototype.listeners=function(Z){return this._callbacks=this._callbacks||{},this._callbacks["$"+Z]||[]};j.prototype.hasListeners=function(Z){return!!this.listeners(Z).length};var T1=(()=>{if(typeof Promise==="function"&&typeof Promise.resolve==="function")return(J)=>Promise.resolve().then(J);else return(J,Y)=>Y(J,0)})(),n=(()=>{if(typeof self<"u")return self;else if(typeof window<"u")return window;else return Function("return this")()})(),dJ="arraybuffer";function cJ(){}function g5(Z,...J){return J.reduce((Y,G)=>{if(Z.hasOwnProperty(G))Y[G]=Z[G];return Y},{})}var qB=n.setTimeout,DB=n.clearTimeout;function w1(Z,J){if(J.useNativeTimers)Z.setTimeoutFn=qB.bind(n),Z.clearTimeoutFn=DB.bind(n);else Z.setTimeoutFn=n.setTimeout.bind(n),Z.clearTimeoutFn=n.clearTimeout.bind(n)}var NB=1.33;function pJ(Z){if(typeof Z==="string")return AB(Z);return Math.ceil((Z.byteLength||Z.size)*NB)}function AB(Z){let J=0,Y=0;for(let G=0,Q=Z.length;G<Q;G++)if(J=Z.charCodeAt(G),J<128)Y+=1;else if(J<2048)Y+=2;else if(J<55296||J>=57344)Y+=3;else G++,Y+=4;return Y}function y5(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function lJ(Z){let J="";for(let Y in Z)if(Z.hasOwnProperty(Y)){if(J.length)J+="&";J+=encodeURIComponent(Y)+"="+encodeURIComponent(Z[Y])}return J}function iJ(Z){let J={},Y=Z.split("&");for(let G=0,Q=Y.length;G<Q;G++){let X=Y[G].split("=");J[decodeURIComponent(X[0])]=decodeURIComponent(X[1])}return J}class r8 extends Error{constructor(Z,J,Y){super(Z);this.description=J,this.context=Y,this.type="TransportError"}}class u1 extends j{constructor(Z){super();this.writable=!1,w1(this,Z),this.opts=Z,this.query=Z.query,this.socket=Z.socket,this.supportsBinary=!Z.forceBase64}onError(Z,J,Y){return super.emitReserved("error",new r8(Z,J,Y)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){if(this.readyState==="opening"||this.readyState==="open")this.doClose(),this.onClose();return this}send(Z){if(this.readyState==="open")this.write(Z)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(Z){let J=y0(Z,this.socket.binaryType);this.onPacket(J)}onPacket(Z){super.emitReserved("packet",Z)}onClose(Z){this.readyState="closed",super.emitReserved("close",Z)}pause(Z){}createUri(Z,J={}){return Z+"://"+this._hostname()+this._port()+this.opts.path+this._query(J)}_hostname(){let Z=this.opts.hostname;return Z.indexOf(":")===-1?Z:"["+Z+"]"}_port(){if(this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80))return":"+this.opts.port;else return""}_query(Z){let J=lJ(Z);return J.length?"?"+J:""}}class m5 extends u1{constructor(){super(...arguments);this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(Z){this.readyState="pausing";let J=()=>{this.readyState="paused",Z()};if(this._polling||!this.writable){let Y=0;if(this._polling)Y++,this.once("pollComplete",function(){--Y||J()});if(!this.writable)Y++,this.once("drain",function(){--Y||J()})}else J()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(Z){let J=(Y)=>{if(this.readyState==="opening"&&Y.type==="open")this.onOpen();if(Y.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(Y)};if(yJ(Z,this.socket.binaryType).forEach(J),this.readyState!=="closed"){if(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open")this._poll()}}doClose(){let Z=()=>{this.write([{type:"close"}])};if(this.readyState==="open")Z();else this.once("open",Z)}write(Z){this.writable=!1,gJ(Z,(J)=>{this.doWrite(J,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let Z=this.opts.secure?"https":"http",J=this.query||{};if(this.opts.timestampRequests!==!1)J[this.opts.timestampParam]=y5();if(!this.supportsBinary&&!J.sid)J.b64=1;return this.createUri(Z,J)}}var nJ=!1;try{nJ=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch(Z){}var oJ=nJ;function RB(){}class sJ extends m5{constructor(Z){super(Z);if(typeof location<"u"){let J=location.protocol==="https:",Y=location.port;if(!Y)Y=J?"443":"80";this.xd=typeof location<"u"&&Z.hostname!==location.hostname||Y!==Z.port}}doWrite(Z,J){let Y=this.request({method:"POST",data:Z});Y.on("success",J),Y.on("error",(G,Q)=>{this.onError("xhr post error",G,Q)})}doPoll(){let Z=this.request();Z.on("data",this.onData.bind(this)),Z.on("error",(J,Y)=>{this.onError("xhr poll error",J,Y)}),this.pollXhr=Z}}class V1 extends j{constructor(Z,J,Y){super();this.createRequest=Z,w1(this,Y),this._opts=Y,this._method=Y.method||"GET",this._uri=J,this._data=Y.data!==void 0?Y.data:null,this._create()}_create(){var Z;let J=g5(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");J.xdomain=!!this._opts.xd;let Y=this._xhr=this.createRequest(J);try{Y.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){Y.setDisableHeaderCheck&&Y.setDisableHeaderCheck(!0);for(let G in this._opts.extraHeaders)if(this._opts.extraHeaders.hasOwnProperty(G))Y.setRequestHeader(G,this._opts.extraHeaders[G])}}catch(G){}if(this._method==="POST")try{Y.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(G){}try{Y.setRequestHeader("Accept","*/*")}catch(G){}if((Z=this._opts.cookieJar)===null||Z===void 0||Z.addCookies(Y),"withCredentials"in Y)Y.withCredentials=this._opts.withCredentials;if(this._opts.requestTimeout)Y.timeout=this._opts.requestTimeout;Y.onreadystatechange=()=>{var G;if(Y.readyState===3)(G=this._opts.cookieJar)===null||G===void 0||G.parseCookies(Y.getResponseHeader("set-cookie"));if(Y.readyState!==4)return;if(Y.status===200||Y.status===1223)this._onLoad();else this.setTimeoutFn(()=>{this._onError(typeof Y.status==="number"?Y.status:0)},0)},Y.send(this._data)}catch(G){this.setTimeoutFn(()=>{this._onError(G)},0);return}if(typeof document<"u")this._index=V1.requestsCount++,V1.requests[this._index]=this}_onError(Z){this.emitReserved("error",Z,this._xhr),this._cleanup(!0)}_cleanup(Z){if(typeof this._xhr>"u"||this._xhr===null)return;if(this._xhr.onreadystatechange=RB,Z)try{this._xhr.abort()}catch(J){}if(typeof document<"u")delete V1.requests[this._index];this._xhr=null}_onLoad(){let Z=this._xhr.responseText;if(Z!==null)this.emitReserved("data",Z),this.emitReserved("success"),this._cleanup()}abort(){this._cleanup()}}V1.requestsCount=0;V1.requests={};if(typeof document<"u"){if(typeof attachEvent==="function")attachEvent("onunload",aJ);else if(typeof addEventListener==="function"){let Z="onpagehide"in n?"pagehide":"unload";addEventListener(Z,aJ,!1)}}function aJ(){for(let Z in V1.requests)if(V1.requests.hasOwnProperty(Z))V1.requests[Z].abort()}var PB=function(){let Z=rJ({xdomain:!1});return Z&&Z.responseType!==null}();class t1 extends sJ{constructor(Z){super(Z);let J=Z&&Z.forceBase64;this.supportsBinary=PB&&!J}request(Z={}){return Object.assign(Z,{xd:this.xd},this.opts),new V1(rJ,this.uri(),Z)}}function rJ(Z){let J=Z.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!J||oJ))return new XMLHttpRequest}catch(Y){}if(!J)try{return new n[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(Y){}}var tJ=typeof navigator<"u"&&typeof navigator.product==="string"&&navigator.product.toLowerCase()==="reactnative";class eJ extends u1{get name(){return"websocket"}doOpen(){let Z=this.uri(),J=this.opts.protocols,Y=tJ?{}:g5(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");if(this.opts.extraHeaders)Y.headers=this.opts.extraHeaders;try{this.ws=this.createSocket(Z,J,Y)}catch(G){return this.emitReserved("error",G)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{if(this.opts.autoUnref)this.ws._socket.unref();this.onOpen()},this.ws.onclose=(Z)=>this.onClose({description:"websocket connection closed",context:Z}),this.ws.onmessage=(Z)=>this.onData(Z.data),this.ws.onerror=(Z)=>this.onError("websocket error",Z)}write(Z){this.writable=!1;for(let J=0;J<Z.length;J++){let Y=Z[J],G=J===Z.length-1;b0(Y,this.supportsBinary,(Q)=>{try{this.doWrite(Y,Q)}catch(X){}if(G)T1(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){if(typeof this.ws<"u")this.ws.onerror=()=>{},this.ws.close(),this.ws=null}uri(){let Z=this.opts.secure?"wss":"ws",J=this.query||{};if(this.opts.timestampRequests)J[this.opts.timestampParam]=y5();if(!this.supportsBinary)J.b64=1;return this.createUri(Z,J)}}var t8=n.WebSocket||n.MozWebSocket;class e1 extends eJ{createSocket(Z,J,Y){return!tJ?J?new t8(Z,J):new t8(Z):new t8(Z,J,Y)}doWrite(Z,J){this.ws.send(J)}}class m0 extends u1{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(Z){return this.emitReserved("error",Z)}this._transport.closed.then(()=>{this.onClose()}).catch((Z)=>{this.onError("webtransport error",Z)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then((Z)=>{let J=uJ(Number.MAX_SAFE_INTEGER,this.socket.binaryType),Y=Z.readable.pipeThrough(J).getReader(),G=mJ();G.readable.pipeTo(Z.writable),this._writer=G.writable.getWriter();let Q=()=>{Y.read().then(({done:W,value:H})=>{if(W)return;this.onPacket(H),Q()}).catch((W)=>{})};Q();let X={type:"open"};if(this.query.sid)X.data=`{"sid":"${this.query.sid}"}`;this._writer.write(X).then(()=>this.onOpen())})})}write(Z){this.writable=!1;for(let J=0;J<Z.length;J++){let Y=Z[J],G=J===Z.length-1;this._writer.write(Y).then(()=>{if(G)T1(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var Z;(Z=this._transport)===null||Z===void 0||Z.close()}}var e8={websocket:e1,webtransport:m0,polling:t1};var TB=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,wB=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function O0(Z){if(Z.length>8000)throw"URI too long";let J=Z,Y=Z.indexOf("["),G=Z.indexOf("]");if(Y!=-1&&G!=-1)Z=Z.substring(0,Y)+Z.substring(Y,G).replace(/:/g,";")+Z.substring(G,Z.length);let Q=TB.exec(Z||""),X={},W=14;while(W--)X[wB[W]]=Q[W]||"";if(Y!=-1&&G!=-1)X.source=J,X.host=X.host.substring(1,X.host.length-1).replace(/;/g,":"),X.authority=X.authority.replace("[","").replace("]","").replace(/;/g,":"),X.ipv6uri=!0;return X.pathNames=EB(X,X.path),X.queryKey=SB(X,X.query),X}function EB(Z,J){let Y=/\/{2,9}/g,G=J.replace(Y,"/").split("/");if(J.slice(0,1)=="/"||J.length===0)G.splice(0,1);if(J.slice(-1)=="/")G.splice(G.length-1,1);return G}function SB(Z,J){let Y={};return J.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(G,Q,X){if(Q)Y[Q]=X}),Y}var Z9=typeof addEventListener==="function"&&typeof removeEventListener==="function",u5=[];if(Z9)addEventListener("offline",()=>{u5.forEach((Z)=>Z())},!1);class E1 extends j{constructor(Z,J){super();if(this.binaryType=dJ,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,Z&&typeof Z==="object")J=Z,Z=null;if(Z){let Y=O0(Z);if(J.hostname=Y.host,J.secure=Y.protocol==="https"||Y.protocol==="wss",J.port=Y.port,Y.query)J.query=Y.query}else if(J.host)J.hostname=O0(J.host).host;if(w1(this,J),this.secure=J.secure!=null?J.secure:typeof location<"u"&&location.protocol==="https:",J.hostname&&!J.port)J.port=this.secure?"443":"80";if(this.hostname=J.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=J.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},J.transports.forEach((Y)=>{let G=Y.prototype.name;this.transports.push(G),this._transportsByName[G]=Y}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},J),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query==="string")this.opts.query=iJ(this.opts.query);if(Z9){if(this.opts.closeOnBeforeunload)this._beforeunloadEventListener=()=>{if(this.transport)this.transport.removeAllListeners(),this.transport.close()},addEventListener("beforeunload",this._beforeunloadEventListener,!1);if(this.hostname!=="localhost")this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},u5.push(this._offlineEventListener)}if(this.opts.withCredentials)this._cookieJar=cJ();this._open()}createTransport(Z){let J=Object.assign({},this.opts.query);if(J.EIO=s8,J.transport=Z,this.id)J.sid=this.id;let Y=Object.assign({},this.opts,{query:J,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[Z]);return new this._transportsByName[Z](Y)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let Z=this.opts.rememberUpgrade&&E1.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let J=this.createTransport(Z);J.open(),this.setTransport(J)}setTransport(Z){if(this.transport)this.transport.removeAllListeners();this.transport=Z,Z.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",(J)=>this._onClose("transport close",J))}onOpen(){this.readyState="open",E1.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(Z){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",Z),this.emitReserved("heartbeat"),Z.type){case"open":this.onHandshake(JSON.parse(Z.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let J=Error("server error");J.code=Z.data,this._onError(J);break;case"message":this.emitReserved("data",Z.data),this.emitReserved("message",Z.data);break}}onHandshake(Z){if(this.emitReserved("handshake",Z),this.id=Z.sid,this.transport.query.sid=Z.sid,this._pingInterval=Z.pingInterval,this._pingTimeout=Z.pingTimeout,this._maxPayload=Z.maxPayload,this.onOpen(),this.readyState==="closed")return;this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let Z=this._pingInterval+this._pingTimeout;if(this._pingTimeoutTime=Date.now()+Z,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},Z),this.opts.autoUnref)this._pingTimeoutTimer.unref()}_onDrain(){if(this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0)this.emitReserved("drain");else this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let Z=this._getWritablePackets();this.transport.send(Z),this._prevBufferLen=Z.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let J=1;for(let Y=0;Y<this.writeBuffer.length;Y++){let G=this.writeBuffer[Y].data;if(G)J+=pJ(G);if(Y>0&&J>this._maxPayload)return this.writeBuffer.slice(0,Y);J+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let Z=Date.now()>this._pingTimeoutTime;if(Z)this._pingTimeoutTime=0,T1(()=>{this._onClose("ping timeout")},this.setTimeoutFn);return Z}write(Z,J,Y){return this._sendPacket("message",Z,J,Y),this}send(Z,J,Y){return this._sendPacket("message",Z,J,Y),this}_sendPacket(Z,J,Y,G){if(typeof J==="function")G=J,J=void 0;if(typeof Y==="function")G=Y,Y=null;if(this.readyState==="closing"||this.readyState==="closed")return;Y=Y||{},Y.compress=Y.compress!==!1;let Q={type:Z,data:J,options:Y};if(this.emitReserved("packetCreate",Q),this.writeBuffer.push(Q),G)this.once("flush",G);this.flush()}close(){let Z=()=>{this._onClose("forced close"),this.transport.close()},J=()=>{this.off("upgrade",J),this.off("upgradeError",J),Z()},Y=()=>{this.once("upgrade",J),this.once("upgradeError",J)};if(this.readyState==="opening"||this.readyState==="open")if(this.readyState="closing",this.writeBuffer.length)this.once("drain",()=>{if(this.upgrading)Y();else Z()});else if(this.upgrading)Y();else Z();return this}_onError(Z){if(E1.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",Z),this._onClose("transport error",Z)}_onClose(Z,J){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Z9){if(this._beforeunloadEventListener)removeEventListener("beforeunload",this._beforeunloadEventListener,!1);if(this._offlineEventListener){let Y=u5.indexOf(this._offlineEventListener);if(Y!==-1)u5.splice(Y,1)}}this.readyState="closed",this.id=null,this.emitReserved("close",Z,J),this.writeBuffer=[],this._prevBufferLen=0}}}E1.protocol=s8;class J9 extends E1{constructor(){super(...arguments);this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let Z=0;Z<this._upgrades.length;Z++)this._probe(this._upgrades[Z])}_probe(Z){let J=this.createTransport(Z),Y=!1;E1.priorWebsocketSuccess=!1;let G=()=>{if(Y)return;J.send([{type:"ping",data:"probe"}]),J.once("packet",(B)=>{if(Y)return;if(B.type==="pong"&&B.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",J),!J)return;E1.priorWebsocketSuccess=J.name==="websocket",this.transport.pause(()=>{if(Y)return;if(this.readyState==="closed")return;U(),this.setTransport(J),J.send([{type:"upgrade"}]),this.emitReserved("upgrade",J),J=null,this.upgrading=!1,this.flush()})}else{let L=Error("probe error");L.transport=J.name,this.emitReserved("upgradeError",L)}})};function Q(){if(Y)return;Y=!0,U(),J.close(),J=null}let X=(B)=>{let L=Error("probe error: "+B);L.transport=J.name,Q(),this.emitReserved("upgradeError",L)};function W(){X("transport closed")}function H(){X("socket closed")}function z(B){if(J&&B.name!==J.name)Q()}let U=()=>{J.removeListener("open",G),J.removeListener("error",X),J.removeListener("close",W),this.off("close",H),this.off("upgrading",z)};if(J.once("open",G),J.once("error",X),J.once("close",W),this.once("close",H),this.once("upgrading",z),this._upgrades.indexOf("webtransport")!==-1&&Z!=="webtransport")this.setTimeoutFn(()=>{if(!Y)J.open()},200);else J.open()}onHandshake(Z){this._upgrades=this._filterUpgrades(Z.upgrades),super.onHandshake(Z)}_filterUpgrades(Z){let J=[];for(let Y=0;Y<Z.length;Y++)if(~this.transports.indexOf(Z[Y]))J.push(Z[Y]);return J}}class u0 extends J9{constructor(Z,J={}){let Y=typeof Z==="object"?Z:J;if(!Y.transports||Y.transports&&typeof Y.transports[0]==="string")Y.transports=(Y.transports||["polling","websocket","webtransport"]).map((G)=>e8[G]).filter((G)=>!!G);super(Z,Y)}}var oI=u0.protocol;function ZY(Z,J="",Y){let G=Z;if(Y=Y||typeof location<"u"&&location,Z==null)Z=Y.protocol+"//"+Y.host;if(typeof Z==="string"){if(Z.charAt(0)==="/")if(Z.charAt(1)==="/")Z=Y.protocol+Z;else Z=Y.host+Z;if(!/^(https?|wss?):\/\//.test(Z))if(typeof Y<"u")Z=Y.protocol+"//"+Z;else Z="https://"+Z;G=O0(Z)}if(!G.port){if(/^(http|ws)$/.test(G.protocol))G.port="80";else if(/^(http|ws)s$/.test(G.protocol))G.port="443"}G.path=G.path||"/";let X=G.host.indexOf(":")!==-1?"["+G.host+"]":G.host;return G.id=G.protocol+"://"+X+":"+G.port+J,G.href=G.protocol+"://"+X+(Y&&Y.port===G.port?"":":"+G.port),G}var X9={};O7(X9,{protocol:()=>XY,isPacketValid:()=>gB,PacketType:()=>w,Encoder:()=>WY,Decoder:()=>Q9});var CB=typeof ArrayBuffer==="function",fB=(Z)=>{return typeof ArrayBuffer.isView==="function"?ArrayBuffer.isView(Z):Z.buffer instanceof ArrayBuffer},JY=Object.prototype.toString,jB=typeof Blob==="function"||typeof Blob<"u"&&JY.call(Blob)==="[object BlobConstructor]",_B=typeof File==="function"||typeof File<"u"&&JY.call(File)==="[object FileConstructor]";function c0(Z){return CB&&(Z instanceof ArrayBuffer||fB(Z))||jB&&Z instanceof Blob||_B&&Z instanceof File}function d0(Z,J){if(!Z||typeof Z!=="object")return!1;if(Array.isArray(Z)){for(let Y=0,G=Z.length;Y<G;Y++)if(d0(Z[Y]))return!0;return!1}if(c0(Z))return!0;if(Z.toJSON&&typeof Z.toJSON==="function"&&arguments.length===1)return d0(Z.toJSON(),!0);for(let Y in Z)if(Object.prototype.hasOwnProperty.call(Z,Y)&&d0(Z[Y]))return!0;return!1}function YY(Z){let J=[],Y=Z.data,G=Z;return G.data=Y9(Y,J),G.attachments=J.length,{packet:G,buffers:J}}function Y9(Z,J){if(!Z)return Z;if(c0(Z)){let Y={_placeholder:!0,num:J.length};return J.push(Z),Y}else if(Array.isArray(Z)){let Y=Array(Z.length);for(let G=0;G<Z.length;G++)Y[G]=Y9(Z[G],J);return Y}else if(typeof Z==="object"&&!(Z instanceof Date)){let Y={};for(let G in Z)if(Object.prototype.hasOwnProperty.call(Z,G))Y[G]=Y9(Z[G],J);return Y}return Z}function GY(Z,J){return Z.data=G9(Z.data,J),delete Z.attachments,Z}function G9(Z,J){if(!Z)return Z;if(Z&&Z._placeholder===!0)if(typeof Z.num==="number"&&Z.num>=0&&Z.num<J.length)return J[Z.num];else throw Error("illegal attachments");else if(Array.isArray(Z))for(let Y=0;Y<Z.length;Y++)Z[Y]=G9(Z[Y],J);else if(typeof Z==="object"){for(let Y in Z)if(Object.prototype.hasOwnProperty.call(Z,Y))Z[Y]=G9(Z[Y],J)}return Z}var QY=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],XY=5,w;(function(Z){Z[Z.CONNECT=0]="CONNECT",Z[Z.DISCONNECT=1]="DISCONNECT",Z[Z.EVENT=2]="EVENT",Z[Z.ACK=3]="ACK",Z[Z.CONNECT_ERROR=4]="CONNECT_ERROR",Z[Z.BINARY_EVENT=5]="BINARY_EVENT",Z[Z.BINARY_ACK=6]="BINARY_ACK"})(w||(w={}));class WY{constructor(Z){this.replacer=Z}encode(Z){if(Z.type===w.EVENT||Z.type===w.ACK){if(d0(Z))return this.encodeAsBinary({type:Z.type===w.EVENT?w.BINARY_EVENT:w.BINARY_ACK,nsp:Z.nsp,data:Z.data,id:Z.id})}return[this.encodeAsString(Z)]}encodeAsString(Z){let J=""+Z.type;if(Z.type===w.BINARY_EVENT||Z.type===w.BINARY_ACK)J+=Z.attachments+"-";if(Z.nsp&&Z.nsp!=="/")J+=Z.nsp+",";if(Z.id!=null)J+=Z.id;if(Z.data!=null)J+=JSON.stringify(Z.data,this.replacer);return J}encodeAsBinary(Z){let J=YY(Z),Y=this.encodeAsString(J.packet),G=J.buffers;return G.unshift(Y),G}}class Q9 extends j{constructor(Z){super();this.reviver=Z}add(Z){let J;if(typeof Z==="string"){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");J=this.decodeString(Z);let Y=J.type===w.BINARY_EVENT;if(Y||J.type===w.BINARY_ACK){if(J.type=Y?w.EVENT:w.ACK,this.reconstructor=new HY(J),J.attachments===0)super.emitReserved("decoded",J)}else super.emitReserved("decoded",J)}else if(c0(Z)||Z.base64){if(!this.reconstructor)throw Error("got binary data when not reconstructing a packet");else if(J=this.reconstructor.takeBinaryData(Z),J)this.reconstructor=null,super.emitReserved("decoded",J)}else throw Error("Unknown type: "+Z)}decodeString(Z){let J=0,Y={type:Number(Z.charAt(0))};if(w[Y.type]===void 0)throw Error("unknown packet type "+Y.type);if(Y.type===w.BINARY_EVENT||Y.type===w.BINARY_ACK){let Q=J+1;while(Z.charAt(++J)!=="-"&&J!=Z.length);let X=Z.substring(Q,J);if(X!=Number(X)||Z.charAt(J)!=="-")throw Error("Illegal attachments");Y.attachments=Number(X)}if(Z.charAt(J+1)==="/"){let Q=J+1;while(++J){if(Z.charAt(J)===",")break;if(J===Z.length)break}Y.nsp=Z.substring(Q,J)}else Y.nsp="/";let G=Z.charAt(J+1);if(G!==""&&Number(G)==G){let Q=J+1;while(++J){let X=Z.charAt(J);if(X==null||Number(X)!=X){--J;break}if(J===Z.length)break}Y.id=Number(Z.substring(Q,J+1))}if(Z.charAt(++J)){let Q=this.tryParse(Z.substr(J));if(Q9.isPayloadValid(Y.type,Q))Y.data=Q;else throw Error("invalid payload")}return Y}tryParse(Z){try{return JSON.parse(Z,this.reviver)}catch(J){return!1}}static isPayloadValid(Z,J){switch(Z){case w.CONNECT:return d5(J);case w.DISCONNECT:return J===void 0;case w.CONNECT_ERROR:return typeof J==="string"||d5(J);case w.EVENT:case w.BINARY_EVENT:return Array.isArray(J)&&(typeof J[0]==="number"||typeof J[0]==="string"&&QY.indexOf(J[0])===-1);case w.ACK:case w.BINARY_ACK:return Array.isArray(J)}}destroy(){if(this.reconstructor)this.reconstructor.finishedReconstruction(),this.reconstructor=null}}class HY{constructor(Z){this.packet=Z,this.buffers=[],this.reconPack=Z}takeBinaryData(Z){if(this.buffers.push(Z),this.buffers.length===this.reconPack.attachments){let J=GY(this.reconPack,this.buffers);return this.finishedReconstruction(),J}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function vB(Z){return typeof Z==="string"}var kB=Number.isInteger||function(Z){return typeof Z==="number"&&isFinite(Z)&&Math.floor(Z)===Z};function hB(Z){return Z===void 0||kB(Z)}function d5(Z){return Object.prototype.toString.call(Z)==="[object Object]"}function bB(Z,J){switch(Z){case w.CONNECT:return J===void 0||d5(J);case w.DISCONNECT:return J===void 0;case w.EVENT:return Array.isArray(J)&&(typeof J[0]==="number"||typeof J[0]==="string"&&QY.indexOf(J[0])===-1);case w.ACK:return Array.isArray(J);case w.CONNECT_ERROR:return typeof J==="string"||d5(J);default:return!1}}function gB(Z){return vB(Z.nsp)&&hB(Z.id)&&bB(Z.type,Z.data)}function Q1(Z,J,Y){return Z.on(J,Y),function(){Z.off(J,Y)}}var yB=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class p0 extends j{constructor(Z,J,Y){super();if(this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=Z,this.nsp=J,Y&&Y.auth)this.auth=Y.auth;if(this._opts=Object.assign({},Y),this.io._autoConnect)this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let Z=this.io;this.subs=[Q1(Z,"open",this.onopen.bind(this)),Q1(Z,"packet",this.onpacket.bind(this)),Q1(Z,"error",this.onerror.bind(this)),Q1(Z,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){if(this.connected)return this;if(this.subEvents(),!this.io._reconnecting)this.io.open();if(this.io._readyState==="open")this.onopen();return this}open(){return this.connect()}send(...Z){return Z.unshift("message"),this.emit.apply(this,Z),this}emit(Z,...J){var Y,G,Q;if(yB.hasOwnProperty(Z))throw Error('"'+Z.toString()+'" is a reserved event name');if(J.unshift(Z),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(J),this;let X={type:w.EVENT,data:J};if(X.options={},X.options.compress=this.flags.compress!==!1,typeof J[J.length-1]==="function"){let U=this.ids++,B=J.pop();this._registerAckCallback(U,B),X.id=U}let W=(G=(Y=this.io.engine)===null||Y===void 0?void 0:Y.transport)===null||G===void 0?void 0:G.writable,H=this.connected&&!((Q=this.io.engine)===null||Q===void 0?void 0:Q._hasPingExpired());if(this.flags.volatile&&!W);else if(H)this.notifyOutgoingListeners(X),this.packet(X);else this.sendBuffer.push(X);return this.flags={},this}_registerAckCallback(Z,J){var Y;let G=(Y=this.flags.timeout)!==null&&Y!==void 0?Y:this._opts.ackTimeout;if(G===void 0){this.acks[Z]=J;return}let Q=this.io.setTimeoutFn(()=>{delete this.acks[Z];for(let W=0;W<this.sendBuffer.length;W++)if(this.sendBuffer[W].id===Z)this.sendBuffer.splice(W,1);J.call(this,Error("operation has timed out"))},G),X=(...W)=>{this.io.clearTimeoutFn(Q),J.apply(this,W)};X.withError=!0,this.acks[Z]=X}emitWithAck(Z,...J){return new Promise((Y,G)=>{let Q=(X,W)=>{return X?G(X):Y(W)};Q.withError=!0,J.push(Q),this.emit(Z,...J)})}_addToQueue(Z){let J;if(typeof Z[Z.length-1]==="function")J=Z.pop();let Y={id:this._queueSeq++,tryCount:0,pending:!1,args:Z,flags:Object.assign({fromQueue:!0},this.flags)};Z.push((G,...Q)=>{if(Y!==this._queue[0]);if(G!==null){if(Y.tryCount>this._opts.retries){if(this._queue.shift(),J)J(G)}}else if(this._queue.shift(),J)J(null,...Q);return Y.pending=!1,this._drainQueue()}),this._queue.push(Y),this._drainQueue()}_drainQueue(Z=!1){if(!this.connected||this._queue.length===0)return;let J=this._queue[0];if(J.pending&&!Z)return;J.pending=!0,J.tryCount++,this.flags=J.flags,this.emit.apply(this,J.args)}packet(Z){Z.nsp=this.nsp,this.io._packet(Z)}onopen(){if(typeof this.auth=="function")this.auth((Z)=>{this._sendConnectPacket(Z)});else this._sendConnectPacket(this.auth)}_sendConnectPacket(Z){this.packet({type:w.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},Z):Z})}onerror(Z){if(!this.connected)this.emitReserved("connect_error",Z)}onclose(Z,J){this.connected=!1,delete this.id,this.emitReserved("disconnect",Z,J),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((Z)=>{if(!this.sendBuffer.some((Y)=>String(Y.id)===Z)){let Y=this.acks[Z];if(delete this.acks[Z],Y.withError)Y.call(this,Error("socket has been disconnected"))}})}onpacket(Z){if(Z.nsp!==this.nsp)return;switch(Z.type){case w.CONNECT:if(Z.data&&Z.data.sid)this.onconnect(Z.data.sid,Z.data.pid);else this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case w.EVENT:case w.BINARY_EVENT:this.onevent(Z);break;case w.ACK:case w.BINARY_ACK:this.onack(Z);break;case w.DISCONNECT:this.ondisconnect();break;case w.CONNECT_ERROR:this.destroy();let Y=Error(Z.data.message);Y.data=Z.data.data,this.emitReserved("connect_error",Y);break}}onevent(Z){let J=Z.data||[];if(Z.id!=null)J.push(this.ack(Z.id));if(this.connected)this.emitEvent(J);else this.receiveBuffer.push(Object.freeze(J))}emitEvent(Z){if(this._anyListeners&&this._anyListeners.length){let J=this._anyListeners.slice();for(let Y of J)Y.apply(this,Z)}if(super.emit.apply(this,Z),this._pid&&Z.length&&typeof Z[Z.length-1]==="string")this._lastOffset=Z[Z.length-1]}ack(Z){let J=this,Y=!1;return function(...G){if(Y)return;Y=!0,J.packet({type:w.ACK,id:Z,data:G})}}onack(Z){let J=this.acks[Z.id];if(typeof J!=="function")return;if(delete this.acks[Z.id],J.withError)Z.data.unshift(null);J.apply(this,Z.data)}onconnect(Z,J){this.id=Z,this.recovered=J&&this._pid===J,this._pid=J,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach((Z)=>this.emitEvent(Z)),this.receiveBuffer=[],this.sendBuffer.forEach((Z)=>{this.notifyOutgoingListeners(Z),this.packet(Z)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){if(this.subs)this.subs.forEach((Z)=>Z()),this.subs=void 0;this.io._destroy(this)}disconnect(){if(this.connected)this.packet({type:w.DISCONNECT});if(this.destroy(),this.connected)this.onclose("io client disconnect");return this}close(){return this.disconnect()}compress(Z){return this.flags.compress=Z,this}get volatile(){return this.flags.volatile=!0,this}timeout(Z){return this.flags.timeout=Z,this}onAny(Z){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(Z),this}prependAny(Z){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(Z),this}offAny(Z){if(!this._anyListeners)return this;if(Z){let J=this._anyListeners;for(let Y=0;Y<J.length;Y++)if(Z===J[Y])return J.splice(Y,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(Z){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(Z),this}prependAnyOutgoing(Z){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(Z),this}offAnyOutgoing(Z){if(!this._anyOutgoingListeners)return this;if(Z){let J=this._anyOutgoingListeners;for(let Y=0;Y<J.length;Y++)if(Z===J[Y])return J.splice(Y,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(Z){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let J=this._anyOutgoingListeners.slice();for(let Y of J)Y.apply(this,Z.data)}}}function Z0(Z){Z=Z||{},this.ms=Z.min||100,this.max=Z.max||1e4,this.factor=Z.factor||2,this.jitter=Z.jitter>0&&Z.jitter<=1?Z.jitter:0,this.attempts=0}Z0.prototype.duration=function(){var Z=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var J=Math.random(),Y=Math.floor(J*this.jitter*Z);Z=(Math.floor(J*10)&1)==0?Z-Y:Z+Y}return Math.min(Z,this.max)|0};Z0.prototype.reset=function(){this.attempts=0};Z0.prototype.setMin=function(Z){this.ms=Z};Z0.prototype.setMax=function(Z){this.max=Z};Z0.prototype.setJitter=function(Z){this.jitter=Z};class l0 extends j{constructor(Z,J){var Y;super();if(this.nsps={},this.subs=[],Z&&typeof Z==="object")J=Z,Z=void 0;J=J||{},J.path=J.path||"/socket.io",this.opts=J,w1(this,J),this.reconnection(J.reconnection!==!1),this.reconnectionAttempts(J.reconnectionAttempts||1/0),this.reconnectionDelay(J.reconnectionDelay||1000),this.reconnectionDelayMax(J.reconnectionDelayMax||5000),this.randomizationFactor((Y=J.randomizationFactor)!==null&&Y!==void 0?Y:0.5),this.backoff=new Z0({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(J.timeout==null?20000:J.timeout),this._readyState="closed",this.uri=Z;let G=J.parser||X9;if(this.encoder=new G.Encoder,this.decoder=new G.Decoder,this._autoConnect=J.autoConnect!==!1,this._autoConnect)this.open()}reconnection(Z){if(!arguments.length)return this._reconnection;if(this._reconnection=!!Z,!Z)this.skipReconnect=!0;return this}reconnectionAttempts(Z){if(Z===void 0)return this._reconnectionAttempts;return this._reconnectionAttempts=Z,this}reconnectionDelay(Z){var J;if(Z===void 0)return this._reconnectionDelay;return this._reconnectionDelay=Z,(J=this.backoff)===null||J===void 0||J.setMin(Z),this}randomizationFactor(Z){var J;if(Z===void 0)return this._randomizationFactor;return this._randomizationFactor=Z,(J=this.backoff)===null||J===void 0||J.setJitter(Z),this}reconnectionDelayMax(Z){var J;if(Z===void 0)return this._reconnectionDelayMax;return this._reconnectionDelayMax=Z,(J=this.backoff)===null||J===void 0||J.setMax(Z),this}timeout(Z){if(!arguments.length)return this._timeout;return this._timeout=Z,this}maybeReconnectOnOpen(){if(!this._reconnecting&&this._reconnection&&this.backoff.attempts===0)this.reconnect()}open(Z){if(~this._readyState.indexOf("open"))return this;this.engine=new u0(this.uri,this.opts);let J=this.engine,Y=this;this._readyState="opening",this.skipReconnect=!1;let G=Q1(J,"open",function(){Y.onopen(),Z&&Z()}),Q=(W)=>{if(this.cleanup(),this._readyState="closed",this.emitReserved("error",W),Z)Z(W);else this.maybeReconnectOnOpen()},X=Q1(J,"error",Q);if(this._timeout!==!1){let W=this._timeout,H=this.setTimeoutFn(()=>{G(),Q(Error("timeout")),J.close()},W);if(this.opts.autoUnref)H.unref();this.subs.push(()=>{this.clearTimeoutFn(H)})}return this.subs.push(G),this.subs.push(X),this}connect(Z){return this.open(Z)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let Z=this.engine;this.subs.push(Q1(Z,"ping",this.onping.bind(this)),Q1(Z,"data",this.ondata.bind(this)),Q1(Z,"error",this.onerror.bind(this)),Q1(Z,"close",this.onclose.bind(this)),Q1(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(Z){try{this.decoder.add(Z)}catch(J){this.onclose("parse error",J)}}ondecoded(Z){T1(()=>{this.emitReserved("packet",Z)},this.setTimeoutFn)}onerror(Z){this.emitReserved("error",Z)}socket(Z,J){let Y=this.nsps[Z];if(!Y)Y=new p0(this,Z,J),this.nsps[Z]=Y;else if(this._autoConnect&&!Y.active)Y.connect();return Y}_destroy(Z){let J=Object.keys(this.nsps);for(let Y of J)if(this.nsps[Y].active)return;this._close()}_packet(Z){let J=this.encoder.encode(Z);for(let Y=0;Y<J.length;Y++)this.engine.write(J[Y],Z.options)}cleanup(){this.subs.forEach((Z)=>Z()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(Z,J){var Y;if(this.cleanup(),(Y=this.engine)===null||Y===void 0||Y.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",Z,J),this._reconnection&&!this.skipReconnect)this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let Z=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let J=this.backoff.duration();this._reconnecting=!0;let Y=this.setTimeoutFn(()=>{if(Z.skipReconnect)return;if(this.emitReserved("reconnect_attempt",Z.backoff.attempts),Z.skipReconnect)return;Z.open((G)=>{if(G)Z._reconnecting=!1,Z.reconnect(),this.emitReserved("reconnect_error",G);else Z.onreconnect()})},J);if(this.opts.autoUnref)Y.unref();this.subs.push(()=>{this.clearTimeoutFn(Y)})}}onreconnect(){let Z=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",Z)}}var i0={};function n0(Z,J){if(typeof Z==="object")J=Z,Z=void 0;J=J||{};let Y=ZY(Z,J.path||"/socket.io"),G=Y.source,Q=Y.id,X=Y.path,W=i0[Q]&&X in i0[Q].nsps,H=J.forceNew||J["force new connection"]||J.multiplex===!1||W,z;if(H)z=new l0(G,J);else{if(!i0[Q])i0[Q]=new l0(G,J);z=i0[Q]}if(Y.query&&!J.query)J.query=Y.queryKey;return z.socket(Y.path,J)}Object.assign(n0,{Manager:l0,Socket:p0,io:n0,connect:n0});import{createContext as mB}from"react";var c5=(Z)=>n0(Z,{autoConnect:!1,transports:["websocket"]}),uB=mB(null),d1=uB;import{createContext as QK}from"react";function l(Z,J,Y,G){function Q(X){return X instanceof Y?X:new Y(function(W){W(X)})}return new(Y||(Y=Promise))(function(X,W){function H(B){try{U(G.next(B))}catch(L){W(L)}}function z(B){try{U(G.throw(B))}catch(L){W(L)}}function U(B){B.done?X(B.value):Q(B.value).then(H,z)}U((G=G.apply(Z,J||[])).next())})}function dB(Z){return Z&&Z.__esModule&&Object.prototype.hasOwnProperty.call(Z,"default")?Z.default:Z}var U9={exports:{}},V0=typeof Reflect==="object"?Reflect:null,zY=V0&&typeof V0.apply==="function"?V0.apply:function(J,Y,G){return Function.prototype.apply.call(J,Y,G)},p5;if(V0&&typeof V0.ownKeys==="function")p5=V0.ownKeys;else if(Object.getOwnPropertySymbols)p5=function(J){return Object.getOwnPropertyNames(J).concat(Object.getOwnPropertySymbols(J))};else p5=function(J){return Object.getOwnPropertyNames(J)};function cB(Z){if(console&&console.warn)console.warn(Z)}var BY=Number.isNaN||function(J){return J!==J};function f(){f.init.call(this)}U9.exports=f;U9.exports.once=nB;f.EventEmitter=f;f.prototype._events=void 0;f.prototype._eventsCount=0;f.prototype._maxListeners=void 0;var UY=10;function a5(Z){if(typeof Z!=="function")throw TypeError('The "listener" argument must be of type Function. Received type '+typeof Z)}Object.defineProperty(f,"defaultMaxListeners",{enumerable:!0,get:function(){return UY},set:function(Z){if(typeof Z!=="number"||Z<0||BY(Z))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Z+".");UY=Z}});f.init=function(){if(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)this._events=Object.create(null),this._eventsCount=0;this._maxListeners=this._maxListeners||void 0};f.prototype.setMaxListeners=function(J){if(typeof J!=="number"||J<0||BY(J))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+J+".");return this._maxListeners=J,this};function KY(Z){if(Z._maxListeners===void 0)return f.defaultMaxListeners;return Z._maxListeners}f.prototype.getMaxListeners=function(){return KY(this)};f.prototype.emit=function(J){var Y=[];for(var G=1;G<arguments.length;G++)Y.push(arguments[G]);var Q=J==="error",X=this._events;if(X!==void 0)Q=Q&&X.error===void 0;else if(!Q)return!1;if(Q){var W;if(Y.length>0)W=Y[0];if(W instanceof Error)throw W;var H=Error("Unhandled error."+(W?" ("+W.message+")":""));throw H.context=W,H}var z=X[J];if(z===void 0)return!1;if(typeof z==="function")zY(z,this,Y);else{var U=z.length,B=OY(z,U);for(var G=0;G<U;++G)zY(B[G],this,Y)}return!0};function LY(Z,J,Y,G){var Q,X,W;if(a5(Y),X=Z._events,X===void 0)X=Z._events=Object.create(null),Z._eventsCount=0;else{if(X.newListener!==void 0)Z.emit("newListener",J,Y.listener?Y.listener:Y),X=Z._events;W=X[J]}if(W===void 0)W=X[J]=Y,++Z._eventsCount;else{if(typeof W==="function")W=X[J]=G?[Y,W]:[W,Y];else if(G)W.unshift(Y);else W.push(Y);if(Q=KY(Z),Q>0&&W.length>Q&&!W.warned){W.warned=!0;var H=Error("Possible EventEmitter memory leak detected. "+W.length+" "+String(J)+" listeners added. Use emitter.setMaxListeners() to increase limit");H.name="MaxListenersExceededWarning",H.emitter=Z,H.type=J,H.count=W.length,cB(H)}}return Z}f.prototype.addListener=function(J,Y){return LY(this,J,Y,!1)};f.prototype.on=f.prototype.addListener;f.prototype.prependListener=function(J,Y){return LY(this,J,Y,!0)};function pB(){if(!this.fired){if(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0)return this.listener.call(this.target);return this.listener.apply(this.target,arguments)}}function MY(Z,J,Y){var G={fired:!1,wrapFn:void 0,target:Z,type:J,listener:Y},Q=pB.bind(G);return Q.listener=Y,G.wrapFn=Q,Q}f.prototype.once=function(J,Y){return a5(Y),this.on(J,MY(this,J,Y)),this};f.prototype.prependOnceListener=function(J,Y){return a5(Y),this.prependListener(J,MY(this,J,Y)),this};f.prototype.removeListener=function(J,Y){var G,Q,X,W,H;if(a5(Y),Q=this._events,Q===void 0)return this;if(G=Q[J],G===void 0)return this;if(G===Y||G.listener===Y){if(--this._eventsCount===0)this._events=Object.create(null);else if(delete Q[J],Q.removeListener)this.emit("removeListener",J,G.listener||Y)}else if(typeof G!=="function"){X=-1;for(W=G.length-1;W>=0;W--)if(G[W]===Y||G[W].listener===Y){H=G[W].listener,X=W;break}if(X<0)return this;if(X===0)G.shift();else lB(G,X);if(G.length===1)Q[J]=G[0];if(Q.removeListener!==void 0)this.emit("removeListener",J,H||Y)}return this};f.prototype.off=f.prototype.removeListener;f.prototype.removeAllListeners=function(J){var Y,G,Q;if(G=this._events,G===void 0)return this;if(G.removeListener===void 0){if(arguments.length===0)this._events=Object.create(null),this._eventsCount=0;else if(G[J]!==void 0)if(--this._eventsCount===0)this._events=Object.create(null);else delete G[J];return this}if(arguments.length===0){var X=Object.keys(G),W;for(Q=0;Q<X.length;++Q){if(W=X[Q],W==="removeListener")continue;this.removeAllListeners(W)}return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Y=G[J],typeof Y==="function")this.removeListener(J,Y);else if(Y!==void 0)for(Q=Y.length-1;Q>=0;Q--)this.removeListener(J,Y[Q]);return this};function $Y(Z,J,Y){var G=Z._events;if(G===void 0)return[];var Q=G[J];if(Q===void 0)return[];if(typeof Q==="function")return Y?[Q.listener||Q]:[Q];return Y?iB(Q):OY(Q,Q.length)}f.prototype.listeners=function(J){return $Y(this,J,!0)};f.prototype.rawListeners=function(J){return $Y(this,J,!1)};f.listenerCount=function(Z,J){if(typeof Z.listenerCount==="function")return Z.listenerCount(J);else return FY.call(Z,J)};f.prototype.listenerCount=FY;function FY(Z){var J=this._events;if(J!==void 0){var Y=J[Z];if(typeof Y==="function")return 1;else if(Y!==void 0)return Y.length}return 0}f.prototype.eventNames=function(){return this._eventsCount>0?p5(this._events):[]};function OY(Z,J){var Y=Array(J);for(var G=0;G<J;++G)Y[G]=Z[G];return Y}function lB(Z,J){for(;J+1<Z.length;J++)Z[J]=Z[J+1];Z.pop()}function iB(Z){var J=Array(Z.length);for(var Y=0;Y<J.length;++Y)J[Y]=Z[Y].listener||Z[Y];return J}function nB(Z,J){return new Promise(function(Y,G){function Q(W){Z.removeListener(J,X),G(W)}function X(){if(typeof Z.removeListener==="function")Z.removeListener("error",Q);Y([].slice.call(arguments))}if(VY(Z,J,X,{once:!0}),J!=="error")oB(Z,Q,{once:!0})})}function oB(Z,J,Y){if(typeof Z.on==="function")VY(Z,"error",J,Y)}function VY(Z,J,Y,G){if(typeof Z.on==="function")if(G.once)Z.once(J,Y);else Z.on(J,Y);else if(typeof Z.addEventListener==="function")Z.addEventListener(J,function Q(X){if(G.once)Z.removeEventListener(J,Q);Y(X)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Z)}var aB=U9.exports,IY=dB(aB),_;(function(Z){Z[Z.timeout=1]="timeout",Z[Z.transportClosed=2]="transportClosed",Z[Z.clientDisconnected=3]="clientDisconnected",Z[Z.clientClosed=4]="clientClosed",Z[Z.clientConnectToken=5]="clientConnectToken",Z[Z.clientRefreshToken=6]="clientRefreshToken",Z[Z.subscriptionUnsubscribed=7]="subscriptionUnsubscribed",Z[Z.subscriptionSubscribeToken=8]="subscriptionSubscribeToken",Z[Z.subscriptionRefreshToken=9]="subscriptionRefreshToken",Z[Z.transportWriteError=10]="transportWriteError",Z[Z.connectionClosed=11]="connectionClosed",Z[Z.badConfiguration=12]="badConfiguration"})(_||(_={}));var c1;(function(Z){Z[Z.connectCalled=0]="connectCalled",Z[Z.transportClosed=1]="transportClosed",Z[Z.noPing=2]="noPing",Z[Z.subscribeTimeout=3]="subscribeTimeout",Z[Z.unsubscribeError=4]="unsubscribeError"})(c1||(c1={}));var o0;(function(Z){Z[Z.disconnectCalled=0]="disconnectCalled",Z[Z.unauthorized=1]="unauthorized",Z[Z.badProtocol=2]="badProtocol",Z[Z.messageSizeLimit=3]="messageSizeLimit"})(o0||(o0={}));var l5;(function(Z){Z[Z.subscribeCalled=0]="subscribeCalled",Z[Z.transportClosed=1]="transportClosed"})(l5||(l5={}));var i5;(function(Z){Z[Z.unsubscribeCalled=0]="unsubscribeCalled",Z[Z.unauthorized=1]="unauthorized",Z[Z.clientClosed=2]="clientClosed"})(i5||(i5={}));var W9;(function(Z){Z[Z.channelCompaction=1]="channelCompaction"})(W9||(W9={}));var h;(function(Z){Z.Disconnected="disconnected",Z.Connecting="connecting",Z.Connected="connected"})(h||(h={}));var o;(function(Z){Z.Unsubscribed="unsubscribed",Z.Subscribing="subscribing",Z.Subscribed="subscribed"})(o||(o={}));function sB(Z,J){return Z.lastIndexOf(J,0)===0}function qY(Z){if(Z===void 0||Z===null)return!1;return typeof Z==="function"}function rB(Z,J){if(globalThis.console){let Y=globalThis.console[Z];if(qY(Y))Y.apply(globalThis.console,J)}}function tB(Z,J){return Math.floor(Math.random()*(J-Z+1)+Z)}function n5(Z,J,Y){if(Z>31)Z=31;let G=tB(0,Math.min(Y,J*Math.pow(2,Z)));return Math.min(Y,J+G)}function eB(Z){return"error"in Z&&Z.error!==null}function o5(Z){return Math.min(Z*1000,2147483647)}class DY extends IY{constructor(Z,J,Y){super();if(this._resubscribeTimeout=null,this._refreshTimeout=null,this.channel=J,this.state=o.Unsubscribed,this._centrifuge=Z,this._token="",this._getToken=null,this._data=null,this._getData=null,this._recover=!1,this._offset=null,this._epoch=null,this._id=0,this._recoverable=!1,this._positioned=!1,this._joinLeave=!1,this._minResubscribeDelay=500,this._maxResubscribeDelay=20000,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=!1,this._refreshTimeout=null,this._delta="",this._delta_negotiated=!1,this._tagsFilter=null,this._prevValue=null,this._unsubPromise=Promise.resolve(),this._setOptions(Y),this._centrifuge._debugEnabled)this.on("state",(G)=>{this._debug("subscription state",J,G.oldState,"->",G.newState)}),this.on("error",(G)=>{this._debug("subscription error",J,G)});else this.on("error",function(){Function.prototype()})}ready(Z){if(this.state===o.Unsubscribed)return Promise.reject({code:_.subscriptionUnsubscribed,message:this.state});if(this.state===o.Subscribed)return Promise.resolve();return new Promise((J,Y)=>{let G={resolve:J,reject:Y};if(Z)G.timeout=setTimeout(function(){Y({code:_.timeout,message:"timeout"})},Z);this._promises[this._nextPromiseId()]=G})}subscribe(){if(this._isSubscribed())return;this._resubscribeAttempts=0,this._setSubscribing(l5.subscribeCalled,"subscribe called")}unsubscribe(){this._unsubPromise=this._setUnsubscribed(i5.unsubscribeCalled,"unsubscribe called",!0)}publish(Z){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.publish(this.channel,Z)})}presence(){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presence(this.channel)})}presenceStats(){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presenceStats(this.channel)})}history(Z){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.history(this.channel,Z)})}setTagsFilter(Z){if(Z&&this._delta)throw Error("cannot use delta and tagsFilter together");this._tagsFilter=Z}setData(Z){this._data=Z}_methodCall(){if(this._isSubscribed())return Promise.resolve();if(this._isUnsubscribed())return Promise.reject({code:_.subscriptionUnsubscribed,message:this.state});return new Promise((Z,J)=>{let Y=this._centrifuge._config.timeout,G=setTimeout(()=>{J({code:_.timeout,message:"timeout"})},Y);this._promises[this._nextPromiseId()]={timeout:G,resolve:Z,reject:J}})}_nextPromiseId(){return++this._promiseId}_needRecover(){return this._recover===!0}_isUnsubscribed(){return this.state===o.Unsubscribed}_isSubscribing(){return this.state===o.Subscribing}_isSubscribed(){return this.state===o.Subscribed}_setState(Z){if(this.state!==Z){let J=this.state;return this.state=Z,this.emit("state",{newState:Z,oldState:J,channel:this.channel}),!0}return!1}_usesToken(){return this._token!==""||this._getToken!==null}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout()}_clearSubscribedState(){this._clearRefreshTimeout()}_setSubscribed(Z){if(!this._isSubscribing())return;if(this._clearSubscribingState(),Z.id)this._id=Z.id;if(Z.recoverable)this._recover=!0,this._offset=Z.offset||0,this._epoch=Z.epoch||"";if(Z.delta)this._delta_negotiated=!0;else this._delta_negotiated=!1;this._setState(o.Subscribed);let J=this._centrifuge._getSubscribeContext(this.channel,Z);this.emit("subscribed",J),this._resolvePromises();let Y=Z.publications;if(Y&&Y.length>0)for(let G in Y){if(!Y.hasOwnProperty(G))continue;this._handlePublication(Y[G])}if(Z.expires===!0)this._refreshTimeout=setTimeout(()=>this._refresh(),o5(Z.ttl))}_setSubscribing(Z,J){return l(this,void 0,void 0,function*(){if(this._isSubscribing())return;if(this._isSubscribed())this._clearSubscribedState();if(this._setState(o.Subscribing))this.emit("subscribing",{channel:this.channel,code:Z,reason:J});if(this._centrifuge._transport&&this._centrifuge._transport.emulation())yield this._unsubPromise;if(!this._isSubscribing())return;this._subscribe()})}_subscribe(){if(this._debug("subscribing on",this.channel),!this._isTransportOpen())return this._debug("delay subscribe on",this.channel,"till connected"),null;if(this._inflight)return null;if(this._inflight=!0,this._canSubscribeWithoutGettingToken())return this._subscribeWithoutToken();return this._getSubscriptionToken().then((Z)=>this._handleTokenResponse(Z)).catch((Z)=>this._handleTokenError(Z)),null}_isTransportOpen(){return this._centrifuge._transportIsOpen}_canSubscribeWithoutGettingToken(){return!this._usesToken()||!!this._token}_subscribeWithoutToken(){if(this._getData)return this._getDataAndSubscribe(this._token),null;else return this._sendSubscribe(this._token)}_getDataAndSubscribe(Z){if(!this._getData){this._inflight=!1;return}this._getData({channel:this.channel}).then((J)=>{if(!this._isSubscribing()){this._inflight=!1;return}this._data=J,this._sendSubscribe(Z)}).catch((J)=>this._handleGetDataError(J))}_handleGetDataError(Z){if(!this._isSubscribing()){this._inflight=!1;return}if(Z instanceof I1){this._inflight=!1,this._failUnauthorized();return}this.emit("error",{type:"subscribeData",channel:this.channel,error:{code:_.badConfiguration,message:(Z===null||Z===void 0?void 0:Z.toString())||""}}),this._inflight=!1,this._scheduleResubscribe()}_handleTokenResponse(Z){if(!this._isSubscribing()){this._inflight=!1;return}if(!Z){this._inflight=!1,this._failUnauthorized();return}if(this._token=Z,this._getData)this._getDataAndSubscribe(Z);else this._sendSubscribe(Z)}_handleTokenError(Z){if(!this._isSubscribing()){this._inflight=!1;return}if(Z instanceof I1){this._inflight=!1,this._failUnauthorized();return}this.emit("error",{type:"subscribeToken",channel:this.channel,error:{code:_.subscriptionSubscribeToken,message:(Z===null||Z===void 0?void 0:Z.toString())||""}}),this._inflight=!1,this._scheduleResubscribe()}_sendSubscribe(Z){if(!this._isTransportOpen())return this._inflight=!1,null;let J=this._buildSubscribeCommand(Z);return this._centrifuge._call(J).then((Y)=>{this._inflight=!1;let G=Y.reply.subscribe;if(this._handleSubscribeResponse(G),Y.next)Y.next()},(Y)=>{if(this._inflight=!1,this._handleSubscribeError(Y.error),Y.next)Y.next()}),J}_buildSubscribeCommand(Z){let J={channel:this.channel};if(Z)J.token=Z;if(this._data)J.data=this._data;if(this._positioned)J.positioned=!0;if(this._recoverable)J.recoverable=!0;if(this._joinLeave)J.join_leave=!0;if(J.flag=W9.channelCompaction,this._needRecover()){J.recover=!0;let Y=this._getOffset();if(Y)J.offset=Y;let G=this._getEpoch();if(G)J.epoch=G}if(this._delta)J.delta=this._delta;if(this._tagsFilter)J.tf=this._tagsFilter;return{subscribe:J}}_debug(...Z){this._centrifuge._debug(...Z)}_handleSubscribeError(Z){if(!this._isSubscribing())return;if(Z.code===_.timeout){this._centrifuge._disconnect(c1.subscribeTimeout,"subscribe timeout",!0);return}this._subscribeError(Z)}_handleSubscribeResponse(Z){if(!this._isSubscribing())return;this._setSubscribed(Z)}_setUnsubscribed(Z,J,Y){if(this._isUnsubscribed())return Promise.resolve();let G=Promise.resolve();if(this._isSubscribed()){if(Y)G=this._centrifuge._unsubscribe(this);this._clearSubscribedState()}else if(this._isSubscribing()){if(this._inflight&&Y)G=this._centrifuge._unsubscribe(this);this._clearSubscribingState()}if(this._inflight=!1,this._setState(o.Unsubscribed))this.emit("unsubscribed",{channel:this.channel,code:Z,reason:J});return this._rejectPromises({code:_.subscriptionUnsubscribed,message:this.state}),G}_handlePublication(Z){if(this._delta&&this._delta_negotiated){let{newData:Y,newPrevValue:G}=this._centrifuge._codec.applyDeltaIfNeeded(Z,this._prevValue);Z.data=Y,this._prevValue=G}let J=this._centrifuge._getPublicationContext(this.channel,Z);if(this.emit("publication",J),Z.offset)this._offset=Z.offset}_handleJoin(Z){let J=this._centrifuge._getJoinLeaveContext(Z.info);this.emit("join",{channel:this.channel,info:J})}_handleLeave(Z){let J=this._centrifuge._getJoinLeaveContext(Z.info);this.emit("leave",{channel:this.channel,info:J})}_resolvePromises(){for(let Z in this._promises){if(!this._promises.hasOwnProperty(Z))continue;if(this._promises[Z].timeout)clearTimeout(this._promises[Z].timeout);this._promises[Z].resolve(),delete this._promises[Z]}}_rejectPromises(Z){for(let J in this._promises){if(!this._promises.hasOwnProperty(J))continue;if(this._promises[J].timeout)clearTimeout(this._promises[J].timeout);this._promises[J].reject(Z),delete this._promises[J]}}_scheduleResubscribe(){if(!this._isSubscribing()){this._debug("not in subscribing state, skip resubscribe scheduling",this.channel);return}let Z=this,J=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout(function(){if(Z._isSubscribing())Z._subscribe()},J),this._debug("resubscribe scheduled after "+J,this.channel)}_subscribeError(Z){if(!this._isSubscribing())return;if(Z.code<100||Z.code===109||Z.temporary===!0){if(Z.code===109)this._token="";let J={channel:this.channel,type:"subscribe",error:Z};if(this._centrifuge.state===h.Connected)this.emit("error",J);this._scheduleResubscribe()}else this._setUnsubscribed(Z.code,Z.message,!1)}_getResubscribeDelay(){let Z=n5(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,Z}_setOptions(Z){if(!Z)return;if(Z.since)this._offset=Z.since.offset||0,this._epoch=Z.since.epoch||"",this._recover=!0;if(Z.data)this._data=Z.data;if(Z.getData)this._getData=Z.getData;if(Z.minResubscribeDelay!==void 0)this._minResubscribeDelay=Z.minResubscribeDelay;if(Z.maxResubscribeDelay!==void 0)this._maxResubscribeDelay=Z.maxResubscribeDelay;if(Z.token)this._token=Z.token;if(Z.getToken)this._getToken=Z.getToken;if(Z.positioned===!0)this._positioned=!0;if(Z.recoverable===!0)this._recoverable=!0;if(Z.joinLeave===!0)this._joinLeave=!0;if(Z.delta){if(Z.delta!=="fossil")throw Error("unsupported delta format");this._delta=Z.delta}if(Z.tagsFilter)this._tagsFilter=Z.tagsFilter;if(this._tagsFilter&&this._delta)throw Error("cannot use delta and tagsFilter together")}_getOffset(){let Z=this._offset;if(Z!==null)return Z;return 0}_getEpoch(){let Z=this._epoch;if(Z!==null)return Z;return""}_clearRefreshTimeout(){if(this._refreshTimeout!==null)clearTimeout(this._refreshTimeout),this._refreshTimeout=null}_clearResubscribeTimeout(){if(this._resubscribeTimeout!==null)clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null}_getSubscriptionToken(){this._debug("get subscription token for channel",this.channel);let Z={channel:this.channel},J=this._getToken;if(J===null)return this.emit("error",{type:"configuration",channel:this.channel,error:{code:_.badConfiguration,message:"provide a function to get channel subscription token"}}),Promise.reject(new I1(""));return J(Z)}_refresh(){this._clearRefreshTimeout();let Z=this;this._getSubscriptionToken().then(function(J){if(!Z._isSubscribed())return;if(!J){Z._failUnauthorized();return}Z._token=J;let G={sub_refresh:{channel:Z.channel,token:J}};Z._centrifuge._call(G).then((Q)=>{let X=Q.reply.sub_refresh;if(Z._refreshResponse(X),Q.next)Q.next()},(Q)=>{if(Z._refreshError(Q.error),Q.next)Q.next()})}).catch(function(J){if(J instanceof I1){Z._failUnauthorized();return}Z.emit("error",{type:"refreshToken",channel:Z.channel,error:{code:_.subscriptionRefreshToken,message:J!==void 0?J.toString():""}}),Z._refreshTimeout=setTimeout(()=>Z._refresh(),Z._getRefreshRetryDelay())})}_refreshResponse(Z){if(!this._isSubscribed())return;if(this._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),Z.expires===!0)this._refreshTimeout=setTimeout(()=>this._refresh(),o5(Z.ttl))}_refreshError(Z){if(!this._isSubscribed())return;if(Z.code<100||Z.temporary===!0)this.emit("error",{type:"refresh",channel:this.channel,error:Z}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay());else this._setUnsubscribed(Z.code,Z.message,!0)}_getRefreshRetryDelay(){return n5(0,1e4,20000)}_failUnauthorized(){this._setUnsubscribed(i5.unauthorized,"unauthorized",!0)}}class NY{constructor(Z,J){this.endpoint=Z,this.options=J,this._transport=null}name(){return"sockjs"}subName(){return"sockjs-"+this._transport.transport}emulation(){return!1}supported(){return this.options.sockjs!==null}initialize(Z,J){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{J.onOpen()},this._transport.onerror=(Y)=>{J.onError(Y)},this._transport.onclose=(Y)=>{J.onClose(Y)},this._transport.onmessage=(Y)=>{J.onMessage(Y.data)}}close(){this._transport.close()}send(Z){this._transport.send(Z)}}class H9{constructor(Z,J){this.endpoint=Z,this.options=J,this._transport=null}name(){return"websocket"}subName(){return"websocket"}emulation(){return!1}supported(){return this.options.websocket!==void 0&&this.options.websocket!==null}initialize(Z,J){let Y="";if(Z==="protobuf")Y="centrifuge-protobuf";if(Y!=="")this._transport=new this.options.websocket(this.endpoint,Y);else this._transport=new this.options.websocket(this.endpoint);if(Z==="protobuf")this._transport.binaryType="arraybuffer";this._transport.onopen=()=>{J.onOpen()},this._transport.onerror=(G)=>{J.onError(G)},this._transport.onclose=(G)=>{J.onClose(G)},this._transport.onmessage=(G)=>{J.onMessage(G.data)}}close(){this._transport.close()}send(Z){this._transport.send(Z)}}class AY{constructor(Z,J){this.endpoint=Z,this.options=J,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"http_stream"}subName(){return"http_stream"}emulation(){return!0}_handleErrors(Z){if(!Z.ok)throw Error(Z.status);return Z}_fetchEventTarget(Z,J,Y){let G=new EventTarget,Q=Z.options.fetch;return Q(J,Y).then(Z._handleErrors).then((X)=>{G.dispatchEvent(new Event("open"));let W="",H=0,z=new Uint8Array,U=X.body.getReader();return new Z.options.readableStream({start(B){function L(){return U.read().then(({done:F,value:M})=>{if(F){G.dispatchEvent(new Event("close")),B.close();return}try{if(Z._protocol==="json"){W+=Z._utf8decoder.decode(M);while(H<W.length)if(W[H]===`
|
|
23
|
+
`){let K=W.substring(0,H);G.dispatchEvent(new MessageEvent("message",{data:K})),W=W.substring(H+1),H=0}else++H}else{let K=new Uint8Array(z.length+M.length);K.set(z),K.set(M,z.length),z=K;while(!0){let $=Z.options.decoder.decodeReply(z);if($.ok){let V=z.slice(0,$.pos);G.dispatchEvent(new MessageEvent("message",{data:V})),z=z.slice($.pos);continue}break}}}catch(K){G.dispatchEvent(new Event("error",{detail:K})),G.dispatchEvent(new Event("close")),B.close();return}L()}).catch(function(F){G.dispatchEvent(new Event("error",{detail:F})),G.dispatchEvent(new Event("close")),B.close();return})}return L()}})}).catch((X)=>{G.dispatchEvent(new Event("error",{detail:X})),G.dispatchEvent(new Event("close"))}),G}supported(){return this.options.fetch!==null&&this.options.readableStream!==null&&typeof TextDecoder<"u"&&typeof AbortController<"u"&&typeof EventTarget<"u"&&typeof Event<"u"&&typeof MessageEvent<"u"&&typeof Error<"u"}initialize(Z,J,Y){this._protocol=Z,this._abortController=new AbortController;let G,Q;if(Z==="json")G={Accept:"application/json","Content-Type":"application/json"},Q=Y;else G={Accept:"application/octet-stream","Content-Type":"application/octet-stream"},Q=Y;let X={method:"POST",headers:G,body:Q,mode:"cors",credentials:"same-origin",signal:this._abortController.signal},W=this._fetchEventTarget(this,this.endpoint,X);W.addEventListener("open",()=>{J.onOpen()}),W.addEventListener("error",(H)=>{this._abortController.abort(),J.onError(H)}),W.addEventListener("close",()=>{this._abortController.abort(),J.onClose({code:4,reason:"connection closed"})}),W.addEventListener("message",(H)=>{J.onMessage(H.data)})}close(){this._abortController.abort()}send(Z,J,Y){let G,Q,X={session:J,node:Y,data:Z};if(this._protocol==="json")G={"Content-Type":"application/json"},Q=JSON.stringify(X);else G={"Content-Type":"application/octet-stream"},Q=this.options.encoder.encodeEmulationRequest(X);let W=this.options.fetch,H={method:"POST",headers:G,body:Q,mode:"cors",credentials:"same-origin"};W(this.options.emulationEndpoint,H)}}class RY{constructor(Z,J){this.endpoint=Z,this.options=J,this._protocol="json",this._transport=null,this._onClose=null}name(){return"sse"}subName(){return"sse"}emulation(){return!0}supported(){return this.options.eventsource!==null&&this.options.fetch!==null}initialize(Z,J,Y){let G;if(globalThis&&globalThis.document&&globalThis.document.baseURI)G=new URL(this.endpoint,globalThis.document.baseURI);else G=new URL(this.endpoint);G.searchParams.append("cf_connect",Y);let Q={},X=new this.options.eventsource(G.toString(),Q);this._transport=X;let W=this;X.onopen=function(){J.onOpen()},X.onerror=function(H){X.close(),J.onError(H),J.onClose({code:4,reason:"connection closed"})},X.onmessage=function(H){J.onMessage(H.data)},W._onClose=function(){J.onClose({code:4,reason:"connection closed"})}}close(){if(this._transport.close(),this._onClose!==null)this._onClose()}send(Z,J,Y){let G={session:J,node:Y,data:Z},Q={"Content-Type":"application/json"},X=JSON.stringify(G),W=this.options.fetch,H={method:"POST",headers:Q,body:X,mode:"cors",credentials:"same-origin"};W(this.options.emulationEndpoint,H)}}class PY{constructor(Z,J){this.endpoint=Z,this.options=J,this._transport=null,this._stream=null,this._writer=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"webtransport"}subName(){return"webtransport"}emulation(){return!1}supported(){return this.options.webtransport!==void 0&&this.options.webtransport!==null}initialize(Z,J){return l(this,void 0,void 0,function*(){let Y;if(globalThis&&globalThis.document&&globalThis.document.baseURI)Y=new URL(this.endpoint,globalThis.document.baseURI);else Y=new URL(this.endpoint);if(Z==="protobuf")Y.searchParams.append("cf_protocol","protobuf");this._protocol=Z;let G=new EventTarget;this._transport=new this.options.webtransport(Y.toString()),this._transport.closed.then(()=>{J.onClose({code:4,reason:"connection closed"})}).catch(()=>{J.onClose({code:4,reason:"connection closed"})});try{yield this._transport.ready}catch(X){this.close();return}let Q;try{Q=yield this._transport.createBidirectionalStream()}catch(X){this.close();return}this._stream=Q,this._writer=this._stream.writable.getWriter(),G.addEventListener("close",()=>{J.onClose({code:4,reason:"connection closed"})}),G.addEventListener("message",(X)=>{J.onMessage(X.data)}),this._startReading(G),J.onOpen()})}_startReading(Z){return l(this,void 0,void 0,function*(){let J=this._stream.readable.getReader(),Y="",G=0,Q=new Uint8Array;try{while(!0){let{done:X,value:W}=yield J.read();if(W.length>0)if(this._protocol==="json"){Y+=this._utf8decoder.decode(W);while(G<Y.length)if(Y[G]===`
|
|
24
|
+
`){let H=Y.substring(0,G);Z.dispatchEvent(new MessageEvent("message",{data:H})),Y=Y.substring(G+1),G=0}else++G}else{let H=new Uint8Array(Q.length+W.length);H.set(Q),H.set(W,Q.length),Q=H;while(!0){let z=this.options.decoder.decodeReply(Q);if(z.ok){let U=Q.slice(0,z.pos);Z.dispatchEvent(new MessageEvent("message",{data:U})),Q=Q.slice(z.pos);continue}break}}if(X)break}}catch(X){Z.dispatchEvent(new Event("close"))}})}close(){return l(this,void 0,void 0,function*(){try{if(this._writer)yield this._writer.close();this._transport.close()}catch(Z){}})}send(Z){return l(this,void 0,void 0,function*(){let J;if(this._protocol==="json")J=new TextEncoder().encode(Z+`
|
|
25
|
+
`);else J=Z;try{yield this._writer.write(J)}catch(Y){this.close()}})}}var ZK=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,36,-1,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,-1,-1,-1,63,-1];class TY{constructor(Z){this.a=Z,this.pos=0}haveBytes(){return this.pos<this.a.length}getByte(){let Z=this.a[this.pos];if(this.pos++,this.pos>this.a.length)throw RangeError("out of bounds");return Z}getChar(){return String.fromCharCode(this.getByte())}getInt(){let Z=0,J;while(this.haveBytes()&&(J=ZK[127&this.getByte()])>=0)Z=(Z<<6)+J;return this.pos--,Z>>>0}}class wY{constructor(){this.a=[]}toByteArray(Z){if(Array.isArray(Z))return this.a;return new Uint8Array(this.a)}putArray(Z,J,Y){for(let G=J;G<Y;G++)this.a.push(Z[G])}}function JK(Z){let J=0,Y=0,G=0,Q=0,X=0,W=Z.length;while(W>=16)J=J+Z[X+0]|0,Y=Y+Z[X+1]|0,G=G+Z[X+2]|0,Q=Q+Z[X+3]|0,J=J+Z[X+4]|0,Y=Y+Z[X+5]|0,G=G+Z[X+6]|0,Q=Q+Z[X+7]|0,J=J+Z[X+8]|0,Y=Y+Z[X+9]|0,G=G+Z[X+10]|0,Q=Q+Z[X+11]|0,J=J+Z[X+12]|0,Y=Y+Z[X+13]|0,G=G+Z[X+14]|0,Q=Q+Z[X+15]|0,X+=16,W-=16;while(W>=4)J=J+Z[X+0]|0,Y=Y+Z[X+1]|0,G=G+Z[X+2]|0,Q=Q+Z[X+3]|0,X+=4,W-=4;switch(Q=((Q+(G<<8)|0)+(Y<<16)|0)+(J<<24)|0,W){case 3:Q=Q+(Z[X+2]<<8)|0;case 2:Q=Q+(Z[X+1]<<16)|0;case 1:Q=Q+(Z[X+0]<<24)|0}return Q>>>0}function YK(Z,J){let Y=0,G=new TY(J),Q=Z.length,X=J.length,W=G.getInt();if(G.getChar()!==`
|
|
26
|
+
`)throw Error("size integer not terminated by '\\n'");let H=new wY;while(G.haveBytes()){let z=G.getInt(),U;switch(G.getChar()){case"@":if(U=G.getInt(),G.haveBytes()&&G.getChar()!==",")throw Error("copy command not terminated by ','");if(Y+=z,Y>W)throw Error("copy exceeds output file size");if(U+z>Q)throw Error("copy extends past end of input");H.putArray(Z,U,U+z);break;case":":if(Y+=z,Y>W)throw Error("insert command gives an output larger than predicted");if(z>X)throw Error("insert count exceeds size of delta");H.putArray(G.a,G.pos,G.pos+z),G.pos+=z;break;case";":{let B=H.toByteArray(Z);if(z!==JK(B))throw Error("bad checksum");if(Y!==W)throw Error("generated size does not match predicted size");return B}default:throw Error("unknown delta operator")}}throw Error("unterminated delta")}class z9{name(){return"json"}encodeCommands(Z){return Z.map((J)=>JSON.stringify(J)).join(`
|
|
26
27
|
`)}decodeReplies(Z){return Z.trim().split(`
|
|
27
|
-
`).map((J)=>JSON.parse(J))}applyDeltaIfNeeded(Z,J){let Y,Q;if(Z.delta){let X=aB(J,new TextEncoder().encode(Z.data));Y=JSON.parse(new TextDecoder().decode(X)),Q=X}else Y=JSON.parse(Z.data),Q=new TextEncoder().encode(Z.data);return{newData:Y,newPrevValue:Q}}}var sB={headers:{},token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:20000,timeout:5000,maxServerPingDelay:1e4,networkEventTarget:null};class V1 extends Error{constructor(Z){super(Z);this.name=this.constructor.name}}class J0 extends UY{constructor(Z,J){super();if(this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=h.Disconnected,this._transportIsOpen=!1,this._endpoint=Z,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._codec=new X9,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},sB),J),this._configure(),this._debugEnabled)this.on("state",(Y)=>{this._debug("client state",Y.oldState,"->",Y.newState)}),this.on("error",(Y)=>{this._debug("client error",Y)});else this.on("error",function(){Function.prototype()})}newSubscription(Z,J){if(this.getSubscription(Z)!==null)throw Error("Subscription to the channel "+Z+" already exists");let Y=new KY(this,Z,J);return this._subs[Z]=Y,Y}getSubscription(Z){return this._getSub(Z)}removeSubscription(Z){if(!Z)return;if(Z.state!==o.Unsubscribed)Z.unsubscribe();this._removeSubscription(Z)}subscriptions(){return this._subs}ready(Z){return l(this,void 0,void 0,function*(){switch(this.state){case h.Disconnected:throw{code:_.clientDisconnected,message:"client disconnected"};case h.Connected:return;default:return new Promise((J,Y)=>{let Q={resolve:J,reject:Y};if(Z)Q.timeout=setTimeout(()=>{Y({code:_.timeout,message:"timeout"})},Z);this._promises[this._nextPromiseId()]=Q})}})}connect(){if(this._isConnected()){this._debug("connect called when already connected");return}if(this._isConnecting()){this._debug("connect called when already connecting");return}this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting()}disconnect(){this._disconnect(l0.disconnectCalled,"disconnect called",!1)}setToken(Z){this._token=Z}setData(Z){this._data=Z}setHeaders(Z){this._config.headers=Z}send(Z){return l(this,void 0,void 0,function*(){let J={send:{data:Z}};if(yield this._methodCall(),!this._transportSendCommands([J]))throw this._createErrorObject(_.transportWriteError,"transport write error")})}rpc(Z,J){return l(this,void 0,void 0,function*(){let Y={rpc:{method:Z,data:J}};return yield this._methodCall(),{data:(yield this._callPromise(Y,(X)=>X.rpc)).data}})}publish(Z,J){return l(this,void 0,void 0,function*(){let Y={publish:{channel:Z,data:J}};return yield this._methodCall(),yield this._callPromise(Y,()=>({})),{}})}history(Z,J){return l(this,void 0,void 0,function*(){let Y={history:this._getHistoryRequest(Z,J)};yield this._methodCall();let Q=yield this._callPromise(Y,(G)=>G.history),X=[];if(Q.publications)for(let G=0;G<Q.publications.length;G++)X.push(this._getPublicationContext(Z,Q.publications[G]));return{publications:X,epoch:Q.epoch||"",offset:Q.offset||0}})}presence(Z){return l(this,void 0,void 0,function*(){let J={presence:{channel:Z}};yield this._methodCall();let Q=(yield this._callPromise(J,(X)=>X.presence)).presence;for(let X in Q)if(Object.prototype.hasOwnProperty.call(Q,X)){let G=Q[X],W=G.conn_info,H=G.chan_info;if(W)G.connInfo=W;if(H)G.chanInfo=H}return{clients:Q}})}presenceStats(Z){return l(this,void 0,void 0,function*(){let J={presence_stats:{channel:Z}};yield this._methodCall();let Y=yield this._callPromise(J,(Q)=>{return Q.presence_stats});return{numUsers:Y.num_users,numClients:Y.num_clients}})}startBatching(){this._batching=!0}stopBatching(){let Z=this;Promise.resolve().then(function(){Promise.resolve().then(function(){Z._batching=!1,Z._flush()})})}_debug(...Z){if(!this._debugEnabled)return;pB("debug",Z)}_codecName(){return this._codec.name()}_formatOverride(){return}_configure(){if(!("Promise"in globalThis))throw Error("Promise polyfill required");if(!this._endpoint)throw Error("endpoint configuration required");if(this._config.token!==null)this._token=this._config.token;if(this._config.data!==null)this._data=this._config.data;if(this._codec=new X9,this._formatOverride(),this._config.debug===!0||typeof localStorage<"u"&&typeof localStorage.getItem==="function"&&localStorage.getItem("centrifuge.debug"))this._debugEnabled=!0;if(this._debug("config",this._config),typeof this._endpoint==="string");else if(Array.isArray(this._endpoint)){this._transports=this._endpoint,this._emulation=!0;for(let Z in this._transports)if(this._transports.hasOwnProperty(Z)){let J=this._transports[Z];if(!J.endpoint||!J.transport)throw Error("malformed transport configuration");let Y=J.transport;if(["websocket","http_stream","sse","sockjs","webtransport"].indexOf(Y)<0)throw Error("unsupported transport name: "+Y)}}else throw Error("unsupported url configuration type: only string or array of objects are supported")}_setState(Z){if(this.state!==Z){this._reconnecting=!1;let J=this.state;return this.state=Z,this.emit("state",{newState:Z,oldState:J}),!0}return!1}_isDisconnected(){return this.state===h.Disconnected}_isConnecting(){return this.state===h.Connecting}_isConnected(){return this.state===h.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let Z=null;if(this._config.networkEventTarget!==null)Z=this._config.networkEventTarget;else if(typeof globalThis.addEventListener<"u")Z=globalThis;if(Z)Z.addEventListener("offline",()=>{if(this._debug("offline event triggered"),this.state===h.Connected||this.state===h.Connecting)this._disconnect(d1.transportClosed,"transport closed",!0),this._deviceWentOffline=!0}),Z.addEventListener("online",()=>{if(this._debug("online event triggered"),this.state!==h.Connecting)return;if(this._deviceWentOffline&&!this._transportClosed)this._deviceWentOffline=!1,this._transportClosed=!0;this._clearReconnectTimeout(),this._startReconnecting()}),this._networkEventsSet=!0}_getReconnectDelay(){let Z=d5(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,Z}_clearOutgoingRequests(){for(let Z in this._callbacks)if(this._callbacks.hasOwnProperty(Z)){let J=this._callbacks[Z];clearTimeout(J.timeout);let Y=J.errback;if(!Y)continue;Y({error:this._createErrorObject(_.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(let Z in this._subs){if(!this._subs.hasOwnProperty(Z))continue;let J=this._subs[Z];if(J.state===o.Subscribed)J._setSubscribing(m5.transportClosed,"transport closed")}for(let Z in this._serverSubs)if(this._serverSubs.hasOwnProperty(Z))this.emit("subscribing",{channel:Z})}_handleWriteError(Z){for(let J of Z){let Y=J.id;if(!(Y in this._callbacks))continue;let Q=this._callbacks[Y];clearTimeout(this._callbacks[Y].timeout),delete this._callbacks[Y];let X=Q.errback;X({error:this._createErrorObject(_.transportWriteError,"transport write error")})}}_transportSendCommands(Z){if(!Z.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._codec.encodeCommands(Z),this._session,this._node)}catch(J){return this._debug("error writing commands",J),this._handleWriteError(Z),!1}return!0}_initializeTransport(){let Z;if(this._config.websocket!==null)Z=this._config.websocket;else if(!(typeof globalThis.WebSocket!=="function"&&typeof globalThis.WebSocket!=="object"))Z=globalThis.WebSocket;let J=null;if(this._config.sockjs!==null)J=this._config.sockjs;else if(typeof globalThis.SockJS<"u")J=globalThis.SockJS;let Y=null;if(this._config.eventsource!==null)Y=this._config.eventsource;else if(typeof globalThis.EventSource<"u")Y=globalThis.EventSource;let Q=null;if(this._config.fetch!==null)Q=this._config.fetch;else if(typeof globalThis.fetch<"u")Q=globalThis.fetch;let X=null;if(this._config.readableStream!==null)X=this._config.readableStream;else if(typeof globalThis.ReadableStream<"u")X=globalThis.ReadableStream;if(!this._emulation){if(cB(this._endpoint,"http"))throw Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");else if(this._debug("client will use websocket"),this._transport=new Q9(this._endpoint,{websocket:Z}),!this._transport.supported())throw Error("WebSocket constructor not found, make sure it is available globally or passed as a dependency in Centrifuge options")}else{if(this._currentTransportIndex>=this._transports.length)this._triedAllTransports=!0,this._currentTransportIndex=0;let V=0;while(!0){if(V>=this._transports.length)throw Error("no supported transport found");let M=this._transports[this._currentTransportIndex],K=M.transport,F=M.endpoint;if(K==="websocket"){if(this._debug("trying websocket transport"),this._transport=new Q9(F,{websocket:Z}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,V++;continue}}else if(K==="webtransport"){if(this._debug("trying webtransport transport"),this._transport=new $Y(F,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,V++;continue}}else if(K==="http_stream"){if(this._debug("trying http_stream transport"),this._transport=new MY(F,{fetch:Q,readableStream:X,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,V++;continue}}else if(K==="sse"){if(this._debug("trying sse transport"),this._transport=new FY(F,{eventsource:Y,fetch:Q,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,V++;continue}}else if(K==="sockjs"){if(this._debug("trying sockjs"),this._transport=new LY(F,{sockjs:J,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,V++;continue}}else throw Error("unknown transport "+K);break}}let G=this,W=this._transport,H=this._nextTransportId();G._debug("id of transport",H);let z=!1,U=[];if(this._transport.emulation()){let V=G._sendConnect(!0);U.push(V)}this._setNetworkEvents();let B=this._codec.encodeCommands(U);this._transportClosed=!1;let L;L=setTimeout(function(){W.close()},this._config.timeout),this._transport.initialize(this._codecName(),{onOpen:function(){if(L)clearTimeout(L),L=null;if(G._transportId!=H){G._debug("open callback from non-actual transport"),W.close();return}if(z=!0,G._debug(W.subName(),"transport open"),W.emulation())return;G._transportIsOpen=!0,G._transportWasOpen=!0,G.startBatching(),G._sendConnect(!1),G._sendSubscribeCommands(),G.stopBatching(),G.emit("__centrifuge_debug:connect_frame_sent",{})},onError:function(V){if(G._transportId!=H){G._debug("error callback from non-actual transport");return}G._debug("transport level error",V)},onClose:function(V){if(L)clearTimeout(L),L=null;if(G._transportId!=H){G._debug("close callback from non-actual transport");return}G._debug(W.subName(),"transport closed"),G._transportClosed=!0,G._transportIsOpen=!1;let M="connection closed",K=!0,F=0;if(V&&"code"in V&&V.code)F=V.code;if(V&&V.reason)try{let O=JSON.parse(V.reason);M=O.reason,K=O.reconnect}catch(O){if(M=V.reason,F>=3500&&F<4000||F>=4500&&F<5000)K=!1}if(F<3000){if(F===1009)F=l0.messageSizeLimit,M="message size limit exceeded",K=!1;else F=d1.transportClosed,M="transport closed";if(G._emulation&&!G._transportWasOpen){if(G._currentTransportIndex++,G._currentTransportIndex>=G._transports.length)G._triedAllTransports=!0,G._currentTransportIndex=0}}else G._transportWasOpen=!0;if(G._isConnecting()&&!z)G.emit("error",{type:"transport",error:{code:_.transportClosed,message:"transport closed"},transport:W.name()});G._reconnecting=!1,G._disconnect(F,M,K)},onMessage:function(V){G._dataReceived(V)}},B),G.emit("__centrifuge_debug:transport_initialized",{})}_sendConnect(Z){let J=this._constructConnectCommand(),Y=this;return this._call(J,Z).then((Q)=>{let X=Q.reply.connect;if(Y._connectResponse(X),Q.next)Q.next()},(Q)=>{if(Y._connectError(Q.error),Q.next)Q.next()}),J}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting()){this._debug("stop reconnecting: client not in connecting state");return}if(this._reconnecting){this._debug("reconnect already in progress, return from reconnect routine");return}if(this._transportClosed===!1){this._debug("waiting for transport close");return}this._reconnecting=!0;let Z=this._token==="";if(!(this._refreshRequired||Z&&this._config.getToken!==null)){if(this._config.getData)this._config.getData().then((Q)=>{if(!this._isConnecting())return;this._data=Q,this._initializeTransport()}).catch((Q)=>this._handleGetDataError(Q));else this._initializeTransport();return}let Y=this;this._getToken().then(function(Q){if(!Y._isConnecting())return;if(Q==null||Q==null){Y._failUnauthorized();return}if(Y._token=Q,Y._debug("connection token refreshed"),Y._config.getData)Y._config.getData().then(function(X){if(!Y._isConnecting())return;Y._data=X,Y._initializeTransport()}).catch((X)=>Y._handleGetDataError(X));else Y._initializeTransport()}).catch(function(Q){if(!Y._isConnecting())return;if(Q instanceof V1){Y._failUnauthorized();return}Y.emit("error",{type:"connectToken",error:{code:_.clientConnectToken,message:Q!==void 0?Q.toString():""}});let X=Y._getReconnectDelay();Y._debug("error on getting connection token, reconnect after "+X+" milliseconds",Q),Y._reconnecting=!1,Y._reconnectTimeout=setTimeout(()=>{Y._startReconnecting()},X)})}_handleGetDataError(Z){if(Z instanceof V1){this._failUnauthorized();return}this.emit("error",{type:"connectData",error:{code:_.badConfiguration,message:(Z===null||Z===void 0?void 0:Z.toString())||""}});let J=this._getReconnectDelay();this._debug("error on getting connect data, reconnect after "+J+" milliseconds",Z),this._reconnecting=!1,this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},J)}_connectError(Z){if(this.state!==h.Connecting)return;if(Z.code===109)this._refreshRequired=!0;if(Z.code<100||Z.temporary===!0||Z.code===109)this.emit("error",{type:"connect",error:Z}),this._debug("closing transport due to connect error"),this._disconnect(Z.code,Z.message,!0);else this._disconnect(Z.code,Z.message,!1)}_scheduleReconnect(){if(!this._isConnecting())return;let Z=!1;if(this._emulation&&!this._transportWasOpen&&!this._triedAllTransports)Z=!0;let J=this._getReconnectDelay();if(Z)J=0;this._debug("reconnect after "+J+" milliseconds"),this._clearReconnectTimeout(),this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},J)}_constructConnectCommand(){let Z={};if(this._token)Z.token=this._token;if(this._data)Z.data=this._data;if(this._config.name)Z.name=this._config.name;if(this._config.version)Z.version=this._config.version;if(Object.keys(this._config.headers).length>0)Z.headers=this._config.headers;let J={},Y=!1;for(let Q in this._serverSubs)if(this._serverSubs.hasOwnProperty(Q)&&this._serverSubs[Q].recoverable){Y=!0;let X={recover:!0};if(this._serverSubs[Q].offset)X.offset=this._serverSubs[Q].offset;if(this._serverSubs[Q].epoch)X.epoch=this._serverSubs[Q].epoch;J[Q]=X}if(Y)Z.subs=J;return{connect:Z}}_getHistoryRequest(Z,J){let Y={channel:Z};if(J!==void 0){if(J.since){if(Y.since={offset:J.since.offset},J.since.epoch)Y.since.epoch=J.since.epoch}if(J.limit!==void 0)Y.limit=J.limit;if(J.reverse===!0)Y.reverse=!0}return Y}_methodCall(){if(this._isConnected())return Promise.resolve();return new Promise((Z,J)=>{let Y=setTimeout(function(){J({code:_.timeout,message:"timeout"})},this._config.timeout);this._promises[this._nextPromiseId()]={timeout:Y,resolve:Z,reject:J}})}_callPromise(Z,J){return new Promise((Y,Q)=>{this._call(Z,!1).then((X)=>{var G;let W=J(X.reply);Y(W),(G=X.next)===null||G===void 0||G.call(X)},(X)=>{var G;Q(X.error),(G=X.next)===null||G===void 0||G.call(X)})})}_dataReceived(Z){if(this._serverPing>0)this._waitServerPing();let J=this._codec.decodeReplies(Z);this._dispatchPromise=this._dispatchPromise.then(()=>{let Y;this._dispatchPromise=new Promise((Q)=>{Y=Q}),this._dispatchSynchronized(J,Y)})}_dispatchSynchronized(Z,J){let Y=Promise.resolve();for(let Q in Z)if(Z.hasOwnProperty(Q))Y=Y.then(()=>{return this._dispatchReply(Z[Q])});Y=Y.then(()=>{J()})}_dispatchReply(Z){let J,Y=new Promise((X)=>{J=X});if(Z===void 0||Z===null)return this._debug("dispatch: got undefined or null reply"),J(),Y;let Q=Z.id;if(Q&&Q>0)this._handleReply(Z,J);else if(!Z.push)this._handleServerPing(J);else this._handlePush(Z.push,J);return Y}_call(Z,J){return new Promise((Y,Q)=>{if(Z.id=this._nextCommandId(),this._registerCall(Z.id,Y,Q),!J)this._addCommand(Z)})}_startConnecting(){if(this._debug("start connecting"),this._setState(h.Connecting))this.emit("connecting",{code:d1.connectCalled,reason:"connect called"});this._client=null,this._startReconnecting()}_disconnect(Z,J,Y){if(this._isDisconnected())return;this._transportIsOpen=!1;let Q=this.state;this._reconnecting=!1;let X={code:Z,reason:J},G=!1;if(Y)G=this._setState(h.Connecting);else G=this._setState(h.Disconnected),this._rejectPromises({code:_.clientDisconnected,message:"disconnected"});if(this._clearOutgoingRequests(),Q===h.Connecting)this._clearReconnectTimeout();if(Q===h.Connected)this._clearConnectedState();if(G)if(this._isConnecting())this.emit("connecting",X);else this.emit("disconnected",X);if(this._transport){this._debug("closing existing transport");let W=this._transport;this._transport=null,W.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(l0.unauthorized,"unauthorized",!1)}_getToken(){if(this._debug("get connection token"),!this._config.getToken)return this.emit("error",{type:"configuration",error:{code:_.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),Promise.reject(new V1(""));return this._config.getToken({})}_refresh(){let Z=this._client,J=this;this._getToken().then(function(Y){if(Z!==J._client)return;if(!Y){J._failUnauthorized();return}if(J._token=Y,J._debug("connection token refreshed"),!J._isConnected())return;let Q={refresh:{token:J._token}};J._call(Q,!1).then((X)=>{let G=X.reply.refresh;if(J._refreshResponse(G),X.next)X.next()},(X)=>{if(J._refreshError(X.error),X.next)X.next()})}).catch(function(Y){if(!J._isConnected())return;if(Y instanceof V1){J._failUnauthorized();return}J.emit("error",{type:"refreshToken",error:{code:_.clientRefreshToken,message:Y!==void 0?Y.toString():""}}),J._refreshTimeout=setTimeout(()=>J._refresh(),J._getRefreshRetryDelay())})}_refreshError(Z){if(Z.code<100||Z.temporary===!0)this.emit("error",{type:"refresh",error:Z}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay());else this._disconnect(Z.code,Z.message,!1)}_getRefreshRetryDelay(){return d5(0,5000,1e4)}_refreshResponse(Z){if(this._refreshTimeout)clearTimeout(this._refreshTimeout),this._refreshTimeout=null;if(Z.expires)this._client=Z.client,this._refreshTimeout=setTimeout(()=>this._refresh(),c5(Z.ttl))}_removeSubscription(Z){if(Z===null)return;delete this._subs[Z.channel]}_unsubscribe(Z){if(!this._transportIsOpen)return Promise.resolve();let Y={unsubscribe:{channel:Z.channel}},Q=this;return new Promise((G,W)=>{this._call(Y,!1).then((H)=>{if(G(),H.next)H.next()},(H)=>{if(G(),H.next)H.next();Q._disconnect(d1.unsubscribeError,"unsubscribe error",!0)})})}_getSub(Z,J){if(J&&J>0){for(let Q in this._subs)if(this._subs.hasOwnProperty(Q)){let X=this._subs[Q];if(X._id===J)return X}return null}let Y=this._subs[Z];if(!Y)return null;return Y}_isServerSub(Z){return this._serverSubs[Z]!==void 0}_sendSubscribeCommands(){let Z=[];for(let J in this._subs){if(!this._subs.hasOwnProperty(J))continue;let Y=this._subs[J];if(Y._inflight===!0)continue;if(Y.state===o.Subscribing){let Q=Y._subscribe();if(Q)Z.push(Q)}}return Z}_connectResponse(Z){if(this._transportIsOpen=!0,this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;if(this._client=Z.client,this._setState(h.Connected),this._refreshTimeout)clearTimeout(this._refreshTimeout);if(Z.expires)this._refreshTimeout=setTimeout(()=>this._refresh(),c5(Z.ttl));this._session=Z.session,this._node=Z.node,this.startBatching(),this._sendSubscribeCommands(),this.stopBatching();let J={client:Z.client,transport:this._transport.subName()};if(Z.data)J.data=Z.data;if(this.emit("connected",J),this._resolvePromises(),this._processServerSubs(Z.subs||{}),Z.ping&&Z.ping>0)this._serverPing=Z.ping*1000,this._sendPong=Z.pong===!0,this._waitServerPing();else this._serverPing=0}_processServerSubs(Z){for(let J in Z){if(!Z.hasOwnProperty(J))continue;let Y=Z[J];this._serverSubs[J]={offset:Y.offset,epoch:Y.epoch,recoverable:Y.recoverable||!1};let Q=this._getSubscribeContext(J,Y);this.emit("subscribed",Q)}for(let J in Z){if(!Z.hasOwnProperty(J))continue;let Y=Z[J];if(Y.recovered){let Q=Y.publications;if(Q&&Q.length>0){for(let X in Q)if(Q.hasOwnProperty(X))this._handlePublication(J,Q[X])}}}for(let J in this._serverSubs){if(!this._serverSubs.hasOwnProperty(J))continue;if(!Z[J])this.emit("unsubscribed",{channel:J}),delete this._serverSubs[J]}}_clearRefreshTimeout(){if(this._refreshTimeout!==null)clearTimeout(this._refreshTimeout),this._refreshTimeout=null}_clearReconnectTimeout(){if(this._reconnectTimeout!==null)clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null}_clearServerPingTimeout(){if(this._serverPingTimeout!==null)clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null}_waitServerPing(){if(this._config.maxServerPingDelay===0)return;if(!this._isConnected())return;this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout(()=>{if(!this._isConnected())return;this._disconnect(d1.noPing,"no ping",!0)},this._serverPing+this._config.maxServerPingDelay)}_getSubscribeContext(Z,J){let Y={channel:Z,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1,hasRecoveredPublications:!1};if(J.recovered)Y.recovered=!0;if(J.positioned)Y.positioned=!0;if(J.recoverable)Y.recoverable=!0;if(J.was_recovering)Y.wasRecovering=!0;let Q="";if("epoch"in J)Q=J.epoch;let X=0;if("offset"in J)X=J.offset;if(Y.positioned||Y.recoverable)Y.streamPosition={offset:X,epoch:Q};if(Array.isArray(J.publications)&&J.publications.length>0)Y.hasRecoveredPublications=!0;if(J.data)Y.data=J.data;return Y}_handleReply(Z,J){let Y=Z.id;if(!(Y in this._callbacks)){J();return}let Q=this._callbacks[Y];if(clearTimeout(this._callbacks[Y].timeout),delete this._callbacks[Y],!iB(Z)){let X=Q.callback;if(!X)return;X({reply:Z,next:J})}else{let X=Q.errback;if(!X){J();return}let G={code:Z.error.code,message:Z.error.message||"",temporary:Z.error.temporary||!1};X({error:G,next:J})}}_handleJoin(Z,J,Y){let Q=this._getSub(Z,Y);if(!Q&&Z){if(this._isServerSub(Z)){let X={channel:Z,info:this._getJoinLeaveContext(J.info)};this.emit("join",X)}return}Q._handleJoin(J)}_handleLeave(Z,J,Y){let Q=this._getSub(Z,Y);if(!Q&&Z){if(this._isServerSub(Z)){let X={channel:Z,info:this._getJoinLeaveContext(J.info)};this.emit("leave",X)}return}Q._handleLeave(J)}_handleUnsubscribe(Z,J){let Y=this._getSub(Z,0);if(!Y&&Z){if(this._isServerSub(Z))delete this._serverSubs[Z],this.emit("unsubscribed",{channel:Z});return}if(J.code<2500)Y._setUnsubscribed(J.code,J.reason,!1);else Y._setSubscribing(J.code,J.reason)}_handleSubscribe(Z,J){this._serverSubs[Z]={offset:J.offset,epoch:J.epoch,recoverable:J.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(Z,J))}_handleDisconnect(Z){let J=Z.code,Y=!0;if(J>=3500&&J<4000||J>=4500&&J<5000)Y=!1;this._disconnect(J,Z.reason,Y)}_getPublicationContext(Z,J){let Y={channel:Z,data:J.data};if(J.offset)Y.offset=J.offset;if(J.info)Y.info=this._getJoinLeaveContext(J.info);if(J.tags)Y.tags=J.tags;return Y}_getJoinLeaveContext(Z){let J={client:Z.client,user:Z.user},Y=Z.conn_info;if(Y)J.connInfo=Y;let Q=Z.chan_info;if(Q)J.chanInfo=Q;return J}_handlePublication(Z,J,Y){let Q=this._getSub(Z,Y);if(!Q&&Z){if(this._isServerSub(Z)){let X=this._getPublicationContext(Z,J);if(this.emit("publication",X),J.offset!==void 0)this._serverSubs[Z].offset=J.offset}return}Q._handlePublication(J)}_handleMessage(Z){this.emit("message",{data:Z.data})}_handleServerPing(Z){if(this._sendPong){let J={};this._transportSendCommands([J])}Z()}_handlePush(Z,J){let{channel:Y,id:Q}=Z;if(Z.pub)this._handlePublication(Y,Z.pub,Q);else if(Z.message)this._handleMessage(Z.message);else if(Z.join)this._handleJoin(Y,Z.join,Q);else if(Z.leave)this._handleLeave(Y,Z.leave,Q);else if(Z.unsubscribe)this._handleUnsubscribe(Y,Z.unsubscribe);else if(Z.subscribe)this._handleSubscribe(Y,Z.subscribe);else if(Z.disconnect)this._handleDisconnect(Z.disconnect);J()}_flush(){let Z=this._commands.slice(0);this._commands=[],this._transportSendCommands(Z)}_createErrorObject(Z,J,Y){let Q={code:Z,message:J};if(Y)Q.temporary=!0;return Q}_registerCall(Z,J,Y){this._callbacks[Z]={callback:J,errback:Y,timeout:null},this._callbacks[Z].timeout=setTimeout(()=>{if(delete this._callbacks[Z],BY(Y))Y({error:this._createErrorObject(_.timeout,"timeout")})},this._config.timeout)}_addCommand(Z){if(this._batching)this._commands.push(Z);else this._transportSendCommands([Z])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(let Z in this._promises){if(!this._promises.hasOwnProperty(Z))continue;if(this._promises[Z].timeout)clearTimeout(this._promises[Z].timeout);this._promises[Z].resolve(),delete this._promises[Z]}}_rejectPromises(Z){for(let J in this._promises){if(!this._promises.hasOwnProperty(J))continue;if(this._promises[J].timeout)clearTimeout(this._promises[J].timeout);this._promises[J].reject(Z),delete this._promises[J]}}}J0.SubscriptionState=o;J0.State=h;J0.UnauthorizedError=V1;var l5=(Z,J)=>{async function Y(){let Q=await fetch(Z+"api/centrifuge/gen_token");if(!Q.ok){if(Q.status===403)throw new J0.UnauthorizedError("Backend is not answering");throw Error(`Unexpected status code ${Q.status}`)}return(await Q.json()).token}return J?new J0(J||"",{getToken:Y}):null},tB=rB(null),c1=tB;import{useContext as ZK,useEffect as JK}from"react";import{useEffect as eB,useState as IY}from"react";function i5(Z,J){let[Y,Q]=IY(null),[X,G]=IY(!1);return eB(()=>{if(!X)G(!0),fetch(Z+`api/support/${J}`,{method:"GET"}).then((W)=>W.json()).then((W)=>{Q(W)})},[]),Y}var YK=({children:Z})=>{let J=ZK(u1),Y=v1(),Q=i5(Y,"socketIO"),X=(G)=>{if(typeof window<"u")window.sid=G.sid,console.log(`SocketIO initialized: ${window.sid}`)};return JK(()=>{if(!J)return;let G=()=>{console.log("SocketIO connected")},W=(H)=>{console.log(`SocketIO disconnected: ${H}`),J.connect()};if(Q)J.on("pieinit",X),J.on("connect",G),J.on("disconnect",W),J.connect();return()=>{if(Q)J.off("pieinit",X),J.off("connect",G),J.off("disconnect",W),J.disconnect()}},[J,Q]),Z},n5=YK;import{useContext as QK,useEffect as XK}from"react";var GK=({children:Z})=>{let J=QK(c1),Y=v1(),Q=i5(Y,"centrifuge");return XK(()=>{if(!J)return;let X=()=>{console.log("Centrifuge connected")},G=(W)=>{console.log("Centrifuge disconnected:",W)};if(Q)J.on("connected",X),J.on("disconnected",G),J.connect();return()=>{if(Q)J.disconnect()}},[J,Q]),Z},o5=GK;var PX=S(P9(),1);import{useContext as T9,useEffect as w9}from"react";var sL=({card:Z,data:J,children:Y,useSocketioSupport:Q=!1,useCentrifugeSupport:X=!1,useMittSupport:G=!1,centrifugeChannel:W=void 0,methods:H=void 0})=>{let z=k1();if(z)console.log("[PieCard] Rendering card:",Z),console.log("[PieCard] Card data:",J),console.log("[PieCard] Component name:",J?.name),console.log("[PieCard] Real-time support:",{socketio:Q,centrifuge:X,mitt:G,centrifugeChannel:W}),console.log("[PieCard] Methods:",H?Object.keys(H):"none"),console.log("[PieCard] Has children:",!!Y);let U=T9(u1),B=T9(c1),L=T9(y1);if(w9(()=>{if(!U||!Q||!H||!J.name){if(z&&Q)console.log("[PieCard] Socket.IO setup skipped:",{hasSocket:!!U,useSocketioSupport:Q,hasMethods:!!H,hasDataName:!!J?.name});return}return Object.entries(H).forEach(([V,M])=>{let K=`pie${V}_${J.name}`;if(z)console.log(`[PieCard] Socket.IO registering event: ${K}`);U.on(K,M)}),()=>{Object.entries(H).forEach(([V,M])=>{let K=`pie${V}_${J.name}`;if(z)console.log(`[PieCard] Socket.IO unregistering event: ${K}`);U.off(K,M)})}},[U,H,J.name]),w9(()=>{if(!B||!X||!W||!H||!J.name){if(z&&X)console.log("[PieCard] Centrifuge setup skipped:",{hasCentrifuge:!!B,useCentrifugeSupport:X,hasCentrifugeChannel:!!W,hasMethods:!!H,hasDataName:!!J?.name});return}let V=Object.entries(H).map(([M,K])=>{let F=`pie${M}_${J.name}_${W}`;if(z)console.log(`[PieCard] Centrifuge subscribing to channel: ${F}`);let O=B.newSubscription(F);return O.on("publication",(D)=>{if(z)console.log(`[PieCard] Centrifuge received data on ${F}:`,D.data);K(D.data)}),O.subscribe(),O});return()=>{V.forEach((M)=>{if(z)console.log("[PieCard] Centrifuge unsubscribing from channel");M.unsubscribe(),B.removeSubscription(M)})}},[B,W,H,J.name]),w9(()=>{if(!L||!G||!H||!J.name){if(z&&G)console.log("[PieCard] Mitt setup skipped:",{hasMitt:!!L,useMittSupport:G,hasMethods:!!H,hasDataName:!!J?.name});return}return Object.entries(H).forEach(([V,M])=>{let K=`pie${V}_${J.name}`;if(z)console.log(`[PieCard] Mitt registering event: ${K}`);L.on(K,M)}),()=>{Object.entries(H).forEach(([V,M])=>{let K=`pie${V}_${J.name}`;if(z)console.log(`[PieCard] Mitt unregistering event: ${K}`);L.off(K,M)})}},[L,H,J.name]),z)console.log("[PieCard] Rendering complete, returning children");return Y},F1=sL;function U6(Z){if(!Z)return{};let J={...Z};if("animationName"in J&&typeof J.animationName==="object"){let Y="radiumAnimation_"+Math.random().toString(36).substring(2,8);J.animationName=H1.keyframes(J.animationName,Y)}return J}import{jsx as E9}from"react/jsx-runtime";var rL=({data:Z,content:J,setUiAjaxConfiguration:Y})=>{let{name:Q,sx:X}=Z;return E9(F1,{card:Q,data:Z,children:E9("div",{style:U6(X),id:Q,children:J.map((G,W)=>{return E9(Z1,{uiConfig:G,setUiAjaxConfiguration:Y},`children-${W}`)})})})},bQ=H1(rL);import{jsx as gQ}from"react/jsx-runtime";var tL=({data:Z,content:J,setUiAjaxConfiguration:Y})=>{let{name:Q}=Z;return gQ(F1,{card:Q,data:Z,children:J.map((X,G)=>{return gQ(Z1,{uiConfig:X,setUiAjaxConfiguration:Y},`children-${G}`)})})},yQ=tL;import{useContext as mQ,useEffect as eL,useRef as ZM,useState as uQ}from"react";import{jsx as dQ}from"react/jsx-runtime";var JM=({data:Z,content:J})=>{let{useLoader:Y,noReturn:Q,returnType:X,useSocketioSupport:G,useCentrifugeSupport:W,useMittSupport:H,centrifugeChannel:z}=Z,U=mQ(_1),[B,L]=uQ(!1),[V,M]=uQ(null),K=ZM(J),F=mQ(y1),O=(N)=>{if(N===null)L(!0);else if(L(!1),!Q)K.current=N;if(!Q)M(N)},D=(N)=>{K.current=N.content,M(N.content)},P=(N)=>{if(N===null)L(!0);else if(L(!1),!Q)for(let q of N)F.emit(q.name,q.data)};if(eL(()=>{M(J),L(!1)},[J]),!V&&Y)return U;return dQ(F1,{card:"AjaxGroupCard",data:Z,methods:{changeContent:D},useSocketioSupport:G,useCentrifugeSupport:W,useMittSupport:H,centrifugeChannel:z,children:dQ(Z1,{uiConfig:V??K.current,setUiAjaxConfiguration:X==="events"?P:O})})},cQ=H1(JM);function S9(Z=1000){return new Promise((J)=>{if(typeof window>"u"){J();return}let Y=()=>{if(typeof window.sid<"u")J();else setTimeout(Y,Z)};Y()})}import{useMemo as YM}from"react";var QM=(Z,J={},Y=[],Q,X)=>{let G=X?.renderingLogEnabled??!1,W=X?.apiServer??"";if(G)console.log("Registering AJAX: ",Q,J,Y);if(!Q||!Z){if(G)console.warn("Registration FAILED: pathname or setUiAjaxConfiguration is missing!");return()=>{}}return async(H={})=>{if(typeof window>"u"||typeof document>"u"){if(G)console.warn("getAjaxSubmit called on server, skipping DOM-dependent logic");return}if(Y.includes("sid"))await S9();let z=new FormData;for(let[B,L]of Object.entries({...J,...H}))z.append(B,L);for(let B of Y)if(B==="sid"){if(!window.sid)throw Error("SocketIO isn't initialized properly");z.append("sid",window.sid)}else{let L=document.getElementsByName(B);if(!L.length){if(G)console.warn(`No input found with name ${B}`);continue}let V=L[0];if(V instanceof HTMLInputElement)if(V.type==="file"&&V.files)Array.from(V.files).forEach((M)=>z.append(B,M));else z.append(B,V.value);else if(V instanceof HTMLTextAreaElement)z.append(B,V.value)}let U=W+"api/ajax_content"+Q;return Z(null),await fetch(U,{method:"POST",body:z}).then(async(B)=>{let V=(B.headers.get("content-type")||"").includes("application/json");if(!!B.body?.getReader&&!V){let K=B.body.getReader(),F=new TextDecoder,O="";while(!0){let{done:D,value:P}=await K.read();if(D)break;O+=F.decode(P,{stream:!0});let N=O.split(`
|
|
28
|
-
`);O=N.pop()??"";for(let q of N){let T=q.trim();if(!T)continue;try{let C=JSON.parse(T);Z([C])}catch(C){if(G)console.warn("Failed to parse streamed line:",T)}}}if(O.trim())try{let D=JSON.parse(O);Z([D])}catch(D){if(G)console.warn("Failed to parse final streamed line:",O)}return{}}else{let K=await B.json();return Z(K),K}}).catch((B)=>{if(G)console.error("AJAX request failed:",B);return Z(null),B})}},B6=(Z,J={},Y=[],Q)=>{let{apiServer:X,enableRenderingLog:G}=H0();return YM(()=>QM(Z,J,Y,Q,{apiServer:X,renderingLogEnabled:G}),[Z,J,Y,Q,X,G])};var a9=S(o9(),1),G0=S(o9(),1),I6=a9.default.default||a9.default;import{jsx as s9,jsxs as e2}from"react/jsx-runtime";var t2=({data:Z,setUiAjaxConfiguration:J})=>{let{name:Y,title:Q,iconUrl:X,iconPosition:G,sx:W,pathname:H,kwargs:z,depsNames:U}=Z,B=B6(J,z,U,H);return s9(F1,{card:"AjaxButtonCard",data:Z,children:e2("button",{id:Y,className:"box-border flex min-h-12 w-full min-w-min cursor-pointer items-center justify-center rounded-[16px] border border-[#080318] bg-white text-center font-[TTForsTrial] text-[#080318] hover:bg-neutral-300",value:Y,onClick:()=>B(),style:U6(W),type:"button",children:[X&&G==="start"&&s9("img",{src:X,alt:""}),I6(Q),X&&G==="end"&&s9("img",{src:X,alt:""})]})})},s3=H1(t2);import{forwardRef as NF,useEffect as LX,useImperativeHandle as AF,useRef as RF,useState as A6}from"react";import{useRef as ZF,useState as JF}from"react";import{jsx as YF}from"react/jsx-runtime";function r9(Z){let[J,Y]=JF(!1),Q=ZF(null);return YF("textarea",{ref:Q,...Z,onKeyUp:()=>{Y(!1)},onKeyDown:(H)=>{if(H.key==="Enter"&&H.shiftKey){if(Y(!0),Q.current&&typeof window<"u"){let z=window.getComputedStyle(Q.current),U=parseFloat(z.lineHeight);Q.current.style.height=Q.current.scrollHeight+U+"px"}}if(H.key==="Backspace"){if(Y(!0),Q.current&&typeof window<"u"){let z=window.getComputedStyle(Q.current),U=parseFloat(z.lineHeight);if(Q.current.scrollHeight>U)Q.current.style.height=Q.current.scrollHeight-U+"px"}}Z.onKeyDown&&Z.onKeyDown(H)},onBlur:(H)=>{Y(!1),Z.onBlur&&Z.onBlur(H)},style:{resize:J?"vertical":"none",overflowY:"auto",...Z.style}})}import{useRef as XF,useCallback as GF}from"react";import{jsx as r3}from"react/jsx-runtime";var QF=()=>r3("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:r3("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5"})}),t3=QF;import{jsx as t9}from"react/jsx-runtime";var WF=({type:Z="button",onClick:J,icons:Y})=>{let Q=XF(null),X=GF(()=>{let W=Q.current;if(W)W.style.transform="scale(0.8)",setTimeout(()=>{W.style.transform="scale(1)"},600)},[]);return t9("button",{ref:Q,type:Z,onClick:(W)=>{if(J)J(W);X()},className:"mr-1.5 rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",style:{transition:"transform 300ms ease"},children:Y.sendIcon?t9("img",{src:Y.sendIcon,alt:""}):t9(t3,{})})},e3=WF;import{jsx as ZX}from"react/jsx-runtime";var HF=()=>ZX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:ZX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.375 12.739l-7.693 7.693a4.5 4.5 0 01-6.364-6.364l10.94-10.94A3 3 0 1119.5 7.372L8.552 18.32m.009-.01l-.01.01m5.699-9.941l-7.81 7.81a1.5 1.5 0 002.112 2.13"})}),JX=HF;import{jsx as q6,jsxs as BF,Fragment as UF}from"react/jsx-runtime";var zF=({name:Z,accept:J,fileInputRef:Y,onSelectFile:Q,icons:X})=>{return BF(UF,{children:[q6("button",{className:"rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",type:"button",onClick:()=>{if(Y.current)Y.current.click()},children:X.attachFileIcon?q6("img",{src:X.attachFileIcon,alt:""}):q6(JX,{})}),q6("input",{id:Z+"__pie__file",name:Z+"__pie__file",className:"hidden",type:"file",accept:J,ref:Y,onChange:(G)=>{if(G.target.files)Q(G.target.files[0])}})]})},YX=zF;import{jsx as QX}from"react/jsx-runtime";var KF=()=>QX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5 text-gray-500",children:QX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),XX=KF;import{jsx as GX}from"react/jsx-runtime";var LF=()=>GX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:GX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})}),D6=LF;import{jsx as W5,jsxs as FF}from"react/jsx-runtime";var MF=({name:Z,selectedFile:J,onDropFile:Y})=>{return FF("div",{className:"flex w-full cursor-default flex-row items-center gap-2",children:[W5(XX,{}),W5("span",{className:"flex-1",children:J.name}),W5("input",{type:"hidden",name:Z,value:""}),W5("button",{className:"rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",type:"button",onClick:Y,children:W5(D6,{})})]})},WX=MF;import{jsx as HX,jsxs as OF}from"react/jsx-runtime";var $F=()=>OF("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:[HX("path",{d:"M8 5C8 2.79086 9.79086 1 12 1C14.2091 1 16 2.79086 16 5V12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12V5Z"}),HX("path",{d:"M6.25 11.8438V12C6.25 13.525 6.8558 14.9875 7.93414 16.0659C9.01247 17.1442 10.475 17.75 12 17.75C13.525 17.75 14.9875 17.1442 16.0659 16.0659C17.1442 14.9875 17.75 13.525 17.75 12V11.8438C17.75 11.2915 18.1977 10.8438 18.75 10.8438H19.25C19.8023 10.8438 20.25 11.2915 20.25 11.8437V12C20.25 14.188 19.3808 16.2865 17.8336 17.8336C16.5842 19.0831 14.9753 19.8903 13.25 20.1548V22C13.25 22.5523 12.8023 23 12.25 23H11.75C11.1977 23 10.75 22.5523 10.75 22V20.1548C9.02471 19.8903 7.41579 19.0831 6.16637 17.8336C4.61919 16.2865 3.75 14.188 3.75 12V11.8438C3.75 11.2915 4.19772 10.8438 4.75 10.8438H5.25C5.80228 10.8438 6.25 11.2915 6.25 11.8438Z"})]}),zX=$F;import{jsx as H5}from"react/jsx-runtime";var VF=({isListening:Z,toggleListening:J,icons:Y})=>{return H5("button",{className:"rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",type:"button",onClick:J,children:Z?Y.cancelIcon?H5("img",{src:Y.cancelIcon,alt:""}):H5(D6,{}):Y.voiceRecordingIcon?H5("img",{src:Y.voiceRecordingIcon,alt:""}):H5(zX,{})})},UX=VF;import{jsx as BX,jsxs as qF}from"react/jsx-runtime";var IF=({option:Z,onClickOption:J})=>{return qF("div",{className:"flex w-fit cursor-pointer flex-row place-content-center items-center gap-1 rounded-md border border-black bg-white px-2 py-1 text-black",onClick:()=>{J(Z.title)},style:Z.sx,children:[Z.iconPosition==="start"&&BX("img",{src:Z.iconUrl,alt:""}),Z.title,Z.iconPosition==="end"&&BX("img",{src:Z.iconUrl,alt:""})]})},N6=IF;import{jsx as KX}from"react/jsx-runtime";var DF=({options:Z,handleOptionClick:J})=>{return KX("div",{className:"flex w-full flex-row flex-wrap justify-start gap-[5px]",children:Z.map((Y,Q)=>{return KX(N6,{option:Y,onClickOption:J},Q)})})},e9=DF;import{jsx as E1,jsxs as MX}from"react/jsx-runtime";var PF=NF(({name:Z,defaultValue:J,defaultOptions:Y,isArea:Q,placeholder:X,fileAccept:G,optionsPosition:W,icons:H,handleOptionClick:z,handleSendMessage:U,sx:B},L)=>{let V=RF(null),[M,K]=A6(null),[F,O]=A6(J),[D,P]=A6(Y),[N,q]=A6(!1);AF(L,()=>({clear:()=>{if(O(""),K(null),V.current)V.current.value=""},setValue:(C)=>O(C),setOptions:(C)=>P(C)})),LX(()=>{O(J)},[J]),LX(()=>{},[]);let T=()=>{};return MX("div",{className:"flex flex-col items-center gap-[0.1rem]",id:Z+"_chat_input",style:B,children:[D&&W==="top"&&E1(e9,{options:D,handleOptionClick:z}),E1("div",{className:"stretch relative flex size-full flex-1 flex-row items-stretch gap-3 last:mb-2 md:mx-4 md:flex-col md:last:mb-6 lg:mx-auto",children:MX("div",{className:"flex w-full grow flex-row items-center rounded-md bg-transparent",children:[M?E1(WX,{name:Z,selectedFile:M,onDropFile:()=>{if(K(null),V.current)V.current.value=""}}):!Q?E1("input",{name:Z,value:F,onChange:(C)=>O(C.target.value),onKeyDown:(C)=>{if(C.key==="Enter")C.preventDefault(),U()},tabIndex:0,placeholder:X,className:"m-0 w-full resize-none border-0 bg-transparent outline-none",style:{maxHeight:200,height:"100%",overflowY:"hidden"}}):E1(r9,{name:Z,value:F,onChange:(C)=>O(C.target.value),onKeyDown:(C)=>{if(C.key==="Enter"&&!C.shiftKey)C.preventDefault(),U()},tabIndex:0,rows:2,placeholder:X,className:"m-0 w-full resize-none border-0 bg-transparent p-0 pl-2 pr-7 outline-none md:pl-0",style:{maxHeight:200,height:"100%",minHeight:24}}),E1(UX,{isListening:N,toggleListening:T,icons:H}),E1(YX,{name:Z,fileInputRef:V,accept:G,onSelectFile:K,icons:H}),E1(e3,{onClick:U,icons:H})]})}),D&&W==="bottom"&&E1(e9,{options:D,handleOptionClick:z})]})}),FX=PF;import{useState as fF,useEffect as jF}from"react";import{useEffect as TF,useState as wF}from"react";import{jsx as SF}from"react/jsx-runtime";function EF({children:Z}){let[J,Y]=wF(Z);return TF(()=>{Y(Z)},[Z]),SF("div",{className:"max-w-full first:mt-0",children:J})}var $X=EF;import{jsx as OX}from"react/jsx-runtime";var xF=()=>OX("svg",{width:"30",height:"30",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:OX("path",{d:"m 8 1 c -1.65625 0 -3 1.34375 -3 3 s 1.34375 3 3 3 s 3 -1.34375 3 -3 s -1.34375 -3 -3 -3 z m -1.5 7 c -2.492188 0 -4.5 2.007812 -4.5 4.5 v 0.5 c 0 1.109375 0.890625 2 2 2 h 8 c 1.109375 0 2 -0.890625 2 -2 v -0.5 c 0 -2.492188 -2.007812 -4.5 -4.5 -4.5 z m 0 0",fill:"#2e3436"})}),VX=xF;import{jsx as R6}from"react/jsx-runtime";function CF({username:Z,avatar:J}){return R6("div",{className:"w-[30px]",children:R6("div",{className:"relative flex size-[30px] items-center justify-center rounded-sm p-1 text-white",children:J?R6("img",{src:J,className:"absolute inset-0 rounded",alt:Z}):R6(VX,{})})})}var Z7=CF;import{jsx as D1,jsxs as IX}from"react/jsx-runtime";var _F=({message:Z,handleOptionClick:J,setUiAjaxConfiguration:Y})=>{let[Q,X]=fF(!1);return jF(()=>{let G=setTimeout(()=>{if(Q)X(!1)},1000);return()=>clearTimeout(G)},[Q]),D1("div",{className:"group w-full border-b border-black/10",id:Z.id,children:IX("div",{className:`flex gap-4 p-4 text-base md:max-w-2xl md:gap-6 md:py-6 lg:max-w-3xl xl:max-w-5xl ${Z.align==="center"?"m-auto":""} ${Z.align==="right"?"ml-auto justify-end":""} ${Z.align==="left"?"mr-auto":""} `,children:[(Z.align==="left"||Z.align==="center")&&D1("div",{className:"relative flex shrink-0 flex-col items-end",children:D1(Z7,{username:Z.username,avatar:Z.avatar})}),IX("div",{className:"relative flex w-[calc(100%-50px)] flex-col gap-1 md:gap-3 lg:w-[calc(100%-115px)]",children:[D1("div",{className:`markdown light prose w-full break-words dark:prose-invert first:mt-0 ${Z.align==="right"?"flex justify-end self-end":""}`,children:typeof Z.content==="string"?Z.parseMode.toLowerCase()==="markdown"?D1($X,{children:Z.content},Date.now()+Math.random()):Z.parseMode.toLowerCase()==="html"?I6(Z.content):Z.content:D1(Z1,{uiConfig:Z.content,setUiAjaxConfiguration:Y})}),D1("div",{className:"flex flex-row flex-wrap justify-start gap-1",children:Z.options.map((G,W)=>D1(N6,{onClickOption:J,option:G},W))})]}),Z.align==="right"&&D1("div",{className:"relative flex shrink-0 flex-col items-end",children:D1(Z7,{username:Z.username,avatar:Z.avatar})})]})})},qX=_F;import{forwardRef as vF,useEffect as kF,useImperativeHandle as hF,useRef as bF,useState as gF}from"react";import{jsx as DX}from"react/jsx-runtime";var yF=vF(({name:Z,handleOptionClick:J,defaultMessages:Y,sx:Q,setUiAjaxConfiguration:X},G)=>{let[W,H]=gF(Y),z=bF(null),U=()=>{if(z.current)z.current.scrollTop=z.current.scrollHeight};return kF(()=>{U()},[W]),hF(G,()=>({setMessages:(B)=>H(B),addMessage:(B)=>H((L)=>[...L,B]),scrollToBottom:U})),DX("div",{id:Z+"_messages",className:"flex flex-col items-center overflow-y-scroll",style:Q,ref:z,children:W.map((B)=>DX(qX,{message:B,handleOptionClick:J,setUiAjaxConfiguration:X},B.id))})}),NX=yF;import{useEffect as mF,useRef as AX,useState as uF}from"react";import{jsx as J7,jsxs as cF}from"react/jsx-runtime";var dF=({data:Z,setUiAjaxConfiguration:J})=>{let{name:Y,defaultValue:Q,defaultMessages:X,defaultOptions:G,isArea:W,fileAccept:H,placeholder:z,icons:U,optionsPosition:B,sxMap:L={container:{},chatInput:{},messages:{}},depsNames:V,pathname:M,kwargs:K,useSocketioSupport:F,useCentrifugeSupport:O,centrifugeChannel:D}=Z,P=AX(null),N=AX(null),[q,T]=uF(!1),C=B6(J,K,V,M);mF(()=>{if(q)requestAnimationFrame(()=>{C(),T(!1)})},[q]);let m=(c)=>{if(P.current)P.current.setValue(c),T(!0)},i1=()=>{if(P.current)P.current.clear()},x1=(c)=>{if(P.current)P.current.setOptions(c.options)},C1=(c)=>{if(N.current)N.current.addMessage(c.message)},v=(c)=>{if(N.current)N.current.setMessages(c.messages)},N1=()=>{T(!0)};return J7(F1,{card:"ChatCard",data:Z,methods:{clearInput:i1,setOptions:x1,addMessage:C1,setMessages:v},useSocketioSupport:F,useCentrifugeSupport:O,centrifugeChannel:D,children:cF("div",{className:"flex size-full flex-col",style:L.container,children:[J7(NX,{ref:N,name:Y,defaultMessages:X,sx:L.messages,handleOptionClick:m,setUiAjaxConfiguration:J}),J7(FX,{ref:P,name:Y,isArea:W,defaultOptions:G,placeholder:z,defaultValue:Q,fileAccept:H,sx:L.chatInput,handleSendMessage:N1,handleOptionClick:m,optionsPosition:B,icons:U})]})})},RX=dF;var Y7=!1;function z5(){if(Y7)return;n1({name:"SequenceCard",component:bQ,metadata:{author:"PieData",description:"Simple div with styles joining few components"}}),n1({name:"UnionCard",component:yQ,metadata:{author:"PieData",description:"Renders one of many components"}}),n1({name:"AjaxGroupCard",component:cQ,metadata:{author:"PieData",description:"Group card with AJAX support"}}),n1({name:"AjaxButtonCard",component:s3,metadata:{author:"PieData",description:"Button with AJAX support"}}),n1({name:"ChatCard",component:RX,metadata:{author:"PieData"}}),Y7=!0}function S1(){return Y7}import{jsx as z1,Fragment as rF}from"react/jsx-runtime";var aF=({location:Z,fallback:J,onError:Y,initializePie:Q})=>{let X=v1(),G=B5(),W=k1();pF(()=>{if(S1())return;z5(),Q()},[]);let H=lF(()=>PX.createAxiosDateTransformer({baseURL:X||""}),[X]),{data:z,isLoading:U,error:B}=oF({queryKey:["uiConfig",Z.pathname+Z.search,S1(),X],queryFn:async()=>{if(!X||!S1())return;let L="/api/content"+Z.pathname+Z.search;if(W)console.log("[PieRoot] Fetching UI configuration from:",L);let V=await H.get(L,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET,PUT,POST,DELETE,PATCH,OPTIONS","Content-type":"application/json"},withCredentials:!0});if(W)console.log("[PieRoot] Received UI configuration:",V.data);return V.data},staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!0,retryDelay:(L)=>Math.min(1000*2**L,30000)});if(!X)return J??null;if(W)console.log("[PieRoot] Rendering with location:",Z),console.log("[PieRoot] API_SERVER:",X),console.log("[PieRoot] Fallback provided:",!!J);if(B){if(W)console.error("[PieRoot] Error fetching UI configuration:",B),console.error("[PieRoot] Error details:",{message:B.message,status:B.response?.status,data:B.response?.data});return Y?.(),J}if(U||!z){if(W)console.log("[PieRoot] Loading state:",{isLoading:U,hasUiConfiguration:!!z});return J}if(W)console.log("[PieRoot] UI configuration loaded successfully:",z),console.log("[PieRoot] Rendering UI with configuration");return z1(y1.Provider,{value:f0,children:z1(u1.Provider,{value:g5(X),children:z1(c1.Provider,{value:l5(X,G),children:z1(_1.Provider,{value:J??z1(rF,{}),children:z1(n5,{children:z1(o5,{children:z1(H1.StyleRoot,{style:{display:"contents"},children:z1(Z1,{uiConfig:z})})})})})})})})},sF=(Z)=>{let J=new iF;return z1(P0.Provider,{value:Z.config,children:z1(nF,{client:J,children:z1(aF,{...Z})})})},tF=sF;import{useEffect as J$,useMemo as Y$}from"react";import{QueryClient as Q$,QueryClientProvider as X$,useQuery as G$}from"@tanstack/react-query";var wX=S(P9(),1);import{useEffect as eF,useState as Z$}from"react";var TX=()=>{let[Z,J]=Z$(null),Y=L7();return eF(()=>{if(typeof window>"u")return;let Q=window.Telegram.WebApp;if(Q.ready(),Y==="telegram_expanded"&&(Q.platform==="ios"||Q.platform==="android"))Q.expand();J(Q)},[]),Z};import{jsx as U1,Fragment as z$}from"react/jsx-runtime";var W$=({location:Z,fallback:J,onError:Y,initializePie:Q})=>{let X=v1(),G=B5(),W=k1();J$(()=>{if(S1())return;z5(),Q()},[]);let H=Y$(()=>wX.createAxiosDateTransformer({baseURL:X}),[]);if(W)console.log("[PieRoot] Rendering with location:",Z),console.log("[PieRoot] API_SERVER:",X),console.log("[PieRoot] Fallback provided:",!!J);if(!X)throw Error("Set PIE_API_SERVER and PIE_CENTRIFUGE_SERVER");let z=TX(),{data:U,isLoading:B,error:L}=G$({queryKey:["uiConfig",Z.pathname+Z.search,z?.initData,S1()],queryFn:async()=>{if(!S1())return;let V=Z.search?"&":"?",M=z?.initData?`${V}initData=${encodeURIComponent(z.initData)}`:"",K="/api/content"+Z.pathname+Z.search+M;if(W)console.log("[PieRoot] Fetching UI configuration from:",K);let F=await H.get(K,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET,PUT,POST,DELETE,PATCH,OPTIONS","Content-type":"application/json"},withCredentials:!0});if(W)console.log("[PieRoot] Received UI configuration:",F.data);return F.data},staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!0,retryDelay:(V)=>Math.min(1000*2**V,30000)});if(L&&W)return console.error("[PieRoot] Error fetching UI configuration:",L),console.error("[PieRoot] Error details:",{message:L.message,status:L.response?.status,data:L.response?.data}),Y?.(),J;if(B||!U){if(W)console.log("[PieRoot] Loading state:",{isLoading:B,hasUiConfiguration:!!U});return J}if(W)console.log("[PieRoot] UI configuration loaded successfully:",U),console.log("[PieRoot] Rendering UI with configuration");return U1(y1.Provider,{value:f0,children:U1(u1.Provider,{value:g5(X),children:U1(c1.Provider,{value:l5(X,G),children:U1(_1.Provider,{value:J??U1(z$,{}),children:U1(n5,{children:U1(o5,{children:U1(H1.StyleRoot,{children:U1(Z1,{uiConfig:U})})})})})})})})},H$=(Z)=>{let J=new Q$;return U1(P0.Provider,{value:Z.config,children:U1(X$,{client:J,children:U1(W$,{...Z})})})},U$=H$;export{n1 as registerPieComponent,S1 as isPieComponentsInitialized,z5 as initializePieComponents,Z1 as UI,U$ as PieTelegramRoot,tF as PieRoot,F1 as PieCard};
|
|
28
|
+
`).map((J)=>JSON.parse(J))}applyDeltaIfNeeded(Z,J){let Y,G;if(Z.delta){let Q=YK(J,new TextEncoder().encode(Z.data));Y=JSON.parse(new TextDecoder().decode(Q)),G=Q}else Y=JSON.parse(Z.data),G=new TextEncoder().encode(Z.data);return{newData:Y,newPrevValue:G}}}var GK={headers:{},token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:20000,timeout:5000,maxServerPingDelay:1e4,networkEventTarget:null};class I1 extends Error{constructor(Z){super(Z);this.name=this.constructor.name}}class J0 extends IY{constructor(Z,J){super();if(this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=h.Disconnected,this._transportIsOpen=!1,this._endpoint=Z,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._codec=new z9,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},GK),J),this._configure(),this._debugEnabled)this.on("state",(Y)=>{this._debug("client state",Y.oldState,"->",Y.newState)}),this.on("error",(Y)=>{this._debug("client error",Y)});else this.on("error",function(){Function.prototype()})}newSubscription(Z,J){if(this.getSubscription(Z)!==null)throw Error("Subscription to the channel "+Z+" already exists");let Y=new DY(this,Z,J);return this._subs[Z]=Y,Y}getSubscription(Z){return this._getSub(Z)}removeSubscription(Z){if(!Z)return;if(Z.state!==o.Unsubscribed)Z.unsubscribe();this._removeSubscription(Z)}subscriptions(){return this._subs}ready(Z){return l(this,void 0,void 0,function*(){switch(this.state){case h.Disconnected:throw{code:_.clientDisconnected,message:"client disconnected"};case h.Connected:return;default:return new Promise((J,Y)=>{let G={resolve:J,reject:Y};if(Z)G.timeout=setTimeout(()=>{Y({code:_.timeout,message:"timeout"})},Z);this._promises[this._nextPromiseId()]=G})}})}connect(){if(this._isConnected()){this._debug("connect called when already connected");return}if(this._isConnecting()){this._debug("connect called when already connecting");return}this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting()}disconnect(){this._disconnect(o0.disconnectCalled,"disconnect called",!1)}setToken(Z){this._token=Z}setData(Z){this._data=Z}setHeaders(Z){this._config.headers=Z}send(Z){return l(this,void 0,void 0,function*(){let J={send:{data:Z}};if(yield this._methodCall(),!this._transportSendCommands([J]))throw this._createErrorObject(_.transportWriteError,"transport write error")})}rpc(Z,J){return l(this,void 0,void 0,function*(){let Y={rpc:{method:Z,data:J}};return yield this._methodCall(),{data:(yield this._callPromise(Y,(Q)=>Q.rpc)).data}})}publish(Z,J){return l(this,void 0,void 0,function*(){let Y={publish:{channel:Z,data:J}};return yield this._methodCall(),yield this._callPromise(Y,()=>({})),{}})}history(Z,J){return l(this,void 0,void 0,function*(){let Y={history:this._getHistoryRequest(Z,J)};yield this._methodCall();let G=yield this._callPromise(Y,(X)=>X.history),Q=[];if(G.publications)for(let X=0;X<G.publications.length;X++)Q.push(this._getPublicationContext(Z,G.publications[X]));return{publications:Q,epoch:G.epoch||"",offset:G.offset||0}})}presence(Z){return l(this,void 0,void 0,function*(){let J={presence:{channel:Z}};yield this._methodCall();let G=(yield this._callPromise(J,(Q)=>Q.presence)).presence;for(let Q in G)if(Object.prototype.hasOwnProperty.call(G,Q)){let X=G[Q],W=X.conn_info,H=X.chan_info;if(W)X.connInfo=W;if(H)X.chanInfo=H}return{clients:G}})}presenceStats(Z){return l(this,void 0,void 0,function*(){let J={presence_stats:{channel:Z}};yield this._methodCall();let Y=yield this._callPromise(J,(G)=>{return G.presence_stats});return{numUsers:Y.num_users,numClients:Y.num_clients}})}startBatching(){this._batching=!0}stopBatching(){let Z=this;Promise.resolve().then(function(){Promise.resolve().then(function(){Z._batching=!1,Z._flush()})})}_debug(...Z){if(!this._debugEnabled)return;rB("debug",Z)}_codecName(){return this._codec.name()}_formatOverride(){return}_configure(){if(!("Promise"in globalThis))throw Error("Promise polyfill required");if(!this._endpoint)throw Error("endpoint configuration required");if(this._config.token!==null)this._token=this._config.token;if(this._config.data!==null)this._data=this._config.data;if(this._codec=new z9,this._formatOverride(),this._config.debug===!0||typeof localStorage<"u"&&typeof localStorage.getItem==="function"&&localStorage.getItem("centrifuge.debug"))this._debugEnabled=!0;if(this._debug("config",this._config),typeof this._endpoint==="string");else if(Array.isArray(this._endpoint)){this._transports=this._endpoint,this._emulation=!0;for(let Z in this._transports)if(this._transports.hasOwnProperty(Z)){let J=this._transports[Z];if(!J.endpoint||!J.transport)throw Error("malformed transport configuration");let Y=J.transport;if(["websocket","http_stream","sse","sockjs","webtransport"].indexOf(Y)<0)throw Error("unsupported transport name: "+Y)}}else throw Error("unsupported url configuration type: only string or array of objects are supported")}_setState(Z){if(this.state!==Z){this._reconnecting=!1;let J=this.state;return this.state=Z,this.emit("state",{newState:Z,oldState:J}),!0}return!1}_isDisconnected(){return this.state===h.Disconnected}_isConnecting(){return this.state===h.Connecting}_isConnected(){return this.state===h.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let Z=null;if(this._config.networkEventTarget!==null)Z=this._config.networkEventTarget;else if(typeof globalThis.addEventListener<"u")Z=globalThis;if(Z)Z.addEventListener("offline",()=>{if(this._debug("offline event triggered"),this.state===h.Connected||this.state===h.Connecting)this._disconnect(c1.transportClosed,"transport closed",!0),this._deviceWentOffline=!0}),Z.addEventListener("online",()=>{if(this._debug("online event triggered"),this.state!==h.Connecting)return;if(this._deviceWentOffline&&!this._transportClosed)this._deviceWentOffline=!1,this._transportClosed=!0;this._clearReconnectTimeout(),this._startReconnecting()}),this._networkEventsSet=!0}_getReconnectDelay(){let Z=n5(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,Z}_clearOutgoingRequests(){for(let Z in this._callbacks)if(this._callbacks.hasOwnProperty(Z)){let J=this._callbacks[Z];clearTimeout(J.timeout);let Y=J.errback;if(!Y)continue;Y({error:this._createErrorObject(_.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(let Z in this._subs){if(!this._subs.hasOwnProperty(Z))continue;let J=this._subs[Z];if(J.state===o.Subscribed)J._setSubscribing(l5.transportClosed,"transport closed")}for(let Z in this._serverSubs)if(this._serverSubs.hasOwnProperty(Z))this.emit("subscribing",{channel:Z})}_handleWriteError(Z){for(let J of Z){let Y=J.id;if(!(Y in this._callbacks))continue;let G=this._callbacks[Y];clearTimeout(this._callbacks[Y].timeout),delete this._callbacks[Y];let Q=G.errback;Q({error:this._createErrorObject(_.transportWriteError,"transport write error")})}}_transportSendCommands(Z){if(!Z.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._codec.encodeCommands(Z),this._session,this._node)}catch(J){return this._debug("error writing commands",J),this._handleWriteError(Z),!1}return!0}_initializeTransport(){let Z;if(this._config.websocket!==null)Z=this._config.websocket;else if(!(typeof globalThis.WebSocket!=="function"&&typeof globalThis.WebSocket!=="object"))Z=globalThis.WebSocket;let J=null;if(this._config.sockjs!==null)J=this._config.sockjs;else if(typeof globalThis.SockJS<"u")J=globalThis.SockJS;let Y=null;if(this._config.eventsource!==null)Y=this._config.eventsource;else if(typeof globalThis.EventSource<"u")Y=globalThis.EventSource;let G=null;if(this._config.fetch!==null)G=this._config.fetch;else if(typeof globalThis.fetch<"u")G=globalThis.fetch;let Q=null;if(this._config.readableStream!==null)Q=this._config.readableStream;else if(typeof globalThis.ReadableStream<"u")Q=globalThis.ReadableStream;if(!this._emulation){if(sB(this._endpoint,"http"))throw Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");else if(this._debug("client will use websocket"),this._transport=new H9(this._endpoint,{websocket:Z}),!this._transport.supported())throw Error("WebSocket constructor not found, make sure it is available globally or passed as a dependency in Centrifuge options")}else{if(this._currentTransportIndex>=this._transports.length)this._triedAllTransports=!0,this._currentTransportIndex=0;let F=0;while(!0){if(F>=this._transports.length)throw Error("no supported transport found");let M=this._transports[this._currentTransportIndex],K=M.transport,$=M.endpoint;if(K==="websocket"){if(this._debug("trying websocket transport"),this._transport=new H9($,{websocket:Z}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,F++;continue}}else if(K==="webtransport"){if(this._debug("trying webtransport transport"),this._transport=new PY($,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,F++;continue}}else if(K==="http_stream"){if(this._debug("trying http_stream transport"),this._transport=new AY($,{fetch:G,readableStream:Q,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,F++;continue}}else if(K==="sse"){if(this._debug("trying sse transport"),this._transport=new RY($,{eventsource:Y,fetch:G,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,F++;continue}}else if(K==="sockjs"){if(this._debug("trying sockjs"),this._transport=new NY($,{sockjs:J,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,F++;continue}}else throw Error("unknown transport "+K);break}}let X=this,W=this._transport,H=this._nextTransportId();X._debug("id of transport",H);let z=!1,U=[];if(this._transport.emulation()){let F=X._sendConnect(!0);U.push(F)}this._setNetworkEvents();let B=this._codec.encodeCommands(U);this._transportClosed=!1;let L;L=setTimeout(function(){W.close()},this._config.timeout),this._transport.initialize(this._codecName(),{onOpen:function(){if(L)clearTimeout(L),L=null;if(X._transportId!=H){X._debug("open callback from non-actual transport"),W.close();return}if(z=!0,X._debug(W.subName(),"transport open"),W.emulation())return;X._transportIsOpen=!0,X._transportWasOpen=!0,X.startBatching(),X._sendConnect(!1),X._sendSubscribeCommands(),X.stopBatching(),X.emit("__centrifuge_debug:connect_frame_sent",{})},onError:function(F){if(X._transportId!=H){X._debug("error callback from non-actual transport");return}X._debug("transport level error",F)},onClose:function(F){if(L)clearTimeout(L),L=null;if(X._transportId!=H){X._debug("close callback from non-actual transport");return}X._debug(W.subName(),"transport closed"),X._transportClosed=!0,X._transportIsOpen=!1;let M="connection closed",K=!0,$=0;if(F&&"code"in F&&F.code)$=F.code;if(F&&F.reason)try{let V=JSON.parse(F.reason);M=V.reason,K=V.reconnect}catch(V){if(M=F.reason,$>=3500&&$<4000||$>=4500&&$<5000)K=!1}if($<3000){if($===1009)$=o0.messageSizeLimit,M="message size limit exceeded",K=!1;else $=c1.transportClosed,M="transport closed";if(X._emulation&&!X._transportWasOpen){if(X._currentTransportIndex++,X._currentTransportIndex>=X._transports.length)X._triedAllTransports=!0,X._currentTransportIndex=0}}else X._transportWasOpen=!0;if(X._isConnecting()&&!z)X.emit("error",{type:"transport",error:{code:_.transportClosed,message:"transport closed"},transport:W.name()});X._reconnecting=!1,X._disconnect($,M,K)},onMessage:function(F){X._dataReceived(F)}},B),X.emit("__centrifuge_debug:transport_initialized",{})}_sendConnect(Z){let J=this._constructConnectCommand(),Y=this;return this._call(J,Z).then((G)=>{let Q=G.reply.connect;if(Y._connectResponse(Q),G.next)G.next()},(G)=>{if(Y._connectError(G.error),G.next)G.next()}),J}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting()){this._debug("stop reconnecting: client not in connecting state");return}if(this._reconnecting){this._debug("reconnect already in progress, return from reconnect routine");return}if(this._transportClosed===!1){this._debug("waiting for transport close");return}this._reconnecting=!0;let Z=this._token==="";if(!(this._refreshRequired||Z&&this._config.getToken!==null)){if(this._config.getData)this._config.getData().then((G)=>{if(!this._isConnecting())return;this._data=G,this._initializeTransport()}).catch((G)=>this._handleGetDataError(G));else this._initializeTransport();return}let Y=this;this._getToken().then(function(G){if(!Y._isConnecting())return;if(G==null||G==null){Y._failUnauthorized();return}if(Y._token=G,Y._debug("connection token refreshed"),Y._config.getData)Y._config.getData().then(function(Q){if(!Y._isConnecting())return;Y._data=Q,Y._initializeTransport()}).catch((Q)=>Y._handleGetDataError(Q));else Y._initializeTransport()}).catch(function(G){if(!Y._isConnecting())return;if(G instanceof I1){Y._failUnauthorized();return}Y.emit("error",{type:"connectToken",error:{code:_.clientConnectToken,message:G!==void 0?G.toString():""}});let Q=Y._getReconnectDelay();Y._debug("error on getting connection token, reconnect after "+Q+" milliseconds",G),Y._reconnecting=!1,Y._reconnectTimeout=setTimeout(()=>{Y._startReconnecting()},Q)})}_handleGetDataError(Z){if(Z instanceof I1){this._failUnauthorized();return}this.emit("error",{type:"connectData",error:{code:_.badConfiguration,message:(Z===null||Z===void 0?void 0:Z.toString())||""}});let J=this._getReconnectDelay();this._debug("error on getting connect data, reconnect after "+J+" milliseconds",Z),this._reconnecting=!1,this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},J)}_connectError(Z){if(this.state!==h.Connecting)return;if(Z.code===109)this._refreshRequired=!0;if(Z.code<100||Z.temporary===!0||Z.code===109)this.emit("error",{type:"connect",error:Z}),this._debug("closing transport due to connect error"),this._disconnect(Z.code,Z.message,!0);else this._disconnect(Z.code,Z.message,!1)}_scheduleReconnect(){if(!this._isConnecting())return;let Z=!1;if(this._emulation&&!this._transportWasOpen&&!this._triedAllTransports)Z=!0;let J=this._getReconnectDelay();if(Z)J=0;this._debug("reconnect after "+J+" milliseconds"),this._clearReconnectTimeout(),this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},J)}_constructConnectCommand(){let Z={};if(this._token)Z.token=this._token;if(this._data)Z.data=this._data;if(this._config.name)Z.name=this._config.name;if(this._config.version)Z.version=this._config.version;if(Object.keys(this._config.headers).length>0)Z.headers=this._config.headers;let J={},Y=!1;for(let G in this._serverSubs)if(this._serverSubs.hasOwnProperty(G)&&this._serverSubs[G].recoverable){Y=!0;let Q={recover:!0};if(this._serverSubs[G].offset)Q.offset=this._serverSubs[G].offset;if(this._serverSubs[G].epoch)Q.epoch=this._serverSubs[G].epoch;J[G]=Q}if(Y)Z.subs=J;return{connect:Z}}_getHistoryRequest(Z,J){let Y={channel:Z};if(J!==void 0){if(J.since){if(Y.since={offset:J.since.offset},J.since.epoch)Y.since.epoch=J.since.epoch}if(J.limit!==void 0)Y.limit=J.limit;if(J.reverse===!0)Y.reverse=!0}return Y}_methodCall(){if(this._isConnected())return Promise.resolve();return new Promise((Z,J)=>{let Y=setTimeout(function(){J({code:_.timeout,message:"timeout"})},this._config.timeout);this._promises[this._nextPromiseId()]={timeout:Y,resolve:Z,reject:J}})}_callPromise(Z,J){return new Promise((Y,G)=>{this._call(Z,!1).then((Q)=>{var X;let W=J(Q.reply);Y(W),(X=Q.next)===null||X===void 0||X.call(Q)},(Q)=>{var X;G(Q.error),(X=Q.next)===null||X===void 0||X.call(Q)})})}_dataReceived(Z){if(this._serverPing>0)this._waitServerPing();let J=this._codec.decodeReplies(Z);this._dispatchPromise=this._dispatchPromise.then(()=>{let Y;this._dispatchPromise=new Promise((G)=>{Y=G}),this._dispatchSynchronized(J,Y)})}_dispatchSynchronized(Z,J){let Y=Promise.resolve();for(let G in Z)if(Z.hasOwnProperty(G))Y=Y.then(()=>{return this._dispatchReply(Z[G])});Y=Y.then(()=>{J()})}_dispatchReply(Z){let J,Y=new Promise((Q)=>{J=Q});if(Z===void 0||Z===null)return this._debug("dispatch: got undefined or null reply"),J(),Y;let G=Z.id;if(G&&G>0)this._handleReply(Z,J);else if(!Z.push)this._handleServerPing(J);else this._handlePush(Z.push,J);return Y}_call(Z,J){return new Promise((Y,G)=>{if(Z.id=this._nextCommandId(),this._registerCall(Z.id,Y,G),!J)this._addCommand(Z)})}_startConnecting(){if(this._debug("start connecting"),this._setState(h.Connecting))this.emit("connecting",{code:c1.connectCalled,reason:"connect called"});this._client=null,this._startReconnecting()}_disconnect(Z,J,Y){if(this._isDisconnected())return;this._transportIsOpen=!1;let G=this.state;this._reconnecting=!1;let Q={code:Z,reason:J},X=!1;if(Y)X=this._setState(h.Connecting);else X=this._setState(h.Disconnected),this._rejectPromises({code:_.clientDisconnected,message:"disconnected"});if(this._clearOutgoingRequests(),G===h.Connecting)this._clearReconnectTimeout();if(G===h.Connected)this._clearConnectedState();if(X)if(this._isConnecting())this.emit("connecting",Q);else this.emit("disconnected",Q);if(this._transport){this._debug("closing existing transport");let W=this._transport;this._transport=null,W.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(o0.unauthorized,"unauthorized",!1)}_getToken(){if(this._debug("get connection token"),!this._config.getToken)return this.emit("error",{type:"configuration",error:{code:_.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),Promise.reject(new I1(""));return this._config.getToken({})}_refresh(){let Z=this._client,J=this;this._getToken().then(function(Y){if(Z!==J._client)return;if(!Y){J._failUnauthorized();return}if(J._token=Y,J._debug("connection token refreshed"),!J._isConnected())return;let G={refresh:{token:J._token}};J._call(G,!1).then((Q)=>{let X=Q.reply.refresh;if(J._refreshResponse(X),Q.next)Q.next()},(Q)=>{if(J._refreshError(Q.error),Q.next)Q.next()})}).catch(function(Y){if(!J._isConnected())return;if(Y instanceof I1){J._failUnauthorized();return}J.emit("error",{type:"refreshToken",error:{code:_.clientRefreshToken,message:Y!==void 0?Y.toString():""}}),J._refreshTimeout=setTimeout(()=>J._refresh(),J._getRefreshRetryDelay())})}_refreshError(Z){if(Z.code<100||Z.temporary===!0)this.emit("error",{type:"refresh",error:Z}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay());else this._disconnect(Z.code,Z.message,!1)}_getRefreshRetryDelay(){return n5(0,5000,1e4)}_refreshResponse(Z){if(this._refreshTimeout)clearTimeout(this._refreshTimeout),this._refreshTimeout=null;if(Z.expires)this._client=Z.client,this._refreshTimeout=setTimeout(()=>this._refresh(),o5(Z.ttl))}_removeSubscription(Z){if(Z===null)return;delete this._subs[Z.channel]}_unsubscribe(Z){if(!this._transportIsOpen)return Promise.resolve();let Y={unsubscribe:{channel:Z.channel}},G=this;return new Promise((X,W)=>{this._call(Y,!1).then((H)=>{if(X(),H.next)H.next()},(H)=>{if(X(),H.next)H.next();G._disconnect(c1.unsubscribeError,"unsubscribe error",!0)})})}_getSub(Z,J){if(J&&J>0){for(let G in this._subs)if(this._subs.hasOwnProperty(G)){let Q=this._subs[G];if(Q._id===J)return Q}return null}let Y=this._subs[Z];if(!Y)return null;return Y}_isServerSub(Z){return this._serverSubs[Z]!==void 0}_sendSubscribeCommands(){let Z=[];for(let J in this._subs){if(!this._subs.hasOwnProperty(J))continue;let Y=this._subs[J];if(Y._inflight===!0)continue;if(Y.state===o.Subscribing){let G=Y._subscribe();if(G)Z.push(G)}}return Z}_connectResponse(Z){if(this._transportIsOpen=!0,this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;if(this._client=Z.client,this._setState(h.Connected),this._refreshTimeout)clearTimeout(this._refreshTimeout);if(Z.expires)this._refreshTimeout=setTimeout(()=>this._refresh(),o5(Z.ttl));this._session=Z.session,this._node=Z.node,this.startBatching(),this._sendSubscribeCommands(),this.stopBatching();let J={client:Z.client,transport:this._transport.subName()};if(Z.data)J.data=Z.data;if(this.emit("connected",J),this._resolvePromises(),this._processServerSubs(Z.subs||{}),Z.ping&&Z.ping>0)this._serverPing=Z.ping*1000,this._sendPong=Z.pong===!0,this._waitServerPing();else this._serverPing=0}_processServerSubs(Z){for(let J in Z){if(!Z.hasOwnProperty(J))continue;let Y=Z[J];this._serverSubs[J]={offset:Y.offset,epoch:Y.epoch,recoverable:Y.recoverable||!1};let G=this._getSubscribeContext(J,Y);this.emit("subscribed",G)}for(let J in Z){if(!Z.hasOwnProperty(J))continue;let Y=Z[J];if(Y.recovered){let G=Y.publications;if(G&&G.length>0){for(let Q in G)if(G.hasOwnProperty(Q))this._handlePublication(J,G[Q])}}}for(let J in this._serverSubs){if(!this._serverSubs.hasOwnProperty(J))continue;if(!Z[J])this.emit("unsubscribed",{channel:J}),delete this._serverSubs[J]}}_clearRefreshTimeout(){if(this._refreshTimeout!==null)clearTimeout(this._refreshTimeout),this._refreshTimeout=null}_clearReconnectTimeout(){if(this._reconnectTimeout!==null)clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null}_clearServerPingTimeout(){if(this._serverPingTimeout!==null)clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null}_waitServerPing(){if(this._config.maxServerPingDelay===0)return;if(!this._isConnected())return;this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout(()=>{if(!this._isConnected())return;this._disconnect(c1.noPing,"no ping",!0)},this._serverPing+this._config.maxServerPingDelay)}_getSubscribeContext(Z,J){let Y={channel:Z,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1,hasRecoveredPublications:!1};if(J.recovered)Y.recovered=!0;if(J.positioned)Y.positioned=!0;if(J.recoverable)Y.recoverable=!0;if(J.was_recovering)Y.wasRecovering=!0;let G="";if("epoch"in J)G=J.epoch;let Q=0;if("offset"in J)Q=J.offset;if(Y.positioned||Y.recoverable)Y.streamPosition={offset:Q,epoch:G};if(Array.isArray(J.publications)&&J.publications.length>0)Y.hasRecoveredPublications=!0;if(J.data)Y.data=J.data;return Y}_handleReply(Z,J){let Y=Z.id;if(!(Y in this._callbacks)){J();return}let G=this._callbacks[Y];if(clearTimeout(this._callbacks[Y].timeout),delete this._callbacks[Y],!eB(Z)){let Q=G.callback;if(!Q)return;Q({reply:Z,next:J})}else{let Q=G.errback;if(!Q){J();return}let X={code:Z.error.code,message:Z.error.message||"",temporary:Z.error.temporary||!1};Q({error:X,next:J})}}_handleJoin(Z,J,Y){let G=this._getSub(Z,Y);if(!G&&Z){if(this._isServerSub(Z)){let Q={channel:Z,info:this._getJoinLeaveContext(J.info)};this.emit("join",Q)}return}G._handleJoin(J)}_handleLeave(Z,J,Y){let G=this._getSub(Z,Y);if(!G&&Z){if(this._isServerSub(Z)){let Q={channel:Z,info:this._getJoinLeaveContext(J.info)};this.emit("leave",Q)}return}G._handleLeave(J)}_handleUnsubscribe(Z,J){let Y=this._getSub(Z,0);if(!Y&&Z){if(this._isServerSub(Z))delete this._serverSubs[Z],this.emit("unsubscribed",{channel:Z});return}if(J.code<2500)Y._setUnsubscribed(J.code,J.reason,!1);else Y._setSubscribing(J.code,J.reason)}_handleSubscribe(Z,J){this._serverSubs[Z]={offset:J.offset,epoch:J.epoch,recoverable:J.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(Z,J))}_handleDisconnect(Z){let J=Z.code,Y=!0;if(J>=3500&&J<4000||J>=4500&&J<5000)Y=!1;this._disconnect(J,Z.reason,Y)}_getPublicationContext(Z,J){let Y={channel:Z,data:J.data};if(J.offset)Y.offset=J.offset;if(J.info)Y.info=this._getJoinLeaveContext(J.info);if(J.tags)Y.tags=J.tags;return Y}_getJoinLeaveContext(Z){let J={client:Z.client,user:Z.user},Y=Z.conn_info;if(Y)J.connInfo=Y;let G=Z.chan_info;if(G)J.chanInfo=G;return J}_handlePublication(Z,J,Y){let G=this._getSub(Z,Y);if(!G&&Z){if(this._isServerSub(Z)){let Q=this._getPublicationContext(Z,J);if(this.emit("publication",Q),J.offset!==void 0)this._serverSubs[Z].offset=J.offset}return}G._handlePublication(J)}_handleMessage(Z){this.emit("message",{data:Z.data})}_handleServerPing(Z){if(this._sendPong){let J={};this._transportSendCommands([J])}Z()}_handlePush(Z,J){let{channel:Y,id:G}=Z;if(Z.pub)this._handlePublication(Y,Z.pub,G);else if(Z.message)this._handleMessage(Z.message);else if(Z.join)this._handleJoin(Y,Z.join,G);else if(Z.leave)this._handleLeave(Y,Z.leave,G);else if(Z.unsubscribe)this._handleUnsubscribe(Y,Z.unsubscribe);else if(Z.subscribe)this._handleSubscribe(Y,Z.subscribe);else if(Z.disconnect)this._handleDisconnect(Z.disconnect);J()}_flush(){let Z=this._commands.slice(0);this._commands=[],this._transportSendCommands(Z)}_createErrorObject(Z,J,Y){let G={code:Z,message:J};if(Y)G.temporary=!0;return G}_registerCall(Z,J,Y){this._callbacks[Z]={callback:J,errback:Y,timeout:null},this._callbacks[Z].timeout=setTimeout(()=>{if(delete this._callbacks[Z],qY(Y))Y({error:this._createErrorObject(_.timeout,"timeout")})},this._config.timeout)}_addCommand(Z){if(this._batching)this._commands.push(Z);else this._transportSendCommands([Z])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(let Z in this._promises){if(!this._promises.hasOwnProperty(Z))continue;if(this._promises[Z].timeout)clearTimeout(this._promises[Z].timeout);this._promises[Z].resolve(),delete this._promises[Z]}}_rejectPromises(Z){for(let J in this._promises){if(!this._promises.hasOwnProperty(J))continue;if(this._promises[J].timeout)clearTimeout(this._promises[J].timeout);this._promises[J].reject(Z),delete this._promises[J]}}}J0.SubscriptionState=o;J0.State=h;J0.UnauthorizedError=I1;var s5=(Z,J)=>{async function Y(){let G=await fetch(Z+"api/centrifuge/gen_token");if(!G.ok){if(G.status===403)throw new J0.UnauthorizedError("Backend is not answering");throw Error(`Unexpected status code ${G.status}`)}return(await G.json()).token}return J?new J0(J||"",{getToken:Y}):null},XK=QK(null),p1=XK;import{useContext as HK,useEffect as zK}from"react";import{useEffect as WK,useState as EY}from"react";function r5(Z,J){let[Y,G]=EY(null),[Q,X]=EY(!1);return WK(()=>{if(!Q)X(!0),fetch(Z+`api/support/${J}`,{method:"GET"}).then((W)=>W.json()).then((W)=>{G(W)})},[]),Y}var UK=({children:Z})=>{let J=HK(d1),Y=k1(),G=r5(Y,"socketIO"),Q=(X)=>{if(typeof window<"u")window.sid=X.sid,console.log(`SocketIO initialized: ${window.sid}`)};return zK(()=>{if(!J)return;let X=()=>{console.log("SocketIO connected")},W=(H)=>{console.log(`SocketIO disconnected: ${H}`),J.connect()};if(G)J.on("pieinit",Q),J.on("connect",X),J.on("disconnect",W),J.connect();return()=>{if(G)J.off("pieinit",Q),J.off("connect",X),J.off("disconnect",W),J.disconnect()}},[J,G]),Z},t5=UK;import{useContext as BK,useEffect as KK}from"react";var LK=({children:Z})=>{let J=BK(p1),Y=k1(),G=r5(Y,"centrifuge");return KK(()=>{if(!J)return;let Q=()=>{console.log("Centrifuge connected")},X=(W)=>{console.log("Centrifuge disconnected:",W)};if(G)J.on("connected",Q),J.on("disconnected",X),J.connect();return()=>{if(G)J.disconnect()}},[J,G]),Z},e5=LK;var fX=S(S9(),1);import{useContext as x9,useEffect as C9}from"react";var GM=({card:Z,data:J,children:Y,useSocketioSupport:G=!1,useCentrifugeSupport:Q=!1,useMittSupport:X=!1,centrifugeChannel:W=void 0,methods:H=void 0})=>{let z=h1();if(z)console.log("[PieCard] Rendering card:",Z),console.log("[PieCard] Card data:",J),console.log("[PieCard] Component name:",J?.name),console.log("[PieCard] Real-time support:",{socketio:G,centrifuge:Q,mitt:X,centrifugeChannel:W}),console.log("[PieCard] Methods:",H?Object.keys(H):"none"),console.log("[PieCard] Has children:",!!Y);let U=x9(d1),B=x9(p1),L=x9(m1);if(C9(()=>{if(!U||!G||!H||!J.name){if(z&&G)console.log("[PieCard] Socket.IO setup skipped:",{hasSocket:!!U,useSocketioSupport:G,hasMethods:!!H,hasDataName:!!J?.name});return}return Object.entries(H).forEach(([F,M])=>{let K=`pie${F}_${J.name}`;if(z)console.log(`[PieCard] Socket.IO registering event: ${K}`);U.on(K,M)}),()=>{Object.entries(H).forEach(([F,M])=>{let K=`pie${F}_${J.name}`;if(z)console.log(`[PieCard] Socket.IO unregistering event: ${K}`);U.off(K,M)})}},[U,H,J.name]),C9(()=>{if(!B||!Q||!W||!H||!J.name){if(z&&Q)console.log("[PieCard] Centrifuge setup skipped:",{hasCentrifuge:!!B,useCentrifugeSupport:Q,hasCentrifugeChannel:!!W,hasMethods:!!H,hasDataName:!!J?.name});return}let F=Object.entries(H).map(([M,K])=>{let $=`pie${M}_${J.name}_${W}`;if(z)console.log(`[PieCard] Centrifuge subscribing to channel: ${$}`);let V=B.newSubscription($);return V.on("publication",(N)=>{if(z)console.log(`[PieCard] Centrifuge received data on ${$}:`,N.data);K(N.data)}),V.subscribe(),V});return()=>{F.forEach((M)=>{if(z)console.log("[PieCard] Centrifuge unsubscribing from channel");M.unsubscribe(),B.removeSubscription(M)})}},[B,W,H,J.name]),C9(()=>{if(!L||!X||!H||!J.name){if(z&&X)console.log("[PieCard] Mitt setup skipped:",{hasMitt:!!L,useMittSupport:X,hasMethods:!!H,hasDataName:!!J?.name});return}return Object.entries(H).forEach(([F,M])=>{let K=`pie${F}_${J.name}`;if(z)console.log(`[PieCard] Mitt registering event: ${K}`);L.on(K,M)}),()=>{Object.entries(H).forEach(([F,M])=>{let K=`pie${F}_${J.name}`;if(z)console.log(`[PieCard] Mitt unregistering event: ${K}`);L.off(K,M)})}},[L,H,J.name]),z)console.log("[PieCard] Rendering complete, returning children");return Y},s=GM;function $6(Z){if(!Z)return{};let J={...Z};if("animationName"in J&&typeof J.animationName==="object"){let Y="radiumAnimation_"+Math.random().toString(36).substring(2,8);J.animationName=e.keyframes(J.animationName,Y)}return J}import{jsx as f9}from"react/jsx-runtime";var QM=({data:Z,content:J,setUiAjaxConfiguration:Y})=>{let{name:G,sx:Q}=Z;return f9(s,{card:G,data:Z,children:f9("div",{style:$6(Q),id:G,children:J.map((X,W)=>{return f9(Y1,{uiConfig:X,setUiAjaxConfiguration:Y},`children-${W}`)})})})},iG=e(QM);import{jsx as nG}from"react/jsx-runtime";var XM=({data:Z,content:J,setUiAjaxConfiguration:Y})=>{let{name:G}=Z;return nG(s,{card:G,data:Z,children:J.map((Q,X)=>{return nG(Y1,{uiConfig:Q,setUiAjaxConfiguration:Y},`children-${X}`)})})},oG=XM;import{useContext as aG,useEffect as WM,useRef as HM,useState as sG}from"react";import{jsx as rG}from"react/jsx-runtime";var zM=({data:Z,content:J})=>{let{useLoader:Y,noReturn:G,returnType:Q,useSocketioSupport:X,useCentrifugeSupport:W,useMittSupport:H,centrifugeChannel:z}=Z,U=aG(v1),[B,L]=sG(!1),[F,M]=sG(null),K=HM(J),$=aG(m1),V=(D)=>{if(D===null)L(!0);else if(L(!1),!G)K.current=D;if(!G)M(D)},N=(D)=>{K.current=D.content,M(D.content)},P=(D)=>{if(D===null)L(!0);else if(L(!1),!G)for(let q of D)$.emit(q.name,q.data)};if(WM(()=>{M(J),L(!1)},[J]),!F&&Y)return U;return rG(s,{card:"AjaxGroupCard",data:Z,methods:{changeContent:N},useSocketioSupport:X,useCentrifugeSupport:W,useMittSupport:H,centrifugeChannel:z,children:rG(Y1,{uiConfig:F??K.current,setUiAjaxConfiguration:Q==="events"?P:V})})},tG=e(zM);function j9(Z=1000){return new Promise((J)=>{if(typeof window>"u"){J();return}let Y=()=>{if(typeof window.sid<"u")J();else setTimeout(Y,Z)};Y()})}import{useMemo as UM}from"react";var BM=(Z,J={},Y=[],G,Q)=>{let X=Q?.renderingLogEnabled??!1,W=Q?.apiServer??"";if(X)console.log("Registering AJAX: ",G,J,Y);if(!G||!Z){if(X)console.warn("Registration FAILED: pathname or setUiAjaxConfiguration is missing!");return()=>{}}return async(H={})=>{if(typeof window>"u"||typeof document>"u"){if(X)console.warn("getAjaxSubmit called on server, skipping DOM-dependent logic");return}if(Y.includes("sid"))await j9();let z=new FormData;for(let[B,L]of Object.entries({...J,...H}))z.append(B,L);for(let B of Y)if(B==="sid"){if(!window.sid)throw Error("SocketIO isn't initialized properly");z.append("sid",window.sid)}else{let L=document.getElementsByName(B);if(!L.length){if(X)console.warn(`No input found with name ${B}`);continue}let F=L[0];if(F instanceof HTMLInputElement)if(F.type==="file"&&F.files)Array.from(F.files).forEach((M)=>z.append(B,M));else z.append(B,F.value);else if(F instanceof HTMLTextAreaElement)z.append(B,F.value)}let U=W+"api/ajax_content"+G;return Z(null),await fetch(U,{method:"POST",body:z}).then(async(B)=>{let F=(B.headers.get("content-type")||"").includes("application/json");if(!!B.body?.getReader&&!F){let K=B.body.getReader(),$=new TextDecoder,V="";while(!0){let{done:N,value:P}=await K.read();if(N)break;V+=$.decode(P,{stream:!0});let D=V.split(`
|
|
29
|
+
`);V=D.pop()??"";for(let q of D){let T=q.trim();if(!T)continue;try{let C=JSON.parse(T);Z([C])}catch(C){if(X)console.warn("Failed to parse streamed line:",T)}}}if(V.trim())try{let N=JSON.parse(V);Z([N])}catch(N){if(X)console.warn("Failed to parse final streamed line:",V)}return{}}else{let K=await B.json();return Z(K),K}}).catch((B)=>{if(X)console.error("AJAX request failed:",B);return Z(null),B})}},Y5=(Z,J={},Y=[],G)=>{let{apiServer:Q,enableRenderingLog:X}=H0();return UM(()=>BM(Z,J,Y,G,{apiServer:Q,renderingLogEnabled:X}),[Z,J,Y,G,Q,X])};var e9=S(t9(),1),X0=S(t9(),1),P0=e9.default.default||e9.default;import{jsx as Z7,jsxs as H$}from"react/jsx-runtime";var W$=({data:Z,setUiAjaxConfiguration:J})=>{let{name:Y,title:G,iconUrl:Q,iconPosition:X,sx:W,pathname:H,kwargs:z,depsNames:U}=Z,B=Y5(J,z,U,H);return Z7(s,{card:"AjaxButtonCard",data:Z,children:H$("button",{id:Y,className:"box-border flex min-h-12 w-full min-w-min cursor-pointer items-center justify-center rounded-[16px] border border-[#080318] bg-white text-center font-[TTForsTrial] text-[#080318] hover:bg-neutral-300",value:Y,onClick:()=>B(),style:$6(W),type:"button",children:[Q&&X==="start"&&Z7("img",{src:Q,alt:""}),P0(G),Q&&X==="end"&&Z7("img",{src:Q,alt:""})]})})},YX=e(W$);import{forwardRef as x$,useEffect as IX,useImperativeHandle as C$,useRef as f$,useState as T6}from"react";import{useRef as z$,useState as U$}from"react";import{jsx as B$}from"react/jsx-runtime";function J7(Z){let[J,Y]=U$(!1),G=z$(null);return B$("textarea",{ref:G,...Z,onKeyUp:()=>{Y(!1)},onKeyDown:(H)=>{if(H.key==="Enter"&&H.shiftKey){if(Y(!0),G.current&&typeof window<"u"){let z=window.getComputedStyle(G.current),U=parseFloat(z.lineHeight);G.current.style.height=G.current.scrollHeight+U+"px"}}if(H.key==="Backspace"){if(Y(!0),G.current&&typeof window<"u"){let z=window.getComputedStyle(G.current),U=parseFloat(z.lineHeight);if(G.current.scrollHeight>U)G.current.style.height=G.current.scrollHeight-U+"px"}}Z.onKeyDown&&Z.onKeyDown(H)},onBlur:(H)=>{Y(!1),Z.onBlur&&Z.onBlur(H)},style:{resize:J?"vertical":"none",overflowY:"auto",...Z.style}})}import{useRef as L$,useCallback as M$}from"react";import{jsx as GX}from"react/jsx-runtime";var K$=()=>GX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:GX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5"})}),QX=K$;import{jsx as Y7}from"react/jsx-runtime";var $$=({type:Z="button",onClick:J,icons:Y})=>{let G=L$(null),Q=M$(()=>{let W=G.current;if(W)W.style.transform="scale(0.8)",setTimeout(()=>{W.style.transform="scale(1)"},600)},[]);return Y7("button",{ref:G,type:Z,onClick:(W)=>{if(J)J(W);Q()},className:"mr-1.5 rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",style:{transition:"transform 300ms ease"},children:Y.sendIcon?Y7("img",{src:Y.sendIcon,alt:""}):Y7(QX,{})})},XX=$$;import{jsx as WX}from"react/jsx-runtime";var F$=()=>WX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:WX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.375 12.739l-7.693 7.693a4.5 4.5 0 01-6.364-6.364l10.94-10.94A3 3 0 1119.5 7.372L8.552 18.32m.009-.01l-.01.01m5.699-9.941l-7.81 7.81a1.5 1.5 0 002.112 2.13"})}),HX=F$;import{jsx as A6,jsxs as I$,Fragment as V$}from"react/jsx-runtime";var O$=({name:Z,accept:J,fileInputRef:Y,onSelectFile:G,icons:Q})=>{return I$(V$,{children:[A6("button",{className:"rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",type:"button",onClick:()=>{if(Y.current)Y.current.click()},children:Q.attachFileIcon?A6("img",{src:Q.attachFileIcon,alt:""}):A6(HX,{})}),A6("input",{id:Z+"__pie__file",name:Z+"__pie__file",className:"hidden",type:"file",accept:J,ref:Y,onChange:(X)=>{if(X.target.files)G(X.target.files[0])}})]})},zX=O$;import{jsx as UX}from"react/jsx-runtime";var q$=()=>UX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5 text-gray-500",children:UX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),BX=q$;import{jsx as KX}from"react/jsx-runtime";var D$=()=>KX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:KX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})}),R6=D$;import{jsx as K5,jsxs as A$}from"react/jsx-runtime";var N$=({name:Z,selectedFile:J,onDropFile:Y})=>{return A$("div",{className:"flex w-full cursor-default flex-row items-center gap-2",children:[K5(BX,{}),K5("span",{className:"flex-1",children:J.name}),K5("input",{type:"hidden",name:Z,value:""}),K5("button",{className:"rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",type:"button",onClick:Y,children:K5(R6,{})})]})},LX=N$;import{jsx as MX,jsxs as P$}from"react/jsx-runtime";var R$=()=>P$("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:[MX("path",{d:"M8 5C8 2.79086 9.79086 1 12 1C14.2091 1 16 2.79086 16 5V12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12V5Z"}),MX("path",{d:"M6.25 11.8438V12C6.25 13.525 6.8558 14.9875 7.93414 16.0659C9.01247 17.1442 10.475 17.75 12 17.75C13.525 17.75 14.9875 17.1442 16.0659 16.0659C17.1442 14.9875 17.75 13.525 17.75 12V11.8438C17.75 11.2915 18.1977 10.8438 18.75 10.8438H19.25C19.8023 10.8438 20.25 11.2915 20.25 11.8437V12C20.25 14.188 19.3808 16.2865 17.8336 17.8336C16.5842 19.0831 14.9753 19.8903 13.25 20.1548V22C13.25 22.5523 12.8023 23 12.25 23H11.75C11.1977 23 10.75 22.5523 10.75 22V20.1548C9.02471 19.8903 7.41579 19.0831 6.16637 17.8336C4.61919 16.2865 3.75 14.188 3.75 12V11.8438C3.75 11.2915 4.19772 10.8438 4.75 10.8438H5.25C5.80228 10.8438 6.25 11.2915 6.25 11.8438Z"})]}),$X=R$;import{jsx as L5}from"react/jsx-runtime";var T$=({isListening:Z,toggleListening:J,icons:Y})=>{return L5("button",{className:"rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",type:"button",onClick:J,children:Z?Y.cancelIcon?L5("img",{src:Y.cancelIcon,alt:""}):L5(R6,{}):Y.voiceRecordingIcon?L5("img",{src:Y.voiceRecordingIcon,alt:""}):L5($X,{})})},FX=T$;import{jsx as OX,jsxs as E$}from"react/jsx-runtime";var w$=({option:Z,onClickOption:J})=>{return E$("div",{className:"flex w-fit cursor-pointer flex-row place-content-center items-center gap-1 rounded-md border border-black bg-white px-2 py-1 text-black",onClick:()=>{J(Z.title)},style:Z.sx,children:[Z.iconPosition==="start"&&OX("img",{src:Z.iconUrl,alt:""}),Z.title,Z.iconPosition==="end"&&OX("img",{src:Z.iconUrl,alt:""})]})},P6=w$;import{jsx as VX}from"react/jsx-runtime";var S$=({options:Z,handleOptionClick:J})=>{return VX("div",{className:"flex w-full flex-row flex-wrap justify-start gap-[5px]",children:Z.map((Y,G)=>{return VX(P6,{option:Y,onClickOption:J},G)})})},G7=S$;import{jsx as S1,jsxs as qX}from"react/jsx-runtime";var j$=x$(({name:Z,defaultValue:J,defaultOptions:Y,isArea:G,placeholder:Q,fileAccept:X,optionsPosition:W,icons:H,handleOptionClick:z,handleSendMessage:U,sx:B},L)=>{let F=f$(null),[M,K]=T6(null),[$,V]=T6(J),[N,P]=T6(Y),[D,q]=T6(!1);C$(L,()=>({clear:()=>{if(V(""),K(null),F.current)F.current.value=""},setValue:(C)=>V(C),setOptions:(C)=>P(C)})),IX(()=>{V(J)},[J]),IX(()=>{},[]);let T=()=>{};return qX("div",{className:"flex flex-col items-center gap-[0.1rem]",id:Z+"_chat_input",style:B,children:[N&&W==="top"&&S1(G7,{options:N,handleOptionClick:z}),S1("div",{className:"stretch relative flex size-full flex-1 flex-row items-stretch gap-3 last:mb-2 md:mx-4 md:flex-col md:last:mb-6 lg:mx-auto",children:qX("div",{className:"flex w-full grow flex-row items-center rounded-md bg-transparent",children:[M?S1(LX,{name:Z,selectedFile:M,onDropFile:()=>{if(K(null),F.current)F.current.value=""}}):!G?S1("input",{name:Z,value:$,onChange:(C)=>V(C.target.value),onKeyDown:(C)=>{if(C.key==="Enter")C.preventDefault(),U()},tabIndex:0,placeholder:Q,className:"m-0 w-full resize-none border-0 bg-transparent outline-none",style:{maxHeight:200,height:"100%",overflowY:"hidden"}}):S1(J7,{name:Z,value:$,onChange:(C)=>V(C.target.value),onKeyDown:(C)=>{if(C.key==="Enter"&&!C.shiftKey)C.preventDefault(),U()},tabIndex:0,rows:2,placeholder:Q,className:"m-0 w-full resize-none border-0 bg-transparent p-0 pl-2 pr-7 outline-none md:pl-0",style:{maxHeight:200,height:"100%",minHeight:24}}),S1(FX,{isListening:D,toggleListening:T,icons:H}),S1(zX,{name:Z,fileInputRef:F,accept:X,onSelectFile:K,icons:H}),S1(XX,{onClick:U,icons:H})]})}),N&&W==="bottom"&&S1(G7,{options:N,handleOptionClick:z})]})}),DX=j$;import{useState as y$,useEffect as m$}from"react";import{useEffect as _$,useState as v$}from"react";import{jsx as h$}from"react/jsx-runtime";function k$({children:Z}){let[J,Y]=v$(Z);return _$(()=>{Y(Z)},[Z]),h$("div",{className:"max-w-full first:mt-0",children:J})}var NX=k$;import{jsx as AX}from"react/jsx-runtime";var b$=()=>AX("svg",{width:"30",height:"30",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:AX("path",{d:"m 8 1 c -1.65625 0 -3 1.34375 -3 3 s 1.34375 3 3 3 s 3 -1.34375 3 -3 s -1.34375 -3 -3 -3 z m -1.5 7 c -2.492188 0 -4.5 2.007812 -4.5 4.5 v 0.5 c 0 1.109375 0.890625 2 2 2 h 8 c 1.109375 0 2 -0.890625 2 -2 v -0.5 c 0 -2.492188 -2.007812 -4.5 -4.5 -4.5 z m 0 0",fill:"#2e3436"})}),RX=b$;import{jsx as w6}from"react/jsx-runtime";function g$({username:Z,avatar:J}){return w6("div",{className:"w-[30px]",children:w6("div",{className:"relative flex size-[30px] items-center justify-center rounded-sm p-1 text-white",children:J?w6("img",{src:J,className:"absolute inset-0 rounded",alt:Z}):w6(RX,{})})})}var Q7=g$;import{jsx as N1,jsxs as PX}from"react/jsx-runtime";var u$=({message:Z,handleOptionClick:J,setUiAjaxConfiguration:Y})=>{let[G,Q]=y$(!1);return m$(()=>{let X=setTimeout(()=>{if(G)Q(!1)},1000);return()=>clearTimeout(X)},[G]),N1("div",{className:"group w-full border-b border-black/10",id:Z.id,children:PX("div",{className:`flex gap-4 p-4 text-base md:max-w-2xl md:gap-6 md:py-6 lg:max-w-3xl xl:max-w-5xl ${Z.align==="center"?"m-auto":""} ${Z.align==="right"?"ml-auto justify-end":""} ${Z.align==="left"?"mr-auto":""} `,children:[(Z.align==="left"||Z.align==="center")&&N1("div",{className:"relative flex shrink-0 flex-col items-end",children:N1(Q7,{username:Z.username,avatar:Z.avatar})}),PX("div",{className:"relative flex w-[calc(100%-50px)] flex-col gap-1 md:gap-3 lg:w-[calc(100%-115px)]",children:[N1("div",{className:`markdown light prose w-full break-words dark:prose-invert first:mt-0 ${Z.align==="right"?"flex justify-end self-end":""}`,children:typeof Z.content==="string"?Z.parseMode.toLowerCase()==="markdown"?N1(NX,{children:Z.content},Date.now()+Math.random()):Z.parseMode.toLowerCase()==="html"?P0(Z.content):Z.content:N1(Y1,{uiConfig:Z.content,setUiAjaxConfiguration:Y})}),N1("div",{className:"flex flex-row flex-wrap justify-start gap-1",children:Z.options.map((X,W)=>N1(P6,{onClickOption:J,option:X},W))})]}),Z.align==="right"&&N1("div",{className:"relative flex shrink-0 flex-col items-end",children:N1(Q7,{username:Z.username,avatar:Z.avatar})})]})})},TX=u$;import{forwardRef as d$,useEffect as c$,useImperativeHandle as p$,useRef as l$,useState as i$}from"react";import{jsx as wX}from"react/jsx-runtime";var n$=d$(({name:Z,handleOptionClick:J,defaultMessages:Y,sx:G,setUiAjaxConfiguration:Q},X)=>{let[W,H]=i$(Y),z=l$(null),U=()=>{if(z.current)z.current.scrollTop=z.current.scrollHeight};return c$(()=>{U()},[W]),p$(X,()=>({setMessages:(B)=>H(B),addMessage:(B)=>H((L)=>[...L,B]),scrollToBottom:U})),wX("div",{id:Z+"_messages",className:"flex flex-col items-center overflow-y-scroll",style:G,ref:z,children:W.map((B)=>wX(TX,{message:B,handleOptionClick:J,setUiAjaxConfiguration:Q},B.id))})}),EX=n$;import{useEffect as o$,useRef as SX,useState as a$}from"react";import{jsx as X7,jsxs as r$}from"react/jsx-runtime";var s$=({data:Z,setUiAjaxConfiguration:J})=>{let{name:Y,defaultValue:G,defaultMessages:Q,defaultOptions:X,isArea:W,fileAccept:H,placeholder:z,icons:U,optionsPosition:B,sxMap:L={container:{},chatInput:{},messages:{}},depsNames:F,pathname:M,kwargs:K,useSocketioSupport:$,useCentrifugeSupport:V,centrifugeChannel:N}=Z,P=SX(null),D=SX(null),[q,T]=a$(!1),C=Y5(J,K,F,M);o$(()=>{if(q)requestAnimationFrame(()=>{C(),T(!1)})},[q]);let m=(c)=>{if(P.current)P.current.setValue(c),T(!0)},n1=()=>{if(P.current)P.current.clear()},C1=(c)=>{if(P.current)P.current.setOptions(c.options)},f1=(c)=>{if(D.current)D.current.addMessage(c.message)},v=(c)=>{if(D.current)D.current.setMessages(c.messages)},A1=()=>{T(!0)};return X7(s,{card:"ChatCard",data:Z,methods:{clearInput:n1,setOptions:C1,addMessage:f1,setMessages:v},useSocketioSupport:$,useCentrifugeSupport:V,centrifugeChannel:N,children:r$("div",{className:"flex size-full flex-col",style:L.container,children:[X7(EX,{ref:D,name:Y,defaultMessages:Q,sx:L.messages,handleOptionClick:m,setUiAjaxConfiguration:J}),X7(DX,{ref:P,name:Y,isArea:W,defaultOptions:X,placeholder:z,defaultValue:G,fileAccept:H,sx:L.chatInput,handleSendMessage:A1,handleOptionClick:m,optionsPosition:B,icons:U})]})})},xX=s$;import{useEffect as t$,useState as e$}from"react";import{jsx as CX}from"react/jsx-runtime";var ZF=({data:Z})=>{let{name:J,value:Y,useSocketioSupport:G,useCentrifugeSupport:Q,useMittSupport:X,centrifugeChannel:W}=Z,[H,z]=e$(Y);return t$(()=>{z(Y)},[Y]),CX(s,{card:"HiddenCard",data:Z,useSocketioSupport:G,useCentrifugeSupport:Q,useMittSupport:X,centrifugeChannel:W,methods:{update:({value:U})=>{z(U)}},children:CX("input",{type:"hidden",id:J,name:J,value:H})})},W7=ZF;import{useContext as GF,useEffect as QF}from"react";import{createContext as JF}from"react";var YF=JF(void 0),T0=YF;import{jsx as HF,Fragment as WF}from"react/jsx-runtime";var XF=({data:Z})=>{let{url:J}=Z,Y=GF(T0);return QF(()=>{if(/^[a-zA-Z][a-zA-Z\d+\-.]*:\/\//.test(J))window.location.href=J;else Y?.(J)},[J,Y]),HF(WF,{})},H7=XF;import{useEffect as KF,useState as LF}from"react";import{useCallback as E6,useEffect as zF,useRef as z7,useState as UF}from"react";function BF(){let Z=new AudioContext,J=Z.createOscillator(),Y=J.connect(Z.createMediaStreamDestination());J.start();let G=Y.stream.getAudioTracks()[0];return G.enabled=!1,G}function U7(Z=null,J){let[Y,G]=UF(!1),Q=z7(null),X=z7(null),W=z7(null),H=E6(async(L,F=!0)=>{if(Q.current)z();let M=new RTCPeerConnection;if(M.onconnectionstatechange=()=>{if(M.connectionState==="connected")G(!0);else if(["disconnected","failed","closed"].includes(M.connectionState))G(!1)},M.ontrack=(q)=>{if(Z)Z.srcObject=q.streams[0]},F){let q=await navigator.mediaDevices.getUserMedia({audio:!0});M.addTrack(q.getTracks()[0],q)}else{let q=BF();M.addTrack(q)}let K=M.createDataChannel("oai-events");X.current=K,W.current=new Promise((q)=>{K.addEventListener("open",()=>{q()})});let $=await M.createOffer();await M.setLocalDescription($);let D=await(await fetch(`${"https://api.openai.com/v1/realtime/calls"}?model=${"gpt-realtime"}`,{method:"POST",body:$.sdp,headers:{Authorization:`Bearer ${L}`,"Content-Type":"application/sdp"}})).text();await M.setRemoteDescription({type:"answer",sdp:D}),Q.current=M,await W.current},[Z]),z=E6(()=>{let L=X.current;if(L)L.close();Q.current?.getSenders()?.forEach((F)=>F.track?.stop()),Q.current?.close(),G(!1),Q.current=null,X.current=null,W.current=null},[Z]),U=E6((L)=>{let F=X.current;if(!F){console.error("Data channel is not ready",L);return}let M=new Date().toLocaleTimeString();if(L.event_id=L.event_id||crypto.randomUUID(),F.send(JSON.stringify(L)),!L.timestamp)L.timestamp=M;J?.(L)},[J,Z]),B=E6((L)=>{if(!X.current){console.error("Data channel is not ready");return}let M=()=>{U({type:"conversation.item.create",item:{type:"message",role:"user",content:[{type:"input_text",text:L}]}}),U({type:"response.create"})};if(W.current)W.current.then(M);else M()},[J,Z]);return zF(()=>{let L=X.current;if(!L)return;let F=(M)=>{let K=JSON.parse(M.data);if(!K.timestamp)K.timestamp=new Date().toLocaleTimeString();J?.(K)};return L.addEventListener("message",F),()=>{L.removeEventListener("message",F)}},[J,Z]),{isSessionActive:Y,startSession:H,stopSession:z,sendTextMessage:B}}import{jsx as $F}from"react/jsx-runtime";var MF=({data:Z})=>{let{html:J,useSocketioSupport:Y,useCentrifugeSupport:G,useMittSupport:Q,centrifugeChannel:X}=Z,[W,H]=LF(J),{isSessionActive:z,startSession:U,sendTextMessage:B}=U7(null,(K)=>{if(console.log(K.type,K.type==="response.output_text.delta"&&K.delta),K.type==="response.output_text.delta"&&K.delta)H(($)=>$+K.delta)});return KF(()=>{H(J)},[J]),$F(s,{card:"HTMLEmbedCard",data:Z,methods:{update:(K)=>{H(K.value)},generateUsingAI:async(K)=>{try{if(!z&&K.token)await U(K.token,!1);B(K.prompt)}catch($){console.error("Failed to generate using AI",$)}},initializeAI:async(K)=>{if(!z&&K.token)await U(K.token,!1)}},useCentrifugeSupport:G,useSocketioSupport:Y,useMittSupport:Q,centrifugeChannel:X,children:P0(W)})},B7=e(MF);var K7=!1;function M5(){if(K7)return;F1({name:"SequenceCard",component:iG,metadata:{author:"PieData",description:"Simple div with styles joining few components"}}),F1({name:"UnionCard",component:oG,metadata:{author:"PieData",description:"Renders one of many components"}}),F1({name:"AjaxGroupCard",component:tG,metadata:{author:"PieData",description:"Group card with AJAX support"}}),F1({name:"AjaxButtonCard",component:YX,metadata:{author:"PieData",description:"Button with AJAX support"}}),F1({name:"ChatCard",component:xX,metadata:{author:"PieData"}}),F1({name:"HiddenCard",component:W7,metadata:{author:"PieData"}}),F1({name:"AutoRedirectCard",component:H7,metadata:{author:"PieData"}}),F1({name:"HTMLEmbedCard",component:B7,metadata:{author:"PieData"}}),K7=!0}function x1(){return K7}import{jsx as W1,Fragment as AF}from"react/jsx-runtime";var DF=({location:Z,fallback:J,onError:Y,initializePie:G})=>{let Q=k1(),X=F5(),W=h1();FF(()=>{if(x1())return;M5(),G()},[]);let H=OF(()=>fX.createAxiosDateTransformer({baseURL:Q||""}),[Q]),{data:z,isLoading:U,error:B}=qF({queryKey:["uiConfig",Z.pathname+Z.search,x1(),Q],queryFn:async()=>{if(!Q||!x1())return;let L="/api/content"+Z.pathname+Z.search;if(W)console.log("[PieRoot] Fetching UI configuration from:",L);let F=await H.get(L,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET,PUT,POST,DELETE,PATCH,OPTIONS","Content-type":"application/json"},withCredentials:!0});if(W)console.log("[PieRoot] Received UI configuration:",F.data);return F.data},staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!0,retryDelay:(L)=>Math.min(1000*2**L,30000)});if(!Q)return J??null;if(W)console.log("[PieRoot] Rendering with location:",Z),console.log("[PieRoot] API_SERVER:",Q),console.log("[PieRoot] Fallback provided:",!!J);if(B){if(W)console.error("[PieRoot] Error fetching UI configuration:",B),console.error("[PieRoot] Error details:",{message:B.message,status:B.response?.status,data:B.response?.data});return Y?.(),J}if(U||!z){if(W)console.log("[PieRoot] Loading state:",{isLoading:U,hasUiConfiguration:!!z});return J}if(W)console.log("[PieRoot] UI configuration loaded successfully:",z),console.log("[PieRoot] Rendering UI with configuration");return W1(m1.Provider,{value:v0,children:W1(d1.Provider,{value:c5(Q),children:W1(p1.Provider,{value:s5(Q,X),children:W1(v1.Provider,{value:J??W1(AF,{}),children:W1(t5,{children:W1(e5,{children:W1(e.StyleRoot,{style:{display:"contents"},children:W1(Y1,{uiConfig:z})})})})})})})})},NF=(Z)=>{let J=new VF;return W1(T0.Provider,{value:Z.onNavigate,children:W1(E0.Provider,{value:Z.config,children:W1(IF,{client:J,children:W1(DF,{...Z})})})})},RF=NF;import{useEffect as wF,useMemo as EF}from"react";import{QueryClient as SF,QueryClientProvider as xF,useQuery as CF}from"@tanstack/react-query";var _X=S(S9(),1);import{useEffect as PF,useState as TF}from"react";var jX=()=>{let[Z,J]=TF(null),Y=N7();return PF(()=>{if(typeof window>"u")return;let G=window.Telegram.WebApp;if(G.ready(),Y==="telegram_expanded"&&(G.platform==="ios"||G.platform==="android"))G.expand();J(G)},[]),Z};import{jsx as H1,Fragment as _F}from"react/jsx-runtime";var fF=({location:Z,fallback:J,onError:Y,initializePie:G})=>{let Q=k1(),X=F5(),W=h1();wF(()=>{if(x1())return;M5(),G()},[]);let H=EF(()=>_X.createAxiosDateTransformer({baseURL:Q}),[]);if(W)console.log("[PieRoot] Rendering with location:",Z),console.log("[PieRoot] API_SERVER:",Q),console.log("[PieRoot] Fallback provided:",!!J);if(!Q)throw Error("Set PIE_API_SERVER and PIE_CENTRIFUGE_SERVER");let z=jX(),{data:U,isLoading:B,error:L}=CF({queryKey:["uiConfig",Z.pathname+Z.search,z?.initData,x1()],queryFn:async()=>{if(!x1())return;let F=Z.search?"&":"?",M=z?.initData?`${F}initData=${encodeURIComponent(z.initData)}`:"",K="/api/content"+Z.pathname+Z.search+M;if(W)console.log("[PieRoot] Fetching UI configuration from:",K);let $=await H.get(K,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET,PUT,POST,DELETE,PATCH,OPTIONS","Content-type":"application/json"},withCredentials:!0});if(W)console.log("[PieRoot] Received UI configuration:",$.data);return $.data},staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!0,retryDelay:(F)=>Math.min(1000*2**F,30000)});if(L&&W)return console.error("[PieRoot] Error fetching UI configuration:",L),console.error("[PieRoot] Error details:",{message:L.message,status:L.response?.status,data:L.response?.data}),Y?.(),J;if(B||!U){if(W)console.log("[PieRoot] Loading state:",{isLoading:B,hasUiConfiguration:!!U});return J}if(W)console.log("[PieRoot] UI configuration loaded successfully:",U),console.log("[PieRoot] Rendering UI with configuration");return H1(m1.Provider,{value:v0,children:H1(d1.Provider,{value:c5(Q),children:H1(p1.Provider,{value:s5(Q,X),children:H1(v1.Provider,{value:J??H1(_F,{}),children:H1(t5,{children:H1(e5,{children:H1(e.StyleRoot,{children:H1(Y1,{uiConfig:U})})})})})})})})},jF=(Z)=>{let J=new SF;return H1(T0.Provider,{value:Z.onNavigate,children:H1(E0.Provider,{value:Z.config,children:H1(xF,{client:J,children:H1(fF,{...Z})})})})},vF=jF;export{Y5 as useAjaxSubmit,F1 as registerPieComponent,x1 as isPieComponentsInitialized,M5 as initializePieComponents,Y1 as UI,vF as PieTelegramRoot,RF as PieRoot,s as PieCard};
|