@cgi-learning-hub/ui
Version:
@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features
21 lines (20 loc) • 16.2 kB
JavaScript
;var Pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function he(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var V={exports:{}},N={exports:{}},T={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ue;function Se(){if(ue)return T;ue=1;var o=typeof Symbol=="function"&&Symbol.for,w=o?Symbol.for("react.element"):60103,O=o?Symbol.for("react.portal"):60106,p=o?Symbol.for("react.fragment"):60107,P=o?Symbol.for("react.strict_mode"):60108,a=o?Symbol.for("react.profiler"):60114,S=o?Symbol.for("react.provider"):60109,l=o?Symbol.for("react.context"):60110,_=o?Symbol.for("react.async_mode"):60111,g=o?Symbol.for("react.concurrent_mode"):60111,b=o?Symbol.for("react.forward_ref"):60112,E=o?Symbol.for("react.suspense"):60113,C=o?Symbol.for("react.suspense_list"):60120,x=o?Symbol.for("react.memo"):60115,M=o?Symbol.for("react.lazy"):60116,R=o?Symbol.for("react.block"):60121,I=o?Symbol.for("react.fundamental"):60117,q=o?Symbol.for("react.responder"):60118,F=o?Symbol.for("react.scope"):60119;function j(t){if(typeof t=="object"&&t!==null){var k=t.$$typeof;switch(k){case w:switch(t=t.type,t){case _:case g:case p:case a:case P:case E:return t;default:switch(t=t&&t.$$typeof,t){case l:case b:case M:case x:case S:return t;default:return k}}case O:return k}}}function A(t){return j(t)===g}return T.AsyncMode=_,T.ConcurrentMode=g,T.ContextConsumer=l,T.ContextProvider=S,T.Element=w,T.ForwardRef=b,T.Fragment=p,T.Lazy=M,T.Memo=x,T.Portal=O,T.Profiler=a,T.StrictMode=P,T.Suspense=E,T.isAsyncMode=function(t){return A(t)||j(t)===_},T.isConcurrentMode=A,T.isContextConsumer=function(t){return j(t)===l},T.isContextProvider=function(t){return j(t)===S},T.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===w},T.isForwardRef=function(t){return j(t)===b},T.isFragment=function(t){return j(t)===p},T.isLazy=function(t){return j(t)===M},T.isMemo=function(t){return j(t)===x},T.isPortal=function(t){return j(t)===O},T.isProfiler=function(t){return j(t)===a},T.isStrictMode=function(t){return j(t)===P},T.isSuspense=function(t){return j(t)===E},T.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===p||t===g||t===a||t===P||t===E||t===C||typeof t=="object"&&t!==null&&(t.$$typeof===M||t.$$typeof===x||t.$$typeof===S||t.$$typeof===l||t.$$typeof===b||t.$$typeof===I||t.$$typeof===q||t.$$typeof===F||t.$$typeof===R)},T.typeOf=j,T}var m={};/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ce;function Oe(){return ce||(ce=1,process.env.NODE_ENV!=="production"&&function(){var o=typeof Symbol=="function"&&Symbol.for,w=o?Symbol.for("react.element"):60103,O=o?Symbol.for("react.portal"):60106,p=o?Symbol.for("react.fragment"):60107,P=o?Symbol.for("react.strict_mode"):60108,a=o?Symbol.for("react.profiler"):60114,S=o?Symbol.for("react.provider"):60109,l=o?Symbol.for("react.context"):60110,_=o?Symbol.for("react.async_mode"):60111,g=o?Symbol.for("react.concurrent_mode"):60111,b=o?Symbol.for("react.forward_ref"):60112,E=o?Symbol.for("react.suspense"):60113,C=o?Symbol.for("react.suspense_list"):60120,x=o?Symbol.for("react.memo"):60115,M=o?Symbol.for("react.lazy"):60116,R=o?Symbol.for("react.block"):60121,I=o?Symbol.for("react.fundamental"):60117,q=o?Symbol.for("react.responder"):60118,F=o?Symbol.for("react.scope"):60119;function j(r){return typeof r=="string"||typeof r=="function"||r===p||r===g||r===a||r===P||r===E||r===C||typeof r=="object"&&r!==null&&(r.$$typeof===M||r.$$typeof===x||r.$$typeof===S||r.$$typeof===l||r.$$typeof===b||r.$$typeof===I||r.$$typeof===q||r.$$typeof===F||r.$$typeof===R)}function A(r){if(typeof r=="object"&&r!==null){var D=r.$$typeof;switch(D){case w:var B=r.type;switch(B){case _:case g:case p:case a:case P:case E:return B;default:var fe=B&&B.$$typeof;switch(fe){case l:case b:case M:case x:case S:return fe;default:return D}}case O:return D}}}var t=_,k=g,G=l,H=S,J=w,X=b,U=p,K=M,Z=x,L=O,Q=a,Y=P,W=E,z=!1;function ee(r){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),e(r)||A(r)===_}function e(r){return A(r)===g}function n(r){return A(r)===l}function c(r){return A(r)===S}function f(r){return typeof r=="object"&&r!==null&&r.$$typeof===w}function i(r){return A(r)===b}function d(r){return A(r)===p}function s(r){return A(r)===M}function u(r){return A(r)===x}function y(r){return A(r)===O}function h(r){return A(r)===a}function v(r){return A(r)===P}function $(r){return A(r)===E}m.AsyncMode=t,m.ConcurrentMode=k,m.ContextConsumer=G,m.ContextProvider=H,m.Element=J,m.ForwardRef=X,m.Fragment=U,m.Lazy=K,m.Memo=Z,m.Portal=L,m.Profiler=Q,m.StrictMode=Y,m.Suspense=W,m.isAsyncMode=ee,m.isConcurrentMode=e,m.isContextConsumer=n,m.isContextProvider=c,m.isElement=f,m.isForwardRef=i,m.isFragment=d,m.isLazy=s,m.isMemo=u,m.isPortal=y,m.isProfiler=h,m.isStrictMode=v,m.isSuspense=$,m.isValidElementType=j,m.typeOf=A}()),m}var le;function Ee(){return le||(le=1,process.env.NODE_ENV==="production"?N.exports=Se():N.exports=Oe()),N.exports}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var re,pe;function _e(){if(pe)return re;pe=1;var o=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;function p(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function P(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var S={},l=0;l<10;l++)S["_"+String.fromCharCode(l)]=l;var _=Object.getOwnPropertyNames(S).map(function(b){return S[b]});if(_.join("")!=="0123456789")return!1;var g={};return"abcdefghijklmnopqrst".split("").forEach(function(b){g[b]=b}),Object.keys(Object.assign({},g)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return re=P()?Object.assign:function(a,S){for(var l,_=p(a),g,b=1;b<arguments.length;b++){l=Object(arguments[b]);for(var E in l)w.call(l,E)&&(_[E]=l[E]);if(o){g=o(l);for(var C=0;C<g.length;C++)O.call(l,g[C])&&(_[g[C]]=l[g[C]])}}return _},re}var te,de;function se(){if(de)return te;de=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return te=o,te}var ne,ye;function ge(){return ye||(ye=1,ne=Function.call.bind(Object.prototype.hasOwnProperty)),ne}var oe,ve;function Re(){if(ve)return oe;ve=1;var o=function(){};if(process.env.NODE_ENV!=="production"){var w=se(),O={},p=ge();o=function(a){var S="Warning: "+a;typeof console<"u"&&console.error(S);try{throw new Error(S)}catch{}}}function P(a,S,l,_,g){if(process.env.NODE_ENV!=="production"){for(var b in a)if(p(a,b)){var E;try{if(typeof a[b]!="function"){var C=Error((_||"React class")+": "+l+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}E=a[b](S,b,_,l,null,w)}catch(M){E=M}if(E&&!(E instanceof Error)&&o((_||"React class")+": type specification of "+l+" `"+b+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof E+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),E instanceof Error&&!(E.message in O)){O[E.message]=!0;var x=g?g():"";o("Failed "+l+" type: "+E.message+(x??""))}}}}return P.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(O={})},oe=P,oe}var ie,be;function Ce(){if(be)return ie;be=1;var o=Ee(),w=_e(),O=se(),p=ge(),P=Re(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var _="Warning: "+l;typeof console<"u"&&console.error(_);try{throw new Error(_)}catch{}});function S(){return null}return ie=function(l,_){var g=typeof Symbol=="function"&&Symbol.iterator,b="@@iterator";function E(e){var n=e&&(g&&e[g]||e[b]);if(typeof n=="function")return n}var C="<<anonymous>>",x={array:q("array"),bigint:q("bigint"),bool:q("boolean"),func:q("function"),number:q("number"),object:q("object"),string:q("string"),symbol:q("symbol"),any:F(),arrayOf:j,element:A(),elementType:t(),instanceOf:k,node:X(),objectOf:H,oneOf:G,oneOfType:J,shape:K,exact:Z};function M(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function R(e,n){this.message=e,this.data=n&&typeof n=="object"?n:{},this.stack=""}R.prototype=Error.prototype;function I(e){if(process.env.NODE_ENV!=="production")var n={},c=0;function f(d,s,u,y,h,v,$){if(y=y||C,v=v||u,$!==O){if(_){var r=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw r.name="Invariant Violation",r}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var D=y+":"+u;!n[D]&&c<3&&(a("You are manually calling a React.PropTypes validation function for the `"+v+"` prop on `"+y+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[D]=!0,c++)}}return s[u]==null?d?s[u]===null?new R("The "+h+" `"+v+"` is marked as required "+("in `"+y+"`, but its value is `null`.")):new R("The "+h+" `"+v+"` is marked as required in "+("`"+y+"`, but its value is `undefined`.")):null:e(s,u,y,h,v)}var i=f.bind(null,!1);return i.isRequired=f.bind(null,!0),i}function q(e){function n(c,f,i,d,s,u){var y=c[f],h=Y(y);if(h!==e){var v=W(y);return new R("Invalid "+d+" `"+s+"` of type "+("`"+v+"` supplied to `"+i+"`, expected ")+("`"+e+"`."),{expectedType:e})}return null}return I(n)}function F(){return I(S)}function j(e){function n(c,f,i,d,s){if(typeof e!="function")return new R("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var u=c[f];if(!Array.isArray(u)){var y=Y(u);return new R("Invalid "+d+" `"+s+"` of type "+("`"+y+"` supplied to `"+i+"`, expected an array."))}for(var h=0;h<u.length;h++){var v=e(u,h,i,d,s+"["+h+"]",O);if(v instanceof Error)return v}return null}return I(n)}function A(){function e(n,c,f,i,d){var s=n[c];if(!l(s)){var u=Y(s);return new R("Invalid "+i+" `"+d+"` of type "+("`"+u+"` supplied to `"+f+"`, expected a single ReactElement."))}return null}return I(e)}function t(){function e(n,c,f,i,d){var s=n[c];if(!o.isValidElementType(s)){var u=Y(s);return new R("Invalid "+i+" `"+d+"` of type "+("`"+u+"` supplied to `"+f+"`, expected a single ReactElement type."))}return null}return I(e)}function k(e){function n(c,f,i,d,s){if(!(c[f]instanceof e)){var u=e.name||C,y=ee(c[f]);return new R("Invalid "+d+" `"+s+"` of type "+("`"+y+"` supplied to `"+i+"`, expected ")+("instance of `"+u+"`."))}return null}return I(n)}function G(e){if(!Array.isArray(e))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),S;function n(c,f,i,d,s){for(var u=c[f],y=0;y<e.length;y++)if(M(u,e[y]))return null;var h=JSON.stringify(e,function($,r){var D=W(r);return D==="symbol"?String(r):r});return new R("Invalid "+d+" `"+s+"` of value `"+String(u)+"` "+("supplied to `"+i+"`, expected one of "+h+"."))}return I(n)}function H(e){function n(c,f,i,d,s){if(typeof e!="function")return new R("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var u=c[f],y=Y(u);if(y!=="object")return new R("Invalid "+d+" `"+s+"` of type "+("`"+y+"` supplied to `"+i+"`, expected an object."));for(var h in u)if(p(u,h)){var v=e(u,h,i,d,s+"."+h,O);if(v instanceof Error)return v}return null}return I(n)}function J(e){if(!Array.isArray(e))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),S;for(var n=0;n<e.length;n++){var c=e[n];if(typeof c!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(c)+" at index "+n+"."),S}function f(i,d,s,u,y){for(var h=[],v=0;v<e.length;v++){var $=e[v],r=$(i,d,s,u,y,O);if(r==null)return null;r.data&&p(r.data,"expectedType")&&h.push(r.data.expectedType)}var D=h.length>0?", expected one of type ["+h.join(", ")+"]":"";return new R("Invalid "+u+" `"+y+"` supplied to "+("`"+s+"`"+D+"."))}return I(f)}function X(){function e(n,c,f,i,d){return L(n[c])?null:new R("Invalid "+i+" `"+d+"` supplied to "+("`"+f+"`, expected a ReactNode."))}return I(e)}function U(e,n,c,f,i){return new R((e||"React class")+": "+n+" type `"+c+"."+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function K(e){function n(c,f,i,d,s){var u=c[f],y=Y(u);if(y!=="object")return new R("Invalid "+d+" `"+s+"` of type `"+y+"` "+("supplied to `"+i+"`, expected `object`."));for(var h in e){var v=e[h];if(typeof v!="function")return U(i,d,s,h,W(v));var $=v(u,h,i,d,s+"."+h,O);if($)return $}return null}return I(n)}function Z(e){function n(c,f,i,d,s){var u=c[f],y=Y(u);if(y!=="object")return new R("Invalid "+d+" `"+s+"` of type `"+y+"` "+("supplied to `"+i+"`, expected `object`."));var h=w({},c[f],e);for(var v in h){var $=e[v];if(p(e,v)&&typeof $!="function")return U(i,d,s,v,W($));if(!$)return new R("Invalid "+d+" `"+s+"` key `"+v+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(c[f],null," ")+`
Valid keys: `+JSON.stringify(Object.keys(e),null," "));var r=$(u,v,i,d,s+"."+v,O);if(r)return r}return null}return I(n)}function L(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(L);if(e===null||l(e))return!0;var n=E(e);if(n){var c=n.call(e),f;if(n!==e.entries){for(;!(f=c.next()).done;)if(!L(f.value))return!1}else for(;!(f=c.next()).done;){var i=f.value;if(i&&!L(i[1]))return!1}}else return!1;return!0;default:return!1}}function Q(e,n){return e==="symbol"?!0:n?n["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&n instanceof Symbol:!1}function Y(e){var n=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":Q(n,e)?"symbol":n}function W(e){if(typeof e>"u"||e===null)return""+e;var n=Y(e);if(n==="object"){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return n}function z(e){var n=W(e);switch(n){case"array":case"object":return"an "+n;case"boolean":case"date":case"regexp":return"a "+n;default:return n}}function ee(e){return!e.constructor||!e.constructor.name?C:e.constructor.name}return x.checkPropTypes=P,x.resetWarningCache=P.resetWarningCache,x.PropTypes=x,x},ie}var ae,Te;function we(){if(Te)return ae;Te=1;var o=se();function w(){}function O(){}return O.resetWarningCache=w,ae=function(){function p(S,l,_,g,b,E){if(E!==o){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}}p.isRequired=p;function P(){return p}var a={array:p,bigint:p,bool:p,func:p,number:p,object:p,string:p,symbol:p,any:p,arrayOf:P,element:p,elementType:p,instanceOf:P,node:p,objectOf:P,oneOf:P,oneOfType:P,shape:P,exact:P,checkPropTypes:O,resetWarningCache:w};return a.PropTypes=a,a},ae}var me;function xe(){if(me)return V.exports;if(me=1,process.env.NODE_ENV!=="production"){var o=Ee(),w=!0;V.exports=Ce()(o.isElement,w)}else V.exports=we()();return V.exports}var Ae=xe();const je=he(Ae);exports.PropTypes=je;exports.commonjsGlobal=Pe;exports.getDefaultExportFromCjs=he;