text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("netlify-cms-lib-util"),require("prop-types"),require("@emotion/core"),require("react"),require("netlify-cms-ui-default"),require("netlify-cms-lib-auth")):"function"==typeof define&&define.amd?define("NetlifyCmsBackendAzure",["netlify-cms-lib-util","prop-types","@emotion/core","react","netlify-cms-ui-default","netlify-cms-lib-auth"],e):"object"==typeof exports?exports.NetlifyCmsBackendAzure=e(require("netlify-cms-lib-util"),require("prop-types"),require("@emotion/core"),require("react"),require("netlify-cms-ui-default"),require("netlify-cms-lib-auth")):t.NetlifyCmsBackendAzure=e(t.NetlifyCmsLibUtil,t.NetlifyCmsDefaultExports.PropTypes,t.NetlifyCmsDefaultExports.EmotionCore,t.React,t.NetlifyCmsUiDefault,t.NetlifyCmsLibAuth)}(window,(function(t,e,r,n,i,o){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=126)}([function(e,r){e.exports=t},function(t,r){t.exports=e},function(t,e,r){var n=r(53),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},function(t,e){t.exports=r},function(t,e){t.exports=n},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,r){var n=r(17),i=r(30),o=r(31),a=r(32),s=r(20),u=/^\s+/;t.exports=function(t,e,r){if((t=s(t))&&(r||void 0===e))return t.replace(u,"");if(!t||!(e=n(e)))return t;var c=a(t),l=o(c,a(e));return i(c,l).join("")}},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){var n=r(28),i=r(29);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==n(t)}},function(t,e,r){var n=r(10)(Object,"create");t.exports=n},function(t,e,r){var n=r(75),i=r(79);t.exports=function(t,e){var r=i(t,e);return n(r)?r:void 0}},function(t,e,r){var n=r(87);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(93);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e,r){var n=r(23),i=r(5);t.exports=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=n(t.prototype),o=t.apply(r,e);return i(o)?o:r}}},function(t,e){t.exports=function(t,e){for(var r=-1,n=t.length,i=0,o=[];++r<n;){var a=t[r];a!==e&&"__lodash_placeholder__"!==a||(t[r]="__lodash_placeholder__",o[i++]=r)}return o}},function(t,e,r){var n=r(17),i=r(30),o=r(59),a=r(31),s=r(32),u=r(20),c=/^\s+|\s+$/g;t.exports=function(t,e,r){if((t=u(t))&&(r||void 0===e))return t.replace(c,"");if(!t||!(e=n(e)))return t;var l=s(t),f=s(e),p=a(l,f),h=o(l,f)+1;return i(l,p,h).join("")}},function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}e.resolve=function(){for(var e="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,i="/"===a.charAt(0))}return(i?"/":"")+(e=r(n(e.split("/"),(function(t){return!!t})),!i).join("/"))||"."},e.normalize=function(t){var o=e.isAbsolute(t),a="/"===i(t,-1);return(t=r(n(t.split("/"),(function(t){return!!t})),!o).join("/"))||o||(t="."),t&&a&&(t+="/"),(o?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,(function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;r>=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split("/")),o=n(r.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u<a;u++)if(i[u]!==o[u]){s=u;break}var c=[];for(u=s;u<i.length;u++)c.push("..");return(c=c.concat(o.slice(s))).join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!=typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),r=47===e,n=-1,i=!0,o=t.length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!i){n=o;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"/":t.slice(0,n)},e.basename=function(t,e){var r=function(t){"string"!=typeof t&&(t+="");var e,r=0,n=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){r=e+1;break}}else-1===n&&(i=!1,n=e+1);return-1===n?"":t.slice(r,n)}(t);return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,r=0,n=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===n&&(i=!1,n=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){r=a+1;break}}return-1===e||-1===n||0===o||1===o&&e===n-1&&e===r+1?"":t.slice(e,n)};var i="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r(33))},function(t,e,r){var n=r(18),i=r(55),o=r(7),a=r(8),s=n?n.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},function(t,e,r){var n=r(2).Symbol;t.exports=n},function(t,e,r){var n=r(60),i=r(61),o=r(62);t.exports=function(t,e,r){return e==e?o(t,e,r):n(t,i,r)}},function(t,e,r){var n=r(17);t.exports=function(t){return null==t?"":n(t)}},function(t,e){t.exports=function(t){return t}},function(t,e){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},function(t,e,r){var n=r(5),i=Object.create,o=function(){function t(){}return function(e){if(!n(e))return{};if(i)return i(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=o},function(t,e,r){var n=r(23),i=r(25);function o(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}o.prototype=n(i.prototype),o.prototype.constructor=o,t.exports=o},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t){return t.placeholder}},function(t,e){t.exports=i},function(t,e,r){var n=r(18),i=r(56),o=r(57),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){var n=r(58);t.exports=function(t,e,r){var i=t.length;return r=void 0===r?i:r,!e&&r>=i?t:n(t,e,r)}},function(t,e,r){var n=r(19);t.exports=function(t,e){for(var r=-1,i=t.length;++r<i&&n(e,t[r],0)>-1;);return r}},function(t,e,r){var n=r(63),i=r(64),o=r(65);t.exports=function(t){return i(t)?o(t):n(t)}},function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var t=s(p);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new d(t,e)),1!==c.length||l||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,r){var n=r(28),i=r(5);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,r){var n=r(100),i=r(36)(n);t.exports=i},function(t,e){var r=Date.now;t.exports=function(t){var e=0,n=0;return function(){var i=r(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,r){var n=r(21),i=r(38),o=i?function(t,e){return i.set(t,e),t}:n;t.exports=o},function(t,e,r){var n=r(104),i=n&&new n;t.exports=i},function(t,e,r){var n=r(40),i=r(41),o=r(107),a=r(13),s=r(42),u=r(26),c=r(119),l=r(14),f=r(2);t.exports=function t(e,r,p,h,d,m,v,y,b,g){var x=128&r,w=1&r,_=2&r,O=24&r,j=512&r,A=_?void 0:a(e);return function C(){for(var P=arguments.length,E=Array(P),S=P;S--;)E[S]=arguments[S];if(O)var k=u(C),T=o(E,k);if(h&&(E=n(E,h,d,O)),m&&(E=i(E,m,v,O)),P-=T,O&&P<g){var R=l(E,k);return s(e,r,t,C.placeholder,p,E,R,y,b,g-P)}var q=w?p:this,F=_?q[e]:e;return P=E.length,y?E=c(E,y):j&&P>1&&E.reverse(),x&&b<P&&(E.length=b),this&&this!==f&&this instanceof C&&(F=A||a(F)),F.apply(q,E)}}},function(t,e){var r=Math.max;t.exports=function(t,e,n,i){for(var o=-1,a=t.length,s=n.length,u=-1,c=e.length,l=r(a-s,0),f=Array(c+l),p=!i;++u<c;)f[u]=e[u];for(;++o<s;)(p||o<a)&&(f[n[o]]=t[o]);for(;l--;)f[u++]=t[o++];return f}},function(t,e){var r=Math.max;t.exports=function(t,e,n,i){for(var o=-1,a=t.length,s=-1,u=n.length,c=-1,l=e.length,f=r(a-u,0),p=Array(f+l),h=!i;++o<f;)p[o]=t[o];for(var d=o;++c<l;)p[d+c]=e[c];for(;++s<u;)(h||o<a)&&(p[d+n[s]]=t[o++]);return p}},function(t,e,r){var n=r(108),i=r(46),o=r(47);t.exports=function(t,e,r,a,s,u,c,l,f,p){var h=8&e;e|=h?32:64,4&(e&=~(h?64:32))||(e&=-4);var d=[t,e,s,h?u:void 0,h?c:void 0,h?void 0:u,h?void 0:c,l,f,p],m=r.apply(void 0,d);return n(t)&&i(m,d),m.placeholder=a,o(m,t,e)}},function(t,e,r){var n=r(38),i=r(109),o=n?function(t){return n.get(t)}:i;t.exports=o},function(t,e,r){var n=r(23),i=r(25);function o(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}o.prototype=n(i.prototype),o.prototype.constructor=o,t.exports=o},function(t,e){t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},function(t,e,r){var n=r(37),i=r(36)(n);t.exports=i},function(t,e,r){var n=r(114),i=r(115),o=r(35),a=r(116);t.exports=function(t,e,r){var s=e+"";return o(t,i(s,a(n(s),r)))}},function(t,e,r){(function(e){!function(r){"use strict";var n=function(t){setTimeout(t,0)};void 0!==e&&e&&"function"==typeof e.nextTick&&(n=e.nextTick),t.exports=function(t){var e={capacity:t||1,current:0,queue:[],firstHere:!1,take:function(){if(!1===e.firstHere){e.current++,e.firstHere=!0;var t=1}else t=0;var r={n:1};"function"==typeof arguments[0]?r.task=arguments[0]:r.n=arguments[0],arguments.length>=2&&("function"==typeof arguments[1]?r.task=arguments[1]:r.n=arguments[1]);var n=r.task;if(r.task=function(){n(e.leave)},e.current+r.n-t>e.capacity)return 1===t&&(e.current--,e.firstHere=!1),e.queue.push(r);e.current+=r.n-t,r.task(e.leave),1===t&&(e.firstHere=!1)},leave:function(t){if(t=t||1,e.current-=t,e.queue.length){var r=e.queue[0];r.n+e.current>e.capacity||(e.queue.shift(),e.current+=r.n,n(r.task))}else if(e.current<0)throw new Error("leave called too many times.")},available:function(t){return t=t||1,e.current+t<=e.capacity}};return e}}()}).call(this,r(33))},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e){t.exports=o},function(t,e,r){var n=r(66),i=r(34),o=r(97);t.exports=function(t,e,r){var a=-1,s=(e=n(e,t)).length;for(s||(s=1,t=void 0);++a<s;){var u=null==t?void 0:t[o(e[a])];void 0===u&&(a=s,u=r),t=i(u)?u.call(t):u}return t}},function(t,e,r){var n=r(98),i=r(103),o=r(26),a=r(14),s=n((function(t,e){var r=a(e,o(s));return i(t,32,void 0,e,r)}));s.placeholder={},t.exports=s},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,r(54))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},function(t,e,r){var n=r(18),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var i=a.call(t);return n&&(e?t[s]=r:delete t[s]),i}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e){t.exports=function(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o}},function(t,e,r){var n=r(19);t.exports=function(t,e){for(var r=t.length;r--&&n(e,t[r],0)>-1;);return r}},function(t,e){t.exports=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}},function(t,e){t.exports=function(t){return t.split("")}},function(t,e){var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return r.test(t)}},function(t,e){var r="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+n+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),l="(?:"+[o+n+"?",n,a,s,r].join("|")+")",f=RegExp(i+"(?="+i+")|"+l+c,"g");t.exports=function(t){return t.match(f)||[]}},function(t,e,r){var n=r(7),i=r(67),o=r(68),a=r(20);t.exports=function(t,e){return n(t)?t:i(t,e)?[t]:o(a(t))}},function(t,e,r){var n=r(7),i=r(8),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!i(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e,r){var n=r(69),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)})),e}));t.exports=a},function(t,e,r){var n=r(70);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},function(t,e,r){var n=r(71);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,t.exports=i},function(t,e,r){var n=r(72),i=r(92),o=r(94),a=r(95),s=r(96);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,r){var n=r(73),i=r(84),o=r(91);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},function(t,e,r){var n=r(74),i=r(80),o=r(81),a=r(82),s=r(83);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,r){var n=r(9);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e,r){var n=r(34),i=r(76),o=r(5),a=r(78),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(n(t)?p:s).test(a(t))}},function(t,e,r){var n,i=r(77),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!o&&o in t}},function(t,e,r){var n=r(2)["__core-js_shared__"];t.exports=n},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,r){var n=r(9),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0}},function(t,e,r){var n=r(9),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:i.call(e,t)}},function(t,e,r){var n=r(9);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,r){var n=r(85),i=r(86),o=r(88),a=r(89),s=r(90);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(11),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():i.call(e,r,1),--this.size,!0)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(11);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(11);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(11);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},function(t,e,r){var n=r(10)(r(2),"Map");t.exports=n},function(t,e,r){var n=r(12);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(12);t.exports=function(t){return n(this,t).get(t)}},function(t,e,r){var n=r(12);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(12);t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},function(t,e,r){var n=r(8);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,r){var n=r(21),i=r(99),o=r(35);t.exports=function(t,e){return o(i(t,e,n),t+"")}},function(t,e,r){var n=r(22),i=Math.max;t.exports=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a<s;)u[a]=o[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=o[a];return c[e]=r(u),n(t,this,c)}}},function(t,e,r){var n=r(101),i=r(102),o=r(21),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:o;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,r){var n=r(10),i=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,r){var n=r(37),i=r(105),o=r(106),a=r(39),s=r(121),u=r(43),c=r(122),l=r(46),f=r(47),p=r(123),h=Math.max;t.exports=function(t,e,r,d,m,v,y,b){var g=2&e;if(!g&&"function"!=typeof t)throw new TypeError("Expected a function");var x=d?d.length:0;if(x||(e&=-97,d=m=void 0),y=void 0===y?y:h(p(y),0),b=void 0===b?b:p(b),x-=m?m.length:0,64&e){var w=d,_=m;d=m=void 0}var O=g?void 0:u(t),j=[t,e,r,d,m,w,_,v,y,b];if(O&&c(j,O),t=j[0],e=j[1],r=j[2],d=j[3],m=j[4],!(b=j[9]=void 0===j[9]?g?0:t.length:h(j[9]-x,0))&&24&e&&(e&=-25),e&&1!=e)A=8==e||16==e?o(t,e,b):32!=e&&33!=e||m.length?a.apply(void 0,j):s(t,e,r,d);else var A=i(t,e,r);return f((O?n:l)(A,j),t,e)}},function(t,e,r){var n=r(10)(r(2),"WeakMap");t.exports=n},function(t,e,r){var n=r(13),i=r(2);t.exports=function(t,e,r){var o=1&e,a=n(t);return function e(){var n=this&&this!==i&&this instanceof e?a:t;return n.apply(o?r:this,arguments)}}},function(t,e,r){var n=r(22),i=r(13),o=r(39),a=r(42),s=r(26),u=r(14),c=r(2);t.exports=function(t,e,r){var l=i(t);return function i(){for(var f=arguments.length,p=Array(f),h=f,d=s(i);h--;)p[h]=arguments[h];var m=f<3&&p[0]!==d&&p[f-1]!==d?[]:u(p,d);if((f-=m.length)<r)return a(t,e,o,i.placeholder,void 0,p,m,void 0,void 0,r-f);var v=this&&this!==c&&this instanceof i?l:t;return n(v,this,p)}}},function(t,e){t.exports=function(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}},function(t,e,r){var n=r(24),i=r(43),o=r(110),a=r(112);t.exports=function(t){var e=o(t),r=a[e];if("function"!=typeof r||!(e in n.prototype))return!1;if(t===r)return!0;var s=i(r);return!!s&&t===s[0]}},function(t,e){t.exports=function(){}},function(t,e,r){var n=r(111),i=Object.prototype.hasOwnProperty;t.exports=function(t){for(var e=t.name+"",r=n[e],o=i.call(n,e)?r.length:0;o--;){var a=r[o],s=a.func;if(null==s||s==t)return a.name}return e}},function(t,e){t.exports={}},function(t,e,r){var n=r(24),i=r(44),o=r(25),a=r(7),s=r(29),u=r(113),c=Object.prototype.hasOwnProperty;function l(t){if(s(t)&&!a(t)&&!(t instanceof n)){if(t instanceof i)return t;if(c.call(t,"__wrapped__"))return u(t)}return new i(t)}l.prototype=o.prototype,l.prototype.constructor=l,t.exports=l},function(t,e,r){var n=r(24),i=r(44),o=r(45);t.exports=function(t){if(t instanceof n)return t.clone();var e=new i(t.__wrapped__,t.__chain__);return e.__actions__=o(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}},function(t,e){var r=/\{\n\/\* \[wrapped with (.+)\] \*/,n=/,? & /;t.exports=function(t){var e=t.match(r);return e?e[1].split(n):[]}},function(t,e){var r=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;t.exports=function(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(n>1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(r,"{\n/* [wrapped with "+e+"] */\n")}},function(t,e,r){var n=r(117),i=r(118),o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];t.exports=function(t,e){return n(o,(function(r){var n="_."+r[0];e&r[1]&&!i(t,n)&&t.push(n)})),t.sort()}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},function(t,e,r){var n=r(19);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},function(t,e,r){var n=r(45),i=r(120),o=Math.min;t.exports=function(t,e){for(var r=t.length,a=o(e.length,r),s=n(t);a--;){var u=e[a];t[a]=i(u,r)?s[u]:void 0}return t}},function(t,e){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,r){var n=r(22),i=r(13),o=r(2);t.exports=function(t,e,r,a){var s=1&e,u=i(t);return function e(){for(var i=-1,c=arguments.length,l=-1,f=a.length,p=Array(f+c),h=this&&this!==o&&this instanceof e?u:t;++l<f;)p[l]=a[l];for(;c--;)p[l++]=arguments[++i];return n(h,s?r:this,p)}}},function(t,e,r){var n=r(40),i=r(41),o=r(14),a=Math.min;t.exports=function(t,e){var r=t[1],s=e[1],u=r|s,c=u<131,l=128==s&&8==r||128==s&&256==r&&t[7].length<=e[8]||384==s&&e[7].length<=e[8]&&8==r;if(!c&&!l)return t;1&s&&(t[2]=e[2],u|=1&r?0:4);var f=e[3];if(f){var p=t[3];t[3]=p?n(p,f,e[4]):f,t[4]=p?o(t[3],"__lodash_placeholder__"):e[4]}return(f=e[5])&&(p=t[5],t[5]=p?i(p,f,e[6]):f,t[6]=p?o(t[5],"__lodash_placeholder__"):e[6]),(f=e[7])&&(t[7]=f),128&s&&(t[8]=null==t[8]?e[8]:a(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=u,t}},function(t,e,r){var n=r(124);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},function(t,e,r){var n=r(125);t.exports=function(t){return t?(t=n(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,e,r){var n=r(5),i=r(8),o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var r=s.test(t);return r||u.test(t)?c(t.slice(2),r?2:8):a.test(t)?NaN:+t}},function(t,e,r){"use strict";r.r(e),r.d(e,"NetlifyCmsBackendAzure",(function(){return $t})),r.d(e,"AzureBackend",(function(){return zt})),r.d(e,"API",(function(){return Nt})),r.d(e,"AuthenticationPage",(function(){return z}));var n=r(15),i=r.n(n),o=r(6),a=r.n(o),s=r(48),u=r.n(s),c=r(49),l=r.n(c),f=r(4),p=r.n(f);var h=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|download|draggable|encType|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/,d=function(t){var e={};return function(r){return void 0===e[r]&&(e[r]=t(r)),e[r]}}((function(t){return h.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91})),m=r(3);function v(t,e,r){var n="";return r.split(" ").forEach((function(r){void 0!==t[r]?e.push(t[r]):n+=r+" "})),n}var y=function(t,e,r){var n=t.key+"-"+e.name;if(!1===r&&void 0===t.registered[n]&&(t.registered[n]=e.styles),void 0===t.inserted[e.name]){var i=e;do{t.insert("."+n,i,t.sheet,!0);i=i.next}while(void 0!==i)}};var b=function(t){for(var e,r=0,n=0,i=t.length;i>=4;++n,i-=4)e=1540483477*(65535&(e=255&t.charCodeAt(n)|(255&t.charCodeAt(++n))<<8|(255&t.charCodeAt(++n))<<16|(255&t.charCodeAt(++n))<<24))+(59797*(e>>>16)<<16),r=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&t.charCodeAt(n+2))<<16;case 2:r^=(255&t.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)},g={animationIterationCount: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};var x=/[A-Z]|^ms/g,w=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_=function(t){return 45===t.charCodeAt(1)},O=function(t){return null!=t&&"boolean"!=typeof t},j=function(t){var e={};return function(r){return void 0===e[r]&&(e[r]=t(r)),e[r]}}((function(t){return _(t)?t:t.replace(x,"-$&").toLowerCase()})),A=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(w,(function(t,e,r){return P={name:e,styles:r,next:P},e}))}return 1===g[t]||_(t)||"number"!=typeof e||0===e?e:e+"px"};function C(t,e,r,n){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return P={name:r.name,styles:r.styles,next:P},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)P={name:i.name,styles:i.styles,next:P},i=i.next;return r.styles+";"}return function(t,e,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=C(t,e,r[i],!1);else for(var o in r){var a=r[o];if("object"!=typeof a)null!=e&&void 0!==e[a]?n+=o+"{"+e[a]+"}":O(a)&&(n+=j(o)+":"+A(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=e&&void 0!==e[a[0]]){var s=C(t,e,a,!1);switch(o){case"animation":case"animationName":n+=j(o)+":"+s+";";break;default:n+=o+"{"+s+"}"}}else for(var u=0;u<a.length;u++)O(a[u])&&(n+=j(o)+":"+A(o,a[u])+";")}return n}(t,e,r);case"function":if(void 0!==t){var o=P,a=r(t);return P=o,C(t,e,a,n)}break;case"string":}if(null==e)return r;var s=e[r];return void 0===s||n?r:s}var P,E=/label:\s*([^\s;\n{]+)\s*;/g;var S=function(t,e,r){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var n=!0,i="";P=void 0;var o=t[0];null==o||void 0===o.raw?(n=!1,i+=C(r,e,o,!1)):i+=o[0];for(var a=1;a<t.length;a++)i+=C(r,e,t[a],46===i.charCodeAt(i.length-1)),n&&(i+=o[a]);E.lastIndex=0;for(var s,u="";null!==(s=E.exec(i));)u+="-"+s[1];return{name:b(i)+u,styles:i,next:P}},k=d,T=function(t){return"theme"!==t&&"innerRef"!==t},R=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?k:T};function q(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function F(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?q(r,!0).forEach((function(e){l()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):q(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var D=function t(e,r){var n,i,o;void 0!==r&&(n=r.label,o=r.target,i=e.__emotion_forwardProp&&r.shouldForwardProp?function(t){return e.__emotion_forwardProp(t)&&r.shouldForwardProp(t)}:r.shouldForwardProp);var a=e.__emotion_real===e,s=a&&e.__emotion_base||e;"function"!=typeof i&&a&&(i=e.__emotion_forwardProp);var u=i||R(s),c=!u("as");return function(){var l=arguments,p=a&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==n&&p.push("label:"+n+";"),null==l[0]||void 0===l[0].raw)p.push.apply(p,l);else{0,p.push(l[0][0]);for(var h=l.length,d=1;d<h;d++)p.push(l[d],l[0][d])}var b=Object(m.withEmotionCache)((function(t,e,r){return Object(f.createElement)(m.ThemeContext.Consumer,null,(function(n){var a=c&&t.as||s,l="",h=[],d=t;if(null==t.theme){for(var m in d={},t)d[m]=t[m];d.theme=n}"string"==typeof t.className?l=v(e.registered,h,t.className):null!=t.className&&(l=t.className+" ");var b=S(p.concat(h),e.registered,d);y(e,b,"string"==typeof a);l+=e.key+"-"+b.name,void 0!==o&&(l+=" "+o);var g=c&&void 0===i?R(a):u,x={};for(var w in t)c&&"as"===w||g(w)&&(x[w]=t[w]);return x.className=l,x.ref=r||t.innerRef,Object(f.createElement)(a,x)}))}));return b.displayName=void 0!==n?n:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",b.defaultProps=e.defaultProps,b.__emotion_real=b,b.__emotion_base=s,b.__emotion_styles=p,b.__emotion_forwardProp=i,Object.defineProperty(b,"toString",{value:function(){return"."+o}}),b.withComponent=function(e,n){return t(e,void 0!==n?F({},r||{},{},n):r).apply(void 0,p)},b}},L=r(1),U=r.n(L),N=r(50),M=r(27);function B(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const I=D(M.Icon,{target:"e1uivwef0",label:"LoginButtonIcon"})({name:"x0sdsu",styles:"margin-right:18px;"});class z extends p.a.Component{constructor(...t){super(...t),B(this,"state",{}),B(this,"handleLogin",t=>{t.preventDefault(),this.auth.authenticate({scope:"vso.code_full,user.read",resource:"499b84ac-1321-427f-aa17-267ca6975798",prompt:"select_account"},(t,e)=>{t?this.setState({loginError:t.toString()}):this.props.onLogin(e)})})}componentDidMount(){this.auth=new N.ImplicitAuthenticator({base_url:"https://login.microsoftonline.com/"+this.props.config.backend.tenant_id,auth_endpoint:"oauth2/authorize",app_id:this.props.config.backend.app_id,clearHash:this.props.clearHash}),this.auth.completeAuth((t,e)=>{t?alert(t):this.props.onLogin(e)})}render(){const{inProgress:t,config:e,t:r}=this.props;return Object(m.jsx)(M.AuthenticationPage,{onLogin:this.handleLogin,loginDisabled:t,loginErrorMessage:this.state.loginError,logoUrl:e.logo_url,renderButtonContent:()=>Object(m.jsx)(p.a.Fragment,null,Object(m.jsx)(I,{type:"azure"}),r(t?"auth.loggingIn":"auth.loginWithAzure")),t:r})}}B(z,"propTypes",{onLogin:U.a.func.isRequired,inProgress:U.a.bool,base_url:U.a.string,siteId:U.a.string,authEndpoint:U.a.string,config:U.a.object.isRequired,clearHash:U.a.func,t:U.a.func.isRequired});var $=r(51),H=r.n($),W=r(52),J=r.n(W);const K="function"==typeof atob,V="function"==typeof btoa,G="function"==typeof Buffer,X="function"==typeof TextDecoder?new TextDecoder:void 0,Y="function"==typeof TextEncoder?new TextEncoder:void 0,Z=[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],Q=(t=>{let e={};return t.forEach((t,r)=>e[t]=r),e})(Z),tt=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,et=String.fromCharCode.bind(String),rt="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):(t,e=(t=>t))=>new Uint8Array(Array.prototype.slice.call(t,0).map(e)),nt=t=>t.replace(/[+\/]/g,t=>"+"==t?"-":"_").replace(/=+$/m,""),it=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),ot=t=>{let e,r,n,i,o="";const a=t.length%3;for(let a=0;a<t.length;){if((r=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255||(i=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|i,o+=Z[e>>18&63]+Z[e>>12&63]+Z[e>>6&63]+Z[63&e]}return a?o.slice(0,a-3)+"===".substring(a):o},at=V?t=>btoa(t):G?t=>Buffer.from(t,"binary").toString("base64"):ot,st=G?t=>Buffer.from(t).toString("base64"):t=>{let e=[];for(let r=0,n=t.length;r<n;r+=4096)e.push(et.apply(null,t.subarray(r,r+4096)));return at(e.join(""))},ut=t=>{if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?et(192|e>>>6)+et(128|63&e):et(224|e>>>12&15)+et(128|e>>>6&63)+et(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return et(240|e>>>18&7)+et(128|e>>>12&63)+et(128|e>>>6&63)+et(128|63&e)},ct=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,lt=t=>t.replace(ct,ut),ft=G?t=>Buffer.from(t,"utf8").toString("base64"):Y?t=>st(Y.encode(t)):t=>at(lt(t)),pt=(t,e=!1)=>e?nt(ft(t)):ft(t),ht=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,dt=t=>{switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return et(55296+(e>>>10))+et(56320+(1023&e));case 3:return et((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return et((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},mt=t=>t.replace(ht,dt),vt=t=>{if(t=t.replace(/\s+/g,""),!tt.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));let e,r,n,i="";for(let o=0;o<t.length;)e=Q[t.charAt(o++)]<<18|Q[t.charAt(o++)]<<12|(r=Q[t.charAt(o++)])<<6|(n=Q[t.charAt(o++)]),i+=64===r?et(e>>16&255):64===n?et(e>>16&255,e>>8&255):et(e>>16&255,e>>8&255,255&e);return i},yt=K?t=>atob(it(t)):G?t=>Buffer.from(t,"base64").toString("binary"):vt,bt=G?t=>rt(Buffer.from(t,"base64")):t=>rt(yt(t),t=>t.charCodeAt(0)),gt=G?t=>Buffer.from(t,"base64").toString("utf8"):X?t=>X.decode(bt(t)):t=>mt(yt(t)),xt=t=>it(t.replace(/[-_]/g,t=>"-"==t?"+":"/")),wt=t=>gt(xt(t)),_t=pt,Ot=wt;var jt=r(0),At=r(16);function Ct(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Pt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ct(Object(r),!0).forEach((function(e){Et(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ct(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Et(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const St="Azure DevOps";var kt,Tt,Rt,qt,Ft,Dt;function Lt(t){return new Promise(e=>setTimeout(e,t))}!function(t){t.ERROR="error",t.FAILED="failed",t.NOT_APPLICABLE="notApplicable",t.NOT_SET="notSet",t.PENDING="pending",t.SUCCEEDED="succeeded"}(kt||(kt={})),function(t){t.ADD="add",t.DELETE="delete",t.RENAME="rename",t.EDIT="edit"}(Tt||(Tt={})),function(t){t.BASE64="base64encoded"}(Rt||(Rt={})),function(t){t.ACTIVE="active",t.COMPLETED="completed",t.ABANDONED="abandoned"}(qt||(qt={})),function(t){t.CONFLICTS="conflicts",t.FAILURE="failure",t.QUEUED="queued",t.REJECTED="rejectedByPolicy",t.SUCCEEDED="succeeded"}(Ft||(Ft={})),function(t){t.BLOB="blob",t.TREE="tree"}(Dt||(Dt={}));const Ut=t=>{switch(t.action){case Tt.ADD:return{changeType:Tt.ADD,item:{path:t.path},newContent:{content:t.base64Content,contentType:Rt.BASE64}};case Tt.EDIT:return{changeType:Tt.EDIT,item:{path:t.path},newContent:{content:t.base64Content,contentType:Rt.BASE64}};case Tt.DELETE:return{changeType:Tt.DELETE,item:{path:t.path}};case Tt.RENAME:return{changeType:Tt.RENAME,item:{path:t.path},sourceServerItem:t.oldPath};default:return{}}};class Nt{constructor(t,e){Et(this,"apiVersion",void 0),Et(this,"token",void 0),Et(this,"branch",void 0),Et(this,"mergeStrategy",void 0),Et(this,"endpointUrl",void 0),Et(this,"initialWorkflowStatus",void 0),Et(this,"cmsLabelPrefix",void 0),Et(this,"withHeaders",t=>jt.unsentRequest.withHeaders({Authorization:"Bearer "+this.token,"Content-Type":"application/json; charset=utf-8"},t)),Et(this,"withAzureFeatures",t=>{if(t.hasIn(["params","api-version"]))return t;return jt.unsentRequest.withParams({"api-version":""+this.apiVersion},t)}),Et(this,"buildRequest",t=>{const e=this.withHeaders(t),r=this.withAzureFeatures(e);if(r.has("cache"))return r;return jt.unsentRequest.withNoCache(r)}),Et(this,"request",t=>{try{return Object(jt.requestWithBackoff)(this,t)}catch(t){throw new jt.APIError(t.message,null,St)}}),Et(this,"responseToJSON",Object(jt.responseParser)({format:"json",apiName:St})),Et(this,"responseToBlob",Object(jt.responseParser)({format:"blob",apiName:St})),Et(this,"responseToText",Object(jt.responseParser)({format:"text",apiName:St})),Et(this,"requestJSON",t=>this.request(t).then(this.responseToJSON)),Et(this,"requestText",t=>this.request(t).then(this.responseToText)),Et(this,"toBase64",t=>Promise.resolve(_t(t))),Et(this,"fromBase64",t=>Ot(t)),Et(this,"branchToRef",t=>"refs/heads/"+t),Et(this,"refToBranch",t=>t.substr("refs/heads/".length)),Et(this,"user",async()=>{var t,e,r,n,i,o,a;const s=await this.requestJSON({url:"https://app.vssps.visualstudio.com/_apis/profile/profiles/me",params:{"api-version":"6.1-preview.2"}}),u=null===(t=s.coreAttributes)||void 0===t||null===(e=t.DisplayName)||void 0===e?void 0:e.value,c=null===(r=s.coreAttributes)||void 0===r||null===(n=r.EmailAddress)||void 0===n?void 0:n.value;return{name:u||c||"",avatar_url:"data:image/png;base64,"+(null===(i=s.coreAttributes)||void 0===i||null===(o=i.Avatar)||void 0===o||null===(a=o.value)||void 0===a?void 0:a.value),email:c}}),Et(this,"readFile",(t,e,{parseText:r=!0,branch:n=this.branch}={})=>Object(jt.readFile)(e,()=>this.request({url:this.endpointUrl+"/items/",params:{version:n,path:t},cache:"no-store"}).then(r?this.responseToText:this.responseToBlob),jt.localForage,r)),Et(this,"listFiles",async(t,e,r=this.branch)=>{try{const{value:n}=await this.requestJSON({url:this.endpointUrl+"/items/",params:{version:r,scopePath:t,recursionLevel:e?"full":"oneLevel"}});return n.filter(t=>t.gitObjectType===Dt.BLOB).map(t=>({id:t.objectId,path:a()(t.path,"/"),name:Object(At.basename)(t.path)}))}catch(t){if(t&&404===t.status)return console.log("This 404 was expected and handled appropriately."),[];throw t}});const{repo:r}=t,n=i()(t.apiRoot,"/");this.endpointUrl=`${n}/${r.org}/${r.project}/_apis/git/repositories/${r.repoName}`,this.token=e,this.branch=t.branch,this.mergeStrategy=t.squashMerges?"squash":"noFastForward",this.initialWorkflowStatus=t.initialWorkflowStatus,this.apiVersion=t.apiVersion,this.cmsLabelPrefix=t.cmsLabelPrefix}async readFileMetadata(t,e,{branch:r=this.branch}={}){return await Object(jt.readFileMetadata)(e,async()=>{try{const{value:e}=await this.requestJSON({url:this.endpointUrl+"/commits/",params:{"searchCriteria.itemPath":t,"searchCriteria.itemVersion.version":r,"searchCriteria.$top":1}}),[n]=e;return{author:n.author.name||n.author.email,updatedOn:n.author.date}}catch(t){return{author:"",updatedOn:""}}},jt.localForage)}async getRef(t=this.branch){const{value:e}=await this.requestJSON({url:this.endpointUrl+"/refs",params:{$top:"1",filter:"heads/"+t}});return e.find(e=>e.name==this.branchToRef(t))}async deleteRef(t){const e=[{name:t.name,oldObjectId:t.objectId,newObjectId:"0000000000000000000000000000000000000000"}];await this.requestJSON({method:"POST",url:this.endpointUrl+"/refs",body:JSON.stringify(e)})}async uploadAndCommit(t,e,r,n){const i=await this.getRef(n?this.branch:r),o={refUpdates:[{name:this.branchToRef(r),oldObjectId:i.objectId}],commits:[{comment:e,changes:t.map(t=>Ut(t))}]};return this.requestJSON({url:this.endpointUrl+"/pushes",method:"POST",body:JSON.stringify(o)})}async retrieveUnpublishedEntryData(t){const{collection:e,slug:r}=Object(jt.parseContentKey)(t),n=Object(jt.branchFromContentKey)(t),i=await this.getBranchPullRequest(n),o=await this.getDifferences(i.sourceRefName),s=await Promise.all(o.map(async t=>{const e=a()(t.item.path,"/"),r=t.changeType===Tt.ADD;return{id:t.item.objectId,path:e,newFile:r}})),u=i.labels.find(t=>Object(jt.isCMSLabel)(t.name,this.cmsLabelPrefix)),c=u&&u.name?u.name:this.cmsLabelPrefix;return{collection:e,slug:r,status:Object(jt.labelToStatus)(c,this.cmsLabelPrefix),diffs:s,updatedAt:i.closedDate?i.closedDate:i.creationDate}}async getPullRequestStatues(t){const{value:e}=await this.requestJSON({url:`${this.endpointUrl}/pullrequests/${t.pullRequestId}/commits`,params:{$top:1}}),{value:r}=await this.requestJSON({url:`${this.endpointUrl}/commits/${e[0].commitId}/statuses`,params:{latestOnly:!0}});return r}async getStatuses(t,e){const r=Object(jt.generateContentKey)(t,e),n=Object(jt.branchFromContentKey)(r),i=await this.getBranchPullRequest(n);return(await this.getPullRequestStatues(i)).map(({context:t,state:e,targetUrl:r})=>({context:t.name,state:e===kt.SUCCEEDED?jt.PreviewState.Success:jt.PreviewState.Other,target_url:r}))}async getCommitItems(t,e){const r=await Promise.all(t.map(async t=>{const[r,n]=await Promise.all([H()(t,"toBase64",J()(this.toBase64,t.raw)),this.isFileExists(t.path,e)]),i=t.newPath||t.path,o=t.path,a=i!==o?Tt.RENAME:Tt.EDIT;return{action:n?a:Tt.ADD,base64Content:r,path:i,oldPath:o}}));for(const t of r.filter(t=>t.oldPath&&t.action===Tt.RENAME)){const n=Object(At.dirname)(t.oldPath),i=Object(At.dirname)(t.path);(await this.listFiles(n,!0,e)).filter(e=>e.path!==t.oldPath).forEach(t=>{r.push({action:Tt.RENAME,path:t.path.replace(n,i),oldPath:t.path})})}return r}async persistFiles(t,e,r){const n=[...t,...e];if(r.useWorkflow){const e=t[0].slug;return this.editorialWorkflowGit(n,e,r)}{const t=await this.getCommitItems(n,this.branch);return this.uploadAndCommit(t,r.commitMessage,this.branch,!0)}}async deleteFiles(t,e){const r=await this.getRef(this.branch),n={refUpdates:[{name:r.name,oldObjectId:r.objectId}],commits:[{comment:e,changes:t.map(t=>Ut({action:Tt.DELETE,path:t}))}]};return this.requestJSON({url:this.endpointUrl+"/pushes",method:"POST",body:JSON.stringify(n)})}async getPullRequests(t){const{value:e}=await this.requestJSON({url:this.endpointUrl+"/pullrequests",params:Pt({"searchCriteria.status":"active","searchCriteria.targetRefName":this.branchToRef(this.branch),"searchCriteria.includeLinks":!1},t?{"searchCriteria.sourceRefName":this.branchToRef(t)}:{})});return e.filter(t=>t.labels.some(t=>Object(jt.isCMSLabel)(t.name,this.cmsLabelPrefix)))}async listUnpublishedBranches(){return(await this.getPullRequests()).map(t=>this.refToBranch(t.sourceRefName))}async isFileExists(t,e){try{return await this.requestText({url:this.endpointUrl+"/items/",params:{version:e,path:t},cache:"no-store"}),!0}catch(t){if(t instanceof jt.APIError&&404===t.status)return!1;throw t}}async createPullRequest(t,e,r){const n={sourceRefName:this.branchToRef(t),targetRefName:this.branchToRef(this.branch),title:e,description:jt.DEFAULT_PR_BODY,labels:[{name:Object(jt.statusToLabel)(r,this.cmsLabelPrefix)}]};await this.requestJSON({method:"POST",url:this.endpointUrl+"/pullrequests",params:{supportsIterations:!1},body:JSON.stringify(n)})}async getBranchPullRequest(t){const e=await this.getPullRequests(t);if(e.length<=0)throw new jt.EditorialWorkflowError("content is not under editorial workflow",!0);return e[0]}async getDifferences(t){return(await this.requestJSON({url:this.endpointUrl+"/diffs/commits",params:{baseVersion:this.branch,targetVersion:this.refToBranch(t)}})).changes.filter(t=>t.item.gitObjectType===Dt.BLOB&&Object.values(Tt).includes(t.changeType))}async editorialWorkflowGit(t,e,r){const n=Object(jt.generateContentKey)(r.collectionName,e),i=Object(jt.branchFromContentKey)(n);if(r.unpublished||!1){const e=await this.getCommitItems(t,i);await this.uploadAndCommit(e,r.commitMessage,i,!1)}else{const e=await this.getCommitItems(t,this.branch);await this.uploadAndCommit(e,r.commitMessage,i,!0),await this.createPullRequest(i,r.commitMessage,r.status||this.initialWorkflowStatus)}}async updateUnpublishedEntryStatus(t,e,r){const n=Object(jt.generateContentKey)(t,e),i=Object(jt.branchFromContentKey)(n),o=await this.getBranchPullRequest(i),a=[...o.labels.filter(t=>!Object(jt.isCMSLabel)(t.name,this.cmsLabelPrefix)).map(t=>t.name),Object(jt.statusToLabel)(r,this.cmsLabelPrefix)];await this.updatePullRequestLabels(o,a)}async deleteUnpublishedEntry(t,e){const r=Object(jt.generateContentKey)(t,e),n=Object(jt.branchFromContentKey)(r),i=await this.getBranchPullRequest(n);await this.abandonPullRequest(i)}async publishUnpublishedEntry(t,e){const r=Object(jt.generateContentKey)(t,e),n=Object(jt.branchFromContentKey)(r),i=await this.getBranchPullRequest(n);await this.completePullRequest(i)}async updatePullRequestLabels(t,e){const r=t.labels.filter(t=>Object(jt.isCMSLabel)(t.name,this.cmsLabelPrefix));await Promise.all(r.map(e=>this.requestText({method:"DELETE",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(t.pullRequestId)}/labels/${encodeURIComponent(e.id)}`}))),await Promise.all(e.map(e=>this.requestText({method:"POST",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(t.pullRequestId)}/labels`,body:JSON.stringify({name:e})})))}async completePullRequest(t){const e={status:qt.COMPLETED,lastMergeSourceCommit:t.lastMergeSourceCommit,completionOptions:{deleteSourceBranch:!0,mergeCommitMessage:jt.MERGE_COMMIT_MESSAGE,mergeStrategy:this.mergeStrategy}};let r=await this.requestJSON({method:"PATCH",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(t.pullRequestId)}`,body:JSON.stringify(e)});let n=1;for(;r.mergeStatus===Ft.QUEUED&&n<=10;)await Lt(500),r=await this.requestJSON({url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(t.pullRequestId)}`}),n+=1}async abandonPullRequest(t){const e={status:qt.ABANDONED};await this.requestJSON({method:"PATCH",url:`${this.endpointUrl}/pullrequests/${encodeURIComponent(t.pullRequestId)}`,body:JSON.stringify(e)}),await this.deleteRef({name:t.sourceRefName,objectId:t.lastMergeSourceCommit.commitId})}}function Mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mt(Object(r),!0).forEach((function(e){It(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function It(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class zt{constructor(t,e={}){It(this,"lock",void 0),It(this,"api",void 0),It(this,"options",void 0),It(this,"repo",void 0),It(this,"branch",void 0),It(this,"apiRoot",void 0),It(this,"apiVersion",void 0),It(this,"token",void 0),It(this,"squashMerges",void 0),It(this,"cmsLabelPrefix",void 0),It(this,"mediaFolder",void 0),It(this,"previewContext",void 0),It(this,"_mediaDisplayURLSem",void 0),this.options=Bt({initialWorkflowStatus:""},e),this.repo=(t=>{const{repo:e}=t.backend;if("string"!=typeof e)throw new Error('The Azure backend needs a "repo" in the backend configuration.');const r=e.split("/");if(3!==r.length)throw new Error("The Azure backend must be in a the format of {org}/{project}/{repo}");const[n,i,o]=r;return{org:n,project:i,repoName:o}})(t),this.branch=t.backend.branch||"master",this.apiRoot=t.backend.api_root||"https://dev.azure.com",this.apiVersion=t.backend.api_version||"6.1-preview",this.token="",this.squashMerges=t.backend.squash_merges||!1,this.cmsLabelPrefix=t.backend.cms_label_prefix||"",this.mediaFolder=i()(t.media_folder,"/"),this.previewContext=t.backend.preview_context||"",this.lock=Object(jt.asyncLock)()}isGitBackend(){return!0}async status(){return{auth:{status:await this.api.user().then(t=>!!t).catch(t=>(console.warn("Failed getting Azure user",t),!1))||!1},api:{status:!0,statusPage:""}}}authComponent(){return z}restoreUser(t){return this.authenticate(t)}async authenticate(t){this.token=t.token,this.api=new Nt({apiRoot:this.apiRoot,apiVersion:this.apiVersion,repo:this.repo,branch:this.branch,squashMerges:this.squashMerges,cmsLabelPrefix:this.cmsLabelPrefix,initialWorkflowStatus:this.options.initialWorkflowStatus},this.token);const e=await this.api.user();return Bt({token:t.token},e)}logout(){this.token=null}getToken(){return Promise.resolve(this.token)}async entriesByFolder(t,e,r){return await Object(jt.entriesByFolder)(async()=>(await this.api.listFiles(t,r>1)).filter(t=>Object(jt.filterByExtension)({path:t.path},e)).map(t=>({id:t.id,path:t.path})),this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),St)}entriesByFiles(t){return Object(jt.entriesByFiles)(t,this.api.readFile.bind(this.api),this.api.readFileMetadata.bind(this.api),St)}async getEntry(t){return{file:{path:t},data:await this.api.readFile(t)}}async getMedia(){const t=await this.api.listFiles(this.mediaFolder,!1);return await Promise.all(t.map(async({id:t,path:e,name:r})=>({id:t,name:r,displayURL:await this.getMediaDisplayURL({id:t,path:e}),path:e})))}getMediaDisplayURL(t){return this._mediaDisplayURLSem=this._mediaDisplayURLSem||u()(10),Object(jt.getMediaDisplayURL)(t,this.api.readFile.bind(this.api),this._mediaDisplayURLSem)}async getMediaFile(t){const e=Object(jt.basename)(t),r=await Object(jt.getMediaAsBlob)(t,null,this.api.readFile.bind(this.api)),n=new File([r],e),i=URL.createObjectURL(n);return{id:await Object(jt.getBlobSHA)(r),displayURL:i,path:t,name:e,size:n.size,file:n,url:i}}async persistEntry(t,e){const r=t.assets;await this.api.persistFiles(t.dataFiles,r,e)}async persistMedia(t,e){const r=t.fileObj,[n]=await Promise.all([Object(jt.getBlobSHA)(r),this.api.persistFiles([],[t],e)]),{path:i}=t,o=URL.createObjectURL(r);return{displayURL:o,path:a()(i,"/"),name:r.name,size:r.size,file:r,url:o,id:n}}async deleteFiles(t,e){await this.api.deleteFiles(t,e)}async loadMediaFile(t,e){const r=await Object(jt.getMediaAsBlob)(e.path,null,(e,r,{parseText:n})=>this.api.readFile(e,r,{branch:t,parseText:n})),n=Object(jt.basename)(e.path),i=new File([r],n);return{id:e.path,displayURL:URL.createObjectURL(i),path:e.path,name:n,size:i.size,file:i}}async loadEntryMediaFiles(t,e){return await Promise.all(e.map(e=>this.loadMediaFile(t,e)))}async unpublishedEntries(){return await Object(jt.unpublishedEntries)(()=>this.api.listUnpublishedBranches().then(t=>t.map(t=>Object(jt.contentKeyFromBranch)(t))))}async unpublishedEntry({id:t,collection:e,slug:r}){if(t){return await this.api.retrieveUnpublishedEntryData(t)}if(e&&r){const t=Object(jt.generateContentKey)(e,r);return await this.api.retrieveUnpublishedEntryData(t)}throw new Error("Missing unpublished entry id or collection and slug")}getBranch(t,e){const r=Object(jt.generateContentKey)(t,e);return Object(jt.branchFromContentKey)(r)}async unpublishedEntryMediaFile(t,e,r,n){const i=this.getBranch(t,e);return await this.loadMediaFile(i,{path:r,id:n})}async unpublishedEntryDataFile(t,e,r,n){const i=this.getBranch(t,e);return await this.api.readFile(r,n,{branch:i})}updateUnpublishedEntryStatus(t,e,r){return Object(jt.runWithLock)(this.lock,()=>this.api.updateUnpublishedEntryStatus(t,e,r),"Failed to acquire update entry status lock")}deleteUnpublishedEntry(t,e){return Object(jt.runWithLock)(this.lock,()=>this.api.deleteUnpublishedEntry(t,e),"Failed to acquire delete entry lock")}publishUnpublishedEntry(t,e){return Object(jt.runWithLock)(this.lock,()=>this.api.publishUnpublishedEntry(t,e),"Failed to acquire publish entry lock")}async getDeployPreview(t,e){try{const r=await this.api.getStatuses(t,e),n=Object(jt.getPreviewStatus)(r,this.previewContext);if(n){const{target_url:t,state:e}=n;return{url:t,status:e}}return null}catch(t){return null}}}const $t={AzureBackend:zt,API:Nt,AuthenticationPage:z}}]).NetlifyCmsBackendAzure}));
  //# sourceMappingURL=netlify-cms-backend-azure.js.map