ordify-chat-widget 1.0.9 → 1.0.10
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/hooks/useOrdifyChat.d.ts.map +1 -1
- package/dist/index.cjs.js +12 -12
- package/dist/index.esm.js +55 -55
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOrdifyChat.d.ts","sourceRoot":"","sources":["../../src/hooks/useOrdifyChat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,YAAY,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAKpE,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,GAAG,mBAAmB,
|
|
1
|
+
{"version":3,"file":"useOrdifyChat.d.ts","sourceRoot":"","sources":["../../src/hooks/useOrdifyChat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,YAAY,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAKpE,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,GAAG,mBAAmB,CAyHvE"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -14,26 +14,26 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var jr;function Co(){return jr||(jr=1,process.env.NODE_ENV!=="production"&&function(){var e=j,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),R=Symbol.iterator,C="@@iterator";function
|
|
18
|
-
`+ge+o}}var fe=!1,we;{var Pe=typeof WeakMap=="function"?WeakMap:Map;we=new Pe}function pe(o,p){if(!o||fe)return"";{var x=we.get(o);if(x!==void 0)return x}var $;fe=!0;var A=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var L;L=ue.current,ue.current=null,ie();try{if(p){var
|
|
17
|
+
*/var jr;function Co(){return jr||(jr=1,process.env.NODE_ENV!=="production"&&function(){var e=j,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),R=Symbol.iterator,C="@@iterator";function T(o){if(o===null||typeof o!="object")return null;var p=R&&o[R]||o[C];return typeof p=="function"?p:null}var a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(o){{for(var p=arguments.length,x=new Array(p>1?p-1:0),$=1;$<p;$++)x[$-1]=arguments[$];i("error",o,x)}}function i(o,p,x){{var $=a.ReactDebugCurrentFrame,A=$.getStackAddendum();A!==""&&(p+="%s",x=x.concat([A]));var L=x.map(function(P){return String(P)});L.unshift("Warning: "+p),Function.prototype.apply.call(console[o],console,L)}}var g=!1,h=!1,b=!1,w=!1,N=!1,M;M=Symbol.for("react.module.reference");function U(o){return!!(typeof o=="string"||typeof o=="function"||o===n||o===l||N||o===s||o===k||o===v||w||o===S||g||h||b||typeof o=="object"&&o!==null&&(o.$$typeof===E||o.$$typeof===m||o.$$typeof===d||o.$$typeof===u||o.$$typeof===f||o.$$typeof===M||o.getModuleId!==void 0))}function D(o,p,x){var $=o.displayName;if($)return $;var A=p.displayName||p.name||"";return A!==""?x+"("+A+")":x}function V(o){return o.displayName||"Context"}function F(o){if(o==null)return null;if(typeof o.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case n:return"Fragment";case r:return"Portal";case l:return"Profiler";case s:return"StrictMode";case k:return"Suspense";case v:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case u:var p=o;return V(p)+".Consumer";case d:var x=o;return V(x._context)+".Provider";case f:return D(o,o.render,"ForwardRef");case m:var $=o.displayName||null;return $!==null?$:F(o.type)||"Memo";case E:{var A=o,L=A._payload,P=A._init;try{return F(P(L))}catch{return null}}}return null}var oe=Object.assign,Z=0,ae,Q,re,G,se,ne,B;function q(){}q.__reactDisabledLog=!0;function ie(){{if(Z===0){ae=console.log,Q=console.info,re=console.warn,G=console.error,se=console.group,ne=console.groupCollapsed,B=console.groupEnd;var o={configurable:!0,enumerable:!0,value:q,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}Z++}}function me(){{if(Z--,Z===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:oe({},o,{value:ae}),info:oe({},o,{value:Q}),warn:oe({},o,{value:re}),error:oe({},o,{value:G}),group:oe({},o,{value:se}),groupCollapsed:oe({},o,{value:ne}),groupEnd:oe({},o,{value:B})})}Z<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=a.ReactCurrentDispatcher,ge;function de(o,p,x){{if(ge===void 0)try{throw Error()}catch(A){var $=A.stack.trim().match(/\n( *(at )?)/);ge=$&&$[1]||""}return`
|
|
18
|
+
`+ge+o}}var fe=!1,we;{var Pe=typeof WeakMap=="function"?WeakMap:Map;we=new Pe}function pe(o,p){if(!o||fe)return"";{var x=we.get(o);if(x!==void 0)return x}var $;fe=!0;var A=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var L;L=ue.current,ue.current=null,ie();try{if(p){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(ee){$=ee}Reflect.construct(o,[],P)}else{try{P.call()}catch(ee){$=ee}o.call(P.prototype)}}else{try{throw Error()}catch(ee){$=ee}o()}}catch(ee){if(ee&&$&&typeof ee.stack=="string"){for(var O=ee.stack.split(`
|
|
19
19
|
`),J=$.stack.split(`
|
|
20
20
|
`),W=O.length-1,Y=J.length-1;W>=1&&Y>=0&&O[W]!==J[Y];)Y--;for(;W>=1&&Y>=0;W--,Y--)if(O[W]!==J[Y]){if(W!==1||Y!==1)do if(W--,Y--,Y<0||O[W]!==J[Y]){var ce=`
|
|
21
|
-
`+O[W].replace(" at new "," at ");return o.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",o.displayName)),typeof o=="function"&&we.set(o,ce),ce}while(W>=1&&Y>=0);break}}}finally{fe=!1,ue.current=L,me(),Error.prepareStackTrace=A}var Ie=o?o.displayName||o.name:"",Ce=Ie?de(Ie):"";return typeof o=="function"&&we.set(o,Ce),Ce}function Jn(o,p,x){return pe(o,!1)}function Xn(o){var p=o.prototype;return!!(p&&p.isReactComponent)}function Qe(o,p,x){if(o==null)return"";if(typeof o=="function")return pe(o,Xn(o));if(typeof o=="string")return de(o);switch(o){case k:return de("Suspense");case v:return de("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case f:return Jn(o.render);case m:return Qe(o.type,p,x);case E:{var $=o,A=$._payload,L=$._init;try{return Qe(L(A),p,x)}catch{}}}return""}var He=Object.prototype.hasOwnProperty,pr={},hr=a.ReactDebugCurrentFrame;function et(o){if(o){var p=o._owner,x=Qe(o.type,o._source,p?p.type:null);hr.setExtraStackFrame(x)}else hr.setExtraStackFrame(null)}function Zn(o,p,x,$,A){{var L=Function.call.bind(He);for(var
|
|
21
|
+
`+O[W].replace(" at new "," at ");return o.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",o.displayName)),typeof o=="function"&&we.set(o,ce),ce}while(W>=1&&Y>=0);break}}}finally{fe=!1,ue.current=L,me(),Error.prepareStackTrace=A}var Ie=o?o.displayName||o.name:"",Ce=Ie?de(Ie):"";return typeof o=="function"&&we.set(o,Ce),Ce}function Jn(o,p,x){return pe(o,!1)}function Xn(o){var p=o.prototype;return!!(p&&p.isReactComponent)}function Qe(o,p,x){if(o==null)return"";if(typeof o=="function")return pe(o,Xn(o));if(typeof o=="string")return de(o);switch(o){case k:return de("Suspense");case v:return de("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case f:return Jn(o.render);case m:return Qe(o.type,p,x);case E:{var $=o,A=$._payload,L=$._init;try{return Qe(L(A),p,x)}catch{}}}return""}var He=Object.prototype.hasOwnProperty,pr={},hr=a.ReactDebugCurrentFrame;function et(o){if(o){var p=o._owner,x=Qe(o.type,o._source,p?p.type:null);hr.setExtraStackFrame(x)}else hr.setExtraStackFrame(null)}function Zn(o,p,x,$,A){{var L=Function.call.bind(He);for(var P in o)if(L(o,P)){var O=void 0;try{if(typeof o[P]!="function"){var J=Error(($||"React class")+": "+x+" type `"+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[P]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw J.name="Invariant Violation",J}O=o[P](p,P,$,x,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(W){O=W}O&&!(O instanceof Error)&&(et(A),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",$||"React class",x,P,typeof O),et(null)),O instanceof Error&&!(O.message in pr)&&(pr[O.message]=!0,et(A),c("Failed %s type: %s",x,O.message),et(null))}}}var Qn=Array.isArray;function $t(o){return Qn(o)}function eo(o){{var p=typeof Symbol=="function"&&Symbol.toStringTag,x=p&&o[Symbol.toStringTag]||o.constructor.name||"Object";return x}}function to(o){try{return mr(o),!1}catch{return!0}}function mr(o){return""+o}function gr(o){if(to(o))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",eo(o)),mr(o)}var yr=a.ReactCurrentOwner,ro={key:!0,ref:!0,__self:!0,__source:!0},vr,br;function no(o){if(He.call(o,"ref")){var p=Object.getOwnPropertyDescriptor(o,"ref").get;if(p&&p.isReactWarning)return!1}return o.ref!==void 0}function oo(o){if(He.call(o,"key")){var p=Object.getOwnPropertyDescriptor(o,"key").get;if(p&&p.isReactWarning)return!1}return o.key!==void 0}function ao(o,p){typeof o.ref=="string"&&yr.current}function so(o,p){{var x=function(){vr||(vr=!0,c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",p))};x.isReactWarning=!0,Object.defineProperty(o,"key",{get:x,configurable:!0})}}function io(o,p){{var x=function(){br||(br=!0,c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",p))};x.isReactWarning=!0,Object.defineProperty(o,"ref",{get:x,configurable:!0})}}var co=function(o,p,x,$,A,L,P){var O={$$typeof:t,type:o,key:p,ref:x,props:P,_owner:L};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:$}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function lo(o,p,x,$,A){{var L,P={},O=null,J=null;x!==void 0&&(gr(x),O=""+x),oo(p)&&(gr(p.key),O=""+p.key),no(p)&&(J=p.ref,ao(p,A));for(L in p)He.call(p,L)&&!ro.hasOwnProperty(L)&&(P[L]=p[L]);if(o&&o.defaultProps){var W=o.defaultProps;for(L in W)P[L]===void 0&&(P[L]=W[L])}if(O||J){var Y=typeof o=="function"?o.displayName||o.name||"Unknown":o;O&&so(P,Y),J&&io(P,Y)}return co(o,O,J,A,$,yr.current,P)}}var Rt=a.ReactCurrentOwner,xr=a.ReactDebugCurrentFrame;function Ae(o){if(o){var p=o._owner,x=Qe(o.type,o._source,p?p.type:null);xr.setExtraStackFrame(x)}else xr.setExtraStackFrame(null)}var _t;_t=!1;function jt(o){return typeof o=="object"&&o!==null&&o.$$typeof===t}function wr(){{if(Rt.current){var o=F(Rt.current.type);if(o)return`
|
|
22
22
|
|
|
23
23
|
Check the render method of \``+o+"`."}return""}}function uo(o){return""}var kr={};function fo(o){{var p=wr();if(!p){var x=typeof o=="string"?o:o.displayName||o.name;x&&(p=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+x+">.")}return p}}function Sr(o,p){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var x=fo(p);if(kr[x])return;kr[x]=!0;var $="";o&&o._owner&&o._owner!==Rt.current&&($=" It was passed a child from "+F(o._owner.type)+"."),Ae(o),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',x,$),Ae(null)}}function Er(o,p){{if(typeof o!="object")return;if($t(o))for(var x=0;x<o.length;x++){var $=o[x];jt($)&&Sr($,p)}else if(jt(o))o._store&&(o._store.validated=!0);else if(o){var A=
|
|
25
|
+
Check the top-level render call using <`+x+">.")}return p}}function Sr(o,p){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var x=fo(p);if(kr[x])return;kr[x]=!0;var $="";o&&o._owner&&o._owner!==Rt.current&&($=" It was passed a child from "+F(o._owner.type)+"."),Ae(o),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',x,$),Ae(null)}}function Er(o,p){{if(typeof o!="object")return;if($t(o))for(var x=0;x<o.length;x++){var $=o[x];jt($)&&Sr($,p)}else if(jt(o))o._store&&(o._store.validated=!0);else if(o){var A=T(o);if(typeof A=="function"&&A!==o.entries)for(var L=A.call(o),P;!(P=L.next()).done;)jt(P.value)&&Sr(P.value,p)}}}function po(o){{var p=o.type;if(p==null||typeof p=="string")return;var x;if(typeof p=="function")x=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===f||p.$$typeof===m))x=p.propTypes;else return;if(x){var $=F(p);Zn(x,o.props,"prop",$,o)}else if(p.PropTypes!==void 0&&!_t){_t=!0;var A=F(p);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ho(o){{for(var p=Object.keys(o.props),x=0;x<p.length;x++){var $=p[x];if($!=="children"&&$!=="key"){Ae(o),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",$),Ae(null);break}}o.ref!==null&&(Ae(o),c("Invalid attribute `ref` supplied to `React.Fragment`."),Ae(null))}}var Cr={};function $r(o,p,x,$,A,L){{var P=U(o);if(!P){var O="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(O+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var J=uo();J?O+=J:O+=wr();var W;o===null?W="null":$t(o)?W="array":o!==void 0&&o.$$typeof===t?(W="<"+(F(o.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):W=typeof o,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",W,O)}var Y=lo(o,p,x,A,L);if(Y==null)return Y;if(P){var ce=p.children;if(ce!==void 0)if($)if($t(ce)){for(var Ie=0;Ie<ce.length;Ie++)Er(ce[Ie],o);Object.freeze&&Object.freeze(ce)}else c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Er(ce,o)}if(He.call(p,"key")){var Ce=F(o),ee=Object.keys(p).filter(function(xo){return xo!=="key"}),Ot=ee.length>0?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}";if(!Cr[Ce+Ot]){var bo=ee.length>0?"{"+ee.join(": ..., ")+": ...}":"{}";c(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Ot,Ce,bo,Ce),Cr[Ce+Ot]=!0}}return o===n?ho(Y):po(Y),Y}}function mo(o,p,x){return $r(o,p,x,!0)}function go(o,p,x){return $r(o,p,x,!1)}var yo=go,vo=mo;Ge.Fragment=n,Ge.jsx=yo,Ge.jsxs=vo}()),Ge}process.env.NODE_ENV==="production"?Ut.exports=Eo():Ut.exports=Co();var y=Ut.exports;function Bt(){return Math.random().toString(36).substr(2,9)}function gt(e){return new Intl.DateTimeFormat("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}).format(e)}function $o(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e(...n),t)}}function Ro(e,t){let r;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>r=!1,t))}}class un{constructor(t){Rr(this,"config");this.config=t}async sendMessage(t,r){const n=`${this.config.apiBaseUrl}/chat/agents/${this.config.agentId}`,s={message:t,sessionId:r},l=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json","api-key":this.config.apiKey,accept:"application/json"},body:JSON.stringify(s)});if(!l.ok){const d=await l.json();throw new Error(`API Error: ${d.detail}`)}if(!l.body)throw new Error("No response body");return l.body}async createSession(){const t=`${this.config.apiBaseUrl}/sessions`,r=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json","api-key":this.config.apiKey,accept:"application/json"},body:JSON.stringify({name:"Chat Session",agentConfig:{type:"chat",settings:null}})});if(!r.ok){const n=await r.json();throw new Error(`API Error: ${n.detail}`)}return r.json()}async getAgents(){const t=`${this.config.apiBaseUrl}/chat/agents`,r=await fetch(t,{method:"GET",headers:{"api-key":this.config.apiKey,accept:"application/json"}});if(!r.ok){const s=await r.json();throw new Error(`API Error: ${s.detail}`)}return(await r.json()).agents||[]}async getSessions(){const t=`${this.config.apiBaseUrl}/sessions`,r=await fetch(t,{method:"GET",headers:{"api-key":this.config.apiKey,accept:"application/json"}});if(!r.ok){const n=await r.json();throw new Error(`API Error: ${n.detail}`)}return r.json()}}function dn(e){try{if(e.startsWith("data: ")){const t=e.slice(6);return t==="[DONE]"?{text:"",sessionId:"",type:"done"}:JSON.parse(t)}}catch(t){console.warn("Failed to parse streaming response:",t)}return null}function fn(e){const[t,r]=j.useState([]),[n,s]=j.useState(!1),[l,d]=j.useState(null),[u,f]=j.useState(null),[k,v]=j.useState(!1),m=j.useRef(null);m.current||(m.current=new un({apiKey:e.apiKey,apiBaseUrl:e.apiBaseUrl||"https://api.ordify.ai",agentId:e.agentId}));const E=j.useCallback(()=>{d(null)},[]),S=j.useCallback(async R=>{if(!(!R.trim()||n)){s(!0),d(null);try{const C={id:Bt(),content:R.trim(),role:"user",timestamp:new Date,sessionId:u||void 0};r(h=>[...h,C]);let
|
|
31
|
-
`);for(const M of N){const U=dn(M);if(U){if(U.type==="stream"&&U.text)r(D=>D.map(V=>V.id===g.id?{...V,content:V.content+U.text}:V));else if(U.type==="done")break}}}e.onMessage&&e.onMessage(g)}catch(C){const
|
|
32
|
-
`).match(s);let m=!1;return{items:v.map(function(E,S){const R=l.exec(E)[0].length,C=RegExp("^ {1,"+R+"}","gm"),
|
|
30
|
+
<%s key={someKey} {...props} />`,Ot,Ce,bo,Ce),Cr[Ce+Ot]=!0}}return o===n?ho(Y):po(Y),Y}}function mo(o,p,x){return $r(o,p,x,!0)}function go(o,p,x){return $r(o,p,x,!1)}var yo=go,vo=mo;Ge.Fragment=n,Ge.jsx=yo,Ge.jsxs=vo}()),Ge}process.env.NODE_ENV==="production"?Ut.exports=Eo():Ut.exports=Co();var y=Ut.exports;function Bt(){return Math.random().toString(36).substr(2,9)}function gt(e){return new Intl.DateTimeFormat("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}).format(e)}function $o(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e(...n),t)}}function Ro(e,t){let r;return(...n)=>{r||(e(...n),r=!0,setTimeout(()=>r=!1,t))}}class un{constructor(t){Rr(this,"config");this.config=t}async sendMessage(t,r){const n=`${this.config.apiBaseUrl}/chat/agents/${this.config.agentId}`,s={message:t,sessionId:r},l=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json","api-key":this.config.apiKey,accept:"application/json"},body:JSON.stringify(s)});if(!l.ok){const d=await l.json();throw new Error(`API Error: ${d.detail}`)}if(!l.body)throw new Error("No response body");return l.body}async createSession(){const t=`${this.config.apiBaseUrl}/sessions`,r=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json","api-key":this.config.apiKey,accept:"application/json"},body:JSON.stringify({name:"Chat Session",agentConfig:{type:"chat",settings:null}})});if(!r.ok){const n=await r.json();throw new Error(`API Error: ${n.detail}`)}return r.json()}async getAgents(){const t=`${this.config.apiBaseUrl}/chat/agents`,r=await fetch(t,{method:"GET",headers:{"api-key":this.config.apiKey,accept:"application/json"}});if(!r.ok){const s=await r.json();throw new Error(`API Error: ${s.detail}`)}return(await r.json()).agents||[]}async getSessions(){const t=`${this.config.apiBaseUrl}/sessions`,r=await fetch(t,{method:"GET",headers:{"api-key":this.config.apiKey,accept:"application/json"}});if(!r.ok){const n=await r.json();throw new Error(`API Error: ${n.detail}`)}return r.json()}}function dn(e){try{if(e.startsWith("data: ")){const t=e.slice(6);return t==="[DONE]"?{text:"",sessionId:"",type:"done"}:JSON.parse(t)}}catch(t){console.warn("Failed to parse streaming response:",t)}return null}function fn(e){const[t,r]=j.useState([]),[n,s]=j.useState(!1),[l,d]=j.useState(null),[u,f]=j.useState(null),[k,v]=j.useState(!1),m=j.useRef(null);m.current||(m.current=new un({apiKey:e.apiKey,apiBaseUrl:e.apiBaseUrl||"https://api.ordify.ai",agentId:e.agentId}));const E=j.useCallback(()=>{d(null)},[]),S=j.useCallback(async R=>{if(!(!R.trim()||n)){s(!0),d(null);try{const C={id:Bt(),content:R.trim(),role:"user",timestamp:new Date,sessionId:u||void 0};r(h=>[...h,C]);let T=u;T||(T=(await m.current.createSession()).id,f(T),e.onSessionCreated&&e.onSessionCreated(T));const c=(await m.current.sendMessage(R.trim(),T)).getReader(),i=new TextDecoder;let g={id:Bt(),content:"",role:"assistant",timestamp:new Date,sessionId:T};for(r(h=>[...h,g]);;){const{done:h,value:b}=await c.read();if(h)break;const N=i.decode(b,{stream:!0}).split(`
|
|
31
|
+
`);for(const M of N){const U=dn(M);if(U){if(U.type==="stream"&&U.text)r(D=>D.map(V=>V.id===g.id?{...V,content:V.content+U.text}:V));else if(U.type==="done")break}}}e.onMessage&&e.onMessage(g)}catch(C){const T=C instanceof Error?C.message:"Failed to send message";d(T),e.onError&&e.onError(C instanceof Error?C:new Error(T))}finally{s(!1)}}},[e,n,u]);return{messages:t,sendMessage:S,isLoading:n,error:l,clearError:E,sessionId:u,isOpen:k,setIsOpen:v}}function pn(e){return j.useMemo(()=>{const t=e.agentId||process.env.ORDIFY_AGENT_ID,r=e.apiKey||process.env.ORDIFY_API_KEY,n=e.apiBaseUrl||process.env.ORDIFY_API_BASE_URL||"https://r.ordify.ai";if(!t)throw new Error("Ordify agent ID is required. Provide agentId prop or set ORDIFY_AGENT_ID environment variable.");if(!r)throw new Error("Ordify API key is required. Provide apiKey prop or set ORDIFY_API_KEY environment variable.");return{agentId:t,apiKey:r,apiBaseUrl:n,mode:e.mode||"floating",position:e.position||"bottom-right",theme:e.theme||"light",placeholder:e.placeholder||"Type a message...",height:e.height||"500px",className:e.className||"",buttonStyle:e.buttonStyle||{},chatWindowStyle:e.chatWindowStyle||{},showHeader:e.showHeader!==!1,onMessage:e.onMessage,onError:e.onError,onClose:e.onClose}},[e])}function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$e.apply(this,arguments)}const _o=["children","options"],Or=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),Tr={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},jo=["style","script","pre"],Oo=["src","href","data","formAction","srcDoc","action"],To=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Po=/mailto:/i,Ao=/\n{2,}$/,Pr=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Io=/^ *> ?/gm,No=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Do=/^ {2,}\n/,Mo=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Ar=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Ir=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Fo=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,Lo=/^(?:\n *)*\n/,zo=/\r\n?/g,Uo=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Bo=/^\[\^([^\]]+)]/,Vo=/\f/g,Wo=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,Yo=/^\s*?\[(x|\s)\]/,Nr=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Dr=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Mr=/^([^\n]+)\n *(=|-){3,} *\n/,Tt=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Ho=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Fr=/^<!--[\s\S]*?(?:-->)/,Ko=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Pt=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Go=/^\{.*\}$/,qo=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Jo=/^<([^ >]+@[^ >]+)>/,Xo=/^<([^ >]+:\/[^ >]+)>/,Zo=/-([a-z])?/gi,Lr=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Qo=/^[^\n]+(?: \n|\n{2,})/,ea=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,ta=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,ra=/^\[([^\]]*)\] ?\[([^\]]*)\]/,na=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,oa=/\t/g,aa=/(^ *\||\| *$)/g,sa=/^ *:-+: *$/,ia=/^ *:-+ *$/,ca=/^ *-+: *$/,yt=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,vt="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",la=RegExp(`^([*_])\\1${yt(1)}${vt}\\1\\1(?!\\1)`),ua=RegExp(`^([*_])${yt(0)}${vt}\\1(?!\\1)`),da=RegExp(`^(==)${yt(0)}${vt}\\1`),fa=RegExp(`^(~~)${yt(0)}${vt}\\1`),pa=/^(:[a-zA-Z0-9-_]+:)/,ha=/^\\([^0-9A-Za-z\s])/,ma=/\\([^0-9A-Za-z\s])/g,ga=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,ya=/^\n+/,va=/^([ \t]*)/,ba=/(?:^|\n)( *)$/,Zt="(?:\\d+\\.)",Qt="(?:[*+-])";function hn(e){return"( *)("+(e===1?Zt:Qt)+") +"}const mn=hn(1),gn=hn(2);function yn(e){return RegExp("^"+(e===1?mn:gn))}const xa=yn(1),wa=yn(2);function vn(e){return RegExp("^"+(e===1?mn:gn)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Zt:Qt)+" )[^\\n]*)*(\\n|$)","gm")}const ka=vn(1),Sa=vn(2);function bn(e){const t=e===1?Zt:Qt;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const xn=bn(1),wn=bn(2);function zr(e,t){const r=t===1,n=r?xn:wn,s=r?ka:Sa,l=r?xa:wa;return{t:d=>l.test(d),o:De(function(d,u){const f=ba.exec(u.prevCapture);return f&&(u.list||!u.inline&&!u.simple)?n.exec(d=f[1]+d):null}),i:1,u(d,u,f){const k=r?+d[2]:void 0,v=d[0].replace(Ao,`
|
|
32
|
+
`).match(s);let m=!1;return{items:v.map(function(E,S){const R=l.exec(E)[0].length,C=RegExp("^ {1,"+R+"}","gm"),T=E.replace(C,"").replace(l,""),a=S===v.length-1,c=T.indexOf(`
|
|
33
33
|
|
|
34
|
-
`)!==-1||a&&m;m=c;const i=f.inline,g=f.list;let h;f.list=!0,c?(f.inline=!1,h=Xe(
|
|
34
|
+
`)!==-1||a&&m;m=c;const i=f.inline,g=f.list;let h;f.list=!0,c?(f.inline=!1,h=Xe(T)+`
|
|
35
35
|
|
|
36
|
-
`):(f.inline=!0,h=Xe(
|
|
36
|
+
`):(f.inline=!0,h=Xe(T));const b=u(h,f);return f.inline=i,f.list=g,b}),ordered:r,start:k}},l:(d,u,f)=>e(d.ordered?"ol":"ul",{key:f.key,start:d.type==="20"?d.start:void 0},d.items.map(function(k,v){return e("li",{key:v},u(k,f))}))}}const Ea=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Ca=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Xe(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function st(e,t){return e.startsWith(t)}function $a(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(st(e,r[n]))return!0;return!1}return r(e,t)}function qe(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Ra(e){return ca.test(e)?"right":sa.test(e)?"center":ia.test(e)?"left":null}function Ur(e,t,r,n){const s=r.inTable;r.inTable=!0;let l=[[]],d="";function u(){if(!d)return;const f=l[l.length-1];f.push.apply(f,t(d,r)),d=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((f,k,v)=>{f.trim()==="|"&&(u(),n)?k!==0&&k!==v.length-1&&l.push([]):d+=f}),u(),r.inTable=s,l}function _a(e,t,r){r.inline=!0;const n=e[2]?e[2].replace(aa,"").split("|").map(Ra):[],s=e[3]?function(d,u,f){return d.trim().split(`
|
|
37
37
|
`).map(function(k){return Ur(k,u,f,!0)})}(e[3],t,r):[],l=Ur(e[1],t,r,!!s.length);return r.inline=!1,s.length?{align:n,cells:s,header:l,type:"25"}:{children:l,type:"21"}}function Br(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function De(e){return e.inline=1,e}function ke(e){return De(function(t,r){return r.inline?e.exec(t):null})}function Se(e){return De(function(t,r){return r.inline||r.simple?e.exec(t):null})}function be(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function tt(e){return De(function(t){return e.exec(t)})}const ja=/(javascript|vbscript|data(?!:image)):/i;function Oa(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(ja.test(t))return null}catch{return null}return e}function ye(e){return e&&e.replace(ma,"$1")}function it(e,t,r){const n=r.inline||!1,s=r.simple||!1;r.inline=!0,r.simple=!0;const l=e(t,r);return r.inline=n,r.simple=s,l}function Ta(e,t,r){const n=r.inline||!1,s=r.simple||!1;r.inline=!1,r.simple=!0;const l=e(t,r);return r.inline=n,r.simple=s,l}function Pa(e,t,r){const n=r.inline||!1;r.inline=!1;const s=e(t,r);return r.inline=n,s}const At=(e,t,r)=>({children:it(t,e[2],r)});function It(){return{}}function Nt(){return null}function Aa(...e){return e.filter(Boolean).join(" ")}function Dt(e,t,r){let n=e;const s=t.split(".");for(;s.length&&(n=n[s[0]],n!==void 0);)s.shift();return n||r}function Ia(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?$e({},Tr,t.namedCodesToUnicode):Tr;const r=t.slugify||qe,n=t.sanitizer||Oa,s=t.createElement||ln.createElement,l=[Pr,Ar,Ir,t.enforceAtxHeadings?Dr:Nr,Mr,Lr,xn,wn],d=[...l,Qo,Tt,Fr,Pt];function u(a,c,...i){const g=Dt(t.overrides,a+".props",{});return s(function(h,b){const w=Dt(b,h);return w?typeof w=="function"||typeof w=="object"&&"render"in w?w:Dt(b,h+".component",h):h}(a,t.overrides),$e({},c,g,{className:Aa(c==null?void 0:c.className,g.className)||void 0}),...i)}function f(a){a=a.replace(Wo,"");let c=!1;t.forceInline?c=!0:t.forceBlock||(c=na.test(a)===!1);const i=R(S(c?a:Xe(a).replace(ya,"")+`
|
|
38
38
|
|
|
39
39
|
`,{inline:c}));for(;typeof i[i.length-1]=="string"&&!i[i.length-1].trim();)i.pop();if(t.wrapper===null)return i;const g=t.wrapper||(c?"span":"div");let h;if(i.length>1||t.forceWrapper)h=i;else{if(i.length===1)return h=i[0],typeof h=="string"?u("span",{key:"outer"},h):h;h=null}return s(g,{key:"outer"},h)}function k(a,c){if(!c||!c.trim())return null;const i=c.match(To);return i?i.reduce(function(g,h){const b=h.indexOf("=");if(b!==-1){const w=function(D){return D.indexOf("-")!==-1&&D.match(Ko)===null&&(D=D.replace(Zo,function(V,F){return F.toUpperCase()})),D}(h.slice(0,b)).trim(),N=function(D){const V=D[0];return(V==='"'||V==="'")&&D.length>=2&&D[D.length-1]===V?D.slice(1,-1):D}(h.slice(b+1).trim()),M=Or[w]||w;if(M==="ref")return g;const U=g[M]=function(D,V,F,oe){return V==="style"?function(Z){const ae=[];let Q="",re=!1,G=!1,se="";if(!Z)return ae;for(let B=0;B<Z.length;B++){const q=Z[B];if(q!=='"'&&q!=="'"||re||(G?q===se&&(G=!1,se=""):(G=!0,se=q)),q==="("&&Q.endsWith("url")?re=!0:q===")"&&re&&(re=!1),q!==";"||G||re)Q+=q;else{const ie=Q.trim();if(ie){const me=ie.indexOf(":");if(me>0){const ue=ie.slice(0,me).trim(),ge=ie.slice(me+1).trim();ae.push([ue,ge])}}Q=""}}const ne=Q.trim();if(ne){const B=ne.indexOf(":");if(B>0){const q=ne.slice(0,B).trim(),ie=ne.slice(B+1).trim();ae.push([q,ie])}}return ae}(F).reduce(function(Z,[ae,Q]){return Z[ae.replace(/(-[a-z])/g,re=>re[1].toUpperCase())]=oe(Q,D,ae),Z},{}):Oo.indexOf(V)!==-1?oe(ye(F),D,V):(F.match(Go)&&(F=ye(F.slice(1,F.length-1))),F==="true"||F!=="false"&&F)}(a,w,N,n);typeof U=="string"&&(Tt.test(U)||Pt.test(U))&&(g[M]=f(U.trim()))}else h!=="style"&&(g[Or[h]||h]=!0);return g},{}):null}const v=[],m={},E={0:{t:[">"],o:be(Pr),i:1,u(a,c,i){const[,g,h]=a[0].replace(Io,"").match(No);return{alert:g,children:c(h,i)}},l(a,c,i){const g={key:i.key};return a.alert&&(g.className="markdown-alert-"+r(a.alert.toLowerCase(),qe),a.children.unshift({attrs:{},children:[{type:"27",text:a.alert}],noInnerParse:!0,type:"11",tag:"header"})),u("blockquote",g,c(a.children,i))}},1:{o:tt(Do),i:1,u:It,l:(a,c,i)=>u("br",{key:i.key})},2:{t:a=>{const c=a[0];return c==="-"||c==="*"||c==="_"},o:be(Mo),i:1,u:It,l:(a,c,i)=>u("hr",{key:i.key})},3:{t:[" "],o:be(Ir),i:0,u:a=>({lang:void 0,text:ye(Xe(a[0].replace(/^ {4}/gm,"")))}),l:(a,c,i)=>u("pre",{key:i.key},u("code",$e({},a.attrs,{className:a.lang?"lang-"+a.lang:""}),a.text))},4:{t:["```","~~~"],o:be(Ar),i:0,u:a=>({attrs:k("code",a[3]||""),lang:a[2]||void 0,text:a[4],type:"3"})},5:{t:["`"],o:Se(Fo),i:3,u:a=>({text:ye(a[2])}),l:(a,c,i)=>u("code",{key:i.key},a.text)},6:{t:["[^"],o:be(Uo),i:0,u:a=>(v.push({footnote:a[2],identifier:a[1]}),{}),l:Nt},7:{t:["[^"],o:ke(Bo),i:1,u:a=>({target:"#"+r(a[1],qe),text:a[1]}),l:(a,c,i)=>u("a",{key:i.key,href:n(a.target,"a","href")},u("sup",{key:i.key},a.text))},8:{t:["[ ]","[x]"],o:ke(Yo),i:1,u:a=>({completed:a[1].toLowerCase()==="x"}),l:(a,c,i)=>u("input",{checked:a.completed,key:i.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:be(t.enforceAtxHeadings?Dr:Nr),i:1,u:(a,c,i)=>({children:it(c,a[2],i),id:r(a[2],qe),level:a[1].length}),l:(a,c,i)=>u("h"+a.level,{id:a.id,key:i.key},c(a.children,i))},10:{o:be(Mr),i:0,u:(a,c,i)=>({children:it(c,a[1],i),level:a[2]==="="?1:2,type:"9"})},11:{t:["<"],o:tt(Tt),i:1,u(a,c,i){const[,g]=a[3].match(va),h=RegExp("^"+g,"gm"),b=a[3].replace(h,""),w=(N=b,d.some(F=>F.test(N))?Pa:it);var N;const M=a[1].toLowerCase(),U=jo.indexOf(M)!==-1,D=(U?M:a[1]).trim(),V={attrs:k(D,a[2]),noInnerParse:U,tag:D};if(i.inAnchor=i.inAnchor||M==="a",U)V.text=a[3];else{const F=i.inHTML;i.inHTML=!0,V.children=w(c,b,i),i.inHTML=F}return i.inAnchor=!1,V},l:(a,c,i)=>u(a.tag,$e({key:i.key},a.attrs),a.text||(a.children?c(a.children,i):""))},13:{t:["<"],o:tt(Pt),i:1,u(a){const c=a[1].trim();return{attrs:k(c,a[2]||""),tag:c}},l:(a,c,i)=>u(a.tag,$e({},a.attrs,{key:i.key}))},12:{t:["<!--"],o:tt(Fr),i:1,u:()=>({}),l:Nt},14:{t:["!["],o:Se(Ca),i:1,u:a=>({alt:ye(a[1]),target:ye(a[2]),title:ye(a[3])}),l:(a,c,i)=>u("img",{key:i.key,alt:a.alt||void 0,title:a.title||void 0,src:n(a.target,"img","src")})},15:{t:["["],o:ke(Ea),i:3,u:(a,c,i)=>({children:Ta(c,a[1],i),target:ye(a[2]),title:ye(a[3])}),l:(a,c,i)=>u("a",{key:i.key,href:n(a.target,"a","href"),title:a.title},c(a.children,i))},16:{t:["<"],o:ke(Xo),i:0,u:a=>({children:[{text:a[1],type:"27"}],target:a[1],type:"15"})},17:{t:(a,c)=>!c.inAnchor&&!t.disableAutoLink&&(st(a,"http://")||st(a,"https://")),o:ke(qo),i:0,u:a=>({children:[{text:a[1],type:"27"}],target:a[1],title:void 0,type:"15"})},18:{t:["<"],o:ke(Jo),i:0,u(a){let c=a[1],i=a[1];return Po.test(i)||(i="mailto:"+i),{children:[{text:c.replace("mailto:",""),type:"27"}],target:i,type:"15"}}},20:zr(u,1),33:zr(u,2),19:{o:be(Lo),i:3,u:It,l:()=>`
|
|
@@ -44,7 +44,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
44
44
|
`)===-1)return null;let i="";a.split(`
|
|
45
45
|
`).every(h=>(h+=`
|
|
46
46
|
`,!l.some(b=>b.test(h))&&(i+=h,!!h.trim())));const g=Xe(i);return g===""?null:[i,,g]}),i:3,u:At,l:(a,c,i)=>u("p",{key:i.key},c(a.children,i))},22:{t:["["],o:ke(ea),i:0,u:a=>(m[a[1]]={target:a[2],title:a[4]},{}),l:Nt},23:{t:["!["],o:Se(ta),i:0,u:a=>({alt:a[1]?ye(a[1]):void 0,ref:a[2]}),l:(a,c,i)=>m[a.ref]?u("img",{key:i.key,alt:a.alt,src:n(m[a.ref].target,"img","src"),title:m[a.ref].title}):null},24:{t:a=>a[0]==="["&&a.indexOf("](")===-1,o:ke(ra),i:0,u:(a,c,i)=>({children:c(a[1],i),fallbackChildren:a[0],ref:a[2]}),l:(a,c,i)=>m[a.ref]?u("a",{key:i.key,href:n(m[a.ref].target,"a","href"),title:m[a.ref].title},c(a.children,i)):u("span",{key:i.key},a.fallbackChildren)},25:{t:["|"],o:be(Lr),i:1,u:_a,l(a,c,i){const g=a;return u("table",{key:i.key},u("thead",null,u("tr",null,g.header.map(function(h,b){return u("th",{key:b,style:Br(g,b)},c(h,i))}))),u("tbody",null,g.cells.map(function(h,b){return u("tr",{key:b},h.map(function(w,N){return u("td",{key:N,style:Br(g,N)},c(w,i))}))})))}},27:{o:De(function(a,c){let i;return st(a,":")&&(i=pa.exec(a)),i||ga.exec(a)}),i:4,u(a){const c=a[0];return{text:c.indexOf("&")===-1?c:c.replace(Ho,(i,g)=>t.namedCodesToUnicode[g]||i)}},l:a=>a.text},28:{t:["**","__"],o:Se(la),i:2,u:(a,c,i)=>({children:c(a[2],i)}),l:(a,c,i)=>u("strong",{key:i.key},c(a.children,i))},29:{t:a=>{const c=a[0];return(c==="*"||c==="_")&&a[1]!==c},o:Se(ua),i:3,u:(a,c,i)=>({children:c(a[2],i)}),l:(a,c,i)=>u("em",{key:i.key},c(a.children,i))},30:{t:["\\"],o:Se(ha),i:1,u:a=>({text:a[1],type:"27"})},31:{t:["=="],o:Se(da),i:3,u:At,l:(a,c,i)=>u("mark",{key:i.key},c(a.children,i))},32:{t:["~~"],o:Se(fa),i:3,u:At,l:(a,c,i)=>u("del",{key:i.key},c(a.children,i))}};t.disableParsingRawHTML===!0&&(delete E[11],delete E[13]);const S=function(a){var c=Object.keys(a);function i(g,h){var b=[];if(h.prevCapture=h.prevCapture||"",g.trim())for(;g;)for(var w=0;w<c.length;){var N=c[w],M=a[N];if(!M.t||$a(g,h,M.t)){var U=M.o(g,h);if(U&&U[0]){g=g.substring(U[0].length);var D=M.u(U,i,h);h.prevCapture+=U[0],D.type||(D.type=N),b.push(D);break}w++}else w++}return h.prevCapture="",b}return c.sort(function(g,h){return a[g].i-a[h].i||(g<h?-1:1)}),function(g,h){return i(function(b){return b.replace(zo,`
|
|
47
|
-
`).replace(Vo,"").replace(oa," ")}(g),h)}}(E),R=(C=function(a,c){return function(i,g,h){const b=a[i.type].l;return c?c(()=>b(i,g,h),i,g,h):b(i,g,h)}}(E,t.renderRule),function a(c,i={}){if(Array.isArray(c)){const g=i.key,h=[];let b=!1;for(let w=0;w<c.length;w++){i.key=w;const N=a(c[w],i),M=typeof N=="string";M&&b?h[h.length-1]+=N:N!==null&&h.push(N),b=M}return i.key=g,h}return C(c,a,i)});var C;const P=f(e);return v.length?u("div",null,P,u("footer",{key:"footer"},v.map(function(a){return u("div",{id:r(a.identifier,qe),key:a.identifier},a.identifier,R(S(a.footnote,{inline:!0})))}))):P}const Na=e=>{let{children:t="",options:r}=e,n=function(s,l){if(s==null)return{};var d,u,f={},k=Object.keys(s);for(u=0;u<k.length;u++)l.indexOf(d=k[u])>=0||(f[d]=s[d]);return f}(e,_o);return ln.cloneElement(Ia(t,r),n)};function bt({content:e,className:t}){return y.jsx("div",{className:t,children:y.jsx(Na,{options:{overrides:{p:{props:{className:"mb-3 last:mb-0 leading-relaxed text-gray-900 dark:text-gray-100"}},strong:{props:{className:"font-semibold text-gray-900 dark:text-white dark:font-bold"}},em:{props:{className:"italic text-gray-700"}},code:{props:{className:"bg-gray-100 px-1.5 py-0.5 rounded text-sm font-mono text-gray-800"}},pre:{props:{className:"bg-gray-100 p-3 rounded-md text-sm font-mono text-gray-800 overflow-x-auto mb-3"}},ul:{props:{className:"list-disc list-inside mb-3 space-y-1 ml-2"}},ol:{props:{className:"list-decimal list-inside mb-3 space-y-1 ml-2"}},li:{props:{className:"leading-relaxed"}},blockquote:{props:{className:"border-l-4 border-blue-300 pl-4 italic mb-3 text-gray-700 bg-blue-50 py-2 rounded-r"}},h1:{props:{className:"text-xl font-bold mb-3 text-gray-900"}},h2:{props:{className:"text-lg font-bold mb-2 text-gray-900"}},h3:{props:{className:"text-base font-bold mb-2 text-gray-900"}},h4:{props:{className:"text-sm font-bold mb-2 text-gray-900"}},h5:{props:{className:"text-sm font-bold mb-2 text-gray-900"}},h6:{props:{className:"text-sm font-bold mb-2 text-gray-900"}},hr:{props:{className:"my-4 border-gray-200"}},a:{props:{className:"text-blue-600 hover:text-blue-800 underline",target:"_blank",rel:"noopener noreferrer"}}}},children:e})})}var te=function(){return te=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},te.apply(this,arguments)};function Me(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,l;n<s;n++)(l||!(n in t))&&(l||(l=Array.prototype.slice.call(t,0,n)),l[n]=t[n]);return e.concat(l||Array.prototype.slice.call(t))}function Da(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Ma=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Fa=Da(function(e){return Ma.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),z="-ms-",Ze="-moz-",I="-webkit-",kn="comm",xt="rule",er="decl",La="@import",Sn="@keyframes",za="@layer",En=Math.abs,tr=String.fromCharCode,Vt=Object.assign;function Ua(e,t){return K(e,0)^45?(((t<<2^K(e,0))<<2^K(e,1))<<2^K(e,2))<<2^K(e,3):0}function Cn(e){return e.trim()}function xe(e,t){return(e=t.exec(e))?e[0]:e}function _(e,t,r){return e.replace(t,r)}function ct(e,t,r){return e.indexOf(t,r)}function K(e,t){return e.charCodeAt(t)|0}function Fe(e,t,r){return e.slice(t,r)}function ve(e){return e.length}function $n(e){return e.length}function Je(e,t){return t.push(e),e}function Ba(e,t){return e.map(t).join("")}function Vr(e,t){return e.filter(function(r){return!xe(r,t)})}var wt=1,Le=1,Rn=0,le=0,H=0,We="";function kt(e,t,r,n,s,l,d,u){return{value:e,root:t,parent:r,type:n,props:s,children:l,line:wt,column:Le,length:d,return:"",siblings:u}}function Ee(e,t){return Vt(kt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ne(e){for(;e.root;)e=Ee(e.root,{children:[e]});Je(e,e.siblings)}function Va(){return H}function Wa(){return H=le>0?K(We,--le):0,Le--,H===10&&(Le=1,wt--),H}function he(){return H=le<Rn?K(We,le++):0,Le++,H===10&&(Le=1,wt++),H}function je(){return K(We,le)}function lt(){return le}function St(e,t){return Fe(We,e,t)}function Wt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ya(e){return wt=Le=1,Rn=ve(We=e),le=0,[]}function Ha(e){return We="",e}function Mt(e){return Cn(St(le-1,Yt(e===91?e+2:e===40?e+1:e)))}function Ka(e){for(;(H=je())&&H<33;)he();return Wt(e)>2||Wt(H)>3?"":" "}function Ga(e,t){for(;--t&&he()&&!(H<48||H>102||H>57&&H<65||H>70&&H<97););return St(e,lt()+(t<6&&je()==32&&he()==32))}function Yt(e){for(;he();)switch(H){case e:return le;case 34:case 39:e!==34&&e!==39&&Yt(H);break;case 40:e===41&&Yt(e);break;case 92:he();break}return le}function qa(e,t){for(;he()&&e+H!==57;)if(e+H===84&&je()===47)break;return"/*"+St(t,le-1)+"*"+tr(e===47?e:he())}function Ja(e){for(;!Wt(je());)he();return St(e,le)}function Xa(e){return Ha(ut("",null,null,null,[""],e=Ya(e),0,[0],e))}function ut(e,t,r,n,s,l,d,u,f){for(var k=0,v=0,m=d,E=0,S=0,R=0,C=1,P=1,a=1,c=0,i="",g=s,h=l,b=n,w=i;P;)switch(R=c,c=he()){case 40:if(R!=108&&K(w,m-1)==58){ct(w+=_(Mt(c),"&","&\f"),"&\f",En(k?u[k-1]:0))!=-1&&(a=-1);break}case 34:case 39:case 91:w+=Mt(c);break;case 9:case 10:case 13:case 32:w+=Ka(R);break;case 92:w+=Ga(lt()-1,7);continue;case 47:switch(je()){case 42:case 47:Je(Za(qa(he(),lt()),t,r,f),f);break;default:w+="/"}break;case 123*C:u[k++]=ve(w)*a;case 125*C:case 59:case 0:switch(c){case 0:case 125:P=0;case 59+v:a==-1&&(w=_(w,/\f/g,"")),S>0&&ve(w)-m&&Je(S>32?Yr(w+";",n,r,m-1,f):Yr(_(w," ","")+";",n,r,m-2,f),f);break;case 59:w+=";";default:if(Je(b=Wr(w,t,r,k,v,s,u,i,g=[],h=[],m,l),l),c===123)if(v===0)ut(w,t,b,b,g,l,m,u,h);else switch(E===99&&K(w,3)===110?100:E){case 100:case 108:case 109:case 115:ut(e,b,b,n&&Je(Wr(e,b,b,0,0,s,u,i,s,g=[],m,h),h),s,h,m,u,n?g:h);break;default:ut(w,b,b,b,[""],h,0,u,h)}}k=v=S=0,C=a=1,i=w="",m=d;break;case 58:m=1+ve(w),S=R;default:if(C<1){if(c==123)--C;else if(c==125&&C++==0&&Wa()==125)continue}switch(w+=tr(c),c*C){case 38:a=v>0?1:(w+="\f",-1);break;case 44:u[k++]=(ve(w)-1)*a,a=1;break;case 64:je()===45&&(w+=Mt(he())),E=je(),v=m=ve(i=w+=Ja(lt())),c++;break;case 45:R===45&&ve(w)==2&&(C=0)}}return l}function Wr(e,t,r,n,s,l,d,u,f,k,v,m){for(var E=s-1,S=s===0?l:[""],R=$n(S),C=0,P=0,a=0;C<n;++C)for(var c=0,i=Fe(e,E+1,E=En(P=d[C])),g=e;c<R;++c)(g=Cn(P>0?S[c]+" "+i:_(i,/&\f/g,S[c])))&&(f[a++]=g);return kt(e,t,r,s===0?xt:u,f,k,v,m)}function Za(e,t,r,n){return kt(e,t,r,kn,tr(Va()),Fe(e,2,-2),0,n)}function Yr(e,t,r,n,s){return kt(e,t,r,er,Fe(e,0,n),Fe(e,n+1,-1),n,s)}function _n(e,t,r){switch(Ua(e,t)){case 5103:return I+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return I+e+e;case 4789:return Ze+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return I+e+Ze+e+z+e+e;case 5936:switch(K(e,t+11)){case 114:return I+e+z+_(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return I+e+z+_(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return I+e+z+_(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return I+e+z+e+e;case 6165:return I+e+z+"flex-"+e+e;case 5187:return I+e+_(e,/(\w+).+(:[^]+)/,I+"box-$1$2"+z+"flex-$1$2")+e;case 5443:return I+e+z+"flex-item-"+_(e,/flex-|-self/g,"")+(xe(e,/flex-|baseline/)?"":z+"grid-row-"+_(e,/flex-|-self/g,""))+e;case 4675:return I+e+z+"flex-line-pack"+_(e,/align-content|flex-|-self/g,"")+e;case 5548:return I+e+z+_(e,"shrink","negative")+e;case 5292:return I+e+z+_(e,"basis","preferred-size")+e;case 6060:return I+"box-"+_(e,"-grow","")+I+e+z+_(e,"grow","positive")+e;case 4554:return I+_(e,/([^-])(transform)/g,"$1"+I+"$2")+e;case 6187:return _(_(_(e,/(zoom-|grab)/,I+"$1"),/(image-set)/,I+"$1"),e,"")+e;case 5495:case 3959:return _(e,/(image-set\([^]*)/,I+"$1$`$1");case 4968:return _(_(e,/(.+:)(flex-)?(.*)/,I+"box-pack:$3"+z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+I+e+e;case 4200:if(!xe(e,/flex-|baseline/))return z+"grid-column-align"+Fe(e,t)+e;break;case 2592:case 3360:return z+_(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,s){return t=s,xe(n.props,/grid-\w+-end/)})?~ct(e+(r=r[t].value),"span",0)?e:z+_(e,"-start","")+e+z+"grid-row-span:"+(~ct(r,"span",0)?xe(r,/\d+/):+xe(r,/\d+/)-+xe(e,/\d+/))+";":z+_(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return xe(n.props,/grid-\w+-start/)})?e:z+_(_(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return _(e,/(.+)-inline(.+)/,I+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ve(e)-1-t>6)switch(K(e,t+1)){case 109:if(K(e,t+4)!==45)break;case 102:return _(e,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+Ze+(K(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ct(e,"stretch",0)?_n(_(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return _(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,s,l,d,u,f,k){return z+s+":"+l+k+(d?z+s+"-span:"+(u?f:+f-+l)+k:"")+e});case 4949:if(K(e,t+6)===121)return _(e,":",":"+I)+e;break;case 6444:switch(K(e,K(e,14)===45?18:11)){case 120:return _(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+I+(K(e,14)===45?"inline-":"")+"box$3$1"+I+"$2$3$1"+z+"$2box$3")+e;case 100:return _(e,":",":"+z)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return _(e,"scroll-","scroll-snap-")+e}return e}function pt(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Qa(e,t,r,n){switch(e.type){case za:if(e.children.length)break;case La:case er:return e.return=e.return||e.value;case kn:return"";case Sn:return e.return=e.value+"{"+pt(e.children,n)+"}";case xt:if(!ve(e.value=e.props.join(",")))return""}return ve(r=pt(e.children,n))?e.return=e.value+"{"+r+"}":""}function es(e){var t=$n(e);return function(r,n,s,l){for(var d="",u=0;u<t;u++)d+=e[u](r,n,s,l)||"";return d}}function ts(e){return function(t){t.root||(t=t.return)&&e(t)}}function rs(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case er:e.return=_n(e.value,e.length,r);return;case Sn:return pt([Ee(e,{value:_(e.value,"@","@"+I)})],n);case xt:if(e.length)return Ba(r=e.props,function(s){switch(xe(s,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ne(Ee(e,{props:[_(s,/:(read-\w+)/,":"+Ze+"$1")]})),Ne(Ee(e,{props:[s]})),Vt(e,{props:Vr(r,n)});break;case"::placeholder":Ne(Ee(e,{props:[_(s,/:(plac\w+)/,":"+I+"input-$1")]})),Ne(Ee(e,{props:[_(s,/:(plac\w+)/,":"+Ze+"$1")]})),Ne(Ee(e,{props:[_(s,/:(plac\w+)/,z+"input-$1")]})),Ne(Ee(e,{props:[s]})),Vt(e,{props:Vr(r,n)});break}return""})}}var ns={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Te=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",jn="active",On="data-styled-version",Et="6.1.19",rr=`/*!sc*/
|
|
47
|
+
`).replace(Vo,"").replace(oa," ")}(g),h)}}(E),R=(C=function(a,c){return function(i,g,h){const b=a[i.type].l;return c?c(()=>b(i,g,h),i,g,h):b(i,g,h)}}(E,t.renderRule),function a(c,i={}){if(Array.isArray(c)){const g=i.key,h=[];let b=!1;for(let w=0;w<c.length;w++){i.key=w;const N=a(c[w],i),M=typeof N=="string";M&&b?h[h.length-1]+=N:N!==null&&h.push(N),b=M}return i.key=g,h}return C(c,a,i)});var C;const T=f(e);return v.length?u("div",null,T,u("footer",{key:"footer"},v.map(function(a){return u("div",{id:r(a.identifier,qe),key:a.identifier},a.identifier,R(S(a.footnote,{inline:!0})))}))):T}const Na=e=>{let{children:t="",options:r}=e,n=function(s,l){if(s==null)return{};var d,u,f={},k=Object.keys(s);for(u=0;u<k.length;u++)l.indexOf(d=k[u])>=0||(f[d]=s[d]);return f}(e,_o);return ln.cloneElement(Ia(t,r),n)};function bt({content:e,className:t}){return y.jsx("div",{className:t,children:y.jsx(Na,{options:{overrides:{p:{props:{className:"mb-3 last:mb-0 leading-relaxed text-gray-900 dark:text-gray-100"}},strong:{props:{className:"font-semibold text-gray-900 dark:text-white dark:font-bold"}},em:{props:{className:"italic text-gray-700"}},code:{props:{className:"bg-gray-100 px-1.5 py-0.5 rounded text-sm font-mono text-gray-800"}},pre:{props:{className:"bg-gray-100 p-3 rounded-md text-sm font-mono text-gray-800 overflow-x-auto mb-3"}},ul:{props:{className:"list-disc list-inside mb-3 space-y-1 ml-2"}},ol:{props:{className:"list-decimal list-inside mb-3 space-y-1 ml-2"}},li:{props:{className:"leading-relaxed"}},blockquote:{props:{className:"border-l-4 border-blue-300 pl-4 italic mb-3 text-gray-700 bg-blue-50 py-2 rounded-r"}},h1:{props:{className:"text-xl font-bold mb-3 text-gray-900"}},h2:{props:{className:"text-lg font-bold mb-2 text-gray-900"}},h3:{props:{className:"text-base font-bold mb-2 text-gray-900"}},h4:{props:{className:"text-sm font-bold mb-2 text-gray-900"}},h5:{props:{className:"text-sm font-bold mb-2 text-gray-900"}},h6:{props:{className:"text-sm font-bold mb-2 text-gray-900"}},hr:{props:{className:"my-4 border-gray-200"}},a:{props:{className:"text-blue-600 hover:text-blue-800 underline",target:"_blank",rel:"noopener noreferrer"}}}},children:e})})}var te=function(){return te=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},te.apply(this,arguments)};function Me(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,l;n<s;n++)(l||!(n in t))&&(l||(l=Array.prototype.slice.call(t,0,n)),l[n]=t[n]);return e.concat(l||Array.prototype.slice.call(t))}function Da(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Ma=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Fa=Da(function(e){return Ma.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),z="-ms-",Ze="-moz-",I="-webkit-",kn="comm",xt="rule",er="decl",La="@import",Sn="@keyframes",za="@layer",En=Math.abs,tr=String.fromCharCode,Vt=Object.assign;function Ua(e,t){return K(e,0)^45?(((t<<2^K(e,0))<<2^K(e,1))<<2^K(e,2))<<2^K(e,3):0}function Cn(e){return e.trim()}function xe(e,t){return(e=t.exec(e))?e[0]:e}function _(e,t,r){return e.replace(t,r)}function ct(e,t,r){return e.indexOf(t,r)}function K(e,t){return e.charCodeAt(t)|0}function Fe(e,t,r){return e.slice(t,r)}function ve(e){return e.length}function $n(e){return e.length}function Je(e,t){return t.push(e),e}function Ba(e,t){return e.map(t).join("")}function Vr(e,t){return e.filter(function(r){return!xe(r,t)})}var wt=1,Le=1,Rn=0,le=0,H=0,We="";function kt(e,t,r,n,s,l,d,u){return{value:e,root:t,parent:r,type:n,props:s,children:l,line:wt,column:Le,length:d,return:"",siblings:u}}function Ee(e,t){return Vt(kt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ne(e){for(;e.root;)e=Ee(e.root,{children:[e]});Je(e,e.siblings)}function Va(){return H}function Wa(){return H=le>0?K(We,--le):0,Le--,H===10&&(Le=1,wt--),H}function he(){return H=le<Rn?K(We,le++):0,Le++,H===10&&(Le=1,wt++),H}function je(){return K(We,le)}function lt(){return le}function St(e,t){return Fe(We,e,t)}function Wt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ya(e){return wt=Le=1,Rn=ve(We=e),le=0,[]}function Ha(e){return We="",e}function Mt(e){return Cn(St(le-1,Yt(e===91?e+2:e===40?e+1:e)))}function Ka(e){for(;(H=je())&&H<33;)he();return Wt(e)>2||Wt(H)>3?"":" "}function Ga(e,t){for(;--t&&he()&&!(H<48||H>102||H>57&&H<65||H>70&&H<97););return St(e,lt()+(t<6&&je()==32&&he()==32))}function Yt(e){for(;he();)switch(H){case e:return le;case 34:case 39:e!==34&&e!==39&&Yt(H);break;case 40:e===41&&Yt(e);break;case 92:he();break}return le}function qa(e,t){for(;he()&&e+H!==57;)if(e+H===84&&je()===47)break;return"/*"+St(t,le-1)+"*"+tr(e===47?e:he())}function Ja(e){for(;!Wt(je());)he();return St(e,le)}function Xa(e){return Ha(ut("",null,null,null,[""],e=Ya(e),0,[0],e))}function ut(e,t,r,n,s,l,d,u,f){for(var k=0,v=0,m=d,E=0,S=0,R=0,C=1,T=1,a=1,c=0,i="",g=s,h=l,b=n,w=i;T;)switch(R=c,c=he()){case 40:if(R!=108&&K(w,m-1)==58){ct(w+=_(Mt(c),"&","&\f"),"&\f",En(k?u[k-1]:0))!=-1&&(a=-1);break}case 34:case 39:case 91:w+=Mt(c);break;case 9:case 10:case 13:case 32:w+=Ka(R);break;case 92:w+=Ga(lt()-1,7);continue;case 47:switch(je()){case 42:case 47:Je(Za(qa(he(),lt()),t,r,f),f);break;default:w+="/"}break;case 123*C:u[k++]=ve(w)*a;case 125*C:case 59:case 0:switch(c){case 0:case 125:T=0;case 59+v:a==-1&&(w=_(w,/\f/g,"")),S>0&&ve(w)-m&&Je(S>32?Yr(w+";",n,r,m-1,f):Yr(_(w," ","")+";",n,r,m-2,f),f);break;case 59:w+=";";default:if(Je(b=Wr(w,t,r,k,v,s,u,i,g=[],h=[],m,l),l),c===123)if(v===0)ut(w,t,b,b,g,l,m,u,h);else switch(E===99&&K(w,3)===110?100:E){case 100:case 108:case 109:case 115:ut(e,b,b,n&&Je(Wr(e,b,b,0,0,s,u,i,s,g=[],m,h),h),s,h,m,u,n?g:h);break;default:ut(w,b,b,b,[""],h,0,u,h)}}k=v=S=0,C=a=1,i=w="",m=d;break;case 58:m=1+ve(w),S=R;default:if(C<1){if(c==123)--C;else if(c==125&&C++==0&&Wa()==125)continue}switch(w+=tr(c),c*C){case 38:a=v>0?1:(w+="\f",-1);break;case 44:u[k++]=(ve(w)-1)*a,a=1;break;case 64:je()===45&&(w+=Mt(he())),E=je(),v=m=ve(i=w+=Ja(lt())),c++;break;case 45:R===45&&ve(w)==2&&(C=0)}}return l}function Wr(e,t,r,n,s,l,d,u,f,k,v,m){for(var E=s-1,S=s===0?l:[""],R=$n(S),C=0,T=0,a=0;C<n;++C)for(var c=0,i=Fe(e,E+1,E=En(T=d[C])),g=e;c<R;++c)(g=Cn(T>0?S[c]+" "+i:_(i,/&\f/g,S[c])))&&(f[a++]=g);return kt(e,t,r,s===0?xt:u,f,k,v,m)}function Za(e,t,r,n){return kt(e,t,r,kn,tr(Va()),Fe(e,2,-2),0,n)}function Yr(e,t,r,n,s){return kt(e,t,r,er,Fe(e,0,n),Fe(e,n+1,-1),n,s)}function _n(e,t,r){switch(Ua(e,t)){case 5103:return I+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return I+e+e;case 4789:return Ze+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return I+e+Ze+e+z+e+e;case 5936:switch(K(e,t+11)){case 114:return I+e+z+_(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return I+e+z+_(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return I+e+z+_(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return I+e+z+e+e;case 6165:return I+e+z+"flex-"+e+e;case 5187:return I+e+_(e,/(\w+).+(:[^]+)/,I+"box-$1$2"+z+"flex-$1$2")+e;case 5443:return I+e+z+"flex-item-"+_(e,/flex-|-self/g,"")+(xe(e,/flex-|baseline/)?"":z+"grid-row-"+_(e,/flex-|-self/g,""))+e;case 4675:return I+e+z+"flex-line-pack"+_(e,/align-content|flex-|-self/g,"")+e;case 5548:return I+e+z+_(e,"shrink","negative")+e;case 5292:return I+e+z+_(e,"basis","preferred-size")+e;case 6060:return I+"box-"+_(e,"-grow","")+I+e+z+_(e,"grow","positive")+e;case 4554:return I+_(e,/([^-])(transform)/g,"$1"+I+"$2")+e;case 6187:return _(_(_(e,/(zoom-|grab)/,I+"$1"),/(image-set)/,I+"$1"),e,"")+e;case 5495:case 3959:return _(e,/(image-set\([^]*)/,I+"$1$`$1");case 4968:return _(_(e,/(.+:)(flex-)?(.*)/,I+"box-pack:$3"+z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+I+e+e;case 4200:if(!xe(e,/flex-|baseline/))return z+"grid-column-align"+Fe(e,t)+e;break;case 2592:case 3360:return z+_(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,s){return t=s,xe(n.props,/grid-\w+-end/)})?~ct(e+(r=r[t].value),"span",0)?e:z+_(e,"-start","")+e+z+"grid-row-span:"+(~ct(r,"span",0)?xe(r,/\d+/):+xe(r,/\d+/)-+xe(e,/\d+/))+";":z+_(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return xe(n.props,/grid-\w+-start/)})?e:z+_(_(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return _(e,/(.+)-inline(.+)/,I+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ve(e)-1-t>6)switch(K(e,t+1)){case 109:if(K(e,t+4)!==45)break;case 102:return _(e,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+Ze+(K(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ct(e,"stretch",0)?_n(_(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return _(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,s,l,d,u,f,k){return z+s+":"+l+k+(d?z+s+"-span:"+(u?f:+f-+l)+k:"")+e});case 4949:if(K(e,t+6)===121)return _(e,":",":"+I)+e;break;case 6444:switch(K(e,K(e,14)===45?18:11)){case 120:return _(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+I+(K(e,14)===45?"inline-":"")+"box$3$1"+I+"$2$3$1"+z+"$2box$3")+e;case 100:return _(e,":",":"+z)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return _(e,"scroll-","scroll-snap-")+e}return e}function pt(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Qa(e,t,r,n){switch(e.type){case za:if(e.children.length)break;case La:case er:return e.return=e.return||e.value;case kn:return"";case Sn:return e.return=e.value+"{"+pt(e.children,n)+"}";case xt:if(!ve(e.value=e.props.join(",")))return""}return ve(r=pt(e.children,n))?e.return=e.value+"{"+r+"}":""}function es(e){var t=$n(e);return function(r,n,s,l){for(var d="",u=0;u<t;u++)d+=e[u](r,n,s,l)||"";return d}}function ts(e){return function(t){t.root||(t=t.return)&&e(t)}}function rs(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case er:e.return=_n(e.value,e.length,r);return;case Sn:return pt([Ee(e,{value:_(e.value,"@","@"+I)})],n);case xt:if(e.length)return Ba(r=e.props,function(s){switch(xe(s,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ne(Ee(e,{props:[_(s,/:(read-\w+)/,":"+Ze+"$1")]})),Ne(Ee(e,{props:[s]})),Vt(e,{props:Vr(r,n)});break;case"::placeholder":Ne(Ee(e,{props:[_(s,/:(plac\w+)/,":"+I+"input-$1")]})),Ne(Ee(e,{props:[_(s,/:(plac\w+)/,":"+Ze+"$1")]})),Ne(Ee(e,{props:[_(s,/:(plac\w+)/,z+"input-$1")]})),Ne(Ee(e,{props:[s]})),Vt(e,{props:Vr(r,n)});break}return""})}}var ns={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Te=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",jn="active",On="data-styled-version",Et="6.1.19",rr=`/*!sc*/
|
|
48
48
|
`,ht=typeof window<"u"&&typeof document<"u",os=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),Hr=/invalid hook call/i,rt=new Set,as=function(e,t){if(process.env.NODE_ENV!=="production"){var r=t?' with the id of "'.concat(t,'"'):"",n="The component ".concat(e).concat(r,` has been created dynamically.
|
|
49
49
|
`)+`You may see this warning because you've called styled inside another component.
|
|
50
50
|
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
@@ -90,7 +90,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
90
90
|
|
|
91
91
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
92
92
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
93
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function xs(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],s=1,l=e.length;s<l;s+=1)n.push(e[s]);return n.forEach(function(d){r=r.replace(/%[a-z]/,d)}),r}function Ye(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(xs.apply(void 0,Me([bs[e]],t,!1)).trim())}var ws=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,s=n.length,l=s;t>=l;)if((l<<=1)<0)throw Ye(16,"".concat(t));this.groupSizes=new Uint32Array(l),this.groupSizes.set(n),this.length=l;for(var d=s;d<l;d++)this.groupSizes[d]=0}for(var u=this.indexOfGroup(t+1),f=(d=0,r.length);d<f;d++)this.tag.insertRule(u,r[d])&&(this.groupSizes[t]++,u++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),s=n+r;this.groupSizes[t]=0;for(var l=n;l<s;l++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],s=this.indexOfGroup(t),l=s+n,d=s;d<l;d++)r+="".concat(this.tag.getRule(d)).concat(rr);return r},e}(),ks=1<<30,dt=new Map,mt=new Map,ft=1,ot=function(e){if(dt.has(e))return dt.get(e);for(;mt.has(ft);)ft++;var t=ft++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>ks))throw Ye(16,"".concat(t));return dt.set(e,t),mt.set(t,e),t},Ss=function(e,t){ft=t+1,dt.set(e,t),mt.set(t,e)},Es="style[".concat(Te,"][").concat(On,'="').concat(Et,'"]'),Cs=new RegExp("^".concat(Te,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),$s=function(e,t,r){for(var n,s=r.split(","),l=0,d=s.length;l<d;l++)(n=s[l])&&e.registerName(t,n)},Rs=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(rr),s=[],l=0,d=n.length;l<d;l++){var u=n[l].trim();if(u){var f=u.match(Cs);if(f){var k=0|parseInt(f[1],10),v=f[2];k!==0&&(Ss(v,k),$s(e,v,f[3]),e.getTag().insertRules(k,s)),s.length=0}else s.push(u)}}},Qr=function(e){for(var t=document.querySelectorAll(Es),r=0,n=t.length;r<n;r++){var s=t[r];s&&s.getAttribute(Te)!==jn&&(Rs(e,s),s.parentNode&&s.parentNode.removeChild(s))}};function _s(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Fn=function(e){var t=document.head,r=e||t,n=document.createElement("style"),s=function(u){var f=Array.from(u.querySelectorAll("style[".concat(Te,"]")));return f[f.length-1]}(r),l=s!==void 0?s.nextSibling:null;n.setAttribute(Te,jn),n.setAttribute(On,Et);var d=_s();return d&&n.setAttribute("nonce",d),r.insertBefore(n,l),n},js=function(){function e(t){this.element=Fn(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,s=0,l=n.length;s<l;s++){var d=n[s];if(d.ownerNode===r)return d}throw Ye(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),Os=function(){function e(t){this.element=Fn(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Ts=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),en=ht,Ps={isServer:!ht,useCSSOMInjection:!os},Ln=function(){function e(t,r,n){t===void 0&&(t=ze),r===void 0&&(r={});var s=this;this.options=te(te({},Ps),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&ht&&en&&(en=!1,Qr(this)),or(this,function(){return function(l){for(var d=l.getTag(),u=d.length,f="",k=function(m){var E=function(a){return mt.get(a)}(m);if(E===void 0)return"continue";var S=l.names.get(E),R=d.getGroup(m);if(S===void 0||!S.size||R.length===0)return"continue";var C="".concat(Te,".g").concat(m,'[id="').concat(E,'"]'),P="";S!==void 0&&S.forEach(function(a){a.length>0&&(P+="".concat(a,","))}),f+="".concat(R).concat(C,'{content:"').concat(P,'"}').concat(rr)},v=0;v<u;v++)k(v);return f}(s)})}return e.registerId=function(t){return ot(t)},e.prototype.rehydrate=function(){!this.server&&ht&&Qr(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(te(te({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var n=r.useCSSOMInjection,s=r.target;return r.isServer?new Ts(s):n?new js(s):new Os(s)}(this.options),new ws(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(ot(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(ot(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(ot(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),As=/&/g,Is=/^\s*\/\/.*$/gm;function zn(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=zn(r.children,t)),r})}function Ns(e){var t,r,n,s=ze,l=s.options,d=l===void 0?ze:l,u=s.plugins,f=u===void 0?Ct:u,k=function(E,S,R){return R.startsWith(r)&&R.endsWith(r)&&R.replaceAll(r,"").length>0?".".concat(t):E},v=f.slice();v.push(function(E){E.type===xt&&E.value.includes("&")&&(E.props[0]=E.props[0].replace(As,r).replace(n,k))}),d.prefix&&v.push(rs),v.push(Qa);var m=function(E,S,R,C){S===void 0&&(S=""),R===void 0&&(R=""),C===void 0&&(C="&"),t=C,r=S,n=new RegExp("\\".concat(r,"\\b"),"g");var P=E.replace(Is,""),a=Xa(R||S?"".concat(R," ").concat(S," { ").concat(P," }"):P);d.namespace&&(a=zn(a,d.namespace));var c=[];return pt(a,es(v.concat(ts(function(i){return c.push(i)})))),c};return m.hash=f.length?f.reduce(function(E,S){return S.name||Ye(15),Re(E,S.name)},Tn).toString():"",m}var Ds=new Ln,qt=Ns(),Un=j.createContext({shouldForwardProp:void 0,styleSheet:Ds,stylis:qt});Un.Consumer;j.createContext(void 0);function tn(){return j.useContext(Un)}var rn=function(){function e(t,r){var n=this;this.inject=function(s,l){l===void 0&&(l=qt);var d=n.name+l.hash;s.hasNameForId(n.id,d)||s.insertRules(n.id,d,l(n.rules,d,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,or(this,function(){throw Ye(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=qt),this.name+t.hash},e}(),Ms=function(e){return e>="A"&&e<="Z"};function nn(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Ms(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Bn=function(e){return e==null||e===!1||e===""},Vn=function(e){var t,r,n=[];for(var s in e){var l=e[s];e.hasOwnProperty(s)&&!Bn(l)&&(Array.isArray(l)&&l.isCss||Ue(l)?n.push("".concat(nn(s),":"),l,";"):Be(l)?n.push.apply(n,Me(Me(["".concat(s," {")],Vn(l),!1),["}"],!1)):n.push("".concat(nn(s),": ").concat((t=s,(r=l)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in ns||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Oe(e,t,r,n){if(Bn(e))return[];if(nr(e))return[".".concat(e.styledComponentId)];if(Ue(e)){if(!Ue(l=e)||l.prototype&&l.prototype.isReactComponent||!t)return[e];var s=e(t);return process.env.NODE_ENV==="production"||typeof s!="object"||Array.isArray(s)||s instanceof rn||Be(s)||s===null||console.error("".concat(An(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Oe(s,t,r,n)}var l;return e instanceof rn?r?(e.inject(r,n),[e.getName(n)]):[e]:Be(e)?Vn(e):Array.isArray(e)?Array.prototype.concat.apply(Ct,e.map(function(d){return Oe(d,t,r,n)})):[e.toString()]}function Fs(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ue(r)&&!nr(r))return!1}return!0}var Ls=Pn(Et),zs=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&Fs(t),this.componentId=r,this.baseHash=Re(Ls,r),this.baseStyle=n,Ln.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var s=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))s=_e(s,this.staticRulesId);else{var l=Zr(Oe(this.rules,t,r,n)),d=Kt(Re(this.baseHash,l)>>>0);if(!r.hasNameForId(this.componentId,d)){var u=n(l,".".concat(d),void 0,this.componentId);r.insertRules(this.componentId,d,u)}s=_e(s,d),this.staticRulesId=d}else{for(var f=Re(this.baseHash,n.hash),k="",v=0;v<this.rules.length;v++){var m=this.rules[v];if(typeof m=="string")k+=m,process.env.NODE_ENV!=="production"&&(f=Re(f,m));else if(m){var E=Zr(Oe(m,t,r,n));f=Re(f,E+v),k+=E}}if(k){var S=Kt(f>>>0);r.hasNameForId(this.componentId,S)||r.insertRules(this.componentId,S,n(k,".".concat(S),void 0,this.componentId)),s=_e(s,S)}}return s},e}(),Wn=j.createContext(void 0);Wn.Consumer;var zt={},on=new Set;function Us(e,t,r){var n=nr(e),s=e,l=!Lt(e),d=t.attrs,u=d===void 0?Ct:d,f=t.componentId,k=f===void 0?function(g,h){var b=typeof g!="string"?"sc":Kr(g);zt[b]=(zt[b]||0)+1;var w="".concat(b,"-").concat(us(Et+b+zt[b]));return h?"".concat(h,"-").concat(w):w}(t.displayName,t.parentComponentId):f,v=t.displayName,m=v===void 0?function(g){return Lt(g)?"styled.".concat(g):"Styled(".concat(An(g),")")}(e):v,E=t.displayName&&t.componentId?"".concat(Kr(t.displayName),"-").concat(t.componentId):t.componentId||k,S=n&&s.attrs?s.attrs.concat(u).filter(Boolean):u,R=t.shouldForwardProp;if(n&&s.shouldForwardProp){var C=s.shouldForwardProp;if(t.shouldForwardProp){var P=t.shouldForwardProp;R=function(g,h){return C(g,h)&&P(g,h)}}else R=C}var a=new zs(r,E,n?s.componentStyle:void 0);function c(g,h){return function(b,w,N){var M=b.attrs,U=b.componentStyle,D=b.defaultProps,V=b.foldedComponentIds,F=b.styledComponentId,oe=b.target,Z=j.useContext(Wn),ae=tn(),Q=b.shouldForwardProp||ae.shouldForwardProp;process.env.NODE_ENV!=="production"&&j.useDebugValue(F);var re=ss(w,Z,D)||ze,G=function(me,ue,ge){for(var de,fe=te(te({},ue),{className:void 0,theme:ge}),we=0;we<me.length;we+=1){var Pe=Ue(de=me[we])?de(fe):de;for(var pe in Pe)fe[pe]=pe==="className"?_e(fe[pe],Pe[pe]):pe==="style"?te(te({},fe[pe]),Pe[pe]):Pe[pe]}return ue.className&&(fe.className=_e(fe.className,ue.className)),fe}(M,w,re),se=G.as||oe,ne={};for(var B in G)G[B]===void 0||B[0]==="$"||B==="as"||B==="theme"&&G.theme===re||(B==="forwardedAs"?ne.as=G.forwardedAs:Q&&!Q(B,se)||(ne[B]=G[B],Q||process.env.NODE_ENV!=="development"||Fa(B)||on.has(B)||!Ht.has(se)||(on.add(B),console.warn('styled-components: it looks like an unknown prop "'.concat(B,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var q=function(me,ue){var ge=tn(),de=me.generateAndInjectStyles(ue,ge.styleSheet,ge.stylis);return process.env.NODE_ENV!=="production"&&j.useDebugValue(de),de}(U,G);process.env.NODE_ENV!=="production"&&b.warnTooManyClasses&&b.warnTooManyClasses(q);var ie=_e(V,F);return q&&(ie+=" "+q),G.className&&(ie+=" "+G.className),ne[Lt(se)&&!Ht.has(se)?"class":"className"]=ie,N&&(ne.ref=N),j.createElement(se,ne)}(i,g,h)}c.displayName=m;var i=j.forwardRef(c);return i.attrs=S,i.componentStyle=a,i.displayName=m,i.shouldForwardProp=R,i.foldedComponentIds=n?_e(s.foldedComponentIds,s.styledComponentId):"",i.styledComponentId=E,i.target=n?s.target:e,Object.defineProperty(i,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(g){this._foldedDefaultProps=n?function(h){for(var b=[],w=1;w<arguments.length;w++)b[w-1]=arguments[w];for(var N=0,M=b;N<M.length;N++)Gt(h,M[N],!0);return h}({},s.defaultProps,g):g}}),process.env.NODE_ENV!=="production"&&(as(m,E),i.warnTooManyClasses=function(g,h){var b={},w=!1;return function(N){if(!w&&(b[N]=!0,Object.keys(b).length>=200)){var M=h?' with the id of "'.concat(h,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(g).concat(M,`.
|
|
93
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function xs(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],s=1,l=e.length;s<l;s+=1)n.push(e[s]);return n.forEach(function(d){r=r.replace(/%[a-z]/,d)}),r}function Ye(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(xs.apply(void 0,Me([bs[e]],t,!1)).trim())}var ws=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,s=n.length,l=s;t>=l;)if((l<<=1)<0)throw Ye(16,"".concat(t));this.groupSizes=new Uint32Array(l),this.groupSizes.set(n),this.length=l;for(var d=s;d<l;d++)this.groupSizes[d]=0}for(var u=this.indexOfGroup(t+1),f=(d=0,r.length);d<f;d++)this.tag.insertRule(u,r[d])&&(this.groupSizes[t]++,u++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),s=n+r;this.groupSizes[t]=0;for(var l=n;l<s;l++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],s=this.indexOfGroup(t),l=s+n,d=s;d<l;d++)r+="".concat(this.tag.getRule(d)).concat(rr);return r},e}(),ks=1<<30,dt=new Map,mt=new Map,ft=1,ot=function(e){if(dt.has(e))return dt.get(e);for(;mt.has(ft);)ft++;var t=ft++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>ks))throw Ye(16,"".concat(t));return dt.set(e,t),mt.set(t,e),t},Ss=function(e,t){ft=t+1,dt.set(e,t),mt.set(t,e)},Es="style[".concat(Te,"][").concat(On,'="').concat(Et,'"]'),Cs=new RegExp("^".concat(Te,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),$s=function(e,t,r){for(var n,s=r.split(","),l=0,d=s.length;l<d;l++)(n=s[l])&&e.registerName(t,n)},Rs=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(rr),s=[],l=0,d=n.length;l<d;l++){var u=n[l].trim();if(u){var f=u.match(Cs);if(f){var k=0|parseInt(f[1],10),v=f[2];k!==0&&(Ss(v,k),$s(e,v,f[3]),e.getTag().insertRules(k,s)),s.length=0}else s.push(u)}}},Qr=function(e){for(var t=document.querySelectorAll(Es),r=0,n=t.length;r<n;r++){var s=t[r];s&&s.getAttribute(Te)!==jn&&(Rs(e,s),s.parentNode&&s.parentNode.removeChild(s))}};function _s(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Fn=function(e){var t=document.head,r=e||t,n=document.createElement("style"),s=function(u){var f=Array.from(u.querySelectorAll("style[".concat(Te,"]")));return f[f.length-1]}(r),l=s!==void 0?s.nextSibling:null;n.setAttribute(Te,jn),n.setAttribute(On,Et);var d=_s();return d&&n.setAttribute("nonce",d),r.insertBefore(n,l),n},js=function(){function e(t){this.element=Fn(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,s=0,l=n.length;s<l;s++){var d=n[s];if(d.ownerNode===r)return d}throw Ye(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),Os=function(){function e(t){this.element=Fn(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Ts=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),en=ht,Ps={isServer:!ht,useCSSOMInjection:!os},Ln=function(){function e(t,r,n){t===void 0&&(t=ze),r===void 0&&(r={});var s=this;this.options=te(te({},Ps),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&ht&&en&&(en=!1,Qr(this)),or(this,function(){return function(l){for(var d=l.getTag(),u=d.length,f="",k=function(m){var E=function(a){return mt.get(a)}(m);if(E===void 0)return"continue";var S=l.names.get(E),R=d.getGroup(m);if(S===void 0||!S.size||R.length===0)return"continue";var C="".concat(Te,".g").concat(m,'[id="').concat(E,'"]'),T="";S!==void 0&&S.forEach(function(a){a.length>0&&(T+="".concat(a,","))}),f+="".concat(R).concat(C,'{content:"').concat(T,'"}').concat(rr)},v=0;v<u;v++)k(v);return f}(s)})}return e.registerId=function(t){return ot(t)},e.prototype.rehydrate=function(){!this.server&&ht&&Qr(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(te(te({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var n=r.useCSSOMInjection,s=r.target;return r.isServer?new Ts(s):n?new js(s):new Os(s)}(this.options),new ws(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(ot(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(ot(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(ot(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),As=/&/g,Is=/^\s*\/\/.*$/gm;function zn(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=zn(r.children,t)),r})}function Ns(e){var t,r,n,s=ze,l=s.options,d=l===void 0?ze:l,u=s.plugins,f=u===void 0?Ct:u,k=function(E,S,R){return R.startsWith(r)&&R.endsWith(r)&&R.replaceAll(r,"").length>0?".".concat(t):E},v=f.slice();v.push(function(E){E.type===xt&&E.value.includes("&")&&(E.props[0]=E.props[0].replace(As,r).replace(n,k))}),d.prefix&&v.push(rs),v.push(Qa);var m=function(E,S,R,C){S===void 0&&(S=""),R===void 0&&(R=""),C===void 0&&(C="&"),t=C,r=S,n=new RegExp("\\".concat(r,"\\b"),"g");var T=E.replace(Is,""),a=Xa(R||S?"".concat(R," ").concat(S," { ").concat(T," }"):T);d.namespace&&(a=zn(a,d.namespace));var c=[];return pt(a,es(v.concat(ts(function(i){return c.push(i)})))),c};return m.hash=f.length?f.reduce(function(E,S){return S.name||Ye(15),Re(E,S.name)},Tn).toString():"",m}var Ds=new Ln,qt=Ns(),Un=j.createContext({shouldForwardProp:void 0,styleSheet:Ds,stylis:qt});Un.Consumer;j.createContext(void 0);function tn(){return j.useContext(Un)}var rn=function(){function e(t,r){var n=this;this.inject=function(s,l){l===void 0&&(l=qt);var d=n.name+l.hash;s.hasNameForId(n.id,d)||s.insertRules(n.id,d,l(n.rules,d,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,or(this,function(){throw Ye(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=qt),this.name+t.hash},e}(),Ms=function(e){return e>="A"&&e<="Z"};function nn(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Ms(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Bn=function(e){return e==null||e===!1||e===""},Vn=function(e){var t,r,n=[];for(var s in e){var l=e[s];e.hasOwnProperty(s)&&!Bn(l)&&(Array.isArray(l)&&l.isCss||Ue(l)?n.push("".concat(nn(s),":"),l,";"):Be(l)?n.push.apply(n,Me(Me(["".concat(s," {")],Vn(l),!1),["}"],!1)):n.push("".concat(nn(s),": ").concat((t=s,(r=l)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in ns||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Oe(e,t,r,n){if(Bn(e))return[];if(nr(e))return[".".concat(e.styledComponentId)];if(Ue(e)){if(!Ue(l=e)||l.prototype&&l.prototype.isReactComponent||!t)return[e];var s=e(t);return process.env.NODE_ENV==="production"||typeof s!="object"||Array.isArray(s)||s instanceof rn||Be(s)||s===null||console.error("".concat(An(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Oe(s,t,r,n)}var l;return e instanceof rn?r?(e.inject(r,n),[e.getName(n)]):[e]:Be(e)?Vn(e):Array.isArray(e)?Array.prototype.concat.apply(Ct,e.map(function(d){return Oe(d,t,r,n)})):[e.toString()]}function Fs(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ue(r)&&!nr(r))return!1}return!0}var Ls=Pn(Et),zs=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&Fs(t),this.componentId=r,this.baseHash=Re(Ls,r),this.baseStyle=n,Ln.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var s=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))s=_e(s,this.staticRulesId);else{var l=Zr(Oe(this.rules,t,r,n)),d=Kt(Re(this.baseHash,l)>>>0);if(!r.hasNameForId(this.componentId,d)){var u=n(l,".".concat(d),void 0,this.componentId);r.insertRules(this.componentId,d,u)}s=_e(s,d),this.staticRulesId=d}else{for(var f=Re(this.baseHash,n.hash),k="",v=0;v<this.rules.length;v++){var m=this.rules[v];if(typeof m=="string")k+=m,process.env.NODE_ENV!=="production"&&(f=Re(f,m));else if(m){var E=Zr(Oe(m,t,r,n));f=Re(f,E+v),k+=E}}if(k){var S=Kt(f>>>0);r.hasNameForId(this.componentId,S)||r.insertRules(this.componentId,S,n(k,".".concat(S),void 0,this.componentId)),s=_e(s,S)}}return s},e}(),Wn=j.createContext(void 0);Wn.Consumer;var zt={},on=new Set;function Us(e,t,r){var n=nr(e),s=e,l=!Lt(e),d=t.attrs,u=d===void 0?Ct:d,f=t.componentId,k=f===void 0?function(g,h){var b=typeof g!="string"?"sc":Kr(g);zt[b]=(zt[b]||0)+1;var w="".concat(b,"-").concat(us(Et+b+zt[b]));return h?"".concat(h,"-").concat(w):w}(t.displayName,t.parentComponentId):f,v=t.displayName,m=v===void 0?function(g){return Lt(g)?"styled.".concat(g):"Styled(".concat(An(g),")")}(e):v,E=t.displayName&&t.componentId?"".concat(Kr(t.displayName),"-").concat(t.componentId):t.componentId||k,S=n&&s.attrs?s.attrs.concat(u).filter(Boolean):u,R=t.shouldForwardProp;if(n&&s.shouldForwardProp){var C=s.shouldForwardProp;if(t.shouldForwardProp){var T=t.shouldForwardProp;R=function(g,h){return C(g,h)&&T(g,h)}}else R=C}var a=new zs(r,E,n?s.componentStyle:void 0);function c(g,h){return function(b,w,N){var M=b.attrs,U=b.componentStyle,D=b.defaultProps,V=b.foldedComponentIds,F=b.styledComponentId,oe=b.target,Z=j.useContext(Wn),ae=tn(),Q=b.shouldForwardProp||ae.shouldForwardProp;process.env.NODE_ENV!=="production"&&j.useDebugValue(F);var re=ss(w,Z,D)||ze,G=function(me,ue,ge){for(var de,fe=te(te({},ue),{className:void 0,theme:ge}),we=0;we<me.length;we+=1){var Pe=Ue(de=me[we])?de(fe):de;for(var pe in Pe)fe[pe]=pe==="className"?_e(fe[pe],Pe[pe]):pe==="style"?te(te({},fe[pe]),Pe[pe]):Pe[pe]}return ue.className&&(fe.className=_e(fe.className,ue.className)),fe}(M,w,re),se=G.as||oe,ne={};for(var B in G)G[B]===void 0||B[0]==="$"||B==="as"||B==="theme"&&G.theme===re||(B==="forwardedAs"?ne.as=G.forwardedAs:Q&&!Q(B,se)||(ne[B]=G[B],Q||process.env.NODE_ENV!=="development"||Fa(B)||on.has(B)||!Ht.has(se)||(on.add(B),console.warn('styled-components: it looks like an unknown prop "'.concat(B,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var q=function(me,ue){var ge=tn(),de=me.generateAndInjectStyles(ue,ge.styleSheet,ge.stylis);return process.env.NODE_ENV!=="production"&&j.useDebugValue(de),de}(U,G);process.env.NODE_ENV!=="production"&&b.warnTooManyClasses&&b.warnTooManyClasses(q);var ie=_e(V,F);return q&&(ie+=" "+q),G.className&&(ie+=" "+G.className),ne[Lt(se)&&!Ht.has(se)?"class":"className"]=ie,N&&(ne.ref=N),j.createElement(se,ne)}(i,g,h)}c.displayName=m;var i=j.forwardRef(c);return i.attrs=S,i.componentStyle=a,i.displayName=m,i.shouldForwardProp=R,i.foldedComponentIds=n?_e(s.foldedComponentIds,s.styledComponentId):"",i.styledComponentId=E,i.target=n?s.target:e,Object.defineProperty(i,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(g){this._foldedDefaultProps=n?function(h){for(var b=[],w=1;w<arguments.length;w++)b[w-1]=arguments[w];for(var N=0,M=b;N<M.length;N++)Gt(h,M[N],!0);return h}({},s.defaultProps,g):g}}),process.env.NODE_ENV!=="production"&&(as(m,E),i.warnTooManyClasses=function(g,h){var b={},w=!1;return function(N){if(!w&&(b[N]=!0,Object.keys(b).length>=200)){var M=h?' with the id of "'.concat(h,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(g).concat(M,`.
|
|
94
94
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
95
95
|
Example:
|
|
96
96
|
const Component = styled.div.attrs(props => ({
|
|
@@ -475,4 +475,4 @@ See https://s-c.sh/2BAXzed for more info.`),window[at]+=1);const Hn=X.div`
|
|
|
475
475
|
*
|
|
476
476
|
* This source code is licensed under the ISC license.
|
|
477
477
|
* See the LICENSE file in the root directory of this source tree.
|
|
478
|
-
*/const ti=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],fr=Gn("send",ti);function qn({config:e,chat:t}){const{messages:r,sendMessage:n,isLoading:s,error:l}=t,[d,u]=j.useState(""),[f,k]=j.useState(!1),v=j.useRef(null);j.useEffect(()=>{const S=()=>{k(window.matchMedia("(prefers-color-scheme: dark)").matches)};S();const R=window.matchMedia("(prefers-color-scheme: dark)");return R.addEventListener("change",S),()=>R.removeEventListener("change",S)},[]);const m=async()=>{!d.trim()||s||(await n(d.trim()),u(""),setTimeout(()=>{var S;(S=v.current)==null||S.focus()},100))},E=S=>{S.key==="Enter"&&!S.shiftKey&&(S.preventDefault(),m())};return y.jsxs(Hn,{"data-theme":f?"dark":"light",style:{height:e.height,display:"flex",flexDirection:"column",borderRadius:"8px"},children:[y.jsxs(ir,{style:{flex:1,padding:"16px"},children:[r.map(S=>y.jsx("div",{style:{display:"flex",marginBottom:"16px",justifyContent:S.role==="user"?"flex-end":"flex-start"},children:y.jsxs(Ve,{$isUser:S.role==="user",children:[S.role==="assistant"?y.jsx(bt,{content:S.content}):S.content,y.jsx(lr,{$isUser:S.role==="user",children:gt(S.timestamp)})]})},S.id)),s&&y.jsx("div",{style:{display:"flex",justifyContent:"flex-start",marginBottom:"16px"},children:y.jsx(Ve,{$isUser:!1,children:y.jsxs(cr,{children:[y.jsx("div",{className:"dot"}),y.jsx("div",{className:"dot"}),y.jsx("div",{className:"dot"})]})})}),l&&y.jsx(ur,{children:l})]}),y.jsxs(ar,{children:[y.jsx(dr,{ref:v,value:d,onChange:u,onKeyDown:E,placeholder:e.placeholder,disabled:s}),y.jsx(sr,{onClick:m,disabled:s||!d.trim(),children:y.jsx(fr,{size:16})})]})]})}function Xt({config:e,chat:t}){const{messages:r,sendMessage:n,isLoading:s,error:l,isOpen:d,setIsOpen:u}=t,[f,k]=j.useState(""),[v,m]=j.useState(e.height||400),E=j.useRef(null),S=async()=>{!f.trim()||s||(await n(f.trim()),k(""),setTimeout(()=>{var C;(C=E.current)==null||C.focus()},100))},R=C=>{C.key==="Enter"&&!C.shiftKey&&(C.preventDefault(),S())};return d?y.jsxs(Ys,{$position:e.position||"bottom-right",style:{height:v,...e.chatWindowStyle},children:[e.resizable!==!1&&y.jsx(Ks,{$position:"top",onMouseDown:C=>{C.preventDefault();const
|
|
478
|
+
*/const ti=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],fr=Gn("send",ti);function qn({config:e,chat:t}){const{messages:r,sendMessage:n,isLoading:s,error:l}=t,[d,u]=j.useState(""),[f,k]=j.useState(!1),v=j.useRef(null);j.useEffect(()=>{const S=()=>{k(window.matchMedia("(prefers-color-scheme: dark)").matches)};S();const R=window.matchMedia("(prefers-color-scheme: dark)");return R.addEventListener("change",S),()=>R.removeEventListener("change",S)},[]);const m=async()=>{!d.trim()||s||(await n(d.trim()),u(""),setTimeout(()=>{var S;(S=v.current)==null||S.focus()},100))},E=S=>{S.key==="Enter"&&!S.shiftKey&&(S.preventDefault(),m())};return y.jsxs(Hn,{"data-theme":f?"dark":"light",style:{height:e.height,display:"flex",flexDirection:"column",borderRadius:"8px"},children:[y.jsxs(ir,{style:{flex:1,padding:"16px"},children:[r.map(S=>y.jsx("div",{style:{display:"flex",marginBottom:"16px",justifyContent:S.role==="user"?"flex-end":"flex-start"},children:y.jsxs(Ve,{$isUser:S.role==="user",children:[S.role==="assistant"?y.jsx(bt,{content:S.content}):S.content,y.jsx(lr,{$isUser:S.role==="user",children:gt(S.timestamp)})]})},S.id)),s&&y.jsx("div",{style:{display:"flex",justifyContent:"flex-start",marginBottom:"16px"},children:y.jsx(Ve,{$isUser:!1,children:y.jsxs(cr,{children:[y.jsx("div",{className:"dot"}),y.jsx("div",{className:"dot"}),y.jsx("div",{className:"dot"})]})})}),l&&y.jsx(ur,{children:l})]}),y.jsxs(ar,{children:[y.jsx(dr,{ref:v,value:d,onChange:u,onKeyDown:E,placeholder:e.placeholder,disabled:s}),y.jsx(sr,{onClick:m,disabled:s||!d.trim(),children:y.jsx(fr,{size:16})})]})]})}function Xt({config:e,chat:t}){const{messages:r,sendMessage:n,isLoading:s,error:l,isOpen:d,setIsOpen:u}=t,[f,k]=j.useState(""),[v,m]=j.useState(e.height||400),E=j.useRef(null),S=async()=>{!f.trim()||s||(await n(f.trim()),k(""),setTimeout(()=>{var C;(C=E.current)==null||C.focus()},100))},R=C=>{C.key==="Enter"&&!C.shiftKey&&(C.preventDefault(),S())};return d?y.jsxs(Ys,{$position:e.position||"bottom-right",style:{height:v,...e.chatWindowStyle},children:[e.resizable!==!1&&y.jsx(Ks,{$position:"top",onMouseDown:C=>{C.preventDefault();const T=C.clientY,a=typeof v=="number"?v:400,c=g=>{const h=g.clientY-T,b=a-h;m(Math.max(200,Math.min(600,b)))},i=()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",c),document.addEventListener("mouseup",i)}}),e.showHeader!==!1&&y.jsxs(Hs,{primaryColor:e.primaryColor,children:[y.jsx("div",{className:"header-content",children:y.jsx("div",{className:"font-medium",children:e.chatName||"Chat Assistant"})}),y.jsx("div",{className:"header-actions",children:y.jsx("button",{onClick:()=>u(!1),className:"hover:bg-white/10 p-1 rounded",children:y.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[y.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),y.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})})]}),y.jsxs(ir,{children:[r.map(C=>y.jsx("div",{style:{display:"flex",marginBottom:"16px",justifyContent:C.role==="user"?"flex-end":"flex-start"},children:y.jsxs(Ve,{$isUser:C.role==="user",children:[C.role==="assistant"?y.jsx(bt,{content:C.content}):C.content,y.jsx(lr,{$isUser:C.role==="user",children:gt(C.timestamp)})]})},C.id)),s&&y.jsx("div",{style:{display:"flex",justifyContent:"flex-start",marginBottom:"16px"},children:y.jsx(Ve,{$isUser:!1,children:y.jsxs(cr,{children:[y.jsx("div",{className:"dot"}),y.jsx("div",{className:"dot"}),y.jsx("div",{className:"dot"})]})})}),l&&y.jsx(ur,{children:l})]}),y.jsxs(ar,{children:[y.jsx(dr,{ref:E,value:f,onChange:k,onKeyDown:R,placeholder:e.placeholder,disabled:s}),y.jsx(sr,{onClick:S,disabled:s||!f.trim(),children:y.jsx(fr,{size:16})})]})]}):y.jsxs(Ws,{onClick:()=>u(!0),style:e.buttonStyle,"aria-label":"Open chat",children:[y.jsx("div",{className:"icon-container",children:y.jsx(ei,{size:16})}),y.jsx("span",{children:e.buttonText||e.chatName||"AI Chat"})]})}function ri(e){const t=pn(e),r=fn(t);switch(t.mode){case"floating":return y.jsx(Xt,{config:t,chat:r});case"embedded":return y.jsx(qn,{config:t,chat:r});default:return y.jsx(Xt,{config:t,chat:r})}}function ni({config:e,chat:t}){const{messages:r,sendMessage:n,isLoading:s,error:l}=t,[d,u]=j.useState(""),f=j.useRef(null),k=async()=>{!d.trim()||s||(await n(d.trim()),u(""),setTimeout(()=>{var m;(m=f.current)==null||m.focus()},100))},v=m=>{m.key==="Enter"&&!m.shiftKey&&(m.preventDefault(),k())};return y.jsxs(Hn,{style:{height:e.height,display:"flex",flexDirection:"column",backgroundColor:"white",border:"1px solid #e5e7eb",borderRadius:"8px"},children:[y.jsxs(ir,{style:{flex:1,padding:"12px"},children:[r.map(m=>y.jsx("div",{style:{display:"flex",marginBottom:"12px",justifyContent:m.role==="user"?"flex-end":"flex-start"},children:y.jsxs(Ve,{$isUser:m.role==="user",children:[m.role==="assistant"?y.jsx(bt,{content:m.content}):m.content,y.jsx(lr,{$isUser:m.role==="user",children:gt(m.timestamp)})]})},m.id)),s&&y.jsx("div",{style:{display:"flex",justifyContent:"flex-start",marginBottom:"12px"},children:y.jsx(Ve,{$isUser:!1,children:y.jsxs(cr,{children:[y.jsx("div",{className:"dot"}),y.jsx("div",{className:"dot"}),y.jsx("div",{className:"dot"})]})})}),l&&y.jsx(ur,{children:l})]}),y.jsxs(ar,{children:[y.jsx(dr,{ref:f,value:d,onChange:u,onKeyDown:v,placeholder:e.placeholder,disabled:s}),y.jsx(sr,{onClick:k,disabled:s||!d.trim(),children:y.jsx(fr,{size:16})})]})]})}exports.EmbeddedChat=qn;exports.FloatingChat=Xt;exports.InlineChat=ni;exports.MarkdownRenderer=bt;exports.OrdifyApiClient=un;exports.OrdifyChat=ri;exports.debounce=$o;exports.formatTime=gt;exports.generateId=Bt;exports.parseStreamingResponse=dn;exports.throttle=Ro;exports.useOrdifyChat=fn;exports.useOrdifyConfig=pn;
|
package/dist/index.esm.js
CHANGED
|
@@ -41,7 +41,7 @@ var Tr;
|
|
|
41
41
|
function Ro() {
|
|
42
42
|
return Tr || (Tr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
43
|
var e = q, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), u = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), R = Symbol.iterator, C = "@@iterator";
|
|
44
|
-
function
|
|
44
|
+
function O(o) {
|
|
45
45
|
if (o === null || typeof o != "object")
|
|
46
46
|
return null;
|
|
47
47
|
var p = R && o[R] || o[C];
|
|
@@ -59,8 +59,8 @@ function Ro() {
|
|
|
59
59
|
{
|
|
60
60
|
var $ = a.ReactDebugCurrentFrame, P = $.getStackAddendum();
|
|
61
61
|
P !== "" && (p += "%s", x = x.concat([P]));
|
|
62
|
-
var L = x.map(function(
|
|
63
|
-
return String(
|
|
62
|
+
var L = x.map(function(T) {
|
|
63
|
+
return String(T);
|
|
64
64
|
});
|
|
65
65
|
L.unshift("Warning: " + p), Function.prototype.apply.call(console[o], console, L);
|
|
66
66
|
}
|
|
@@ -119,9 +119,9 @@ function Ro() {
|
|
|
119
119
|
var $ = o.displayName || null;
|
|
120
120
|
return $ !== null ? $ : M(o.type) || "Memo";
|
|
121
121
|
case E: {
|
|
122
|
-
var P = o, L = P._payload,
|
|
122
|
+
var P = o, L = P._payload, T = P._init;
|
|
123
123
|
try {
|
|
124
|
-
return M(
|
|
124
|
+
return M(T(L));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -226,27 +226,27 @@ function Ro() {
|
|
|
226
226
|
L = ue.current, ue.current = null, ie();
|
|
227
227
|
try {
|
|
228
228
|
if (p) {
|
|
229
|
-
var
|
|
229
|
+
var T = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
232
|
-
if (Object.defineProperty(
|
|
232
|
+
if (Object.defineProperty(T.prototype, "props", {
|
|
233
233
|
set: function() {
|
|
234
234
|
throw Error();
|
|
235
235
|
}
|
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
237
|
try {
|
|
238
|
-
Reflect.construct(
|
|
238
|
+
Reflect.construct(T, []);
|
|
239
239
|
} catch (ee) {
|
|
240
240
|
$ = ee;
|
|
241
241
|
}
|
|
242
|
-
Reflect.construct(o, [],
|
|
242
|
+
Reflect.construct(o, [], T);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
|
-
|
|
245
|
+
T.call();
|
|
246
246
|
} catch (ee) {
|
|
247
247
|
$ = ee;
|
|
248
248
|
}
|
|
249
|
-
o.call(
|
|
249
|
+
o.call(T.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
@@ -328,19 +328,19 @@ function Ro() {
|
|
|
328
328
|
function Qn(o, p, x, $, P) {
|
|
329
329
|
{
|
|
330
330
|
var L = Function.call.bind(He);
|
|
331
|
-
for (var
|
|
332
|
-
if (L(o,
|
|
331
|
+
for (var T in o)
|
|
332
|
+
if (L(o, T)) {
|
|
333
333
|
var j = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof o[
|
|
336
|
-
var J = Error(($ || "React class") + ": " + x + " type `" +
|
|
335
|
+
if (typeof o[T] != "function") {
|
|
336
|
+
var J = Error(($ || "React class") + ": " + x + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
337
|
throw J.name = "Invariant Violation", J;
|
|
338
338
|
}
|
|
339
|
-
j = o[
|
|
339
|
+
j = o[T](p, T, $, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
340
|
} catch (W) {
|
|
341
341
|
j = W;
|
|
342
342
|
}
|
|
343
|
-
j && !(j instanceof Error) && (tt(P), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", x,
|
|
343
|
+
j && !(j instanceof Error) && (tt(P), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", $ || "React class", x, T, typeof j), tt(null)), j instanceof Error && !(j.message in pr) && (pr[j.message] = !0, tt(P), c("Failed %s type: %s", x, j.message), tt(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -415,7 +415,7 @@ function Ro() {
|
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
var lo = function(o, p, x, $, P, L,
|
|
418
|
+
var lo = function(o, p, x, $, P, L, T) {
|
|
419
419
|
var j = {
|
|
420
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
421
|
$$typeof: t,
|
|
@@ -423,7 +423,7 @@ function Ro() {
|
|
|
423
423
|
type: o,
|
|
424
424
|
key: p,
|
|
425
425
|
ref: x,
|
|
426
|
-
props:
|
|
426
|
+
props: T,
|
|
427
427
|
// Record the component responsible for creating this element.
|
|
428
428
|
_owner: L
|
|
429
429
|
};
|
|
@@ -446,20 +446,20 @@ function Ro() {
|
|
|
446
446
|
};
|
|
447
447
|
function uo(o, p, x, $, P) {
|
|
448
448
|
{
|
|
449
|
-
var L,
|
|
449
|
+
var L, T = {}, j = null, J = null;
|
|
450
450
|
x !== void 0 && (gr(x), j = "" + x), ao(p) && (gr(p.key), j = "" + p.key), oo(p) && (J = p.ref, so(p, P));
|
|
451
451
|
for (L in p)
|
|
452
|
-
He.call(p, L) && !no.hasOwnProperty(L) && (
|
|
452
|
+
He.call(p, L) && !no.hasOwnProperty(L) && (T[L] = p[L]);
|
|
453
453
|
if (o && o.defaultProps) {
|
|
454
454
|
var W = o.defaultProps;
|
|
455
455
|
for (L in W)
|
|
456
|
-
|
|
456
|
+
T[L] === void 0 && (T[L] = W[L]);
|
|
457
457
|
}
|
|
458
458
|
if (j || J) {
|
|
459
459
|
var V = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
460
|
-
j && io(
|
|
460
|
+
j && io(T, V), J && co(T, V);
|
|
461
461
|
}
|
|
462
|
-
return lo(o, j, J, P, $, yr.current,
|
|
462
|
+
return lo(o, j, J, P, $, yr.current, T);
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
var Rt = a.ReactCurrentOwner, xr = a.ReactDebugCurrentFrame;
|
|
@@ -528,10 +528,10 @@ Check the top-level render call using <` + x + ">.");
|
|
|
528
528
|
else if (jt(o))
|
|
529
529
|
o._store && (o._store.validated = !0);
|
|
530
530
|
else if (o) {
|
|
531
|
-
var P =
|
|
531
|
+
var P = O(o);
|
|
532
532
|
if (typeof P == "function" && P !== o.entries)
|
|
533
|
-
for (var L = P.call(o),
|
|
534
|
-
jt(
|
|
533
|
+
for (var L = P.call(o), T; !(T = L.next()).done; )
|
|
534
|
+
jt(T.value) && Sr(T.value, p);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
}
|
|
@@ -575,8 +575,8 @@ Check the top-level render call using <` + x + ">.");
|
|
|
575
575
|
var Cr = {};
|
|
576
576
|
function $r(o, p, x, $, P, L) {
|
|
577
577
|
{
|
|
578
|
-
var
|
|
579
|
-
if (!
|
|
578
|
+
var T = z(o);
|
|
579
|
+
if (!T) {
|
|
580
580
|
var j = "";
|
|
581
581
|
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (j += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
582
582
|
var J = fo();
|
|
@@ -587,7 +587,7 @@ Check the top-level render call using <` + x + ">.");
|
|
|
587
587
|
var V = uo(o, p, x, P, L);
|
|
588
588
|
if (V == null)
|
|
589
589
|
return V;
|
|
590
|
-
if (
|
|
590
|
+
if (T) {
|
|
591
591
|
var ce = p.children;
|
|
592
592
|
if (ce !== void 0)
|
|
593
593
|
if ($)
|
|
@@ -760,15 +760,15 @@ function Oo(e) {
|
|
|
760
760
|
sessionId: u || void 0
|
|
761
761
|
};
|
|
762
762
|
r((h) => [...h, C]);
|
|
763
|
-
let
|
|
764
|
-
|
|
765
|
-
const c = (await m.current.sendMessage(R.trim(),
|
|
763
|
+
let O = u;
|
|
764
|
+
O || (O = (await m.current.createSession()).id, f(O), e.onSessionCreated && e.onSessionCreated(O));
|
|
765
|
+
const c = (await m.current.sendMessage(R.trim(), O)).getReader(), i = new TextDecoder();
|
|
766
766
|
let g = {
|
|
767
767
|
id: Pr(),
|
|
768
768
|
content: "",
|
|
769
769
|
role: "assistant",
|
|
770
770
|
timestamp: /* @__PURE__ */ new Date(),
|
|
771
|
-
sessionId:
|
|
771
|
+
sessionId: O
|
|
772
772
|
};
|
|
773
773
|
for (r((h) => [...h, g]); ; ) {
|
|
774
774
|
const { done: h, value: b } = await c.read();
|
|
@@ -791,8 +791,8 @@ function Oo(e) {
|
|
|
791
791
|
}
|
|
792
792
|
e.onMessage && e.onMessage(g);
|
|
793
793
|
} catch (C) {
|
|
794
|
-
const
|
|
795
|
-
d(
|
|
794
|
+
const O = C instanceof Error ? C.message : "Failed to send message";
|
|
795
|
+
d(O), e.onError && e.onError(C instanceof Error ? C : new Error(O));
|
|
796
796
|
} finally {
|
|
797
797
|
s(!1);
|
|
798
798
|
}
|
|
@@ -872,15 +872,15 @@ function Wr(e, t) {
|
|
|
872
872
|
`).match(s);
|
|
873
873
|
let m = !1;
|
|
874
874
|
return { items: v.map(function(E, S) {
|
|
875
|
-
const R = l.exec(E)[0].length, C = RegExp("^ {1," + R + "}", "gm"),
|
|
875
|
+
const R = l.exec(E)[0].length, C = RegExp("^ {1," + R + "}", "gm"), O = E.replace(C, "").replace(l, ""), a = S === v.length - 1, c = O.indexOf(`
|
|
876
876
|
|
|
877
877
|
`) !== -1 || a && m;
|
|
878
878
|
m = c;
|
|
879
879
|
const i = f.inline, g = f.list;
|
|
880
880
|
let h;
|
|
881
|
-
f.list = !0, c ? (f.inline = !1, h = Ze(
|
|
881
|
+
f.list = !0, c ? (f.inline = !1, h = Ze(O) + `
|
|
882
882
|
|
|
883
|
-
`) : (f.inline = !0, h = Ze(
|
|
883
|
+
`) : (f.inline = !0, h = Ze(O));
|
|
884
884
|
const b = u(h, f);
|
|
885
885
|
return f.inline = i, f.list = g, b;
|
|
886
886
|
}), ordered: r, start: k };
|
|
@@ -1191,10 +1191,10 @@ function La(e = "", t = {}) {
|
|
|
1191
1191
|
return C(c, a, i);
|
|
1192
1192
|
});
|
|
1193
1193
|
var C;
|
|
1194
|
-
const
|
|
1195
|
-
return v.length ? u("div", null,
|
|
1194
|
+
const O = f(e);
|
|
1195
|
+
return v.length ? u("div", null, O, u("footer", { key: "footer" }, v.map(function(a) {
|
|
1196
1196
|
return u("div", { id: r(a.identifier, Je), key: a.identifier }, a.identifier, R(S(a.footnote, { inline: !0 })));
|
|
1197
|
-
}))) :
|
|
1197
|
+
}))) : O;
|
|
1198
1198
|
}
|
|
1199
1199
|
const Fa = (e) => {
|
|
1200
1200
|
let { children: t = "", options: r } = e, n = function(s, l) {
|
|
@@ -1483,7 +1483,7 @@ function ts(e) {
|
|
|
1483
1483
|
return Ja(dt("", null, null, null, [""], e = qa(e), 0, [0], e));
|
|
1484
1484
|
}
|
|
1485
1485
|
function dt(e, t, r, n, s, l, d, u, f) {
|
|
1486
|
-
for (var k = 0, v = 0, m = d, E = 0, S = 0, R = 0, C = 1,
|
|
1486
|
+
for (var k = 0, v = 0, m = d, E = 0, S = 0, R = 0, C = 1, O = 1, a = 1, c = 0, i = "", g = s, h = l, b = n, w = i; O; )
|
|
1487
1487
|
switch (R = c, c = he()) {
|
|
1488
1488
|
case 40:
|
|
1489
1489
|
if (R != 108 && H(w, m - 1) == 58) {
|
|
@@ -1522,7 +1522,7 @@ function dt(e, t, r, n, s, l, d, u, f) {
|
|
|
1522
1522
|
switch (c) {
|
|
1523
1523
|
case 0:
|
|
1524
1524
|
case 125:
|
|
1525
|
-
|
|
1525
|
+
O = 0;
|
|
1526
1526
|
case 59 + v:
|
|
1527
1527
|
a == -1 && (w = _(w, /\f/g, "")), S > 0 && ve(w) - m && Xe(S > 32 ? Gr(w + ";", n, r, m - 1, f) : Gr(_(w, " ", "") + ";", n, r, m - 2, f), f);
|
|
1528
1528
|
break;
|
|
@@ -1572,9 +1572,9 @@ function dt(e, t, r, n, s, l, d, u, f) {
|
|
|
1572
1572
|
return l;
|
|
1573
1573
|
}
|
|
1574
1574
|
function Kr(e, t, r, n, s, l, d, u, f, k, v, m) {
|
|
1575
|
-
for (var E = s - 1, S = s === 0 ? l : [""], R = _n(S), C = 0,
|
|
1576
|
-
for (var c = 0, i = Le(e, E + 1, E = $n(
|
|
1577
|
-
(g = Rn(
|
|
1575
|
+
for (var E = s - 1, S = s === 0 ? l : [""], R = _n(S), C = 0, O = 0, a = 0; C < n; ++C)
|
|
1576
|
+
for (var c = 0, i = Le(e, E + 1, E = $n(O = d[C])), g = e; c < R; ++c)
|
|
1577
|
+
(g = Rn(O > 0 ? S[c] + " " + i : _(i, /&\f/g, S[c]))) && (f[a++] = g);
|
|
1578
1578
|
return kt(e, t, r, s === 0 ? xt : u, f, k, v, m);
|
|
1579
1579
|
}
|
|
1580
1580
|
function rs(e, t, r, n) {
|
|
@@ -2116,10 +2116,10 @@ var zn = function(e) {
|
|
|
2116
2116
|
if (E === void 0) return "continue";
|
|
2117
2117
|
var S = l.names.get(E), R = d.getGroup(m);
|
|
2118
2118
|
if (S === void 0 || !S.size || R.length === 0) return "continue";
|
|
2119
|
-
var C = "".concat(Te, ".g").concat(m, '[id="').concat(E, '"]'),
|
|
2119
|
+
var C = "".concat(Te, ".g").concat(m, '[id="').concat(E, '"]'), O = "";
|
|
2120
2120
|
S !== void 0 && S.forEach(function(a) {
|
|
2121
|
-
a.length > 0 && (
|
|
2122
|
-
}), f += "".concat(R).concat(C, '{content:"').concat(
|
|
2121
|
+
a.length > 0 && (O += "".concat(a, ","));
|
|
2122
|
+
}), f += "".concat(R).concat(C, '{content:"').concat(O, '"}').concat(rr);
|
|
2123
2123
|
}, v = 0; v < u; v++) k(v);
|
|
2124
2124
|
return f;
|
|
2125
2125
|
}(s);
|
|
@@ -2173,7 +2173,7 @@ function Fs(e) {
|
|
|
2173
2173
|
}), d.prefix && v.push(ss), v.push(ns);
|
|
2174
2174
|
var m = function(E, S, R, C) {
|
|
2175
2175
|
S === void 0 && (S = ""), R === void 0 && (R = ""), C === void 0 && (C = "&"), t = C, r = S, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
2176
|
-
var
|
|
2176
|
+
var O = E.replace(Ls, ""), a = ts(R || S ? "".concat(R, " ").concat(S, " { ").concat(O, " }") : O);
|
|
2177
2177
|
d.namespace && (a = Bn(a, d.namespace));
|
|
2178
2178
|
var c = [];
|
|
2179
2179
|
return mt(a, os(v.concat(as(function(i) {
|
|
@@ -2291,9 +2291,9 @@ function Ys(e, t, r) {
|
|
|
2291
2291
|
if (n && s.shouldForwardProp) {
|
|
2292
2292
|
var C = s.shouldForwardProp;
|
|
2293
2293
|
if (t.shouldForwardProp) {
|
|
2294
|
-
var
|
|
2294
|
+
var O = t.shouldForwardProp;
|
|
2295
2295
|
R = function(g, h) {
|
|
2296
|
-
return C(g, h) &&
|
|
2296
|
+
return C(g, h) && O(g, h);
|
|
2297
2297
|
};
|
|
2298
2298
|
} else R = C;
|
|
2299
2299
|
}
|
|
@@ -2997,8 +2997,8 @@ function fn({ config: e, chat: t }) {
|
|
|
2997
2997
|
$position: "top",
|
|
2998
2998
|
onMouseDown: (C) => {
|
|
2999
2999
|
C.preventDefault();
|
|
3000
|
-
const
|
|
3001
|
-
const h = g.clientY -
|
|
3000
|
+
const O = C.clientY, a = typeof v == "number" ? v : 400, c = (g) => {
|
|
3001
|
+
const h = g.clientY - O, b = a - h;
|
|
3002
3002
|
m(Math.max(200, Math.min(600, b)));
|
|
3003
3003
|
}, i = () => {
|
|
3004
3004
|
document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", i);
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErC,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,GAAG,WAAW,CAAA;IAC1B,SAAS,EAAE,IAAI,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE;QACX,IAAI,EAAE,MAAM,GAAG,WAAW,CAAA;QAC1B,QAAQ,EAAE,GAAG,CAAA;KACd,CAAA;IACD,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAA;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE;QACR,aAAa,EAAE,MAAM,CAAA;QACrB,eAAe,EAAE,MAAM,CAAA;QACvB,UAAU,EAAE,MAAM,EAAE,CAAA;QACpB,YAAY,EAAE,MAAM,EAAE,CAAA;QACtB,kBAAkB,EAAE,MAAM,CAAA;QAC1B,eAAe,EAAE,MAAM,CAAA;KACxB,CAAA;CACF;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,UAAU,EAAE,MAAM,GAAG,QAAQ,CAAA;IAC7B,aAAa,EAAE,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,CAAA;IAC9B,QAAQ,CAAC,EAAE,cAAc,GAAG,aAAa,GAAG,WAAW,GAAG,UAAU,CAAA;IACpE,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;IACjC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAE3B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,WAAW,CAAC,EAAE,aAAa,CAAA;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,aAAa,CAAA;IAE/B,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAErC,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,GAAG,WAAW,CAAA;IAC1B,SAAS,EAAE,IAAI,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE;QACX,IAAI,EAAE,MAAM,GAAG,WAAW,CAAA;QAC1B,QAAQ,EAAE,GAAG,CAAA;KACd,CAAA;IACD,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAA;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE;QACR,aAAa,EAAE,MAAM,CAAA;QACrB,eAAe,EAAE,MAAM,CAAA;QACvB,UAAU,EAAE,MAAM,EAAE,CAAA;QACpB,YAAY,EAAE,MAAM,EAAE,CAAA;QACtB,kBAAkB,EAAE,MAAM,CAAA;QAC1B,eAAe,EAAE,MAAM,CAAA;KACxB,CAAA;CACF;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,UAAU,EAAE,MAAM,GAAG,QAAQ,CAAA;IAC7B,aAAa,EAAE,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,CAAA;IAC9B,QAAQ,CAAC,EAAE,cAAc,GAAG,aAAa,GAAG,WAAW,GAAG,UAAU,CAAA;IACpE,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;IACjC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAE3B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,WAAW,CAAC,EAAE,aAAa,CAAA;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,aAAa,CAAA;IAE/B,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,gBAAgB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC/C;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,OAAO,EAAE,CAAA;IACnB,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC/C,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;CACnC;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,OAAO,EAAE,CAAA;CACpB"}
|
package/package.json
CHANGED