Outlook_Addin_LLM/node_modules/@fluentui/merge-styles/dist/merge-styles.min.js

1 line
18 KiB
JavaScript
Raw Normal View History

var MergeStyles;!function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{DEFAULT_SHADOW_CONFIG:function(){return s},GLOBAL_STYLESHEET_KEY:function(){return r},InjectionMode:function(){return v},SUPPORTS_CONSTRUCTABLE_STYLESHEETS:function(){return V},SUPPORTS_MODIFYING_ADOPTED_STYLESHEETS:function(){return te},ShadowDomStylesheet:function(){return re},Stylesheet:function(){return C},cloneCSSStyleSheet:function(){return oe},concatStyleSets:function(){return U},concatStyleSetsWithProps:function(){return $},fontFace:function(){return Z},keyframes:function(){return Q},makeShadowConfig:function(){return i},mergeCss:function(){return H},mergeCssSets:function(){return J},mergeStyleSets:function(){return G},mergeStyles:function(){return B},setRTL:function(){return u}});var n,r="__global__",o="__shadow_dom_stylesheet__",s={stylesheetKey:r,inShadow:!1,window:void 0,__isShadowConfig__:!0},i=function(e,t,n){return{stylesheetKey:e,inShadow:t,window:n,__isShadowConfig__:!0}},a=function(e){return!(!e||!function(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}(e))&&!0===e.__isShadowConfig__};function l(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=[],o=[],s=e;return function e(t){for(var n=0,i=t;n<i.length;n++){var l=i[n];if(l&&!a(l))if("string"==typeof l)if(l.indexOf(" ")>=0)e(l.split(" "));else{var u=s.argsFromClassName(l);u?e(u):-1===r.indexOf(l)&&r.push(l)}else Array.isArray(l)?e(l):"object"==typeof l&&o.push(l)}}(t),{classes:r,objects:o}}function u(e){n!==e&&(n=e)}function c(){return void 0===n&&(n="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),n}function f(){return{rtl:c(),shadowConfig:s}}n=c();var h=function(e,t){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},h(e,t)};var d=function(){return d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},d.apply(this,arguments)};function p(e,t,n){if(n||2===arguments.length)for(var r,o=0,s=t.length;o<s;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var y,v={none:0,insertNode:1,appendChild:2},g="__stylesheet__",_="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),m={};try{m=window||{}}catch(N){}var S,C=function(){function e(e,t){var n,r,o,s,i,a;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=d({injectionMode:"undefined"==typeof document?v.none:v.insertNode,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(n=null==t?void 0:t.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null==t?void 0:t.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(s=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==t?void 0:t.keyToClassName)&&void 0!==s?s:this._keyToClassName,this._preservedRules=null!==(i=null==t?void 0:t.preservedRules)&&void 0!==i?i:this._preservedRules,this._rules=null!==(a=null==t?void 0:t.rules)&&void 0!==a?a:this._rules}return e.getInstance=function(t){if(y=m[g],m[o])return m[o].getInstance(t);if(!y||y._lastStyleElement&&y._lastStyleElement.ownerDocument!==document){var n=(null==m?void 0:m.FabricConfig)||{},r=new e(n.mergeStyles,n.serializedStylesheet);y=r,m[g]=r}return y},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._c