File: //home/www/aritmodecarnaval/nextcloud/apps/mail/js/htmlresponse.js
/*! For license information please see htmlresponse.js.LICENSE.txt */
!function(){var e={90992:function(e,t,n){"use strict";var o=n(87537),r=n.n(o),i=n(23645),a=n.n(i)()(r());a.push([e.id,"* {\n\tfont-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, Ubuntu, 'Helvetica Neue', Arial, 'Noto Color Emoji', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';\n}\n","",{version:3,sources:["webpack://./css/html-response.css"],names:[],mappings:"AAAA;CACC,qNAAqN;AACtN",sourcesContent:["* {\n\tfont-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, Ubuntu, 'Helvetica Neue', Arial, 'Noto Color Emoji', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';\n}\n"],sourceRoot:""}]),t.Z=a},23645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(o)for(var c=0;c<this.length;c++){var u=this[c][0];null!=u&&(a[u]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);o&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),r&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=r):l[4]="".concat(r)),t.push(l))}},t}},87537:function(e){"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),i="/*# ".concat(r," */"),a=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([i]).join("\n")}return[t].join("\n")}},49402:function(e){!function(t){if("undefined"!=typeof window){var n=!0,o="",r=0,i="",a=null,c="",u=!1,s={resize:1,click:1},l=128,d=!0,f=1,m="bodyOffset",p=m,h=!0,v="",g={},y=32,b=null,w=!1,T=!1,S="[iFrameSizer]",E=S.length,M="",O={max:1,min:1,bodyScroll:1,documentElementScroll:1},I="child",A=window.parent,N="*",C=0,x=!1,R=null,k=16,L=1,j="scroll",z=j,F=window,U=function(){ie("onMessage function not defined")},P=function(){},D=function(){},q={height:function(){return ie("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return ie("Custom width calculation function not defined"),document.body.scrollWidth}},H={},B=!1;try{var W=Object.create({},{passive:{get:function(){B=!0}}});window.addEventListener("test",ee,W),window.removeEventListener("test",ee,W)}catch(e){}var J,Z,V,X,Y,K,Q,_={bodyOffset:function(){return document.body.offsetHeight+he("marginTop")+he("marginBottom")},offset:function(){return _.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return q.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,ge(_))},min:function(){return Math.min.apply(null,ge(_))},grow:function(){return _.max()},lowestElement:function(){return Math.max(_.bodyOffset()||_.documentElementOffset(),ve("bottom",be()))},taggedElement:function(){return ye("bottom","data-iframe-height")}},$={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return q.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max($.bodyScroll(),$.documentElementScroll())},max:function(){return Math.max.apply(null,ge($))},min:function(){return Math.min.apply(null,ge($))},rightMostElement:function(){return ve("right",be())},taggedElement:function(){return ye("right","data-iframe-width")}},G=(J=we,Y=null,K=0,Q=function(){K=Date.now(),Y=null,X=J.apply(Z,V),Y||(Z=V=null)},function(){var e=Date.now();K||(K=e);var t=k-(e-K);return Z=this,V=arguments,t<=0||t>k?(Y&&(clearTimeout(Y),Y=null),K=e,X=J.apply(Z,V),Y||(Z=V=null)):Y||(Y=setTimeout(Q,t)),X});te(window,"message",(function(s){var f,m={init:function(){var e,f,m;v=s.data,A=s.source,function(){function e(e){return"true"===e}var a=v.substr(E).split(":");M=a[0],r=t!==a[1]?Number(a[1]):r,u=t!==a[2]?e(a[2]):u,w=t!==a[3]?e(a[3]):w,y=t!==a[4]?Number(a[4]):y,n=t!==a[6]?e(a[6]):n,i=a[7],p=t!==a[8]?a[8]:p,o=a[9],c=a[10],C=t!==a[11]?Number(a[11]):C,g.enable=t!==a[12]&&e(a[12]),I=t!==a[13]?a[13]:I,z=t!==a[14]?a[14]:z,T=t!==a[15]?Boolean(a[15]):T}(),re("Initialising iFrame ("+window.location.href+")"),function(){function e(){var e=window.iFrameResizer;re("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(ae,e),U="onMessage"in e?e.onMessage:U,P="onReady"in e?e.onReady:P,N="targetOrigin"in e?e.targetOrigin:N,p="heightCalculationMethod"in e?e.heightCalculationMethod:p,z="widthCalculationMethod"in e?e.widthCalculationMethod:z}function t(e,t){return"function"==typeof e&&(re("Setup custom "+t+"CalcMethod"),q[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),p=t(p,"height"),z=t(z,"width")),re("TargetOrigin for parent set to: "+N)}(),t===i&&(i=r+"px"),ce("margin",(f="margin",-1!==(m=i).indexOf("-")&&(ie("Negative CSS value ignored for "+f),m=""),m)),ce("background",o),ce("padding",c),(e=document.createElement("div")).style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e),de(),fe(),document.documentElement.style.height="",document.body.style.height="",re('HTML & body height set to "auto"'),re("Enable public methods"),F.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,me()):!1===e&&!0===n&&(n=!1,se("remove"),null!==a&&a.disconnect(),clearInterval(b)),Oe(0,0,"autoResize",JSON.stringify(n)),n},close:function(){Oe(0,0,"close")},getId:function(){return M},getPageInfo:function(e){"function"==typeof e?(D=e,Oe(0,0,"pageInfo")):(D=function(){},Oe(0,0,"pageInfoStop"))},moveToAnchor:function(e){g.findTarget(e)},reset:function(){Me("parentIFrame.reset")},scrollTo:function(e,t){Oe(t,e,"scrollTo")},scrollToOffset:function(e,t){Oe(t,e,"scrollToOffset")},sendMessage:function(e,t){Oe(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){p=e,de()},setWidthCalculationMethod:function(e){z=e,fe()},setTargetOrigin:function(e){re("Set targetOrigin: "+e),N=e},size:function(e,t){Te("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}},function(){function e(e){Oe(0,0,e.type,e.screenY+":"+e.screenX)}function t(t,n){re("Add event listener: "+n),te(window.document,t,e)}!0===T&&(t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave"))}(),me(),g=function(){function e(){return{x:window.pageXOffset!==t?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==t?window.pageYOffset:document.documentElement.scrollTop}}function n(t){var n=t.getBoundingClientRect(),o=e();return{x:parseInt(n.left,10)+parseInt(o.x,10),y:parseInt(n.top,10)+parseInt(o.y,10)}}function o(e){function o(e){var t=n(e);re("Moving to in page link (#"+r+") at x: "+t.x+" y: "+t.y),Oe(t.y,t.x,"scrollToOffset")}var r=e.split("#")[1]||e,i=decodeURIComponent(r),a=document.getElementById(i)||document.getElementsByName(i)[0];t!==a?o(a):(re("In page link (#"+r+") not found in iFrame, so sending to parent"),Oe(0,0,"inPageLink","#"+r))}function r(){var e=window.location.hash,t=window.location.href;""!==e&&"#"!==e&&o(t)}function i(){function e(e){function t(e){e.preventDefault(),o(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&te(e,"click",t)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),e)}function a(){te(window,"hashchange",r)}function c(){setTimeout(r,l)}function u(){Array.prototype.forEach&&document.querySelectorAll?(re("Setting up location.hash handlers"),i(),a(),c()):ie("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}return g.enable?u():re("In page linking not enabled"),{findTarget:o}}(),Te("init","Init message from host page"),P(),d=!1,setTimeout((function(){h=!1}),l)},reset:function(){h?re("Page reset ignored by init"):(re("Page size reset by host page"),Ee("resetPage"))},resize:function(){Te("resizeParent","Parent window requested size check")},moveToAnchor:function(){g.findTarget(x())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=x();re("PageInfoFromParent called from parent: "+e),D(JSON.parse(e)),re(" --")},message:function(){var e=x();re("onMessage called from parent: "+e),U(JSON.parse(e)),re(" --")}};function O(){return s.data.split("]")[1].split(":")[0]}function x(){return s.data.substr(s.data.indexOf(":")+1)}function R(){return s.data.split(":")[2]in{true:1,false:1}}S===(""+s.data).substr(0,E)&&(!1===d?(f=O())in m?m[f]():!e.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||R()||ie("Unexpected message ("+s.data+")"):R()?m.init():re('Ignored message of type "'+O()+'". Received before initialization.'))})),te(window,"readystatechange",Ie),Ie()}function ee(){}function te(e,t,n,o){e.addEventListener(t,n,!!B&&(o||{}))}function ne(e){return e.charAt(0).toUpperCase()+e.slice(1)}function oe(e){return S+"["+M+"] "+e}function re(e){w&&"object"==typeof window.console&&console.log(oe(e))}function ie(e){"object"==typeof window.console&&console.warn(oe(e))}function ae(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],ie("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function ce(e,n){t!==n&&""!==n&&"null"!==n&&(document.body.style[e]=n,re("Body "+e+' set to "'+n+'"'))}function ue(e){var t={add:function(t){function n(){Te(e.eventName,e.eventType)}H[t]=n,te(window,t,n,{passive:!0})},remove:function(e){var t,n,o=H[e];delete H[e],t=e,n=o,window.removeEventListener(t,n,!1)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),re(ne(e.method)+" event listener: "+e.eventType)}function se(e){ue({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ue({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ue({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ue({method:e,eventType:"Input",eventName:"input"}),ue({method:e,eventType:"Mouse Up",eventName:"mouseup"}),ue({method:e,eventType:"Mouse Down",eventName:"mousedown"}),ue({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),ue({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),ue({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),ue({method:e,eventType:"Touch Start",eventName:"touchstart"}),ue({method:e,eventType:"Touch End",eventName:"touchend"}),ue({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),ue({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ue({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ue({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===I&&ue({method:e,eventType:"IFrame Resized",eventName:"resize"})}function le(e,t,n,o){return t!==e&&(e in n||(ie(e+" is not a valid option for "+o+"CalculationMethod."),e=t),re(o+' calculation method set to "'+e+'"')),e}function de(){p=le(p,m,_,"height")}function fe(){z=le(z,j,$,"width")}function me(){var e;!0===n?(se("add"),e=0>y,window.MutationObserver||window.WebKitMutationObserver?e?pe():a=function(){function e(e){function t(e){!1===e.complete&&(re("Attach listeners to "+e.src),e.addEventListener("load",o,!1),e.addEventListener("error",r,!1),a.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function t(e){re("Remove listeners from "+e.src),e.removeEventListener("load",o,!1),e.removeEventListener("error",r,!1),function(e){a.splice(a.indexOf(e),1)}(e)}function n(e,n,o){t(e.target),Te(n,o+": "+e.target.src)}function o(e){n(e,"imageLoad","Image loaded")}function r(e){n(e,"imageLoadFailed","Image load failed")}function i(t){Te("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}var a=[],c=window.MutationObserver||window.WebKitMutationObserver,u=function(){var e=document.querySelector("body");return u=new c(i),re("Create body MutationObserver"),u.observe(e,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),u}();return{disconnect:function(){"disconnect"in u&&(re("Disconnect body MutationObserver"),u.disconnect(),a.forEach(t))}}}():(re("MutationObserver not supported in this browser!"),pe())):re("Auto Resize disabled")}function pe(){0!==y&&(re("setInterval: "+y+"ms"),b=setInterval((function(){Te("interval","setInterval: "+y)}),Math.abs(y)))}function he(e,t){var n=0;return t=t||document.body,n=null!==(n=document.defaultView.getComputedStyle(t,null))?n[e]:0,parseInt(n,10)}function ve(e,t){for(var n=t.length,o=0,r=0,i=ne(e),a=Date.now(),c=0;c<n;c++)(o=t[c].getBoundingClientRect()[e]+he("margin"+i,t[c]))>r&&(r=o);return a=Date.now()-a,re("Parsed "+n+" HTML elements"),re("Element position calculated in "+a+"ms"),function(e){e>k/2&&re("Event throttle increased to "+(k=2*e)+"ms")}(a),r}function ge(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function ye(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(ie("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),ve(e,n)}function be(){return document.querySelectorAll("body *")}function we(e,n,o,r){var i,a;!function(){function e(e,t){return!(Math.abs(e-t)<=C)}return i=t!==o?o:_[p](),a=t!==r?r:$[z](),e(f,i)||u&&e(L,a)}()&&"init"!==e?!(e in{init:1,interval:1,size:1})&&(p in O||u&&z in O)?Me(n):e in{interval:1}||re("No change in size detected"):(Se(),Oe(f=i,L=a,e))}function Te(e,t,n,o){x&&e in s?re("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||re("Trigger event: "+t),"init"===e?we(e,t,n,o):G(e,t,n,o))}function Se(){x||(x=!0,re("Trigger event lock on")),clearTimeout(R),R=setTimeout((function(){x=!1,re("Trigger event lock off"),re("--")}),l)}function Ee(e){f=_[p](),L=$[z](),Oe(f,L,e)}function Me(e){var t=p;p=m,re("Reset trigger event: "+e),Se(),Ee("reset"),p=t}function Oe(e,n,o,r,i){var a;t===i?i=N:re("Message targetOrigin: "+i),re("Sending message to host page ("+(a=M+":"+e+":"+n+":"+o+(t!==r?":"+r:""))+")"),A.postMessage(S+a,i)}function Ie(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},93379:function(e){"use strict";var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var i={},a=[],c=0;c<e.length;c++){var u=e[c],s=o.base?u[0]+o.base:u[0],l=i[s]||0,d="".concat(s," ").concat(l);i[s]=l+1;var f=n(d),m={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==f)t[f].references++,t[f].updater(m);else{var p=r(m,o);o.byIndex=c,t.splice(c,0,{identifier:d,updater:p,references:1})}a.push(d)}return a}function r(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var i=o(e=e||[],r=r||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var c=n(i[a]);t[c].references--}for(var u=o(e,r),s=0;s<i.length;s++){var l=n(i[s]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}i=u}}},90569:function(e){"use strict";var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},19216:function(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:function(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:function(e){"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},44589:function(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,exports:{}};return e[o](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.nc=void 0,function(){"use strict";var e=n(93379),t=n.n(e),o=n(7795),r=n.n(o),i=n(90569),a=n.n(i),c=n(3565),u=n.n(c),s=n(19216),l=n.n(s),d=n(44589),f=n.n(d),m=n(90992),p={};function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}p.styleTagTransform=f(),p.setAttributes=u(),p.insert=a().bind(null,"head"),p.domAPI=r(),p.insertStyleElement=l(),t()(m.Z,p),m.Z&&m.Z.locals&&m.Z.locals,n(49402),document.addEventListener("DOMContentLoaded",(function(){var e,t=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(document.querySelectorAll("*"));try{for(t.s();!(e=t.n()).done;){var n=e.value;n.style["max-width"]||(n.style["max-width"]="100%")}}catch(e){t.e(e)}finally{t.f()}}))}()}();
//# sourceMappingURL=htmlresponse.js.map