varn="undefined"!=typeofwindow&&"undefined"!=typeofdocument,r=["Edge","Trident","Firefox"],o=0,i=0;i<r.length;i+=1)if(n&&navigator.userAgent.indexOf(r[i])>=0){o=1;break}vara=n&&window.Promise?function(t){vare=!1;returnfunction(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){vare=!1;returnfunction(){e||(e=!0,setTimeout(function(){e=!1,t()},o))}};functions(t){returnt&&"[object Function]"==={}.toString.call(t)}functionu(t,e){if(1!==t.nodeType)return[];varn=getComputedStyle(t,null);returne?n[e]:n}functionc(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}functionl(t){if(!t)returndocument.body;switch(t.nodeName){case"HTML":case"BODY":returnt.ownerDocument.body;case"#document":returnt.body}vare=u(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?t:l(c(t))}varf=n&&!(!window.MSInputMethodContext||!document.documentMode),p=n&&/MSIE 10/.test(navigator.userAgent);functiond(t){return11===t?f:10===t?p:f||p}functionh(t){if(!t)returndocument.documentElement;for(vare=d(10)?document.body:null,n=t.offsetParent;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;varr=n&&n.nodeName;returnr&&"BODY"!==r&&"HTML"!==r?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===u(n,"position")?h(n):n:t?t.ownerDocument.documentElement:document.documentElement}functionv(t){returnnull!==t.parentNode?v(t.parentNode):t}functionm(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))returndocument.documentElement;varn=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,o=n?e:t,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);vara,s,u=i.commonAncestorContainer;if(t!==u&&e!==u||r.contains(o))return"BODY"===(s=(a=u).nodeName)||"HTML"!==s&&h(a.firstElementChild)!==a?h(u):u;varc=v(t);returnc.host?m(c.host,e):m(t,v(e).host)}functiong(t){vare="top"===(arguments.length>1&&void0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){varr=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||r)[e]}returnt[e]}functiony(t,e){varn="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";returnparseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+r+"Width"],10)}functionb(t,e,n,r){returnMath.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],d(10)?n["offset"+t]+r["margin"+("Height"===t?"Top":"Left")]+r["margin"+("Height"===t?"Bottom":"Right")]:0)}functionw(){vart=document.body,e=document.documentElement,n=d(10)&&getComputedStyle(e);return{height:b("Height",t,e,n),width:b("Width",t,e,n)}}var_=function(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")},x=function(){functiont(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}returnfunction(e,n,r){returnn&&t(e.prototype,n),r&&t(e,r),e}}(),k=function(t,e,n){returneint?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},S=Object.assign||function(t){for(vare=1;e<arguments.length;e++){varn=arguments[e];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}returnt};functionC(t){returnS({},t,{right:t.left+t.width,bottom:t.top+t.height})}functionE(t){vare={};try{if(d(10)){e=t.getBoundingClientRect();varn=g(t,"top"),r=g(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}elsee=t.getBoundingClientRect()}catch(t){}varo={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},i="HTML"===t.nodeName?w():{},a=i.width||t.clientWidth||o.right-o.left,s=i.height||t.clientHeight||o.bottom-o.top,c=t.offsetWidth-a,l=t.offsetHeight-s;if(c||l){varf=u(t);c-=y(f,"x"),l-=y(f,"y"),o.width-=c,o.height-=l}returnC(o)}functionA(t,e){varn=arguments.length>2&&void0!==arguments[2]&&arguments[2],r=d(10),o="HTML"===e.nodeName,i=E(t),a=E(e),s=l(t),c=u(e),f=parseFloat(c.borderTopWidth,10),p=parseFloat(c.borderLeftWidth,10);n&&"HTML"===e.nodeName&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));varh=C({top:i.top-a.top
varn="undefined"!=typeofwindow?window:void0!==t?t:"undefined"!=typeofself?self:{};functionr(){thrownewError("Dynamic requires are not currently supported by rollup-plugin-commonjs")}varo=function(t,e){returnt(e={exports:{}},e.exports),e.exports}(function(t,e){t.exports=functiont(e,n,o){functioni(s,u){if(!n[s]){if(!e[s]){varc=r;if(!u&&c)returnc(s,!0);if(a)returna(s,!0);varl=newError("Cannot find module '"+s+"'");throwl.code="MODULE_NOT_FOUND",l}varf=n[s]={exports:{}};e[s][0].call(f.exports,function(t){varn=e[s][1][t];returni(n||t)},f,f.exports,t,e,n,o)}returnn[s].exports}for(vara=r,s=0;s<o.length;s++)i(o[s]);returni}({1:[function(t,e,n){varr=t("./utils").getSymbolSize;n.getRowColCoords=function(t){if(1===t)return[];for(vare=Math.floor(t/7)+2,n=r(t),o=145===n?26:2*Math.ceil((n-13)/(2*e-2)),i=[n-7],a=1;a<e-1;a++)i[a]=i[a-1]-o;returni.push(6),i.reverse()},n.getPositions=function(t){for(vare=[],r=n.getRowColCoords(t),o=r.length,i=0;i<o;i++)for(vara=0;a<o;a++)0===i&&0===a||0===i&&a===o-1||i===o-1&&0===a||e.push([r[i],r[a]]);returne}},{"./utils":20}],2:[function(t,e,n){varr=t("./mode"),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];functioni(t){this.mode=r.ALPHANUMERIC,this.data=t}i.getBitsLength=function(t){return11*Math.floor(t/2)+t%2*6},i.prototype.getLength=function(){returnthis.data.length},i.prototype.getBitsLength=function(){returni.getBitsLength(this.data.length)},i.prototype.write=function(t){vare;for(e=0;e+2<=this.data.length;e+=2){varn=45*o.indexOf(this.data[e]);n+=o.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(o.indexOf(this.data[e]),6)},e.exports=i},{"./mode":13}],3:[function(t,e,n){functionr(){this.buffer=[],this.length=0}r.prototype={get:function(t){vare=Math.floor(t/8);return1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(varn=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){returnthis.length},putBit:function(t){vare=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},e.exports=r},{}],4:[function(t,e,n){varr=t("../utils/buffer");functiono(t){if(!t||t<1)thrownewError("BitMatrix size must be defined and greater than 0");this.size=t,this.data=newr(t*t),this.data.fill(0),this.reservedBit=newr(t*t),this.reservedBit.fill(0)}o.prototype.set=function(t,e,n,r){varo=t*this.size+e;this.data[o]=n,r&&(this.reservedBit[o]=!0)},o.prototype.get=function(t,e){returnthis.data[t*this.size+e]},o.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},o.prototype.isReserved=function(t,e){returnthis.reservedBit[t*this.size+e]},e.exports=o},{"../utils/buffer":27}],5:[function(t,e,n){varr=t("../utils/buffer"),o=t("./mode");functioni(t){this.mode=o.BYTE,this.data=newr(t)}i.getBitsLength=function(t){return8*t},i.prototype.getLength=function(){returnthis.data.length},i.prototype.getBitsLength=function(){returni.getBitsLength(this.data.length)},i.prototype.write=function(t){for(vare=0,n=this.data.length;e<n;e++)t.put(this.data[e],8)},e.exports=i},{"../utils/buffer":27,"./mode":13}],6:[function(t,e,n){varr=t("./error-correction-level"),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1
t.exports=function(t){vare={};functionn(r){if(e[r])returne[r].exports;varo=e[r]={i:r,l:!1,exports:{}};returnt[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}returnn.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)returnt;if(4&e&&"object"==typeoft&&t&&t.__esModule)returnt;varr=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeoft)for(varoint)n.d(r,o,function(e){returnt[e]}.bind(null,o));returnr},n.n=function(t){vare=t&&t.__esModule?function(){returnt.default}:function(){returnt};returnn.d(e,"a",e),e},n.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";varr="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft},o=function(){functiont(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}returnfunction(e,n,r){returnn&&t(e.prototype,n),r&&t(e,r),e}}(),i=u(n(1)),a=u(n(3)),s=u(n(4));functionu(t){returnt&&t.__esModule?t:{default:t}}varc=function(t){functione(t,n){!function(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}(this,e);varr=function(t,e){if(!t)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeofe&&"function"!=typeofe?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));returnr.resolveOptions(n),r.listenClick(t),r}returnfunction(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function, not "+typeofe);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,a.default),o(e,[{key:"resolveOptions",value:function(){vart=0<arguments.length&&void0!==arguments[0]?arguments[0]:{};this.action="function"==typeoft.action?t.action:this.defaultAction,this.target="function"==typeoft.target?t.target:this.defaultTarget,this.text="function"==typeoft.text?t.text:this.defaultText,this.container="object"===r(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){vare=this;this.listener=(0,s.default)(t,"click",function(t){returne.onClick(t)})}},{key:"onClick",value:function(t){vare=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=newi.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){returnl("action",t)}},{key:"defaultTarget",value:function(t){vare=l("target",t);if(e)returndocument.querySelector(e)}},{key:"defaultText",value:function(t){returnl("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){vart=0<arguments.length&&void0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeoft?[t]:t,n=!!document.queryCommandSupported;returne.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),e}();functionl(t,e){varn="data-clipboard-"+t;if(e.hasAttribute(n))returne.getAttribute(n)}t.exports=c},function(t,e,n){"use strict";varr,o="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft},i=function(){functiont(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writab