


<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>{{ pres.title }}</title>
        <style>
            body {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                margin: 0;
                padding: 0;
                overflow: hidden;
            }

            svg {
                display: none;
                filter: blur(0);
            }

            .sozi-frame-list {
                position: absolute;
                top: 0;
                right: 0;
                width: 33%;
                height: 100%;
                margin: 0;
                padding: 0.5em 1em 0.5em 0.25em;
                overflow-y: auto;

                font-family: "Droid Sans", Helvetica, Arial, sans-serif;
                font-size: 12pt;

                color: rgb(240, 255, 255);
                background-color: rgba(34, 34, 34, 0.9);
            }

            .sozi-frame-list ol {
                margin: 0;
                overflow-x: hidden;
            }

            .sozi-frame-list li {
                white-space: nowrap;
            }

            li.sozi-title-level-1:before { content: '. . ';             color: rgb(100, 100, 100); }
            li.sozi-title-level-2:before { content: '. . . . ';         color: rgb(100, 100, 100); }
            li.sozi-title-level-3:before { content: '. . . . . . ';     color: rgb(100, 100, 100); }
            li.sozi-title-level-4:before { content: '. . . . . . . . '; color: rgb(100, 100, 100); }

            .sozi-frame-list a {
                color: inherit;
                text-decoration: none;
            }

            .sozi-frame-list a:hover {
                color: rgb(0, 204, 255);
                text-decoration: underline;
            }

            .sozi-frame-list a.current {
                color: rgb(255, 170, 68);
            }

            .sozi-frame-number {
                position: absolute;
                top: 0;
                left: 1em;
                text-align: center;
                padding: 0.3em 0.6em;

                cursor: pointer;

                font-family: "Droid Sans", Helvetica, Arial, sans-serif;
                font-size: 12pt;
                color: rgb(240, 255, 255);
                background-color: rgba(34, 34, 34, 0.9);
            }

            .sozi-blank-screen {
                background: black;
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                opacity: 100%;
                visibility: visible;
                z-index: 999;
                transition: opacity 0.5s, visibility 0.5s;
            }

            svg a {
                cursor: pointer;
            }

            @keyframes spinner {
                to { transform: rotate(360deg); }
            }

            .spinner:before {
                content: '';
                box-sizing: border-box;
                position: absolute;
                top: 50%;
                left: 50%;
                width: 40px;
                height: 40px;
                margin-top: -20px;
                margin-left: -20px;
                border-radius: 50%;
                border: 4px solid #ccc;
                border-top-color: #333;
                animation: spinner .8s linear infinite;
            }
        </style>
    </head>
    <body>
        {{ svg }}
        <div class="sozi-frame-number" title="Click to show the frame list">1</div>
        <div class="sozi-frame-list">
            <ol>
                {% for frame in pres.frames %}
                    {% if frame.showInFrameList %}
                        <li class="sozi-title-level-{{ frame.titleLevel }}" value="{{ loop.index }}"><a href="#{{ frame.frameId }}" title="{{ frame.title }}">{{ frame.title }}</a></li>
                    {% endif %}
                {% endfor %}
            </ol>
        </div>
        <div class="sozi-blank-screen">
            <span class="spinner"></span>
        </div>
        <script>var soziPresentationData = {{ json }};</script>

        <script>{% raw %}(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){"use strict";require("core-js/modules/es.object.define-property");Object.defineProperty(exports,"__esModule",{value:true});exports.CameraState=void 0;function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor}function copyIfSet(dest,src,prop){if(src.hasOwnProperty(prop)){dest[prop]=src[prop]}}var CameraState=function(){function CameraState(obj){_classCallCheck(this,CameraState);if(obj instanceof CameraState){this.copy(obj)}else{var initialBBox=obj.getBBox();this.svgRoot=obj;this.opacity=1;this.clipped=false;this.clipXOffset=0;this.clipYOffset=0;this.clipWidthFactor=1;this.clipHeightFactor=1;this.cx=initialBBox.x+initialBBox.width/2;this.cy=initialBBox.y+initialBBox.height/2;this.width=initialBBox.width;this.height=initialBBox.height;this.angle=0}}_createClass(CameraState,[{key:"copy",value:function copy(state){this.svgRoot=state.svgRoot;this.cx=state.cx;this.cy=state.cy;this.width=state.width;this.height=state.height;this.opacity=state.opacity;this.angle=state.angle;this.clipped=state.clipped;this.clipXOffset=state.clipXOffset;this.clipYOffset=state.clipYOffset;this.clipWidthFactor=state.clipWidthFactor;this.clipHeightFactor=state.clipHeightFactor}},{key:"toStorable",value:function toStorable(){return{cx:this.cx,cy:this.cy,width:this.width,height:this.height,opacity:this.opacity,angle:this.angle,clipped:this.clipped,clipXOffset:this.clipXOffset,clipYOffset:this.clipYOffset,clipWidthFactor:this.clipWidthFactor,clipHeightFactor:this.clipHeightFactor}}},{key:"toMinimalStorable",value:function toMinimalStorable(){return this.toStorable()}},{key:"fromStorable",value:function fromStorable(storable){copyIfSet(this,storable,"cx");copyIfSet(this,storable,"cy");copyIfSet(this,storable,"width");copyIfSet(this,storable,"height");copyIfSet(this,storable,"opacity");copyIfSet(this,storable,"angle");copyIfSet(this,storable,"clipped");copyIfSet(this,storable,"clipXOffset");copyIfSet(this,storable,"clipYOffset");copyIfSet(this,storable,"clipWidthFactor");copyIfSet(this,storable,"clipHeightFactor")}},{key:"setAtElement",value:function setAtElement(svgElement){var deltaX=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var deltaY=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var widthFactor=arguments.length>3&&arguments[3]!==undefined?arguments[3]:1;var heightFactor=arguments.length>4&&arguments[4]!==undefined?arguments[4]:1;var deltaAngle=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;var bbox=svgElement.getBBox();var bboxCenter=this.svgRoot.createSVGPoint();bboxCenter.x=bbox.x+bbox.width/2;bboxCenter.y=bbox.y+bbox.height/2;var layerGroup=svgElement;while(layerGroup.parentNode.parentNode!==this.svgRoot){layerGroup=layerGroup.parentNode}var matrix=layerGroup.getCTM().inverse().multiply(svgElement.getCTM());bboxCenter=bboxCenter.matrixTransform(matrix);var scale=Math.sqrt(matrix.a*matrix.a+matrix.b*matrix.b);this.cx=bboxCenter.x+deltaX;this.cy=bboxCenter.y+deltaY;this.width=bbox.width*scale*widthFactor;this.height=bbox.height*scale*heightFactor;this.angle=Math.atan2(matrix.b,matrix.a)*180/Math.PI+deltaAngle}},{key:"resetClipping",value:function resetClipping(){this.clipXOffset=this.clipYOffset=0;this.clipWidthFactor=this.clipHeightFactor=1}},{key:"offsetFromElement",value:function offsetFromElement(svgElement){var cam=new CameraState(this.svgRoot);cam.setAtElement(svgElement);return{deltaX:this.cx-cam.cx,deltaY:this.cy-cam.cy,widthFactor:this.width/cam.width,heightFactor:this.height/cam.height,deltaAngle:this.angle-cam.angle}}},{key:"applyOffset",value:function applyOffset(_ref){var deltaX=_ref.deltaX,deltaY=_ref.deltaY,widthFactor=_ref.widthFactor,heightFactor=_ref.heightFactor,deltaAngle=_ref.deltaAngle;this.cx-=deltaX;this.cy-=deltaY;this.width/=widthFactor;this.height/=heightFactor;this.angle-=deltaAngle}},{key:"width",set:function set(w){this._width=!isNaN(w)&&w>=1?w:1},get:function get(){return this._width}},{key:"height",set:function set(h){this._height=!isNaN(h)&&h>=1?h:1},get:function get(){return this._height}},{key:"angle",set:function set(a){this._angle=!isNaN(a)?(a+180)%360:180;if(this._angle<0){this._angle+=180}else{this._angle-=180}},get:function get(){return this._angle}}]);return CameraState}();exports.CameraState=CameraState},{"core-js/modules/es.object.define-property":122}],2:[function(require,module,exports){"use strict";require("core-js/modules/es.symbol");require("core-js/modules/es.symbol.description");require("core-js/modules/es.symbol.iterator");require("core-js/modules/es.array.for-each");require("core-js/modules/es.array.index-of");require("core-js/modules/es.array.is-array");require("core-js/modules/es.array.iterator");require("core-js/modules/es.array.map");require("core-js/modules/es.array.slice");require("core-js/modules/es.array.some");require("core-js/modules/es.array.splice");require("core-js/modules/es.date.to-string");require("core-js/modules/es.object.create");require("core-js/modules/es.object.define-property");require("core-js/modules/es.object.get-prototype-of");require("core-js/modules/es.object.set-prototype-of");require("core-js/modules/es.object.to-string");require("core-js/modules/es.regexp.to-string");require("core-js/modules/es.string.iterator");require("core-js/modules/es.string.trim");require("core-js/modules/es.string.link");require("core-js/modules/web.dom-collections.for-each");require("core-js/modules/web.dom-collections.iterator");Object.defineProperty(exports,"__esModule",{value:true});exports.Presentation=exports.Layer=exports.Frame=exports.LayerProperties=void 0;var _events=require("events");var _CameraState=require("./CameraState");var _Camera=require("../player/Camera");function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj}}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj}}return _typeof(obj)}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call}return _assertThisInitialized(self)}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return self}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)};return _getPrototypeOf(o)}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function")}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o};return _setPrototypeOf(o,p)}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(arr,i){if(!(Symbol.iterator in Object(arr)||Object.prototype.toString.call(arr)==="[object Arguments]")){return}var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break}}catch(err){_d=true;_e=err}finally{try{if(!_n&&_i["return"]!=null)_i["return"]()}finally{if(_d)throw _e}}return _arr}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor}function copyIfSet(dest,src,prop){if(src.hasOwnProperty(prop)){dest[prop]=src[prop]}}var LayerProperties=function(){function LayerProperties(obj){_classCallCheck(this,LayerProperties);if(obj instanceof LayerProperties){this.copy(obj)}else{this.frame=obj;this.link=false;this.referenceElementId="";this.outlineElementId="";this.transitionTimingFunction="linear";this.transitionRelativeZoom=0;this.transitionPathId=""}}_createClass(LayerProperties,[{key:"copy",value:function copy(other){this.frame=other.frame;this.link=other.link;this.referenceElementId=other.referenceElementId;this.outlineElementId=other.outlineElementId;this.transitionTimingFunction=other.transitionTimingFunction;this.transitionRelativeZoom=other.transitionRelativeZoom;this.transitionPathId=other.transitionPathId}},{key:"toStorable",value:function toStorable(){return{link:this.link,referenceElementId:this.referenceElementId,outlineElementId:this.outlineElementId,transitionTimingFunction:this.transitionTimingFunction,transitionRelativeZoom:this.transitionRelativeZoom,transitionPathId:this.transitionPathId}}},{key:"toMinimalStorable",value:function toMinimalStorable(){return{transitionTimingFunction:this.transitionTimingFunction,transitionRelativeZoom:this.transitionRelativeZoom,transitionPathId:this.transitionPathId}}},{key:"fromStorable",value:function fromStorable(storable){copyIfSet(this,storable,"link");copyIfSet(this,storable,"referenceElementId");copyIfSet(this,storable,"outlineElementId");copyIfSet(this,storable,"transitionTimingFunction");copyIfSet(this,storable,"transitionRelativeZoom");copyIfSet(this,storable,"transitionPathId")}},{key:"index",get:function get(){return this.frame.layerProperties.indexOf(this)}},{key:"referenceElement",get:function get(){var elt=this.frame.presentation.document.root.getElementById(this.referenceElementId);return elt&&(0,_Camera.hasReliableBoundaries)(elt)?elt:null}},{key:"outlineElement",get:function get(){return this.frame.presentation.document.root.getElementById(this.outlineElementId)}},{key:"transitionPath",get:function get(){return this.frame.presentation.document.root.getElementById(this.transitionPathId)}},{key:"outlineElementHide",get:function get(){return this.frame.presentation.elementsToHide.indexOf(this.outlineElementId)>=0},set:function set(hide){if(this.outlineElement===this.frame.presentation.document.root){return}var hidden=this.outlineElementHide;if(hide&&!hidden){this.frame.presentation.elementsToHide.push(this.outlineElementId)}else if(!hide&&hidden){var index=this.frame.presentation.elementsToHide.indexOf(this.outlineElementId);this.frame.presentation.elementsToHide.splice(index,1)}if(this.outlineElement){this.outlineElement.style.visibility=hide?"hidden":"visible"}}},{key:"transitionPathHide",get:function get(){return this.frame.presentation.elementsToHide.indexOf(this.transitionPathId)>=0},set:function set(hide){var hidden=this.transitionPathHide;if(hide&&!hidden){this.frame.presentation.elementsToHide.push(this.transitionPathId)}else if(!hide&&hidden){var index=this.frame.presentation.elementsToHide.indexOf(this.transitionPathId);this.frame.presentation.elementsToHide.splice(index,1)}if(this.transitionPath){this.transitionPath.style.visibility=hide?"hidden":"visible"}}}]);return LayerProperties}();exports.LayerProperties=LayerProperties;var Frame=function(){function Frame(obj){var _this=this;var preserveId=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;_classCallCheck(this,Frame);if(obj instanceof Frame){this.copy(obj,preserveId)}else{this.presentation=obj;this.frameId=obj.makeFrameId();this.layerProperties=obj.layers.map(function(lp){return new LayerProperties(_this)});this.cameraStates=obj.layers.map(function(cs){return new _CameraState.CameraState(obj.document.root)});this.title="New frame";this.titleLevel=0;this.notes="";this.timeoutMs=0;this.timeoutEnable=false;this.transitionDurationMs=1e3;this.showInFrameList=true;this.showFrameNumber=true}}_createClass(Frame,[{key:"copy",value:function copy(other,preserveId){this.presentation=other.presentation;if(!preserveId){this.frameId=other.presentation.makeFrameId()}this.title=other.title;this.titleLevel=other.titleLevel;this.notes=other.notes;this.timeoutMs=other.timeoutMs;this.timeoutEnable=other.timeoutEnable;this.transitionDurationMs=other.transitionDurationMs;this.showInFrameList=other.showInFrameList;this.showFrameNumber=other.showFrameNumber;this.layerProperties=other.layerProperties.map(function(lp){return new LayerProperties(lp)});this.cameraStates=other.cameraStates.map(function(cs){return new _CameraState.CameraState(cs)})}},{key:"toStorable",value:function toStorable(){var _this2=this;var layerProperties={};var cameraStates={};var cameraOffsets={};this.presentation.layers.forEach(function(layer,index){var lp=_this2.layerProperties[index];var cs=_this2.cameraStates[index];var re=lp.referenceElement;var key=layer.groupId;layerProperties[key]=lp.toStorable();cameraStates[key]=cs.toStorable();if(re){cameraOffsets[key]=_this2.cameraStates[index].offsetFromElement(re)}});return{frameId:this.frameId,title:this.title,titleLevel:this.titleLevel,notes:this.notes,timeoutMs:this.timeoutMs,timeoutEnable:this.timeoutEnable,transitionDurationMs:this.transitionDurationMs,showInFrameList:this.showInFrameList,showFrameNumber:this.showFrameNumber,layerProperties:layerProperties,cameraStates:cameraStates,cameraOffsets:cameraOffsets}}},{key:"toMinimalStorable",value:function toMinimalStorable(){var _this3=this;var layerProperties={};var cameraStates={};this.presentation.layers.forEach(function(layer,index){var lp=_this3.layerProperties[index];var cs=_this3.cameraStates[index];var key=layer.groupId;layerProperties[key]=lp.toMinimalStorable();cameraStates[key]=cs.toMinimalStorable()});return{frameId:this.frameId,title:this.title,titleLevel:this.titleLevel,notes:this.notes,timeoutMs:this.timeoutMs,timeoutEnable:this.timeoutEnable,transitionDurationMs:this.transitionDurationMs,showInFrameList:this.showInFrameList,showFrameNumber:this.showFrameNumber,layerProperties:layerProperties,cameraStates:cameraStates}}},{key:"fromStorable",value:function fromStorable(storable){var _this4=this;copyIfSet(this,storable,"frameId");copyIfSet(this,storable,"title");copyIfSet(this,storable,"titleLevel");copyIfSet(this,storable,"notes");copyIfSet(this,storable,"timeoutMs");copyIfSet(this,storable,"timeoutEnable");copyIfSet(this,storable,"transitionDurationMs");copyIfSet(this,storable,"showInFrameList");copyIfSet(this,storable,"showFrameNumber");this.presentation.layers.forEach(function(layer,index){var key=layer.groupId in storable.layerProperties?layer.groupId:"__sozi_auto__";if(key in storable.layerProperties){var lp=_this4.layerProperties[index];lp.fromStorable(storable.layerProperties[key]);var cs=_this4.cameraStates[index];cs.fromStorable(storable.cameraStates[key]);var re=lp.referenceElement;if(re){var ofs=storable.cameraOffsets[key]||{};cs.setAtElement(re,ofs.deltaX,ofs.deltaY,ofs.widthFactor,ofs.heightFactor,ofs.deltaAngle)}}})}},{key:"setAtStates",value:function setAtStates(states){var _this5=this;states.forEach(function(state,index){_this5.cameraStates[index].copy(state)})}},{key:"isLinkedTo",value:function isLinkedTo(frame,layerIndex){var _ref=this.index<frame.index?[this,frame]:[frame,this],_ref2=_slicedToArray(_ref,2),first=_ref2[0],second=_ref2[1];return second.layerProperties[layerIndex].link&&(second.index===first.index+1||second.index>first.index&&this.presentation.frames[second.index-1].isLinkedTo(first,layerIndex))}},{key:"index",get:function get(){return this.presentation.frames.indexOf(this)}}]);return Frame}();exports.Frame=Frame;var Layer=function(){function Layer(presentation,label,auto){_classCallCheck(this,Layer);this.presentation=presentation;this.label=label;this.auto=auto;this.svgNodes=[]}_createClass(Layer,[{key:"contains",value:function contains(svgElement){return this.svgNodes.some(function(node){return node.contains(svgElement)})}},{key:"groupId",get:function get(){return this.auto?"__sozi_auto__":this.svgNodes[0].getAttribute("id")}},{key:"index",get:function get(){return this.presentation.layers.indexOf(this)}},{key:"isVisible",get:function get(){return this.svgNodes.some(function(node){return window.getComputedStyle(node).display!=="none"})},set:function set(visible){var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=this.svgNodes[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var node=_step.value;node.style.display=visible?"inline":"none"}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator["return"]!=null){_iterator["return"]()}}finally{if(_didIteratorError){throw _iteratorError}}}}}]);return Layer}();exports.Layer=Layer;var SVG_NS="http://www.w3.org/2000/svg";var Presentation=function(_EventEmitter){_inherits(Presentation,_EventEmitter);function Presentation(){var _this6;_classCallCheck(this,Presentation);_this6=_possibleConstructorReturn(this,_getPrototypeOf(Presentation).call(this));_this6.document=null;_this6.frames=[];_this6.layers=[];_this6.elementsToHide=[];_this6.aspectWidth=4;_this6.aspectHeight=3;_this6.enableKeyboardZoom=true;_this6.enableKeyboardRotation=true;_this6.enableKeyboardNavigation=true;_this6.enableMouseTranslation=true;_this6.enableMouseZoom=true;_this6.enableMouseRotation=true;_this6.enableMouseNavigation=true;_this6.updateURLOnFrameChange=true;return _this6}_createClass(Presentation,[{key:"setSVGDocument",value:function setSVGDocument(svgDocument){this.document=svgDocument;var autoLayer=new Layer(this,"auto",true);this.layers=[];var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{for(var _iterator2=this.document.root.childNodes[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var svgNode=_step2.value;if(svgNode instanceof SVGGElement){var nodeId=svgNode.getAttribute("id");if(nodeId===null){autoLayer.svgNodes.push(svgNode)}else{var layer=new Layer(this,this.document.handler.getLabel(svgNode)||"#"+nodeId,false);layer.svgNodes.push(svgNode);this.layers.push(layer)}}}}catch(err){_didIteratorError2=true;_iteratorError2=err}finally{try{if(!_iteratorNormalCompletion2&&_iterator2["return"]!=null){_iterator2["return"]()}}finally{if(_didIteratorError2){throw _iteratorError2}}}this.layers.push(autoLayer);this.emit("svgChange")}},{key:"setInitialCameraState",value:function setInitialCameraState(){this.initialCameraState=new _CameraState.CameraState(this.document.root)}},{key:"toStorable",value:function toStorable(){return{aspectWidth:this.aspectWidth,aspectHeight:this.aspectHeight,enableKeyboardZoom:this.enableKeyboardZoom,enableKeyboardRotation:this.enableKeyboardRotation,enableKeyboardNavigation:this.enableKeyboardNavigation,enableMouseTranslation:this.enableMouseTranslation,enableMouseZoom:this.enableMouseZoom,enableMouseRotation:this.enableMouseRotation,enableMouseNavigation:this.enableMouseNavigation,updateURLOnFrameChange:this.updateURLOnFrameChange,frames:this.frames.map(function(frame){return frame.toStorable()}),elementsToHide:this.elementsToHide.slice()}}},{key:"toMinimalStorable",value:function toMinimalStorable(){return{enableKeyboardZoom:this.enableKeyboardZoom,enableKeyboardRotation:this.enableKeyboardRotation,enableKeyboardNavigation:this.enableKeyboardNavigation,enableMouseTranslation:this.enableMouseTranslation,enableMouseZoom:this.enableMouseZoom,enableMouseRotation:this.enableMouseRotation,enableMouseNavigation:this.enableMouseNavigation,updateURLOnFrameChange:this.updateURLOnFrameChange,frames:this.frames.map(function(frame){return frame.toMinimalStorable()}),elementsToHide:this.elementsToHide.slice()}}},{key:"fromStorable",value:function fromStorable(storable){var _this7=this;copyIfSet(this,storable,"aspectWidth");copyIfSet(this,storable,"aspectHeight");copyIfSet(this,storable,"enableKeyboardZoom");copyIfSet(this,storable,"enableKeyboardRotation");copyIfSet(this,storable,"enableKeyboardNavigation");copyIfSet(this,storable,"enableMouseTranslation");copyIfSet(this,storable,"enableMouseZoom");copyIfSet(this,storable,"enableMouseRotation");copyIfSet(this,storable,"enableMouseNavigation");copyIfSet(this,storable,"updateURLOnFrameChange");this.frames=storable.frames.map(function(f){var res=new Frame(_this7);res.fromStorable(f);return res});if(storable.elementsToHide){this.elementsToHide=storable.elementsToHide.slice()}}},{key:"makeFrameId",value:function makeFrameId(){var prefix="frame";var suffix=Math.floor(1e3*(1+9*Math.random()));var frameId;do{frameId=prefix+suffix;suffix++}while(this.frames.some(function(frame){return frame.frameId===frameId}));return frameId}},{key:"getFrameWithId",value:function getFrameWithId(frameId){var _iteratorNormalCompletion3=true;var _didIteratorError3=false;var _iteratorError3=undefined;try{for(var _iterator3=this.frames[Symbol.iterator](),_step3;!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){var frame=_step3.value;if(frame.frameId===frameId){return frame}}}catch(err){_didIteratorError3=true;_iteratorError3=err}finally{try{if(!_iteratorNormalCompletion3&&_iterator3["return"]!=null){_iterator3["return"]()}}finally{if(_didIteratorError3){throw _iteratorError3}}}return null}},{key:"getLayerWithId",value:function getLayerWithId(groupId){var _iteratorNormalCompletion4=true;var _didIteratorError4=false;var _iteratorError4=undefined;try{for(var _iterator4=this.layers[Symbol.iterator](),_step4;!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done);_iteratorNormalCompletion4=true){var layer=_step4.value;if(layer.groupId===groupId){return layer}}}catch(err){_didIteratorError4=true;_iteratorError4=err}finally{try{if(!_iteratorNormalCompletion4&&_iterator4["return"]!=null){_iterator4["return"]()}}finally{if(_didIteratorError4){throw _iteratorError4}}}return null}},{key:"updateLinkedLayers",value:function updateLinkedLayers(){var _this8=this;if(!this.frames.length){return}var firstCameraStates=this.frames[0].cameraStates;var defaultCameraState=firstCameraStates[firstCameraStates.length-1];var firstLayerProperties=this.frames[0].layerProperties;var defaultLayerProperties=firstLayerProperties[firstLayerProperties.length-1];this.layers.forEach(function(layer,layerIndex){var cameraState=defaultCameraState;var layerProperties=defaultLayerProperties;var _iteratorNormalCompletion5=true;var _didIteratorError5=false;var _iteratorError5=undefined;try{for(var _iterator5=_this8.frames[Symbol.iterator](),_step5;!(_iteratorNormalCompletion5=(_step5=_iterator5.next()).done);_iteratorNormalCompletion5=true){var frame=_step5.value;if(frame.layerProperties[layerIndex].link){frame.cameraStates[layerIndex].copy(cameraState);frame.layerProperties[layerIndex].referenceElementId=layerProperties.referenceElementId;frame.layerProperties[layerIndex].outlineElementId=layerProperties.outlineElementId}else{cameraState=frame.cameraStates[layerIndex];layerProperties=frame.layerProperties[layerIndex]}}}catch(err){_didIteratorError5=true;_iteratorError5=err}finally{try{if(!_iteratorNormalCompletion5&&_iterator5["return"]!=null){_iterator5["return"]()}}finally{if(_didIteratorError5){throw _iteratorError5}}}})}},{key:"title",get:function get(){var svgTitles=this.document.root.getElementsByTagNameNS(SVG_NS,"title");return svgTitles.length?svgTitles[0].firstChild.wholeText.trim():"Untitled"}}]);return Presentation}(_events.EventEmitter);exports.Presentation=Presentation},{"../player/Camera":5,"./CameraState":1,"core-js/modules/es.array.for-each":109,"core-js/modules/es.array.index-of":111,"core-js/modules/es.array.is-array":112,"core-js/modules/es.array.iterator":113,"core-js/modules/es.array.map":114,"core-js/modules/es.array.slice":116,"core-js/modules/es.array.some":117,"core-js/modules/es.array.splice":118,"core-js/modules/es.date.to-string":119,"core-js/modules/es.object.create":121,"core-js/modules/es.object.define-property":122,"core-js/modules/es.object.get-prototype-of":123,"core-js/modules/es.object.set-prototype-of":124,"core-js/modules/es.object.to-string":125,"core-js/modules/es.regexp.to-string":127,"core-js/modules/es.string.iterator":128,"core-js/modules/es.string.link":129,"core-js/modules/es.string.trim":130,"core-js/modules/es.symbol":133,"core-js/modules/es.symbol.description":131,"core-js/modules/es.symbol.iterator":132,"core-js/modules/web.dom-collections.for-each":134,"core-js/modules/web.dom-collections.iterator":135,events:137}],3:[function(require,module,exports){"use strict";function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj}}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj}}return _typeof(obj)}require("core-js/modules/es.symbol");require("core-js/modules/es.symbol.description");require("core-js/modules/es.symbol.iterator");require("core-js/modules/es.array.iterator");require("core-js/modules/es.function.name");require("core-js/modules/es.object.to-string");require("core-js/modules/es.string.iterator");require("core-js/modules/web.dom-collections.iterator");require("core-js/modules/web.timers");var _SVGDocumentWrapper=require("./svg/SVGDocumentWrapper");var _Presentation=require("./model/Presentation");var _Viewport=require("./player/Viewport");var _Player=require("./player/Player");var Media=_interopRequireWildcard(require("./player/Media"));var FrameList=_interopRequireWildcard(require("./player/FrameList"));var FrameNumber=_interopRequireWildcard(require("./player/FrameNumber"));var FrameURL=_interopRequireWildcard(require("./player/FrameURL"));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var cache=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return cache};return cache}function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}if(obj===null||_typeof(obj)!=="object"&&typeof obj!=="function"){return{default:obj}}var cache=_getRequireWildcardCache();if(cache&&cache.has(obj)){return cache.get(obj)}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc)}else{newObj[key]=obj[key]}}}newObj["default"]=obj;if(cache){cache.set(obj,newObj)}return newObj}function setPresenterMode(target,isCurrent){sozi.player.disableMedia();sozi.player.pause();sozi.presentation.enableMouseTranslation=sozi.presentation.enableMouseNavigation=sozi.presentation.enableKeyboardZoom=sozi.presentation.enableKeyboardRotation=sozi.presentation.enableKeyboardNavigation=false;var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=sozi.presentation.frames[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var frame=_step.value;frame.showFrameNumber=false}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator["return"]!=null){_iterator["return"]()}}finally{if(_didIteratorError){throw _iteratorError}}}if(isCurrent){var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{var _loop=function _loop(){var link=_step2.value;link.addEventListener("click",function(evt){if(link.id){target.postMessage({name:"click",id:link.id},"*")}evt.preventDefault()},false)};for(var _iterator2=sozi.presentation.document.root.getElementsByTagName("a")[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){_loop()}}catch(err){_didIteratorError2=true;_iteratorError2=err}finally{try{if(!_iteratorNormalCompletion2&&_iterator2["return"]!=null){_iterator2["return"]()}}finally{if(_didIteratorError2){throw _iteratorError2}}}}else{sozi.presentation.document.disableHyperlinks(true)}}function onFrameChange(target){target.postMessage({name:"frameChange",index:sozi.player.currentFrame.index,title:sozi.player.currentFrame.title,notes:sozi.player.currentFrame.notes},"*")}function notifyOnFrameChange(target){sozi.player.addListener("frameChange",function(){return onFrameChange(target)});onFrameChange(target)}window.addEventListener("message",function(evt){switch(evt.data.name){case"notifyOnFrameChange":notifyOnFrameChange(evt.source);break;case"setPresenterMode":setPresenterMode(evt.source,evt.data.isCurrent);break;case"click":var link=sozi.presentation.document.root.getElementById(evt.data.id);link.dispatchEvent(new MouseEvent("click"));break;default:var method=sozi.player[evt.data.name];var args=evt.data.args||[];if(typeof method==="function"){method.apply(sozi.player,args)}else{console.log("Unsupported message: ".concat(evt.data.name))}}},false);window.addEventListener("load",function(){var svgRoot=document.querySelector("svg");svgRoot.style.display="inline";var presentation=new _Presentation.Presentation;presentation.setSVGDocument(new _SVGDocumentWrapper.SVGDocumentWrapper(svgRoot));var viewport=new _Viewport.Viewport(presentation,false);viewport.onLoad();presentation.fromStorable(window.soziPresentationData);var player=new _Player.Player(viewport,presentation);Media.init(player);FrameList.init(player);FrameNumber.init(player);FrameURL.init(player);window.sozi={presentation:presentation,viewport:viewport,player:player};player.addListener("stateChange",function(){if(player.playing){document.title=presentation.title}else{document.title=presentation.title+" (Paused)"}});window.addEventListener("resize",function(){return viewport.repaint()});if(presentation.frames.length){player.playFromFrame(FrameURL.getFrame())}viewport.repaint();player.disableBlankScreen();document.querySelector(".sozi-blank-screen .spinner").style.display="none"});var opener=window.opener||window.parent;function checkSozi(){if(window.sozi){opener.postMessage({name:"loaded",length:sozi.presentation.frames.length},"*")}else{setTimeout(checkSozi,1)}}if(opener){checkSozi()}},{"./model/Presentation":2,"./player/FrameList":6,"./player/FrameNumber":7,"./player/FrameURL":8,"./player/Media":9,"./player/Player":10,"./player/Viewport":12,"./svg/SVGDocumentWrapper":13,"core-js/modules/es.array.iterator":113,"core-js/modules/es.function.name":120,"core-js/modules/es.object.to-string":125,"core-js/modules/es.string.iterator":128,"core-js/modules/es.symbol":133,"core-js/modules/es.symbol.description":131,"core-js/modules/es.symbol.iterator":132,"core-js/modules/web.dom-collections.iterator":135,"core-js/modules/web.timers":136}],4:[function(require,module,exports){"use strict";require("core-js/modules/es.symbol");require("core-js/modules/es.symbol.description");require("core-js/modules/es.symbol.iterator");require("core-js/modules/es.array.iterator");require("core-js/modules/es.date.to-string");require("core-js/modules/es.object.create");require("core-js/modules/es.object.define-property");require("core-js/modules/es.object.get-prototype-of");require("core-js/modules/es.object.set-prototype-of");require("core-js/modules/es.object.to-string");require("core-js/modules/es.string.iterator");require("core-js/modules/web.dom-collections.iterator");require("core-js/modules/web.timers");Object.defineProperty(exports,"__esModule",{value:true});exports.Animator=void 0;var _events=require("events");function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj}}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj}}return _typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call}return _assertThisInitialized(self)}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)};return _getPrototypeOf(o)}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return self}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function")}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o};return _setPrototypeOf(o,p)}var doRequestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;var perf=window.performance&&window.performance.now?window.performance:Date;var TIME_STEP_MS=40;var timer;var runningAnimators=0;var animatorList=[];function loop(){if(runningAnimators>0){if(doRequestAnimationFrame){doRequestAnimationFrame(loop)}var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=animatorList[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var animator=_step.value;if(animator.running){animator.step()}}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator["return"]!=null){_iterator["return"]()}}finally{if(_didIteratorError){throw _iteratorError}}}}else if(!doRequestAnimationFrame){window.clearInterval(timer)}}function _start(){if(doRequestAnimationFrame){doRequestAnimationFrame(loop)}else{timer=window.setInterval(loop,TIME_STEP_MS)}}var Animator=function(_EventEmitter){_inherits(Animator,_EventEmitter);function Animator(){var _this;_classCallCheck(this,Animator);_this=_possibleConstructorReturn(this,_getPrototypeOf(Animator).call(this));_this.durationMs=500;_this.initialTime=0;_this.running=false;animatorList.push(_assertThisInitialized(_this));return _this}_createClass(Animator,[{key:"start",value:function start(durationMs){this.durationMs=durationMs;this.initialTime=perf.now();this.emit("step",0);if(!this.running){this.running=true;runningAnimators++;if(runningAnimators===1){_start()}}}},{key:"stop",value:function stop(){if(this.running){this.running=false;runningAnimators--;this.emit("stop")}}},{key:"step",value:function step(){var elapsedTime=perf.now()-this.initialTime;if(elapsedTime>=this.durationMs){this.emit("step",1);this.running=false;runningAnimators--;this.emit("done")}else{this.emit("step",elapsedTime/this.durationMs)}}}]);return Animator}(_events.EventEmitter);exports.Animator=Animator},{"core-js/modules/es.array.iterator":113,"core-js/modules/es.date.to-string":119,"core-js/modules/es.object.create":121,"core-js/modules/es.object.define-property":122,"core-js/modules/es.object.get-prototype-of":123,"core-js/modules/es.object.set-prototype-of":124,"core-js/modules/es.object.to-string":125,"core-js/modules/es.string.iterator":128,"core-js/modules/es.symbol":133,"core-js/modules/es.symbol.description":131,"core-js/modules/es.symbol.iterator":132,"core-js/modules/web.dom-collections.iterator":135,"core-js/modules/web.timers":136,events:137}],5:[function(require,module,exports){"use strict";require("core-js/modules/es.symbol");require("core-js/modules/es.symbol.description");require("core-js/modules/es.symbol.iterator");require("core-js/modules/es.array.iterator");require("core-js/modules/es.array.map");require("core-js/modules/es.object.create");require("core-js/modules/es.object.define-property");require("core-js/modules/es.object.get-prototype-of");require("core-js/modules/es.object.set-prototype-of");require("core-js/modules/es.object.to-string");require("core-js/modules/es.string.iterator");require("core-js/modules/web.dom-collections.iterator");Object.defineProperty(exports,"__esModule",{value:true});exports.hasReliableBoundaries=hasReliableBoundaries;exports.Camera=void 0;var _CameraState2=require("../model/CameraState");function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj}}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj}}return _typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call}return _assertThisInitialized(self)}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return self}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)};return _getPrototypeOf(o)}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function")}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o};return _setPrototypeOf(o,p)}var SVG_NS="http://www.w3.org/2000/svg";function hasReliableBoundaries(elt){return!/text|textpath|tspan/i.test(elt.tagName)}var Camera=function(_CameraState){_inherits(Camera,_CameraState);function Camera(viewport,layer){var _this;_classCallCheck(this,Camera);_this=_possibleConstructorReturn(this,_getPrototypeOf(Camera).call(this,viewport.svgRoot));_this.viewport=viewport;_this.layer=layer;_this.selected=true;_this.svgClipRect=document.createElementNS(SVG_NS,"rect");var svgClipId;if(viewport.editMode){_this.maskValue=0;var svgMask=document.createElementNS(SVG_NS,"mask");svgClipId=viewport.makeUniqueId("sozi-mask-");svgMask.setAttribute("id",svgClipId);viewport.svgRoot.appendChild(svgMask);_this.svgMaskRect=document.createElementNS(SVG_NS,"rect");svgMask.appendChild(_this.svgMaskRect);_this.svgClipRect.setAttribute("fill","white");svgMask.appendChild(_this.svgClipRect);_this.svgClipOutlineRect1=document.createElementNS(SVG_NS,"rect");_this.svgClipOutlineRect1.setAttribute("stroke","black");_this.svgClipOutlineRect1.setAttribute("fill","none");viewport.svgRoot.appendChild(_this.svgClipOutlineRect1);_this.svgClipOutlineRect2=document.createElementNS(SVG_NS,"rect");_this.svgClipOutlineRect2.setAttribute("stroke","white");_this.svgClipOutlineRect2.setAttribute("fill","none");_this.svgClipOutlineRect2.setAttribute("stroke-dasharray","2,2");viewport.svgRoot.appendChild(_this.svgClipOutlineRect2);_this.concealClipping()}else{var svgClipPath=document.createElementNS(SVG_NS,"clipPath");svgClipId=viewport.makeUniqueId("sozi-clip-path-");svgClipPath.setAttribute("id",svgClipId);svgClipPath.appendChild(_this.svgClipRect);viewport.svgRoot.appendChild(svgClipPath)}_this.svgTransformGroups=layer.svgNodes.map(function(svgNode){var svgClippedGroup=document.createElementNS(SVG_NS,"g");viewport.svgRoot.insertBefore(svgClippedGroup,svgNode);if(viewport.editMode){svgClippedGroup.setAttribute("mask","url(#"+svgClipId+")")}else{svgClippedGroup.setAttribute("clip-path","url(#"+svgClipId+")")}var svgGroup=document.createElementNS(SVG_NS,"g");svgGroup.appendChild(svgNode);svgClippedGroup.appendChild(svgGroup);return svgGroup});return _this}_createClass(Camera,[{key:"revealClipping",value:function revealClipping(){this.maskValue=64;this.svgClipOutlineRect1.style.display="inline";this.svgClipOutlineRect2.style.display="inline"}},{key:"concealClipping",value:function concealClipping(){this.maskValue=0;this.svgClipOutlineRect1.style.display="none";this.svgClipOutlineRect2.style.display="none"}},{key:"rotate",value:function rotate(angle){this.restoreAspectRatio();this.angle+=angle;this.update()}},{key:"zoom",value:function zoom(factor,x,y){this.width/=factor;this.height/=factor;this.restoreAspectRatio();this.translate((1-factor)*(x-this.viewport.width/2),(1-factor)*(y-this.viewport.height/2))}},{key:"translate",value:function translate(deltaX,deltaY){var scale=this.scale;var angleRad=this.angle*Math.PI/180;var si=Math.sin(angleRad);var co=Math.cos(angleRad);this.cx-=(deltaX*co-deltaY*si)/scale;this.cy-=(deltaX*si+deltaY*co)/scale;this.restoreAspectRatio();this.update()}},{key:"clip",value:function clip(x0,y0,x1,y1){this.clipped=true;var scale=this.scale;var clipWidth=Math.abs(x1-x0)+1;var clipHeight=Math.abs(y1-y0)+1;this.clipXOffset=(Math.min(x0,x1)-(this.viewport.width-clipWidth)/2)*this.width/clipWidth;this.clipYOffset=(Math.min(y0,y1)-(this.viewport.height-clipHeight)/2)*this.height/clipHeight;this.clipWidthFactor=clipWidth/this.width/scale;this.clipHeightFactor=clipHeight/this.height/scale;this.update()}},{key:"restoreAspectRatio",value:function restoreAspectRatio(){var viewportRatio=this.viewport.width/this.viewport.height;var camRatio=this.width/this.height;var ratio=viewportRatio/camRatio;if(ratio>1){this.width*=ratio;if(this.clipped){this.clipWidthFactor/=ratio}}else{this.height/=ratio;if(this.clipped){this.clipHeightFactor*=ratio}}}},{key:"getCandidateReferenceElement",value:function getCandidateReferenceElement(){if(!this.layer.svgNodes.length||!this.svgRoot.getIntersectionList){return{element:null,score:null}}var viewportArea=this.viewport.width*this.viewport.height;var viewportRect=this.svgRoot.createSVGRect();viewportRect.x=0;viewportRect.y=0;viewportRect.width=this.viewport.width;viewportRect.height=this.viewport.height;var intersectionList=this.svgRoot.getIntersectionList(viewportRect,this.layer.svgNodes[0]);var element=null;var score=null;var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=intersectionList[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var elt=_step.value;if(elt.hasAttribute("id")&&hasReliableBoundaries(elt)){var eltRect=elt.getBoundingClientRect();var eltArea=eltRect.width*eltRect.height;var l=Math.max(eltRect.left,this.viewport.x);var t=Math.max(eltRect.top,this.viewport.y);var r=Math.min(eltRect.right,this.viewport.x+this.viewport.width);var b=Math.min(eltRect.bottom,this.viewport.y+this.viewport.height);var intersectArea=(r-l)*(b-t);var eltScore=viewportArea+eltArea-2*intersectArea;if(score===null||eltScore<score){score=eltScore;element=elt}}}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator["return"]!=null){_iterator["return"]()}}finally{if(_didIteratorError){throw _iteratorError}}}return{element:element,score:score}}},{key:"update",value:function update(){var rect=this.clipRect;this.svgClipRect.setAttribute("x",rect.x);this.svgClipRect.setAttribute("y",rect.y);this.svgClipRect.setAttribute("width",rect.width);this.svgClipRect.setAttribute("height",rect.height);if(this.viewport.editMode){this.svgMaskRect.setAttribute("fill","rgb("+this.maskValue+","+this.maskValue+","+this.maskValue+")");this.svgMaskRect.setAttribute("x",0);this.svgMaskRect.setAttribute("y",0);this.svgMaskRect.setAttribute("width",this.viewport.width);this.svgMaskRect.setAttribute("height",this.viewport.height);this.svgClipOutlineRect1.setAttribute("x",rect.x);this.svgClipOutlineRect1.setAttribute("y",rect.y);this.svgClipOutlineRect1.setAttribute("width",rect.width);this.svgClipOutlineRect1.setAttribute("height",rect.height);this.svgClipOutlineRect2.setAttribute("x",rect.x);this.svgClipOutlineRect2.setAttribute("y",rect.y);this.svgClipOutlineRect2.setAttribute("width",rect.width);this.svgClipOutlineRect2.setAttribute("height",rect.height)}var scale=this.scale;var translateX=this.viewport.width/scale/2-this.cx;var translateY=this.viewport.height/scale/2-this.cy;var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{for(var _iterator2=this.svgTransformGroups[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var svgGroup=_step2.value;svgGroup.setAttribute("transform","scale("+scale+")"+"translate("+translateX+","+translateY+")"+"rotate("+-this.angle+","+this.cx+","+this.cy+")");svgGroup.setAttribute("opacity",this.opacity)}}catch(err){_didIteratorError2=true;_iteratorError2=err}finally{try{if(!_iteratorNormalCompletion2&&_iterator2["return"]!=null){_iterator2["return"]()}}finally{if(_didIteratorError2){throw _iteratorError2}}}}},{key:"interpolate",value:function interpolate(initialState,finalState,progress,timingFunction,relativeZoom,svgPath,reversePath){var tfProgress=timingFunction(progress);var tfRemaining=1-tfProgress;function linear(initial,_final){return _final*tfProgress+initial*tfRemaining}function quadratic(u0,u1){var um=(relativeZoom>0?Math.min(u0,u1):Math.max(u0,u1))*(1-relativeZoom);var du0=u0-um;var du1=u1-um;var r=Math.sqrt(du0/du1);var tm=r/(1+r);var k=du0/tm/tm;var dt=progress-tm;return k*dt*dt+um}if(relativeZoom){this.width=quadratic(initialState.width,finalState.width);this.height=quadratic(initialState.height,finalState.height)}else{this.width=linear(initialState.width,finalState.width);this.height=linear(initialState.height,finalState.height)}if(svgPath){var pathLength=svgPath.getTotalLength();var startPoint=svgPath.getPointAtLength(reversePath?pathLength:0);var endPoint=svgPath.getPointAtLength(reversePath?0:pathLength);var currentPoint=svgPath.getPointAtLength(pathLength*(reversePath?tfRemaining:tfProgress));this.cx=currentPoint.x+linear(initialState.cx-startPoint.x,finalState.cx-endPoint.x);this.cy=currentPoint.y+linear(initialState.cy-startPoint.y,finalState.cy-endPoint.y)}else{this.cx=linear(initialState.cx,finalState.cx);this.cy=linear(initialState.cy,finalState.cy)}this.opacity=linear(initialState.opacity,finalState.opacity);if(finalState.angle-initialState.angle>180){this.angle=linear(initialState.angle,finalState.angle-360)}else if(finalState.angle-initialState.angle<-180){this.angle=linear(initialState.angle-360,finalState.angle)}else{this.angle=linear(initialState.angle,finalState.angle)}this.clipped=true;var scale=this.scale;var clipDefaults={clipXOffset:0,clipYOffset:0,clipWidthFactor:this.viewport.width/this.width/scale,clipHeightFactor:this.viewport.height/this.height/scale};var initialClipping=initialState.clipped?initialState:clipDefaults;var finalClipping=finalState.clipped?finalState:clipDefaults;for(var clipProp in clipDefaults){this[clipProp]=linear(initialClipping[clipProp],finalClipping[clipProp])}}},{key:"scale",get:function get(){return Math.min(this.viewport.width/this.width,this.viewport.height/this.height)}},{key:"clipRect",get:function get(){var width,height,x,y;if(this.clipped){var scale=this.scale;width=Math.round(this.width*this.clipWidthFactor*scale);height=Math.round(this.height*this.clipHeightFactor*scale);x=Math.round((this.viewport.width-width)/2+this.clipXOffset*this.clipWidthFactor*scale);y=Math.round((this.viewport.height-height)/2+this.clipYOffset*this.clipHeightFactor*scale)}else{width=this.viewport.width;height=this.viewport.height;x=0;y=0}return{width:width,height:height,x:x,y:y}}}]);return Camera}(_CameraState2.CameraState);exports.Camera=Camera},{"../model/CameraState":1,"core-js/modules/es.array.iterator":113,"core-js/modules/es.array.map":114,"core-js/modules/es.object.create":121,"core-js/modules/es.object.define-property":122,"core-js/modules/es.object.get-prototype-of":123,"core-js/modules/es.object.set-prototype-of":124,"core-js/modules/es.object.to-string":125,"core-js/modules/es.string.iterator":128,"core-js/modules/es.symbol":133,"core-js/modules/es.symbol.description":131,"core-js/modules/es.symbol.iterator":132,"core-js/modules/web.dom-collections.iterator":135}],6:[function(require,module,exports){"use strict";function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj}}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj}}return _typeof(obj)}require("core-js/modules/es.symbol");require("core-js/modules/es.symbol.description");require("core-js/modules/es.symbol.iterator");require("core-js/modules/es.array.iterator");require("core-js/modules/es.array.slice");require("core-js/modules/es.object.to-string");require("core-js/modules/es.string.iterator");require("core-js/modules/web.dom-collections.iterator");Object.defineProperty(exports,"__esModule",{value:true});exports.init=init;exports.open=open;exports.close=close;exports.toggle=toggle;var _Animator=require("./Animator");var Timing=_interopRequireWildcard(require("./Timing"));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var cache=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return cache};return cache}function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}if(obj===null||_typeof(obj)!=="object"&&typeof obj!=="function"){return{default:obj}}var cache=_getRequireWildcardCache();if(cache&&cache.has(obj)){return cache.get(obj)}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc)}else{newObj[key]=obj[key]}}}newObj["default"]=obj;if(cache){cache.set(obj,newObj)}return newObj}var DURATION_MS=500;var frameList;var links;var player;var animator;var isOpen=false;var startOffset=-1;var endOffset=-1;var currentOffset=startOffset;function init(aPlayer){player=aPlayer;frameList=document.querySelector(".sozi-frame-list");links=frameList.querySelectorAll("li a");var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{var _loop=function _loop(){var link=_step.value;link.addEventListener("click",function(evt){if(evt.button===0){player.previewFrame(link.hash.slice(1));evt.preventDefault()}})};for(var _iterator=links[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){_loop()}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator["return"]!=null){_iterator["return"]()}}finally{if(_didIteratorError){throw _iteratorError}}}animator=new _Animator.Animator;animator.addListener("step",onAnimatorStep);window.addEventListener("keypress",onKeyPress,false);window.addEventListener("resize",function(){return setCurrentOffset(currentOffset)});player.viewport.addListener("mouseDown",onMouseDown);frameList.addEventListener("mouseout",onMouseOut,false);aPlayer.addListener("frameChange",onFrameChange);setCurrentOffset(startOffset)}function setCurrentOffset(offset){currentOffset=offset;frameList.style.left=currentOffset*frameList.offsetWidth+"px"}function moveTo(offset){player.pause();startOffset=currentOffset;endOffset=offset;animator.start(Math.abs(endOffset-startOffset)*DURATION_MS)}function open(){moveTo(0)}function close(){moveTo(-1)}function toggle(){moveTo(-1-endOffset)}function onKeyPress(evt){if(evt.altKey||evt.ctrlKey||evt.metaKey){return}switch(evt.charCode||evt.which){case 84:case 116:if(player.presentation.enableKeyboardNavigation){player.disableBlankScreen();toggle()}break;default:return}evt.stopPropagation();evt.preventDefault()}function onAnimatorStep(progress){var p=Timing.ease(progress);setCurrentOffset(endOffset*p+startOffset*(1-p))}function onMouseDown(button){if(player.presentation.enableMouseNavigation&&button===1){toggle()}}function onMouseOut(evt){var rel=evt.relatedTarget;while(rel&&rel!==frameList&&rel!==document.documentElement){rel=rel.parentNode}if(rel!==frameList){close();evt.stopPropagation()}}function onFrameChange(){var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{for(var _iterator2=links[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var link=_step2.value;link.className=link.hash==="#"+player.currentFrame.frameId?"current":""}}catch(err){_didIteratorError2=true;_iteratorError2=err}finally{try{if(!_iteratorNormalCompletion2&&_iterator2["return"]!=null){_iterator2["return"]()}}finally{if(_didIteratorError2){throw _iteratorError2}}}}},{"./Animator":4,"./Timing":11,"core-js/modules/es.array.iterator":113,"core-js/modules/es.array.slice":116,"core-js/modules/es.object.to-string":125,"core-js/modules/es.string.iterator":128,"core-js/modules/es.symbol":133,"core-js/modules/es.symbol.description":131,"core-js/modules/es.symbol.iterator":132,"core-js/modules/web.dom-collections.iterator":135}],7:[function(require,module,exports){"use strict";function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj}}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj}}return _typeof(obj)}Object.defineProperty(exports,"__esModule",{value:true});exports.init=init;var FrameList=_interopRequireWildcard(require("./FrameList"));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var cache=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return cache};return cache}function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}if(obj===null||_typeof(obj)!=="object"&&typeof obj!=="function"){return{default:obj}}var cache=_getRequireWildcardCache();if(cache&&cache.has(obj)){return cache.get(obj)}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc)}else{newObj[key]=obj[key]}}}newObj["default"]=obj;if(cache){cache.set(obj,newObj)}return newObj}function init(player){var frameNumber=document.querySelector(".sozi-frame-number");player.addListener("frameChange",function(){frameNumber.innerHTML=player.currentFrame.index+1;frameNumber.style.visibility=player.currentFrame.showFrameNumber?"visible":"hidden"});frameNumber.addEventListener("click",FrameList.open)}},{"./FrameList":6}],8:[function(require,module,exports){"use strict";require("core-js/modules/es.array.slice");require("core-js/modules/es.parse-int");Object.defineProperty(exports,"__esModule",{value:true});exports.init=init;exports.getFrame=getFrame;var player;function init(aPlayer){player=aPlayer;window.addEventListener("hashchange",onHashChange,false);if(player.presentation.updateURLOnFrameChange){player.addListener("frameChange",onFrameChange)}}function getFrame(){if(window.location.hash){var indexOrId=window.location.hash.slice(1);var frame=player.presentation.getFrameWithId(indexOrId);if(frame){return frame}else{var index=parseInt(indexOrId);return!isNaN(index)&&index>0&&index<=player.presentation.frames.length?player.presentation.frames[index-1]:player.currentFrame}}else{return player.currentFrame}}function onHashChange(){var frame=getFrame();if(player.currentFrame!==frame){player.moveToFrame(frame)}}function onFrameChange(){window.location.hash="#"+player.currentFrame.frameId}},{"core-js/modules/es.array.slice":116,"core-js/modules/es.parse-int":126}],9:[function(require,module,exports){"use strict";require("core-js/modules/es.symbol");require("core-js/modules/es.symbol.description");require("core-js/modules/es.symbol.iterator");require("core-js/modules/es.array.concat");require("core-js/modules/es.array.from");require("core-js/modules/es.array.iterator");require("core-js/modules/es.array.slice");require("core-js/modules/es.function.name");require("core-js/modules/es.object.to-string");require("core-js/modules/es.string.iterator");require("core-js/modules/web.dom-collections.iterator");Object.defineProperty(exports,"__esModule",{value:true});exports.init=init;exports.disable=disable;var svgNs="http://www.w3.org/2000/svg";var soziNs="http://sozi.baierouge.fr";var xhtmlNs="http://www.w3.org/1999/xhtml";var player;function defaultEventHandler(evt){evt.stopPropagation()}var mediaToStartByFrameId={};var mediaToStopByFrameId={};function onFrameChange(){var frameId=player.currentFrame.frameId;if(frameId in mediaToStartByFrameId){var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=mediaToStartByFrameId[frameId][Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var m=_step.value;m.play()}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator["return"]!=null){_iterator["return"]()}}finally{if(_didIteratorError){throw _iteratorError}}}}if(frameId in mediaToStopByFrameId){var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{for(var _iterator2=mediaToStopByFrameId[frameId][Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var _m=_step2.value;_m.pause()}}catch(err){_didIteratorError2=true;_iteratorError2=err}finally{try{if(!_iteratorNormalCompletion2&&_iterator2["return"]!=null){_iterator2["return"]()}}finally{if(_didIteratorError2){throw _iteratorError2}}}}}function init(aPlayer){player=aPlayer;player.addListener("frameChange",onFrameChange);var svgRoot=player.presentation.document.root;var svgAttributes=svgRoot.attributes;var soziPrefix;for(var attrIndex=0;attrIndex<svgAttributes.length;attrIndex++){if(svgAttributes[attrIndex].value===soziNs){soziPrefix=svgAttributes[attrIndex].name.slice(6);break}}if(!soziPrefix){return}var videoSources=Array.from(svgRoot.getElementsByTagName(soziPrefix+":video"));var audioSources=Array.from(svgRoot.getElementsByTagName(soziPrefix+":audio"));var mediaList=[];var _iteratorNormalCompletion3=true;var _didIteratorError3=false;var _iteratorError3=undefined;try{for(var _iterator3=videoSources.concat(audioSources)[Symbol.iterator](),_step3;!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){var source=_step3.value;var rect=source.parentNode;var tagName=source.localName.slice(soziPrefix.length+1);var htmlSource=document.createElementNS(xhtmlNs,"source");htmlSource.setAttribute("type",source.getAttribute(soziPrefix+":type"));htmlSource.setAttribute("src",source.getAttribute(soziPrefix+":src"));var j=void 0;for(j=0;j<mediaList.length;j+=1){if(mediaList[j].rect===rect){break}}if(j===mediaList.length){rect.setAttribute("visibility","hidden");var width=rect.getAttribute("width");var height=rect.getAttribute("height");var htmlMedia=document.createElementNS(xhtmlNs,tagName);if(source.getAttribute(soziPrefix+":controls")==="true"){htmlMedia.setAttribute("controls","controls");htmlMedia.setAttribute("style","width:".concat(width,"px;height:").concat(height,"px;"))}if(tagName==="video"){htmlMedia.setAttribute("width",width);htmlMedia.setAttribute("height",height)}htmlMedia.addEventListener("click",defaultEventHandler,false);htmlMedia.addEventListener("mousedown",defaultEventHandler,false);htmlMedia.addEventListener("mouseup",defaultEventHandler,false);htmlMedia.addEventListener("mousemove",defaultEventHandler,false);htmlMedia.addEventListener("contextmenu",defaultEventHandler,false);var html=document.createElementNS(xhtmlNs,"html");html.appendChild(htmlMedia);var foreignObject=document.createElementNS(svgNs,"foreignObject");foreignObject.setAttribute("x",rect.getAttribute("x"));foreignObject.setAttribute("y",rect.getAttribute("y"));foreignObject.setAttribute("width",width);foreignObject.setAttribute("height",height);foreignObject.appendChild(html);rect.parentNode.insertBefore(foreignObject,rect.nextSibling);if(source.hasAttribute(soziPrefix+":start-frame")){var startFrameId=source.getAttribute(soziPrefix+":start-frame");var stopFrameId=source.getAttribute(soziPrefix+":stop-frame");if(!(startFrameId in mediaToStartByFrameId)){mediaToStartByFrameId[startFrameId]=[]}if(!(stopFrameId in mediaToStopByFrameId)){mediaToStopByFrameId[stopFrameId]=[]}mediaToStartByFrameId[startFrameId].push(htmlMedia);mediaToStopByFrameId[stopFrameId].push(htmlMedia)}if(source.getAttribute(soziPrefix+":loop")==="true"){htmlMedia.setAttribute("loop","true")}mediaList.push({rect:source.parentNode,htmlMedia:htmlMedia})}mediaList[j].htmlMedia.appendChild(htmlSource)}}catch(err){_didIteratorError3=true;_iteratorError3=err}finally{try{if(!_iteratorNormalCompletion3&&_iterator3["return"]!=null){_iterator3["return"]()}}finally{if(_didIteratorError3){throw _iteratorError3}}}}function disable(){player.removeListener("frameChange",onFrameChange);var frameId=player.currentFrame.frameId;if(frameId in mediaToStartByFrameId){var _iteratorNormalCompletion4=true;var _didIteratorError4=false;var _iteratorError4=undefined;try{for(var _iterator4=mediaToStartByFrameId[frameId][Symbol.iterator](),_step4;!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done);_iteratorNormalCompletion4=true){var m=_step4.value;m.pause()}}catch(err){_didIteratorError4=true;_iteratorError4=err}finally{try{if(!_iteratorNormalCompletion4&&_iterator4["return"]!=null){_iterator4["return"]()}}finally{if(_didIteratorError4){throw _iteratorError4}}}}}},{"core-js/modules/es.array.concat":107,"core-js/modules/es.array.from":110,"core-js/modules/es.array.iterator":113,"core-js/modules/es.array.slice":116,"core-js/modules/es.function.name":120,"core-js/modules/es.object.to-string":125,"core-js/modules/es.string.iterator":128,"core-js/modules/es.symbol":133,"core-js/modules/es.symbol.description":131,"core-js/modules/es.symbol.iterator":132,"core-js/modules/web.dom-collections.iterator":135}],10:[function(require,module,exports){"use strict";require("core-js/modules/es.symbol");require("core-js/modules/es.symbol.description");require("core-js/modules/es.symbol.iterator");require("core-js/modules/es.array.iterator");require("core-js/modules/es.array.reverse");require("core-js/modules/es.object.create");require("core-js/modules/es.object.define-property");require("core-js/modules/es.object.get-prototype-of");require("core-js/modules/es.object.set-prototype-of");require("core-js/modules/es.object.to-string");require("core-js/modules/es.string.iterator");require("core-js/modules/web.dom-collections.iterator");require("core-js/modules/web.timers");Object.defineProperty(exports,"__esModule",{value:true});exports.Player=void 0;var _Animator=require("./Animator");var Timing=_interopRequireWildcard(require("./Timing"));var _CameraState=require("../model/CameraState");var _Presentation=require("../model/Presentation");var _events=require("events");var Media=_interopRequireWildcard(require("./Media"));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var cache=new WeakMap;_getRequireWildcardCache=function _getRequireWildcardCache(){return cache};return cache}function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj}if(obj===null||_typeof(obj)!=="object"&&typeof obj!=="function"){return{default:obj}}var cache=_getRequireWildcardCache();if(cache&&cache.has(obj)){return cache.get(obj)}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc)}else{newObj[key]=obj[key]}}}newObj["default"]=obj;if(cache){cache.set(obj,newObj)}return newObj}function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj}}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj}}return _typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call}return _assertThisInitialized(self)}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return self}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)};return _getPrototypeOf(o)}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function")}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o};return _setPrototypeOf(o,p)}var DEFAULT_TRANSITION_DURATION_MS=500;var DEFAULT_RELATIVE_ZOOM=0;var DEFAULT_TIMING_FUNCTION="ease";var SCALE_FACTOR=1.05;var ROTATE_STEP=5;var Player=function(_EventEmitter){_inherits(Player,_EventEmitter);function Player(viewport,presentation){var _this;var editMode=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;_classCallCheck(this,Player);_this=_possibleConstructorReturn(this,_getPrototypeOf(Player).call(this));_this.editMode=!!editMode;_this.viewport=viewport;_this.presentation=presentation;_this.animator=new _Animator.Animator;_this.playing=false;_this.waitingTimeout=false;_this.currentFrame=presentation.frames[0];_this.targetFrame=presentation.frames[0];_this.timeoutHandle=null;_this.transitions=[];if(!_this.editMode){_this.viewport.addListener("click",function(btn){return _this.onClick(btn)});window.addEventListener("keydown",function(evt){return _this.onKeyDown(evt)},false);if(_this.presentation.enableMouseTranslation){_this.viewport.addListener("dragStart",function(){return _this.pause()})}_this.viewport.addListener("userChangeState",function(){return _this.pause()});window.addEventListener("keypress",function(evt){return _this.onKeyPress(evt)},false)}_this.animator.addListener("step",function(p){return _this.onAnimatorStep(p)});_this.animator.addListener("stop",function(){return _this.onAnimatorStop()});_this.animator.addListener("done",function(){return _this.onAnimatorDone()});_this.addListener("frameChange",function(){document.title=_this.presentation.title+" — "+_this.currentFrame.title});return _this}_createClass(Player,[{key:"onClick",value:function onClick(button){if(this.presentation.enableMouseNavigation){switch(button){case 0:this.moveToNext();break;case 2:this.moveToPrevious();break}}}},{key:"onKeyDown",value:function onKeyDown(evt){if(evt.altKey||evt.ctrlKey||evt.metaKey){return}switch(evt.keyCode){case 36:if(this.presentation.enableKeyboardNavigation){if(evt.shiftKey){this.jumpToFirst()}else{this.moveToFirst()}}break;case 35:if(this.presentation.enableKeyboardNavigation){if(evt.shiftKey){this.jumpToLast()}else{this.moveToLast()}}break;case 38:case 33:case 37:if(this.presentation.enableKeyboardNavigation){if(evt.shiftKey){this.jumpToPrevious()}else{this.moveToPrevious()}}break;case 40:case 34:case 39:case 13:case 32:if(this.presentation.enableKeyboardNavigation){if(evt.shiftKey){this.jumpToNext()}else{this.moveToNext()}}break;default:return}evt.stopPropagation();evt.preventDefault()}},{key:"onKeyPress",value:function onKeyPress(evt){if(evt.altKey||evt.ctrlKey||evt.metaKey){return}switch(evt.charCode||evt.which){case 43:if(this.presentation.enableKeyboardZoom){this.viewport.zoom(SCALE_FACTOR,this.viewport.width/2,this.viewport.height/2);this.pause()}break;case 45:if(this.presentation.enableKeyboardZoom){this.viewport.zoom(1/SCALE_FACTOR,this.viewport.width/2,this.viewport.height/2);this.pause()}break;case 82:if(this.presentation.enableKeyboardRotation){this.viewport.rotate(-ROTATE_STEP);this.pause()}break;case 114:if(this.presentation.enableKeyboardRotation){this.viewport.rotate(ROTATE_STEP);this.pause()}break;case 80:case 112:if(this.playing){this.pause()}else{this.resume()}break;case 46:if(this.presentation.enableKeyboardNavigation){this.toggleBlankScreen()}break;default:return}evt.stopPropagation();evt.preventDefault()}},{key:"findFrame",value:function findFrame(frame){if(frame instanceof _Presentation.Frame){return frame}if(typeof frame==="string"){return this.presentation.getFrameWithId(frame)}if(typeof frame==="number"){return this.presentation.frames[frame]}return null}},{key:"showCurrentFrame",value:function showCurrentFrame(){this.viewport.setAtStates(this.currentFrame.cameraStates);this.viewport.update();this.emit("frameChange")}},{key:"playFromFrame",value:function playFromFrame(frame){if(!this.playing){this.playing=true;this.emit("stateChange")}this.waitingTimeout=false;this.targetFrame=this.currentFrame=this.findFrame(frame);this.showCurrentFrame();this.waitTimeout()}},{key:"pause",value:function pause(){this.animator.stop();if(this.waitingTimeout){window.clearTimeout(this.timeoutHandle);this.waitingTimeout=false}if(this.playing){this.playing=false;this.emit("stateChange")}this.targetFrame=this.currentFrame}},{key:"resume",value:function resume(){this.playFromFrame(this.currentFrame)}},{key:"waitTimeout",value:function waitTimeout(){var _this2=this;if(this.currentFrame.timeoutEnable){this.waitingTimeout=true;this.timeoutHandle=window.setTimeout(function(){return _this2.moveToNext()},this.currentFrame.timeoutMs)}}},{key:"jumpToFrame",value:function jumpToFrame(frame){this.disableBlankScreen();this.pause();this.targetFrame=this.currentFrame=this.findFrame(frame);this.showCurrentFrame()}},{key:"jumpToFirst",value:function jumpToFirst(){this.jumpToFrame(0)}},{key:"jumpToLast",value:function jumpToLast(){this.jumpToFrame(this.presentation.frames.length-1)}},{key:"jumpToPrevious",value:function jumpToPrevious(){this.jumpToFrame(this.previousFrame)}},{key:"jumpToNext",value:function jumpToNext(){this.jumpToFrame(this.nextFrame)}},{key:"moveToFrame",value:function moveToFrame(frame){this.disableBlankScreen();if(this.waitingTimeout){window.clearTimeout(this.timeoutHandle);this.waitingTimeout=false}this.targetFrame=this.findFrame(frame);var layerProperties=null;var durationMs=DEFAULT_TRANSITION_DURATION_MS;var useTransitionPath=false;var backwards=false;if(this.currentFrame){if(this.targetFrame===this.nextFrame){durationMs=this.targetFrame.transitionDurationMs;layerProperties=this.targetFrame.layerProperties;useTransitionPath=true}else if(this.targetFrame===this.previousFrame){durationMs=this.currentFrame.transitionDurationMs;layerProperties=this.currentFrame.layerProperties;useTransitionPath=true;backwards=true}}if(!this.editMode&&!this.playing){this.playing=true;this.emit("stateChange")}var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=this.viewport.cameras[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var camera=_step.value;var timingFunction=Timing[DEFAULT_TIMING_FUNCTION];var relativeZoom=DEFAULT_RELATIVE_ZOOM;var transitionPath=null;if(layerProperties){var lp=layerProperties[camera.layer.index];relativeZoom=lp.transitionRelativeZoom;timingFunction=Timing[lp.transitionTimingFunction];if(useTransitionPath){transitionPath=lp.transitionPath}if(backwards){timingFunction=timingFunction.reverse}}this.setupTransition(camera,timingFunction,relativeZoom,transitionPath,backwards)}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator["return"]!=null){_iterator["return"]()}}finally{if(_didIteratorError){throw _iteratorError}}}this.animator.start(durationMs)}},{key:"moveToFirst",value:function moveToFirst(){this.moveToFrame(0)}},{key:"moveToLast",value:function moveToLast(){this.moveToFrame(this.presentation.frames.length-1)}},{key:"moveToPrevious",value:function moveToPrevious(){for(var index=this.previousFrame.index;index>=0;index--){var frame=this.presentation.frames[index];if(!frame.timeoutEnable||frame.timeoutMs!==0){this.moveToFrame(frame);break}}}},{key:"moveToNext",value:function moveToNext(){this.moveToFrame(this.nextFrame)}},{key:"moveToCurrent",value:function moveToCurrent(){this.moveToFrame(this.currentFrame)}},{key:"previewFrame",value:function previewFrame(frame){this.targetFrame=this.findFrame(frame);var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{for(var _iterator2=this.viewport.cameras[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var camera=_step2.value;this.setupTransition(camera,Timing[DEFAULT_TIMING_FUNCTION],DEFAULT_RELATIVE_ZOOM)}}catch(err){_didIteratorError2=true;_iteratorError2=err}finally{try{if(!_iteratorNormalCompletion2&&_iterator2["return"]!=null){_iterator2["return"]()}}finally{if(_didIteratorError2){throw _iteratorError2}}}this.animator.start(DEFAULT_TRANSITION_DURATION_MS)}},{key:"setupTransition",value:function setupTransition(camera,timingFunction,relativeZoom,svgPath,reverse){if(this.animator.running){this.animator.stop()}this.transitions.push({camera:camera,initialState:new _CameraState.CameraState(camera),finalState:this.targetFrame.cameraStates[camera.layer.index],timingFunction:timingFunction,relativeZoom:relativeZoom,svgPath:svgPath,reverse:reverse})}},{key:"onAnimatorStep",value:function onAnimatorStep(progress){var _iteratorNormalCompletion3=true;var _didIteratorError3=false;var _iteratorError3=undefined;try{for(var _iterator3=this.transitions[Symbol.iterator](),_step3;!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){var transition=_step3.value;transition.camera.interpolate(transition.initialState,transition.finalState,progress,transition.timingFunction,transition.relativeZoom,transition.svgPath,transition.reverse);transition.camera.update()}}catch(err){_didIteratorError3=true;_iteratorError3=err}finally{try{if(!_iteratorNormalCompletion3&&_iterator3["return"]!=null){_iterator3["return"]()}}finally{if(_didIteratorError3){throw _iteratorError3}}}}},{key:"onAnimatorStop",value:function onAnimatorStop(){this.transitions=[];this.currentFrame=this.targetFrame;this.emit("frameChange")}},{key:"onAnimatorDone",value:function onAnimatorDone(){this.onAnimatorStop();if(this.playing){this.waitTimeout()}}},{key:"enableBlankScreen",value:function enableBlankScreen(){this.pause();var blankScreen=document.querySelector(".sozi-blank-screen");if(blankScreen){blankScreen.style.opacity=1;blankScreen.style.visibility="visible"}}},{key:"disableBlankScreen",value:function disableBlankScreen(){var blankScreen=document.querySelector(".sozi-blank-screen");if(blankScreen){blankScreen.style.opacity=0;blankScreen.style.visibility="hidden"}}},{key:"toggleBlankScreen",value:function toggleBlankScreen(){if(this.blankScreenIsVisible){this.disableBlankScreen()}else{this.enableBlankScreen()}}},{key:"disableMedia",value:function disableMedia(){Media.disable()}},{key:"previousFrame",get:function get(){var frame=this.animator.running?this.targetFrame:this.currentFrame;var index=(frame.index+this.presentation.frames.length-1)%this.presentation.frames.length;return this.presentation.frames[index]}},{key:"nextFrame",get:function get(){var frame=this.animator.running?this.targetFrame:this.currentFrame;var index=(frame.index+1)%this.presentation.frames.length;return this.presentation.frames[index]}},{key:"blankScreenIsVisible",get:function get(){return document.querySelector(".sozi-blank-screen").style.visibility==="visible"}}]);return Player}(_events.EventEmitter);exports.Player=Player},{"../model/CameraState":1,"../model/Presentation":2,"./Animator":4,"./Media":9,"./Timing":11,"core-js/modules/es.array.iterator":113,"core-js/modules/es.array.reverse":115,"core-js/modules/es.object.create":121,"core-js/modules/es.object.define-property":122,"core-js/modules/es.object.get-prototype-of":123,"core-js/modules/es.object.set-prototype-of":124,"core-js/modules/es.object.to-string":125,"core-js/modules/es.string.iterator":128,"core-js/modules/es.symbol":133,"core-js/modules/es.symbol.description":131,"core-js/modules/es.symbol.iterator":132,"core-js/modules/web.dom-collections.iterator":135,"core-js/modules/web.timers":136,events:137}],11:[function(require,module,exports){"use strict";require("core-js/modules/es.array.reverse");Object.defineProperty(exports,"__esModule",{value:true});exports.makeBezier=makeBezier;exports.makeSteps=makeSteps;exports.stepMiddle=stepMiddle;exports.stepEnd=exports.stepStart=exports.easeInOut=exports.easeOut=exports.easeIn=exports.ease=exports.linear=void 0;function A(xy1,xy2){return 1-3*xy2+3*xy1}function B(xy1,xy2){return 3*xy2-6*xy1}function C(xy1){return 3*xy1}function bezier(t,a,b,c){return((a*t+b)*t+c)*t}function bezierSlope(t,a,b,c){return(3*a*t+2*b)*t+c}function makeBezier(x1,y1,x2,y2){var ax=A(x1,x2),bx=B(x1,x2),cx=C(x1);var ay=A(y1,y2),by=B(y1,y2),cy=C(y1);if(x1===y1&&x2===y2){return function(x){return x}}return function(x){var t=x;for(var i=0;i<4;i++){var currentSlope=bezierSlope(t,ax,bx,cx);if(currentSlope===0){break}var currentX=bezier(t,ax,bx,cx)-x;t-=currentX/currentSlope}return bezier(t,ay,by,cy)}}function makeSteps(n,direction){var trunc=direction==="start"?Math.ceil:Math.floor;return function(x){return trunc(n*x)/n}}var linear=makeBezier(0,0,1,1);exports.linear=linear;linear.reverse=linear;var ease=makeBezier(.25,.1,.25,1);exports.ease=ease;ease.reverse=ease;var easeIn=makeBezier(.42,0,1,1);exports.easeIn=easeIn;var easeOut=makeBezier(0,0,.58,1);exports.easeOut=easeOut;easeIn.reverse=easeOut;easeOut.reverse=easeIn;var easeInOut=makeBezier(.42,0,.58,1);exports.easeInOut=easeInOut;easeInOut.reverse=easeInOut;var stepStart=makeSteps(1,"start");exports.stepStart=stepStart;var stepEnd=makeSteps(1,"end");exports.stepEnd=stepEnd;stepStart.reverse=stepEnd;stepEnd.reverse=stepStart;function stepMiddle(x){return x>=.5?1:0}stepMiddle.reverse=stepMiddle},{"core-js/modules/es.array.reverse":115}],12:[function(require,module,exports){"use strict";require("core-js/modules/es.symbol");require("core-js/modules/es.symbol.description");require("core-js/modules/es.symbol.iterator");require("core-js/modules/es.array.filter");require("core-js/modules/es.array.for-each");require("core-js/modules/es.array.iterator");require("core-js/modules/es.array.map");require("core-js/modules/es.object.create");require("core-js/modules/es.object.define-property");require("core-js/modules/es.object.get-prototype-of");require("core-js/modules/es.object.set-prototype-of");require("core-js/modules/es.object.to-string");require("core-js/modules/es.string.iterator");require("core-js/modules/web.dom-collections.for-each");require("core-js/modules/web.dom-collections.iterator");require("core-js/modules/web.timers");Object.defineProperty(exports,"__esModule",{value:true});exports.Viewport=void 0;var _Camera=require("./Camera");var _events=require("events");function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj}}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj}}return _typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call}return _assertThisInitialized(self)}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return self}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)};return _getPrototypeOf(o)}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function")}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o};return _setPrototypeOf(o,p)}var DRAG_BUTTON=0;var DRAG_THRESHOLD_PX=5;var SCALE_FACTOR=1.05;var ROTATE_STEP=5;var WHEEL_TIMEOUT_MS=200;var CLIP_BORDER=3;var Viewport=function(_EventEmitter){_inherits(Viewport,_EventEmitter);function Viewport(presentation,editMode){var _this;_classCallCheck(this,Viewport);_this=_possibleConstructorReturn(this,_getPrototypeOf(Viewport).call(this));_this.presentation=presentation;_this.editMode=!!editMode;_this.cameras=[];_this.mouseDragX=0;_this.mouseDragY=0;_this.dragMode="translate";_this.clipMode={cameras:[],operation:"select"};_this.showHiddenElements=false;_this.wheelTimeout=null;_this.dragHandler=function(evt){return _this.onDrag(evt)};_this.dragEndHandler=function(evt){return _this.onDragEnd(evt)};return _this}_createClass(Viewport,[{key:"makeUniqueId",value:function makeUniqueId(prefix){var suffix=Math.floor(1e3*(1+9*Math.random()));var id;do{id=prefix+suffix;suffix++}while(this.svgRoot.getElementById(id));return id}},{key:"onLoad",value:function onLoad(){var _this2=this;this.svgRoot.addEventListener("mousedown",function(evt){return _this2.onMouseDown(evt)},false);this.svgRoot.addEventListener("mousemove",function(evt){return _this2.onMouseMove(evt)},false);this.svgRoot.addEventListener("contextmenu",function(evt){return _this2.onContextMenu(evt)},false);var wheelEvent="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==undefined?"mousewheel":"DOMMouseScroll";this.svgRoot.addEventListener(wheelEvent,function(evt){return _this2.onWheel(evt)},false);this.cameras=this.presentation.layers.map(function(layer){return new _Camera.Camera(_this2,layer)})}},{key:"getLayer",value:function getLayer(nodeId){return this.layers.filter(function(layer){return layer.nodeId===nodeId})[0]}},{key:"onContextMenu",value:function onContextMenu(evt){evt.stopPropagation();evt.preventDefault();this.emit("click",2,evt)}},{key:"onMouseMove",value:function onMouseMove(evt){if(this.dragMode==="clip"){switch(this.getClipMode(evt).operation){case"select":this.svgRoot.style.cursor="crosshair";break;case"n":case"s":this.svgRoot.style.cursor="ns-resize";break;case"w":case"e":this.svgRoot.style.cursor="ew-resize";break;case"nw":case"se":this.svgRoot.style.cursor="nwse-resize";break;case"ne":case"sw":this.svgRoot.style.cursor="nesw-resize";break;case"move":this.svgRoot.style.cursor="move";break;default:this.svgRoot.style.cursor="default"}}else{this.svgRoot.style.cursor="default"}}},{key:"onMouseDown",value:function onMouseDown(evt){evt.stopPropagation();evt.preventDefault();if(evt.button===DRAG_BUTTON){this.mouseDragged=false;this.mouseDragChangedState=false;this.mouseDragX=this.mouseDragStartX=evt.clientX;this.mouseDragY=this.mouseDragStartY=evt.clientY;document.documentElement.addEventListener("mousemove",this.dragHandler,false);document.documentElement.addEventListener("mouseup",this.dragEndHandler,false);if(this.dragMode==="clip"){this.clipMode=this.getClipMode(evt)}}this.emit("mouseDown",evt.button)}},{key:"getClipMode",value:function getClipMode(evt){var x=evt.clientX-this.x;var y=evt.clientY-this.y;var camerasByOperation={nw:[],sw:[],ne:[],se:[],w:[],e:[],n:[],s:[],move:[]};var selectedCameras=this.cameras.filter(function(camera){return camera.selected});var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=selectedCameras[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var camera=_step.value;var rect=camera.clipRect;if(x>=rect.x-CLIP_BORDER&&x<=rect.x+rect.width+CLIP_BORDER&&y>=rect.y-CLIP_BORDER&&y<=rect.y+rect.height+CLIP_BORDER){var w=x<=rect.x+CLIP_BORDER;var e=x>=rect.x+rect.width-CLIP_BORDER-1;var n=y<=rect.y+CLIP_BORDER;var s=y>=rect.y+rect.height-CLIP_BORDER-1;var _operation=w||e||n||s?(n?"n":s?"s":"")+(w?"w":e?"e":""):"move";camerasByOperation[_operation].push(camera)}}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator["return"]!=null){_iterator["return"]()}}finally{if(_didIteratorError){throw _iteratorError}}}for(var operation in camerasByOperation){if(camerasByOperation[operation].length){return{cameras:camerasByOperation[operation],operation:operation}}}return{cameras:selectedCameras,operation:"select"}}},{key:"onDrag",value:function onDrag(evt){evt.stopPropagation();var xFromCenter=evt.clientX-this.x-this.width/2;var yFromCenter=evt.clientY-this.y-this.height/2;var angle=180*Math.atan2(yFromCenter,xFromCenter)/Math.PI;var translateX=evt.clientX;var translateY=evt.clientY;var zoom=Math.sqrt(xFromCenter*xFromCenter+yFromCenter*yFromCenter);var deltaX=evt.clientX-this.mouseDragX;var deltaY=evt.clientY-this.mouseDragY;if(!this.mouseDragged&&(Math.abs(deltaX)>DRAG_THRESHOLD_PX||Math.abs(deltaY)>DRAG_THRESHOLD_PX)){this.mouseDragged=true;this.rotateStart=this.rotatePrev=angle;this.translateStartX=this.translateXPrev=translateX;this.translateStartY=this.translateYPrev=translateY;this.zoomPrev=zoom;this.emit("dragStart")}if(this.mouseDragged){var mode=this.dragMode;if(mode=="translate"){if(evt.altKey){mode="scale"}else if(evt.shiftKey){mode="rotate"}}switch(mode){case"scale":if(this.editMode||this.presentation.enableMouseZoom){if(this.zoomPrev!==0){this.zoom(zoom/this.zoomPrev,this.width/2,this.height/2);this.mouseDragChangedState=true}this.zoomPrev=zoom}break;case"rotate":if(this.editMode||this.presentation.enableMouseRotation){if(evt.ctrlKey){angle=10*Math.round((angle-this.rotateStart)/10)+this.rotateStart}this.rotate(this.rotatePrev-angle);this.mouseDragChangedState=true;this.rotatePrev=angle}break;case"clip":switch(this.clipMode.operation){case"select":this.clip(this.mouseDragStartX-this.x,this.mouseDragStartY-this.y,this.mouseDragX-this.x,this.mouseDragY-this.y);break;case"move":this.clipRel(deltaX,deltaY,deltaX,deltaY);break;case"w":this.clipRel(deltaX,0,0,0);break;case"e":this.clipRel(0,0,deltaX,0);break;case"n":this.clipRel(0,deltaY,0,0);break;case"s":this.clipRel(0,0,0,deltaY);break;case"nw":this.clipRel(deltaX,deltaY,0,0);break;case"ne":this.clipRel(0,deltaY,deltaX,0);break;case"sw":this.clipRel(deltaX,0,0,deltaY);break;case"se":this.clipRel(0,0,deltaX,deltaY);break}this.mouseDragChangedState=true;break;default:if(this.editMode||this.presentation.enableMouseTranslation){if(evt.ctrlKey){if(Math.abs(translateX-this.translateStartX)>=Math.abs(translateY-this.translateStartY)){translateY=this.translateStartY}else{translateX=this.translateStartX}}this.translate(translateX-this.translateXPrev,translateY-this.translateYPrev);this.mouseDragChangedState=true;this.translateXPrev=translateX;this.translateYPrev=translateY}}this.mouseDragX=evt.clientX;this.mouseDragY=evt.clientY}}},{key:"onDragEnd",value:function onDragEnd(evt){evt.stopPropagation();evt.preventDefault();if(evt.button===DRAG_BUTTON){if(this.mouseDragged){this.emit("dragEnd");if(this.mouseDragChangedState){this.emit("userChangeState")}}else{this.emit("click",evt.button,evt)}document.documentElement.removeEventListener("mousemove",this.dragHandler,false);document.documentElement.removeEventListener("mouseup",this.dragEndHandler,false)}else{this.emit("click",evt.button,evt)}}},{key:"onWheel",value:function onWheel(evt){var _this3=this;if(this.wheelTimeout!==null){window.clearTimeout(this.wheelTimeout)}evt.stopPropagation();evt.preventDefault();var delta=0;if(evt.wheelDelta){delta=evt.wheelDelta}else if(evt.detail){delta=-evt.detail}else{delta=-evt.deltaY}var changed=false;if(delta!==0){if(evt.shiftKey){if(this.editMode||this.presentation.enableMouseRotation){this.rotate(delta>0?ROTATE_STEP:-ROTATE_STEP);changed=true}}else{if(this.editMode||this.presentation.enableMouseZoom){this.zoom(delta>0?SCALE_FACTOR:1/SCALE_FACTOR,evt.clientX-this.x,evt.clientY-this.y);changed=true}}}if(changed){this.wheelTimeout=window.setTimeout(function(){_this3.wheelTimeout=null;_this3.emit("userChangeState")},WHEEL_TIMEOUT_MS)}}},{key:"repaint",value:function repaint(){this.svgRoot.setAttribute("width",this.width);this.svgRoot.setAttribute("height",this.height);this.update();var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{for(var _iterator2=this.presentation.elementsToHide[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var id=_step2.value;var elt=document.getElementById(id);if(elt){elt.style.visibility=this.showHiddenElements?"visible":"hidden"}}}catch(err){_didIteratorError2=true;_iteratorError2=err}finally{try{if(!_iteratorNormalCompletion2&&_iterator2["return"]!=null){_iterator2["return"]()}}finally{if(_didIteratorError2){throw _iteratorError2}}}}},{key:"update",value:function update(){var _iteratorNormalCompletion3=true;var _didIteratorError3=false;var _iteratorError3=undefined;try{for(var _iterator3=this.cameras[Symbol.iterator](),_step3;!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){var camera=_step3.value;camera.update()}}catch(err){_didIteratorError3=true;_iteratorError3=err}finally{try{if(!_iteratorNormalCompletion3&&_iterator3["return"]!=null){_iterator3["return"]()}}finally{if(_didIteratorError3){throw _iteratorError3}}}}},{key:"setAtStates",value:function setAtStates(states){var _this4=this;states.forEach(function(state,index){_this4.cameras[index].copy(state)})}},{key:"translate",value:function translate(deltaX,deltaY){var _iteratorNormalCompletion4=true;var _didIteratorError4=false;var _iteratorError4=undefined;try{for(var _iterator4=this.cameras[Symbol.iterator](),_step4;!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done);_iteratorNormalCompletion4=true){var camera=_step4.value;if(camera.selected){camera.translate(deltaX,deltaY)}}}catch(err){_didIteratorError4=true;_iteratorError4=err}finally{try{if(!_iteratorNormalCompletion4&&_iterator4["return"]!=null){_iterator4["return"]()}}finally{if(_didIteratorError4){throw _iteratorError4}}}}},{key:"zoom",value:function zoom(factor,x,y){var _iteratorNormalCompletion5=true;var _didIteratorError5=false;var _iteratorError5=undefined;try{for(var _iterator5=this.cameras[Symbol.iterator](),_step5;!(_iteratorNormalCompletion5=(_step5=_iterator5.next()).done);_iteratorNormalCompletion5=true){var camera=_step5.value;if(camera.selected){camera.zoom(factor,x,y)}}}catch(err){_didIteratorError5=true;_iteratorError5=err}finally{try{if(!_iteratorNormalCompletion5&&_iterator5["return"]!=null){_iterator5["return"]()}}finally{if(_didIteratorError5){throw _iteratorError5}}}}},{key:"rotate",value:function rotate(angle){var _iteratorNormalCompletion6=true;var _didIteratorError6=false;var _iteratorError6=undefined;try{for(var _iterator6=this.cameras[Symbol.iterator](),_step6;!(_iteratorNormalCompletion6=(_step6=_iterator6.next()).done);_iteratorNormalCompletion6=true){var camera=_step6.value;if(camera.selected){camera.rotate(angle)}}}catch(err){_didIteratorError6=true;_iteratorError6=err}finally{try{if(!_iteratorNormalCompletion6&&_iterator6["return"]!=null){_iterator6["return"]()}}finally{if(_didIteratorError6){throw _iteratorError6}}}}},{key:"clip",value:function clip(x0,y0,x1,y1){var _iteratorNormalCompletion7=true;var _didIteratorError7=false;var _iteratorError7=undefined;try{for(var _iterator7=this.clipMode.cameras[Symbol.iterator](),_step7;!(_iteratorNormalCompletion7=(_step7=_iterator7.next()).done);_iteratorNormalCompletion7=true){var camera=_step7.value;camera.clip(x0,y0,x1,y1)}}catch(err){_didIteratorError7=true;_iteratorError7=err}finally{try{if(!_iteratorNormalCompletion7&&_iterator7["return"]!=null){_iterator7["return"]()}}finally{if(_didIteratorError7){throw _iteratorError7}}}}},{key:"clipRel",value:function clipRel(w,n,e,s){var _iteratorNormalCompletion8=true;var _didIteratorError8=false;var _iteratorError8=undefined;try{for(var _iterator8=this.clipMode.cameras[Symbol.iterator](),_step8;!(_iteratorNormalCompletion8=(_step8=_iterator8.next()).done);_iteratorNormalCompletion8=true){var camera=_step8.value;var rect=camera.clipRect;if(w<=rect.width+e-1&&n<=rect.height+s-1){camera.clip(rect.x+w,rect.y+n,rect.x+rect.width+e-1,rect.y+rect.height+s-1)}}}catch(err){_didIteratorError8=true;_iteratorError8=err}finally{try{if(!_iteratorNormalCompletion8&&_iterator8["return"]!=null){_iterator8["return"]()}}finally{if(_didIteratorError8){throw _iteratorError8}}}}},{key:"ready",get:function get(){return!!(this.presentation.document&&this.presentation.document.root)}},{key:"svgRoot",get:function get(){return this.presentation.document.root}},{key:"x",get:function get(){return this.svgRoot.getScreenCTM().e}},{key:"y",get:function get(){return this.svgRoot.getScreenCTM().f}},{key:"width",get:function get(){return this.svgRoot===document.documentElement?window.innerWidth:this.svgRoot.parentNode.clientWidth}},{key:"height",get:function get(){return this.svgRoot===document.documentElement?window.innerHeight:this.svgRoot.parentNode.clientHeight}}]);return Viewport}(_events.EventEmitter);exports.Viewport=Viewport},{"./Camera":5,"core-js/modules/es.array.filter":108,"core-js/modules/es.array.for-each":109,"core-js/modules/es.array.iterator":113,"core-js/modules/es.array.map":114,"core-js/modules/es.object.create":121,"core-js/modules/es.object.define-property":122,"core-js/modules/es.object.get-prototype-of":123,"core-js/modules/es.object.set-prototype-of":124,"core-js/modules/es.object.to-string":125,"core-js/modules/es.string.iterator":128,"core-js/modules/es.symbol":133,"core-js/modules/es.symbol.description":131,"core-js/modules/es.symbol.iterator":132,"core-js/modules/web.dom-collections.for-each":134,"core-js/modules/web.dom-collections.iterator":135,"core-js/modules/web.timers":136,events:137}],13:[function(require,module,exports){"use strict";require("core-js/modules/es.symbol");require("core-js/modules/es.symbol.description");require("core-js/modules/es.symbol.iterator");require("core-js/modules/es.array.from");require("core-js/modules/es.array.index-of");require("core-js/modules/es.array.iterator");require("core-js/modules/es.object.define-property");require("core-js/modules/es.object.to-string");require("core-js/modules/es.string.iterator");require("core-js/modules/web.dom-collections.iterator");Object.defineProperty(exports,"__esModule",{value:true});exports.addSVGHandler=addSVGHandler;exports.SVGDocumentWrapper=exports.DefaultSVGHandler=void 0;function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor}var SVG_NS="http://www.w3.org/2000/svg";var DRAWABLE_TAGS=["g","image","path","rect","circle","ellipse","line","polyline","polygon","text","clippath"];var handlers={};function addSVGHandler(name,handler){handlers[name]=handler}var DefaultSVGHandler=function(){function DefaultSVGHandler(){_classCallCheck(this,DefaultSVGHandler)}_createClass(DefaultSVGHandler,null,[{key:"matches",value:function matches(svgRoot){return true}},{key:"transform",value:function transform(svgRoot){}},{key:"isLayer",value:function isLayer(svgElement){return true}},{key:"getLabel",value:function getLabel(svgElement){return null}}]);return DefaultSVGHandler}();exports.DefaultSVGHandler=DefaultSVGHandler;var SVGDocumentWrapper=function(){function SVGDocumentWrapper(svgRoot){_classCallCheck(this,SVGDocumentWrapper);this.asText="";this.handler=DefaultSVGHandler;this.root=svgRoot;var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=this.root.getElementsByTagName("a")[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var link=_step.value;link.addEventListener("mousedown",function(evt){return evt.stopPropagation()},false)}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator["return"]!=null){_iterator["return"]()}}finally{if(_didIteratorError){throw _iteratorError}}}}_createClass(SVGDocumentWrapper,[{key:"isLayer",value:function isLayer(svgNode){return svgNode instanceof SVGGElement&&svgNode.hasAttribute("id")&&this.handler.isLayer(svgNode)}},{key:"removeViewbox",value:function removeViewbox(){this.root.removeAttribute("viewBox");this.root.style.width=this.root.style.height="100%"}},{key:"removeScripts",value:function removeScripts(){var scripts=Array.from(this.root.getElementsByTagName("script"));for(var _i=0,_scripts=scripts;_i<_scripts.length;_i++){var script=_scripts[_i];script.parentNode.removeChild(script)}}},{key:"disableHyperlinks",value:function disableHyperlinks(){var styled=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{for(var _iterator2=this.root.getElementsByTagName("a")[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var link=_step2.value;link.addEventListener("click",function(evt){return evt.preventDefault()},false);if(styled){link.style.cursor="default"}}}catch(err){_didIteratorError2=true;_iteratorError2=err}finally{try{if(!_iteratorNormalCompletion2&&_iterator2["return"]!=null){_iterator2["return"]()}}finally{if(_didIteratorError2){throw _iteratorError2}}}}},{key:"isValidSVG",get:function get(){return this.root instanceof SVGSVGElement}}],[{key:"fromString",value:function fromString(data){var svgRoot=(new DOMParser).parseFromString(data,"image/svg+xml").documentElement;var doc=new SVGDocumentWrapper(svgRoot);for(var name in handlers){if(handlers[name].matches(svgRoot)){console.log("Using handler: ".concat(name));doc.handler=handlers[name];break}}if(doc.isValidSVG){doc.handler.transform(svgRoot);doc.removeViewbox();doc.removeScripts();doc.disableHyperlinks();var AiHandler=handlers["Adobe Illustrator"];if(doc.handler!==AiHandler){AiHandler.transform(svgRoot)}var svgWrapper=document.createElementNS(SVG_NS,"g");for(var _i2=0,_Array$from=Array.from(svgRoot.childNodes);_i2<_Array$from.length;_i2++){var svgNode=_Array$from[_i2];if(svgNode.tagName===undefined){svgRoot.removeChild(svgNode)}else if(DRAWABLE_TAGS.indexOf(svgNode.localName)>=0){if(!doc.isLayer(svgNode)){svgWrapper.appendChild(svgNode)}else if(svgWrapper.firstChild){svgRoot.insertBefore(svgWrapper,svgNode);svgWrapper=document.createElementNS(SVG_NS,"g")}}}if(svgWrapper.firstChild){svgRoot.appendChild(svgWrapper)}}doc.asText=(new XMLSerializer).serializeToString(svgRoot);return doc}}]);return SVGDocumentWrapper}();exports.SVGDocumentWrapper=SVGDocumentWrapper},{"core-js/modules/es.array.from":110,"core-js/modules/es.array.index-of":111,"core-js/modules/es.array.iterator":113,"core-js/modules/es.object.define-property":122,"core-js/modules/es.object.to-string":125,"core-js/modules/es.string.iterator":128,"core-js/modules/es.symbol":133,"core-js/modules/es.symbol.description":131,"core-js/modules/es.symbol.iterator":132,"core-js/modules/web.dom-collections.iterator":135}],14:[function(require,module,exports){module.exports=function(it){if(typeof it!="function"){throw TypeError(String(it)+" is not a function")}return it}},{}],15:[function(require,module,exports){var isObject=require("../internals/is-object");module.exports=function(it){if(!isObject(it)&&it!==null){throw TypeError("Can't set "+String(it)+" as a prototype")}return it}},{"../internals/is-object":61}],16:[function(require,module,exports){var wellKnownSymbol=require("../internals/well-known-symbol");var create=require("../internals/object-create");var definePropertyModule=require("../internals/object-define-property");var UNSCOPABLES=wellKnownSymbol("unscopables");var ArrayPrototype=Array.prototype;if(ArrayPrototype[UNSCOPABLES]==undefined){definePropertyModule.f(ArrayPrototype,UNSCOPABLES,{configurable:true,value:create(null)})}module.exports=function(key){ArrayPrototype[UNSCOPABLES][key]=true}},{"../internals/object-create":68,"../internals/object-define-property":70,"../internals/well-known-symbol":105}],17:[function(require,module,exports){var isObject=require("../internals/is-object");module.exports=function(it){if(!isObject(it)){throw TypeError(String(it)+" is not an object")}return it}},{"../internals/is-object":61}],18:[function(require,module,exports){"use strict";var $forEach=require("../internals/array-iteration").forEach;var arrayMethodIsStrict=require("../internals/array-method-is-strict");var arrayMethodUsesToLength=require("../internals/array-method-uses-to-length");var STRICT_METHOD=arrayMethodIsStrict("forEach");var USES_TO_LENGTH=arrayMethodUsesToLength("forEach");module.exports=!STRICT_METHOD||!USES_TO_LENGTH?function forEach(callbackfn){return $forEach(this,callbackfn,arguments.length>1?arguments[1]:undefined)}:[].forEach},{"../internals/array-iteration":21,"../internals/array-method-is-strict":23,"../internals/array-method-uses-to-length":24}],19:[function(require,module,exports){"use strict";var bind=require("../internals/function-bind-context");var toObject=require("../internals/to-object");var callWithSafeIterationClosing=require("../internals/call-with-safe-iteration-closing");var isArrayIteratorMethod=require("../internals/is-array-iterator-method");var toLength=require("../internals/to-length");var createProperty=require("../internals/create-property");var getIteratorMethod=require("../internals/get-iterator-method");module.exports=function from(arrayLike){var O=toObject(arrayLike);var C=typeof this=="function"?this:Array;var argumentsLength=arguments.length;var mapfn=argumentsLength>1?arguments[1]:undefined;var mapping=mapfn!==undefined;var iteratorMethod=getIteratorMethod(O);var index=0;var length,result,step,iterator,next,value;if(mapping)mapfn=bind(mapfn,argumentsLength>2?arguments[2]:undefined,2);if(iteratorMethod!=undefined&&!(C==Array&&isArrayIteratorMethod(iteratorMethod))){iterator=iteratorMethod.call(O);next=iterator.next;result=new C;for(;!(step=next.call(iterator)).done;index++){value=mapping?callWithSafeIterationClosing(iterator,mapfn,[step.value,index],true):step.value;createProperty(result,index,value)}}else{length=toLength(O.length);result=new C(length);for(;length>index;index++){value=mapping?mapfn(O[index],index):O[index];createProperty(result,index,value)}}result.length=index;return result}},{"../internals/call-with-safe-iteration-closing":26,"../internals/create-property":36,"../internals/function-bind-context":47,"../internals/get-iterator-method":49,"../internals/is-array-iterator-method":58,"../internals/to-length":98,"../internals/to-object":99}],20:[function(require,module,exports){var toIndexedObject=require("../internals/to-indexed-object");var toLength=require("../internals/to-length");var toAbsoluteIndex=require("../internals/to-absolute-index");var createMethod=function(IS_INCLUDES){return function($this,el,fromIndex){var O=toIndexedObject($this);var length=toLength(O.length);var index=toAbsoluteIndex(fromIndex,length);var value;if(IS_INCLUDES&&el!=el)while(length>index){value=O[index++];if(value!=value)return true}else for(;length>index;index++){if((IS_INCLUDES||index in O)&&O[index]===el)return IS_INCLUDES||index||0}return!IS_INCLUDES&&-1}};module.exports={includes:createMethod(true),indexOf:createMethod(false)}},{"../internals/to-absolute-index":95,"../internals/to-indexed-object":96,"../internals/to-length":98}],21:[function(require,module,exports){var bind=require("../internals/function-bind-context");var IndexedObject=require("../internals/indexed-object");var toObject=require("../internals/to-object");var toLength=require("../internals/to-length");var arraySpeciesCreate=require("../internals/array-species-create");var push=[].push;var createMethod=function(TYPE){var IS_MAP=TYPE==1;var IS_FILTER=TYPE==2;var IS_SOME=TYPE==3;var IS_EVERY=TYPE==4;var IS_FIND_INDEX=TYPE==6;var NO_HOLES=TYPE==5||IS_FIND_INDEX;return function($this,callbackfn,that,specificCreate){var O=toObject($this);var self=IndexedObject(O);var boundFunction=bind(callbackfn,that,3);var length=toLength(self.length);var index=0;var create=specificCreate||arraySpeciesCreate;var target=IS_MAP?create($this,length):IS_FILTER?create($this,0):undefined;var value,result;for(;length>index;index++)if(NO_HOLES||index in self){value=self[index];result=boundFunction(value,index,O);if(TYPE){if(IS_MAP)target[index]=result;else if(result)switch(TYPE){case 3:return true;case 5:return value;case 6:return index;case 2:push.call(target,value)}else if(IS_EVERY)return false}}return IS_FIND_INDEX?-1:IS_SOME||IS_EVERY?IS_EVERY:target}};module.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6)}},{"../internals/array-species-create":25,"../internals/function-bind-context":47,"../internals/indexed-object":55,"../internals/to-length":98,"../internals/to-object":99}],22:[function(require,module,exports){var fails=require("../internals/fails");var wellKnownSymbol=require("../internals/well-known-symbol");var V8_VERSION=require("../internals/engine-v8-version");var SPECIES=wellKnownSymbol("species");module.exports=function(METHOD_NAME){return V8_VERSION>=51||!fails(function(){var array=[];var constructor=array.constructor={};constructor[SPECIES]=function(){return{foo:1}};return array[METHOD_NAME](Boolean).foo!==1})}},{"../internals/engine-v8-version":43,"../internals/fails":46,"../internals/well-known-symbol":105}],23:[function(require,module,exports){"use strict";var fails=require("../internals/fails");module.exports=function(METHOD_NAME,argument){var method=[][METHOD_NAME];return!!method&&fails(function(){method.call(null,argument||function(){throw 1},1)})}},{"../internals/fails":46}],24:[function(require,module,exports){var DESCRIPTORS=require("../internals/descriptors");var fails=require("../internals/fails");var has=require("../internals/has");var defineProperty=Object.defineProperty;var cache={};var thrower=function(it){throw it};module.exports=function(METHOD_NAME,options){if(has(cache,METHOD_NAME))return cache[METHOD_NAME];if(!options)options={};var method=[][METHOD_NAME];var ACCESSORS=has(options,"ACCESSORS")?options.ACCESSORS:false;var argument0=has(options,0)?options[0]:thrower;var argument1=has(options,1)?options[1]:undefined;return cache[METHOD_NAME]=!!method&&!fails(function(){if(ACCESSORS&&!DESCRIPTORS)return true;var O={length:-1};if(ACCESSORS)defineProperty(O,1,{enumerable:true,get:thrower});else O[1]=1;method.call(O,argument0,argument1)})}},{"../internals/descriptors":39,"../internals/fails":46,"../internals/has":51}],25:[function(require,module,exports){var isObject=require("../internals/is-object");var isArray=require("../internals/is-array");var wellKnownSymbol=require("../internals/well-known-symbol");var SPECIES=wellKnownSymbol("species");module.exports=function(originalArray,length){var C;if(isArray(originalArray)){C=originalArray.constructor;if(typeof C=="function"&&(C===Array||isArray(C.prototype)))C=undefined;else if(isObject(C)){C=C[SPECIES];if(C===null)C=undefined}}return new(C===undefined?Array:C)(length===0?0:length)}},{"../internals/is-array":59,"../internals/is-object":61,"../internals/well-known-symbol":105}],26:[function(require,module,exports){var anObject=require("../internals/an-object");module.exports=function(iterator,fn,value,ENTRIES){try{return ENTRIES?fn(anObject(value)[0],value[1]):fn(value)}catch(error){var returnMethod=iterator["return"];if(returnMethod!==undefined)anObject(returnMethod.call(iterator));throw error}}},{"../internals/an-object":17}],27:[function(require,module,exports){var wellKnownSymbol=require("../internals/well-known-symbol");var ITERATOR=wellKnownSymbol("iterator");var SAFE_CLOSING=false;try{var called=0;var iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=true}};iteratorWithReturn[ITERATOR]=function(){return this};Array.from(iteratorWithReturn,function(){throw 2})}catch(error){}module.exports=function(exec,SKIP_CLOSING){if(!SKIP_CLOSING&&!SAFE_CLOSING)return false;var ITERATION_SUPPORT=false;try{var object={};object[ITERATOR]=function(){return{next:function(){return{done:ITERATION_SUPPORT=true}}}};exec(object)}catch(error){}return ITERATION_SUPPORT}},{"../internals/well-known-symbol":105}],28:[function(require,module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1)}},{}],29:[function(require,module,exports){var TO_STRING_TAG_SUPPORT=require("../internals/to-string-tag-support");var classofRaw=require("../internals/classof-raw");var wellKnownSymbol=require("../internals/well-known-symbol");var TO_STRING_TAG=wellKnownSymbol("toStringTag");var CORRECT_ARGUMENTS=classofRaw(function(){return arguments}())=="Arguments";var tryGet=function(it,key){try{return it[key]}catch(error){}};module.exports=TO_STRING_TAG_SUPPORT?classofRaw:function(it){var O,tag,result;return it===undefined?"Undefined":it===null?"Null":typeof(tag=tryGet(O=Object(it),TO_STRING_TAG))=="string"?tag:CORRECT_ARGUMENTS?classofRaw(O):(result=classofRaw(O))=="Object"&&typeof O.callee=="function"?"Arguments":result}},{"../internals/classof-raw":28,"../internals/to-string-tag-support":101,"../internals/well-known-symbol":105}],30:[function(require,module,exports){var has=require("../internals/has");var ownKeys=require("../internals/own-keys");var getOwnPropertyDescriptorModule=require("../internals/object-get-own-property-descriptor");var definePropertyModule=require("../internals/object-define-property");module.exports=function(target,source){var keys=ownKeys(source);var defineProperty=definePropertyModule.f;var getOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f;for(var i=0;i<keys.length;i++){var key=keys[i];if(!has(target,key))defineProperty(target,key,getOwnPropertyDescriptor(source,key))}}},{"../internals/has":51,"../internals/object-define-property":70,"../internals/object-get-own-property-descriptor":71,"../internals/own-keys":81}],31:[function(require,module,exports){var fails=require("../internals/fails");module.exports=!fails(function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype})},{"../internals/fails":46}],32:[function(require,module,exports){var requireObjectCoercible=require("../internals/require-object-coercible");var quot=/"/g;module.exports=function(string,tag,attribute,value){var S=String(requireObjectCoercible(string));var p1="<"+tag;if(attribute!=="")p1+=" "+attribute+'="'+String(value).replace(quot,"&quot;")+'"';return p1+">"+S+"</"+tag+">"}},{"../internals/require-object-coercible":85}],33:[function(require,module,exports){"use strict";var IteratorPrototype=require("../internals/iterators-core").IteratorPrototype;var create=require("../internals/object-create");var createPropertyDescriptor=require("../internals/create-property-descriptor");var setToStringTag=require("../internals/set-to-string-tag");var Iterators=require("../internals/iterators");var returnThis=function(){return this};module.exports=function(IteratorConstructor,NAME,next){var TO_STRING_TAG=NAME+" Iterator";IteratorConstructor.prototype=create(IteratorPrototype,{next:createPropertyDescriptor(1,next)});setToStringTag(IteratorConstructor,TO_STRING_TAG,false,true);Iterators[TO_STRING_TAG]=returnThis;return IteratorConstructor}},{"../internals/create-property-descriptor":35,"../internals/iterators":64,"../internals/iterators-core":63,"../internals/object-create":68,"../internals/set-to-string-tag":87}],34:[function(require,module,exports){var DESCRIPTORS=require("../internals/descriptors");var definePropertyModule=require("../internals/object-define-property");var createPropertyDescriptor=require("../internals/create-property-descriptor");module.exports=DESCRIPTORS?function(object,key,value){return definePropertyModule.f(object,key,createPropertyDescriptor(1,value))}:function(object,key,value){object[key]=value;return object}},{"../internals/create-property-descriptor":35,"../internals/descriptors":39,"../internals/object-define-property":70}],35:[function(require,module,exports){module.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value:value}}},{}],36:[function(require,module,exports){"use strict";var toPrimitive=require("../internals/to-primitive");var definePropertyModule=require("../internals/object-define-property");var createPropertyDescriptor=require("../internals/create-property-descriptor");module.exports=function(object,key,value){var propertyKey=toPrimitive(key);if(propertyKey in object)definePropertyModule.f(object,propertyKey,createPropertyDescriptor(0,value));else object[propertyKey]=value}},{"../internals/create-property-descriptor":35,"../internals/object-define-property":70,"../internals/to-primitive":100}],37:[function(require,module,exports){"use strict";var $=require("../internals/export");var createIteratorConstructor=require("../internals/create-iterator-constructor");var getPrototypeOf=require("../internals/object-get-prototype-of");var setPrototypeOf=require("../internals/object-set-prototype-of");var setToStringTag=require("../internals/set-to-string-tag");var createNonEnumerableProperty=require("../internals/create-non-enumerable-property");var redefine=require("../internals/redefine");var wellKnownSymbol=require("../internals/well-known-symbol");var IS_PURE=require("../internals/is-pure");var Iterators=require("../internals/iterators");var IteratorsCore=require("../internals/iterators-core");var IteratorPrototype=IteratorsCore.IteratorPrototype;var BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS;var ITERATOR=wellKnownSymbol("iterator");var KEYS="keys";var VALUES="values";var ENTRIES="entries";var returnThis=function(){return this};module.exports=function(Iterable,NAME,IteratorConstructor,next,DEFAULT,IS_SET,FORCED){createIteratorConstructor(IteratorConstructor,NAME,next);var getIterationMethod=function(KIND){if(KIND===DEFAULT&&defaultIterator)return defaultIterator;if(!BUGGY_SAFARI_ITERATORS&&KIND in IterablePrototype)return IterablePrototype[KIND];switch(KIND){case KEYS:return function keys(){return new IteratorConstructor(this,KIND)};case VALUES:return function values(){return new IteratorConstructor(this,KIND)};case ENTRIES:return function entries(){return new IteratorConstructor(this,KIND)}}return function(){return new IteratorConstructor(this)}};var TO_STRING_TAG=NAME+" Iterator";var INCORRECT_VALUES_NAME=false;var IterablePrototype=Iterable.prototype;var nativeIterator=IterablePrototype[ITERATOR]||IterablePrototype["@@iterator"]||DEFAULT&&IterablePrototype[DEFAULT];var defaultIterator=!BUGGY_SAFARI_ITERATORS&&nativeIterator||getIterationMethod(DEFAULT);var anyNativeIterator=NAME=="Array"?IterablePrototype.entries||nativeIterator:nativeIterator;var CurrentIteratorPrototype,methods,KEY;if(anyNativeIterator){CurrentIteratorPrototype=getPrototypeOf(anyNativeIterator.call(new Iterable));if(IteratorPrototype!==Object.prototype&&CurrentIteratorPrototype.next){if(!IS_PURE&&getPrototypeOf(CurrentIteratorPrototype)!==IteratorPrototype){if(setPrototypeOf){setPrototypeOf(CurrentIteratorPrototype,IteratorPrototype)}else if(typeof CurrentIteratorPrototype[ITERATOR]!="function"){createNonEnumerableProperty(CurrentIteratorPrototype,ITERATOR,returnThis)}}setToStringTag(CurrentIteratorPrototype,TO_STRING_TAG,true,true);if(IS_PURE)Iterators[TO_STRING_TAG]=returnThis}}if(DEFAULT==VALUES&&nativeIterator&&nativeIterator.name!==VALUES){INCORRECT_VALUES_NAME=true;defaultIterator=function values(){return nativeIterator.call(this)}}if((!IS_PURE||FORCED)&&IterablePrototype[ITERATOR]!==defaultIterator){createNonEnumerableProperty(IterablePrototype,ITERATOR,defaultIterator)}Iterators[NAME]=defaultIterator;if(DEFAULT){methods={values:getIterationMethod(VALUES),keys:IS_SET?defaultIterator:getIterationMethod(KEYS),entries:getIterationMethod(ENTRIES)};if(FORCED)for(KEY in methods){if(BUGGY_SAFARI_ITERATORS||INCORRECT_VALUES_NAME||!(KEY in IterablePrototype)){redefine(IterablePrototype,KEY,methods[KEY])}}else $({target:NAME,proto:true,forced:BUGGY_SAFARI_ITERATORS||INCORRECT_VALUES_NAME},methods)}return methods}},{"../internals/create-iterator-constructor":33,"../internals/create-non-enumerable-property":34,"../internals/export":45,"../internals/is-pure":62,"../internals/iterators":64,"../internals/iterators-core":63,"../internals/object-get-prototype-of":75,"../internals/object-set-prototype-of":79,"../internals/redefine":83,"../internals/set-to-string-tag":87,"../internals/well-known-symbol":105}],38:[function(require,module,exports){var path=require("../internals/path");var has=require("../internals/has");var wrappedWellKnownSymbolModule=require("../internals/well-known-symbol-wrapped");var defineProperty=require("../internals/object-define-property").f;module.exports=function(NAME){var Symbol=path.Symbol||(path.Symbol={});if(!has(Symbol,NAME))defineProperty(Symbol,NAME,{value:wrappedWellKnownSymbolModule.f(NAME)})}},{"../internals/has":51,"../internals/object-define-property":70,"../internals/path":82,"../internals/well-known-symbol-wrapped":104}],39:[function(require,module,exports){var fails=require("../internals/fails");module.exports=!fails(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":46}],40:[function(require,module,exports){var global=require("../internals/global");var isObject=require("../internals/is-object");var document=global.document;var EXISTS=isObject(document)&&isObject(document.createElement);module.exports=function(it){return EXISTS?document.createElement(it):{}}},{"../internals/global":50,"../internals/is-object":61}],41:[function(require,module,exports){module.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],42:[function(require,module,exports){var getBuiltIn=require("../internals/get-built-in");module.exports=getBuiltIn("navigator","userAgent")||""},{"../internals/get-built-in":48}],43:[function(require,module,exports){var global=require("../internals/global");var userAgent=require("../internals/engine-user-agent");var process=global.process;var versions=process&&process.versions;var v8=versions&&versions.v8;var match,version;if(v8){match=v8.split(".");version=match[0]+match[1]}else if(userAgent){match=userAgent.match(/Edge\/(\d+)/);if(!match||match[1]>=74){match=userAgent.match(/Chrome\/(\d+)/);if(match)version=match[1]}}module.exports=version&&+version},{"../internals/engine-user-agent":42,"../internals/global":50}],44:[function(require,module,exports){module.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],45:[function(require,module,exports){var global=require("../internals/global");var getOwnPropertyDescriptor=require("../internals/object-get-own-property-descriptor").f;var createNonEnumerableProperty=require("../internals/create-non-enumerable-property");var redefine=require("../internals/redefine");var setGlobal=require("../internals/set-global");var copyConstructorProperties=require("../internals/copy-constructor-properties");var isForced=require("../internals/is-forced");module.exports=function(options,source){var TARGET=options.target;var GLOBAL=options.global;var STATIC=options.stat;var FORCED,target,key,targetProperty,sourceProperty,descriptor;if(GLOBAL){target=global}else if(STATIC){target=global[TARGET]||setGlobal(TARGET,{})}else{target=(global[TARGET]||{}).prototype}if(target)for(key in source){sourceProperty=source[key];if(options.noTargetGet){descriptor=getOwnPropertyDescriptor(target,key);targetProperty=descriptor&&descriptor.value}else targetProperty=target[key];FORCED=isForced(GLOBAL?key:TARGET+(STATIC?".":"#")+key,options.forced);if(!FORCED&&targetProperty!==undefined){if(typeof sourceProperty===typeof targetProperty)continue;copyConstructorProperties(sourceProperty,targetProperty)}if(options.sham||targetProperty&&targetProperty.sham){createNonEnumerableProperty(sourceProperty,"sham",true)}redefine(target,key,sourceProperty,options)}}},{"../internals/copy-constructor-properties":30,"../internals/create-non-enumerable-property":34,"../internals/global":50,"../internals/is-forced":60,"../internals/object-get-own-property-descriptor":71,"../internals/redefine":83,"../internals/set-global":86}],46:[function(require,module,exports){module.exports=function(exec){try{return!!exec()}catch(error){return true}}},{}],47:[function(require,module,exports){var aFunction=require("../internals/a-function");module.exports=function(fn,that,length){aFunction(fn);if(that===undefined)return fn;switch(length){case 0:return function(){return fn.call(that)};case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},{"../internals/a-function":14}],48:[function(require,module,exports){var path=require("../internals/path");var global=require("../internals/global");var aFunction=function(variable){return typeof variable=="function"?variable:undefined};module.exports=function(namespace,method){return arguments.length<2?aFunction(path[namespace])||aFunction(global[namespace]):path[namespace]&&path[namespace][method]||global[namespace]&&global[namespace][method]}},{"../internals/global":50,"../internals/path":82}],49:[function(require,module,exports){var classof=require("../internals/classof");var Iterators=require("../internals/iterators");var wellKnownSymbol=require("../internals/well-known-symbol");var ITERATOR=wellKnownSymbol("iterator");module.exports=function(it){if(it!=undefined)return it[ITERATOR]||it["@@iterator"]||Iterators[classof(it)]}},{"../internals/classof":29,"../internals/iterators":64,"../internals/well-known-symbol":105}],50:[function(require,module,exports){(function(global){var check=function(it){return it&&it.Math==Math&&it};module.exports=check(typeof globalThis=="object"&&globalThis)||check(typeof window=="object"&&window)||check(typeof self=="object"&&self)||check(typeof global=="object"&&global)||Function("return this")()}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],51:[function(require,module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},{}],52:[function(require,module,exports){module.exports={}},{}],53:[function(require,module,exports){var getBuiltIn=require("../internals/get-built-in");module.exports=getBuiltIn("document","documentElement")},{"../internals/get-built-in":48}],54:[function(require,module,exports){var DESCRIPTORS=require("../internals/descriptors");var fails=require("../internals/fails");var createElement=require("../internals/document-create-element");module.exports=!DESCRIPTORS&&!fails(function(){return Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":39,"../internals/document-create-element":40,"../internals/fails":46}],55:[function(require,module,exports){var fails=require("../internals/fails");var classof=require("../internals/classof-raw");var split="".split;module.exports=fails(function(){return!Object("z").propertyIsEnumerable(0)})?function(it){return classof(it)=="String"?split.call(it,""):Object(it)}:Object},{"../internals/classof-raw":28,"../internals/fails":46}],56:[function(require,module,exports){var store=require("../internals/shared-store");var functionToString=Function.toString;if(typeof store.inspectSource!="function"){store.inspectSource=function(it){return functionToString.call(it)}}module.exports=store.inspectSource},{"../internals/shared-store":89}],57:[function(require,module,exports){var NATIVE_WEAK_MAP=require("../internals/native-weak-map");var global=require("../internals/global");var isObject=require("../internals/is-object");var createNonEnumerableProperty=require("../internals/create-non-enumerable-property");var objectHas=require("../internals/has");var sharedKey=require("../internals/shared-key");var hiddenKeys=require("../internals/hidden-keys");var WeakMap=global.WeakMap;var set,get,has;var enforce=function(it){return has(it)?get(it):set(it,{})};var getterFor=function(TYPE){return function(it){var state;if(!isObject(it)||(state=get(it)).type!==TYPE){throw TypeError("Incompatible receiver, "+TYPE+" required")}return state}};if(NATIVE_WEAK_MAP){var store=new WeakMap;var wmget=store.get;var wmhas=store.has;var wmset=store.set;set=function(it,metadata){wmset.call(store,it,metadata);return metadata};get=function(it){return wmget.call(store,it)||{}};has=function(it){return wmhas.call(store,it)}}else{var STATE=sharedKey("state");hiddenKeys[STATE]=true;set=function(it,metadata){createNonEnumerableProperty(it,STATE,metadata);return metadata};get=function(it){return objectHas(it,STATE)?it[STATE]:{}};has=function(it){return objectHas(it,STATE)}}module.exports={set:set,get:get,has:has,enforce:enforce,getterFor:getterFor}},{"../internals/create-non-enumerable-property":34,"../internals/global":50,"../internals/has":51,"../internals/hidden-keys":52,"../internals/is-object":61,"../internals/native-weak-map":66,"../internals/shared-key":88}],58:[function(require,module,exports){var wellKnownSymbol=require("../internals/well-known-symbol");var Iterators=require("../internals/iterators");var ITERATOR=wellKnownSymbol("iterator");var ArrayPrototype=Array.prototype;module.exports=function(it){return it!==undefined&&(Iterators.Array===it||ArrayPrototype[ITERATOR]===it)}},{"../internals/iterators":64,"../internals/well-known-symbol":105}],59:[function(require,module,exports){var classof=require("../internals/classof-raw");module.exports=Array.isArray||function isArray(arg){return classof(arg)=="Array"}},{"../internals/classof-raw":28}],60:[function(require,module,exports){var fails=require("../internals/fails");var replacement=/#|\.prototype\./;var isForced=function(feature,detection){var value=data[normalize(feature)];return value==POLYFILL?true:value==NATIVE?false:typeof detection=="function"?fails(detection):!!detection};var normalize=isForced.normalize=function(string){return String(string).replace(replacement,".").toLowerCase()};var data=isForced.data={};var NATIVE=isForced.NATIVE="N";var POLYFILL=isForced.POLYFILL="P";module.exports=isForced},{"../internals/fails":46}],61:[function(require,module,exports){module.exports=function(it){return typeof it==="object"?it!==null:typeof it==="function"}},{}],62:[function(require,module,exports){module.exports=false},{}],63:[function(require,module,exports){"use strict";var getPrototypeOf=require("../internals/object-get-prototype-of");var createNonEnumerableProperty=require("../internals/create-non-enumerable-property");var has=require("../internals/has");var wellKnownSymbol=require("../internals/well-known-symbol");var IS_PURE=require("../internals/is-pure");var ITERATOR=wellKnownSymbol("iterator");var BUGGY_SAFARI_ITERATORS=false;var returnThis=function(){return this};var IteratorPrototype,PrototypeOfArrayIteratorPrototype,arrayIterator;if([].keys){arrayIterator=[].keys();if(!("next"in arrayIterator))BUGGY_SAFARI_ITERATORS=true;else{PrototypeOfArrayIteratorPrototype=getPrototypeOf(getPrototypeOf(arrayIterator));if(PrototypeOfArrayIteratorPrototype!==Object.prototype)IteratorPrototype=PrototypeOfArrayIteratorPrototype}}if(IteratorPrototype==undefined)IteratorPrototype={};if(!IS_PURE&&!has(IteratorPrototype,ITERATOR)){createNonEnumerableProperty(IteratorPrototype,ITERATOR,returnThis)}module.exports={IteratorPrototype:IteratorPrototype,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS}},{"../internals/create-non-enumerable-property":34,"../internals/has":51,"../internals/is-pure":62,"../internals/object-get-prototype-of":75,"../internals/well-known-symbol":105}],64:[function(require,module,exports){arguments[4][52][0].apply(exports,arguments)},{dup:52}],65:[function(require,module,exports){var fails=require("../internals/fails");module.exports=!!Object.getOwnPropertySymbols&&!fails(function(){return!String(Symbol())})},{"../internals/fails":46}],66:[function(require,module,exports){var global=require("../internals/global");var inspectSource=require("../internals/inspect-source");var WeakMap=global.WeakMap;module.exports=typeof WeakMap==="function"&&/native code/.test(inspectSource(WeakMap))},{"../internals/global":50,"../internals/inspect-source":56}],67:[function(require,module,exports){var global=require("../internals/global");var trim=require("../internals/string-trim").trim;var whitespaces=require("../internals/whitespaces");var $parseInt=global.parseInt;var hex=/^[+-]?0[Xx]/;var FORCED=$parseInt(whitespaces+"08")!==8||$parseInt(whitespaces+"0x16")!==22;module.exports=FORCED?function parseInt(string,radix){var S=trim(String(string));return $parseInt(S,radix>>>0||(hex.test(S)?16:10))}:$parseInt},{"../internals/global":50,"../internals/string-trim":94,"../internals/whitespaces":106}],68:[function(require,module,exports){var anObject=require("../internals/an-object");var defineProperties=require("../internals/object-define-properties");var enumBugKeys=require("../internals/enum-bug-keys");var hiddenKeys=require("../internals/hidden-keys");var html=require("../internals/html");var documentCreateElement=require("../internals/document-create-element");var sharedKey=require("../internals/shared-key");var GT=">";var LT="<";var PROTOTYPE="prototype";var SCRIPT="script";var IE_PROTO=sharedKey("IE_PROTO");var EmptyConstructor=function(){};var scriptTag=function(content){return LT+SCRIPT+GT+content+LT+"/"+SCRIPT+GT};var NullProtoObjectViaActiveX=function(activeXDocument){activeXDocument.write(scriptTag(""));activeXDocument.close();var temp=activeXDocument.parentWindow.Object;activeXDocument=null;return temp};var NullProtoObjectViaIFrame=function(){var iframe=documentCreateElement("iframe");var JS="java"+SCRIPT+":";var iframeDocument;iframe.style.display="none";html.appendChild(iframe);iframe.src=String(JS);iframeDocument=iframe.contentWindow.document;iframeDocument.open();iframeDocument.write(scriptTag("document.F=Object"));iframeDocument.close();return iframeDocument.F};var activeXDocument;var NullProtoObject=function(){try{activeXDocument=document.domain&&new ActiveXObject("htmlfile")}catch(error){}NullProtoObject=activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();var length=enumBugKeys.length;while(length--)delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];return NullProtoObject()};hiddenKeys[IE_PROTO]=true;module.exports=Object.create||function create(O,Properties){var result;if(O!==null){EmptyConstructor[PROTOTYPE]=anObject(O);result=new EmptyConstructor;EmptyConstructor[PROTOTYPE]=null;result[IE_PROTO]=O}else result=NullProtoObject();return Properties===undefined?result:defineProperties(result,Properties)}},{"../internals/an-object":17,"../internals/document-create-element":40,"../internals/enum-bug-keys":44,"../internals/hidden-keys":52,"../internals/html":53,"../internals/object-define-properties":69,"../internals/shared-key":88}],69:[function(require,module,exports){var DESCRIPTORS=require("../internals/descriptors");var definePropertyModule=require("../internals/object-define-property");var anObject=require("../internals/an-object");var objectKeys=require("../internals/object-keys");module.exports=DESCRIPTORS?Object.defineProperties:function defineProperties(O,Properties){anObject(O);var keys=objectKeys(Properties);var length=keys.length;var index=0;var key;while(length>index)definePropertyModule.f(O,key=keys[index++],Properties[key]);return O}},{"../internals/an-object":17,"../internals/descriptors":39,"../internals/object-define-property":70,"../internals/object-keys":77}],70:[function(require,module,exports){var DESCRIPTORS=require("../internals/descriptors");var IE8_DOM_DEFINE=require("../internals/ie8-dom-define");var anObject=require("../internals/an-object");var toPrimitive=require("../internals/to-primitive");var nativeDefineProperty=Object.defineProperty;exports.f=DESCRIPTORS?nativeDefineProperty:function defineProperty(O,P,Attributes){anObject(O);P=toPrimitive(P,true);anObject(Attributes);if(IE8_DOM_DEFINE)try{return nativeDefineProperty(O,P,Attributes)}catch(error){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported");if("value"in Attributes)O[P]=Attributes.value;return O}},{"../internals/an-object":17,"../internals/descriptors":39,"../internals/ie8-dom-define":54,"../internals/to-primitive":100}],71:[function(require,module,exports){var DESCRIPTORS=require("../internals/descriptors");var propertyIsEnumerableModule=require("../internals/object-property-is-enumerable");var createPropertyDescriptor=require("../internals/create-property-descriptor");var toIndexedObject=require("../internals/to-indexed-object");var toPrimitive=require("../internals/to-primitive");var has=require("../internals/has");var IE8_DOM_DEFINE=require("../internals/ie8-dom-define");var nativeGetOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;exports.f=DESCRIPTORS?nativeGetOwnPropertyDescriptor:function getOwnPropertyDescriptor(O,P){O=toIndexedObject(O);P=toPrimitive(P,true);if(IE8_DOM_DEFINE)try{return nativeGetOwnPropertyDescriptor(O,P)}catch(error){}if(has(O,P))return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O,P),O[P])}},{"../internals/create-property-descriptor":35,"../internals/descriptors":39,"../internals/has":51,"../internals/ie8-dom-define":54,"../internals/object-property-is-enumerable":78,"../internals/to-indexed-object":96,"../internals/to-primitive":100}],72:[function(require,module,exports){var toIndexedObject=require("../internals/to-indexed-object");var nativeGetOwnPropertyNames=require("../internals/object-get-own-property-names").f;var toString={}.toString;var windowNames=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var getWindowNames=function(it){try{return nativeGetOwnPropertyNames(it)}catch(error){return windowNames.slice()}};module.exports.f=function getOwnPropertyNames(it){return windowNames&&toString.call(it)=="[object Window]"?getWindowNames(it):nativeGetOwnPropertyNames(toIndexedObject(it))}},{"../internals/object-get-own-property-names":73,"../internals/to-indexed-object":96}],73:[function(require,module,exports){var internalObjectKeys=require("../internals/object-keys-internal");var enumBugKeys=require("../internals/enum-bug-keys");var hiddenKeys=enumBugKeys.concat("length","prototype");exports.f=Object.getOwnPropertyNames||function getOwnPropertyNames(O){return internalObjectKeys(O,hiddenKeys)}},{"../internals/enum-bug-keys":44,"../internals/object-keys-internal":76}],74:[function(require,module,exports){exports.f=Object.getOwnPropertySymbols},{}],75:[function(require,module,exports){var has=require("../internals/has");var toObject=require("../internals/to-object");var sharedKey=require("../internals/shared-key");var CORRECT_PROTOTYPE_GETTER=require("../internals/correct-prototype-getter");var IE_PROTO=sharedKey("IE_PROTO");var ObjectPrototype=Object.prototype;module.exports=CORRECT_PROTOTYPE_GETTER?Object.getPrototypeOf:function(O){O=toObject(O);if(has(O,IE_PROTO))return O[IE_PROTO];if(typeof O.constructor=="function"&&O instanceof O.constructor){return O.constructor.prototype}return O instanceof Object?ObjectPrototype:null}},{"../internals/correct-prototype-getter":31,"../internals/has":51,"../internals/shared-key":88,"../internals/to-object":99}],76:[function(require,module,exports){var has=require("../internals/has");var toIndexedObject=require("../internals/to-indexed-object");var indexOf=require("../internals/array-includes").indexOf;var hiddenKeys=require("../internals/hidden-keys");module.exports=function(object,names){var O=toIndexedObject(object);var i=0;var result=[];var key;for(key in O)!has(hiddenKeys,key)&&has(O,key)&&result.push(key);while(names.length>i)if(has(O,key=names[i++])){~indexOf(result,key)||result.push(key)}return result}},{"../internals/array-includes":20,"../internals/has":51,"../internals/hidden-keys":52,"../internals/to-indexed-object":96}],77:[function(require,module,exports){var internalObjectKeys=require("../internals/object-keys-internal");var enumBugKeys=require("../internals/enum-bug-keys");module.exports=Object.keys||function keys(O){return internalObjectKeys(O,enumBugKeys)}},{"../internals/enum-bug-keys":44,"../internals/object-keys-internal":76}],78:[function(require,module,exports){"use strict";var nativePropertyIsEnumerable={}.propertyIsEnumerable;var getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;var NASHORN_BUG=getOwnPropertyDescriptor&&!nativePropertyIsEnumerable.call({1:2},1);exports.f=NASHORN_BUG?function propertyIsEnumerable(V){var descriptor=getOwnPropertyDescriptor(this,V);return!!descriptor&&descriptor.enumerable}:nativePropertyIsEnumerable},{}],79:[function(require,module,exports){var anObject=require("../internals/an-object");var aPossiblePrototype=require("../internals/a-possible-prototype");module.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var CORRECT_SETTER=false;var test={};var setter;try{setter=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set;setter.call(test,[]);CORRECT_SETTER=test instanceof Array}catch(error){}return function setPrototypeOf(O,proto){anObject(O);aPossiblePrototype(proto);if(CORRECT_SETTER)setter.call(O,proto);else O.__proto__=proto;return O}}():undefined)},{"../internals/a-possible-prototype":15,"../internals/an-object":17}],80:[function(require,module,exports){"use strict";var TO_STRING_TAG_SUPPORT=require("../internals/to-string-tag-support");var classof=require("../internals/classof");module.exports=TO_STRING_TAG_SUPPORT?{}.toString:function toString(){return"[object "+classof(this)+"]"}},{"../internals/classof":29,"../internals/to-string-tag-support":101}],81:[function(require,module,exports){var getBuiltIn=require("../internals/get-built-in");var getOwnPropertyNamesModule=require("../internals/object-get-own-property-names");var getOwnPropertySymbolsModule=require("../internals/object-get-own-property-symbols");var anObject=require("../internals/an-object");module.exports=getBuiltIn("Reflect","ownKeys")||function ownKeys(it){var keys=getOwnPropertyNamesModule.f(anObject(it));var getOwnPropertySymbols=getOwnPropertySymbolsModule.f;return getOwnPropertySymbols?keys.concat(getOwnPropertySymbols(it)):keys}},{"../internals/an-object":17,"../internals/get-built-in":48,"../internals/object-get-own-property-names":73,"../internals/object-get-own-property-symbols":74}],82:[function(require,module,exports){var global=require("../internals/global");module.exports=global},{"../internals/global":50}],83:[function(require,module,exports){var global=require("../internals/global");var createNonEnumerableProperty=require("../internals/create-non-enumerable-property");var has=require("../internals/has");var setGlobal=require("../internals/set-global");var inspectSource=require("../internals/inspect-source");var InternalStateModule=require("../internals/internal-state");var getInternalState=InternalStateModule.get;var enforceInternalState=InternalStateModule.enforce;var TEMPLATE=String(String).split("String");(module.exports=function(O,key,value,options){var unsafe=options?!!options.unsafe:false;var simple=options?!!options.enumerable:false;var noTargetGet=options?!!options.noTargetGet:false;if(typeof value=="function"){if(typeof key=="string"&&!has(value,"name"))createNonEnumerableProperty(value,"name",key);enforceInternalState(value).source=TEMPLATE.join(typeof key=="string"?key:"")}if(O===global){if(simple)O[key]=value;else setGlobal(key,value);return}else if(!unsafe){delete O[key]}else if(!noTargetGet&&O[key]){simple=true}if(simple)O[key]=value;else createNonEnumerableProperty(O,key,value)})(Function.prototype,"toString",function toString(){return typeof this=="function"&&getInternalState(this).source||inspectSource(this)})},{"../internals/create-non-enumerable-property":34,"../internals/global":50,"../internals/has":51,"../internals/inspect-source":56,"../internals/internal-state":57,"../internals/set-global":86}],84:[function(require,module,exports){"use strict";var anObject=require("../internals/an-object");module.exports=function(){var that=anObject(this);var result="";if(that.global)result+="g";if(that.ignoreCase)result+="i";if(that.multiline)result+="m";if(that.dotAll)result+="s";if(that.unicode)result+="u";if(that.sticky)result+="y";return result}},{"../internals/an-object":17}],85:[function(require,module,exports){module.exports=function(it){if(it==undefined)throw TypeError("Can't call method on "+it);return it}},{}],86:[function(require,module,exports){var global=require("../internals/global");var createNonEnumerableProperty=require("../internals/create-non-enumerable-property");module.exports=function(key,value){try{createNonEnumerableProperty(global,key,value)}catch(error){global[key]=value}return value}},{"../internals/create-non-enumerable-property":34,"../internals/global":50}],87:[function(require,module,exports){var defineProperty=require("../internals/object-define-property").f;var has=require("../internals/has");var wellKnownSymbol=require("../internals/well-known-symbol");var TO_STRING_TAG=wellKnownSymbol("toStringTag");module.exports=function(it,TAG,STATIC){if(it&&!has(it=STATIC?it:it.prototype,TO_STRING_TAG)){defineProperty(it,TO_STRING_TAG,{configurable:true,value:TAG})}}},{"../internals/has":51,"../internals/object-define-property":70,"../internals/well-known-symbol":105}],88:[function(require,module,exports){var shared=require("../internals/shared");var uid=require("../internals/uid");var keys=shared("keys");module.exports=function(key){return keys[key]||(keys[key]=uid(key))}},{"../internals/shared":90,"../internals/uid":102}],89:[function(require,module,exports){var global=require("../internals/global");var setGlobal=require("../internals/set-global");var SHARED="__core-js_shared__";var store=global[SHARED]||setGlobal(SHARED,{});module.exports=store},{"../internals/global":50,"../internals/set-global":86}],90:[function(require,module,exports){var IS_PURE=require("../internals/is-pure");var store=require("../internals/shared-store");(module.exports=function(key,value){return store[key]||(store[key]=value!==undefined?value:{})})("versions",[]).push({version:"3.6.5",mode:IS_PURE?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},{"../internals/is-pure":62,"../internals/shared-store":89}],91:[function(require,module,exports){var fails=require("../internals/fails");module.exports=function(METHOD_NAME){return fails(function(){var test=""[METHOD_NAME]('"');return test!==test.toLowerCase()||test.split('"').length>3})}},{"../internals/fails":46}],92:[function(require,module,exports){var toInteger=require("../internals/to-integer");var requireObjectCoercible=require("../internals/require-object-coercible");var createMethod=function(CONVERT_TO_STRING){return function($this,pos){var S=String(requireObjectCoercible($this));var position=toInteger(pos);var size=S.length;var first,second;if(position<0||position>=size)return CONVERT_TO_STRING?"":undefined;first=S.charCodeAt(position);return first<55296||first>56319||position+1===size||(second=S.charCodeAt(position+1))<56320||second>57343?CONVERT_TO_STRING?S.charAt(position):first:CONVERT_TO_STRING?S.slice(position,position+2):(first-55296<<10)+(second-56320)+65536}};module.exports={codeAt:createMethod(false),charAt:createMethod(true)}},{"../internals/require-object-coercible":85,"../internals/to-integer":97}],93:[function(require,module,exports){var fails=require("../internals/fails");var whitespaces=require("../internals/whitespaces");var non="​᠎";module.exports=function(METHOD_NAME){return fails(function(){return!!whitespaces[METHOD_NAME]()||non[METHOD_NAME]()!=non||whitespaces[METHOD_NAME].name!==METHOD_NAME})}},{"../internals/fails":46,"../internals/whitespaces":106}],94:[function(require,module,exports){var requireObjectCoercible=require("../internals/require-object-coercible");var whitespaces=require("../internals/whitespaces");var whitespace="["+whitespaces+"]";var ltrim=RegExp("^"+whitespace+whitespace+"*");var rtrim=RegExp(whitespace+whitespace+"*$");var createMethod=function(TYPE){return function($this){var string=String(requireObjectCoercible($this));if(TYPE&1)string=string.replace(ltrim,"");if(TYPE&2)string=string.replace(rtrim,"");return string}};module.exports={start:createMethod(1),end:createMethod(2),trim:createMethod(3)}},{"../internals/require-object-coercible":85,"../internals/whitespaces":106}],95:[function(require,module,exports){var toInteger=require("../internals/to-integer");var max=Math.max;var min=Math.min;module.exports=function(index,length){var integer=toInteger(index);return integer<0?max(integer+length,0):min(integer,length)}},{"../internals/to-integer":97}],96:[function(require,module,exports){var IndexedObject=require("../internals/indexed-object");var requireObjectCoercible=require("../internals/require-object-coercible");module.exports=function(it){return IndexedObject(requireObjectCoercible(it))}},{"../internals/indexed-object":55,"../internals/require-object-coercible":85}],97:[function(require,module,exports){var ceil=Math.ceil;var floor=Math.floor;module.exports=function(argument){return isNaN(argument=+argument)?0:(argument>0?floor:ceil)(argument)}},{}],98:[function(require,module,exports){var toInteger=require("../internals/to-integer");var min=Math.min;module.exports=function(argument){return argument>0?min(toInteger(argument),9007199254740991):0}},{"../internals/to-integer":97}],99:[function(require,module,exports){var requireObjectCoercible=require("../internals/require-object-coercible");module.exports=function(argument){return Object(requireObjectCoercible(argument))}},{"../internals/require-object-coercible":85}],100:[function(require,module,exports){var isObject=require("../internals/is-object");module.exports=function(input,PREFERRED_STRING){if(!isObject(input))return input;var fn,val;if(PREFERRED_STRING&&typeof(fn=input.toString)=="function"&&!isObject(val=fn.call(input)))return val;if(typeof(fn=input.valueOf)=="function"&&!isObject(val=fn.call(input)))return val;if(!PREFERRED_STRING&&typeof(fn=input.toString)=="function"&&!isObject(val=fn.call(input)))return val;throw TypeError("Can't convert object to primitive value")}},{"../internals/is-object":61}],101:[function(require,module,exports){var wellKnownSymbol=require("../internals/well-known-symbol");var TO_STRING_TAG=wellKnownSymbol("toStringTag");var test={};test[TO_STRING_TAG]="z";module.exports=String(test)==="[object z]"},{"../internals/well-known-symbol":105}],102:[function(require,module,exports){var id=0;var postfix=Math.random();module.exports=function(key){return"Symbol("+String(key===undefined?"":key)+")_"+(++id+postfix).toString(36)}},{}],103:[function(require,module,exports){var NATIVE_SYMBOL=require("../internals/native-symbol");module.exports=NATIVE_SYMBOL&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":65}],104:[function(require,module,exports){var wellKnownSymbol=require("../internals/well-known-symbol");exports.f=wellKnownSymbol},{"../internals/well-known-symbol":105}],105:[function(require,module,exports){var global=require("../internals/global");var shared=require("../internals/shared");var has=require("../internals/has");var uid=require("../internals/uid");var NATIVE_SYMBOL=require("../internals/native-symbol");var USE_SYMBOL_AS_UID=require("../internals/use-symbol-as-uid");var WellKnownSymbolsStore=shared("wks");var Symbol=global.Symbol;var createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol:Symbol&&Symbol.withoutSetter||uid;module.exports=function(name){if(!has(WellKnownSymbolsStore,name)){if(NATIVE_SYMBOL&&has(Symbol,name))WellKnownSymbolsStore[name]=Symbol[name];else WellKnownSymbolsStore[name]=createWellKnownSymbol("Symbol."+name)}return WellKnownSymbolsStore[name]}},{"../internals/global":50,"../internals/has":51,"../internals/native-symbol":65,"../internals/shared":90,"../internals/uid":102,"../internals/use-symbol-as-uid":103}],106:[function(require,module,exports){module.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},{}],107:[function(require,module,exports){"use strict";var $=require("../internals/export");var fails=require("../internals/fails");var isArray=require("../internals/is-array");var isObject=require("../internals/is-object");var toObject=require("../internals/to-object");var toLength=require("../internals/to-length");var createProperty=require("../internals/create-property");var arraySpeciesCreate=require("../internals/array-species-create");var arrayMethodHasSpeciesSupport=require("../internals/array-method-has-species-support");var wellKnownSymbol=require("../internals/well-known-symbol");var V8_VERSION=require("../internals/engine-v8-version");var IS_CONCAT_SPREADABLE=wellKnownSymbol("isConcatSpreadable");var MAX_SAFE_INTEGER=9007199254740991;var MAXIMUM_ALLOWED_INDEX_EXCEEDED="Maximum allowed index exceeded";var IS_CONCAT_SPREADABLE_SUPPORT=V8_VERSION>=51||!fails(function(){var array=[];array[IS_CONCAT_SPREADABLE]=false;return array.concat()[0]!==array});var SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("concat");var isConcatSpreadable=function(O){if(!isObject(O))return false;var spreadable=O[IS_CONCAT_SPREADABLE];return spreadable!==undefined?!!spreadable:isArray(O)};var FORCED=!IS_CONCAT_SPREADABLE_SUPPORT||!SPECIES_SUPPORT;$({target:"Array",proto:true,forced:FORCED},{concat:function concat(arg){var O=toObject(this);var A=arraySpeciesCreate(O,0);var n=0;var i,k,length,len,E;for(i=-1,length=arguments.length;i<length;i++){E=i===-1?O:arguments[i];if(isConcatSpreadable(E)){len=toLength(E.length);if(n+len>MAX_SAFE_INTEGER)throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);for(k=0;k<len;k++,n++)if(k in E)createProperty(A,n,E[k])}else{if(n>=MAX_SAFE_INTEGER)throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);createProperty(A,n++,E)}}A.length=n;return A}})},{"../internals/array-method-has-species-support":22,"../internals/array-species-create":25,"../internals/create-property":36,"../internals/engine-v8-version":43,"../internals/export":45,"../internals/fails":46,"../internals/is-array":59,"../internals/is-object":61,"../internals/to-length":98,"../internals/to-object":99,"../internals/well-known-symbol":105}],108:[function(require,module,exports){"use strict";var $=require("../internals/export");var $filter=require("../internals/array-iteration").filter;var arrayMethodHasSpeciesSupport=require("../internals/array-method-has-species-support");var arrayMethodUsesToLength=require("../internals/array-method-uses-to-length");var HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("filter");var USES_TO_LENGTH=arrayMethodUsesToLength("filter");$({target:"Array",proto:true,forced:!HAS_SPECIES_SUPPORT||!USES_TO_LENGTH},{filter:function filter(callbackfn){return $filter(this,callbackfn,arguments.length>1?arguments[1]:undefined)}})},{"../internals/array-iteration":21,"../internals/array-method-has-species-support":22,"../internals/array-method-uses-to-length":24,"../internals/export":45}],109:[function(require,module,exports){"use strict";var $=require("../internals/export");var forEach=require("../internals/array-for-each");$({target:"Array",proto:true,forced:[].forEach!=forEach},{forEach:forEach})},{"../internals/array-for-each":18,"../internals/export":45}],110:[function(require,module,exports){var $=require("../internals/export");var from=require("../internals/array-from");var checkCorrectnessOfIteration=require("../internals/check-correctness-of-iteration");var INCORRECT_ITERATION=!checkCorrectnessOfIteration(function(iterable){Array.from(iterable)});$({target:"Array",stat:true,forced:INCORRECT_ITERATION},{from:from})},{"../internals/array-from":19,"../internals/check-correctness-of-iteration":27,"../internals/export":45}],111:[function(require,module,exports){"use strict";var $=require("../internals/export");var $indexOf=require("../internals/array-includes").indexOf;var arrayMethodIsStrict=require("../internals/array-method-is-strict");var arrayMethodUsesToLength=require("../internals/array-method-uses-to-length");var nativeIndexOf=[].indexOf;var NEGATIVE_ZERO=!!nativeIndexOf&&1/[1].indexOf(1,-0)<0;var STRICT_METHOD=arrayMethodIsStrict("indexOf");var USES_TO_LENGTH=arrayMethodUsesToLength("indexOf",{ACCESSORS:true,1:0});$({target:"Array",proto:true,forced:NEGATIVE_ZERO||!STRICT_METHOD||!USES_TO_LENGTH},{indexOf:function indexOf(searchElement){return NEGATIVE_ZERO?nativeIndexOf.apply(this,arguments)||0:$indexOf(this,searchElement,arguments.length>1?arguments[1]:undefined)}})},{"../internals/array-includes":20,"../internals/array-method-is-strict":23,"../internals/array-method-uses-to-length":24,"../internals/export":45}],112:[function(require,module,exports){var $=require("../internals/export");var isArray=require("../internals/is-array");$({target:"Array",stat:true},{isArray:isArray})},{"../internals/export":45,"../internals/is-array":59}],113:[function(require,module,exports){"use strict";var toIndexedObject=require("../internals/to-indexed-object");var addToUnscopables=require("../internals/add-to-unscopables");var Iterators=require("../internals/iterators");var InternalStateModule=require("../internals/internal-state");var defineIterator=require("../internals/define-iterator");var ARRAY_ITERATOR="Array Iterator";var setInternalState=InternalStateModule.set;var getInternalState=InternalStateModule.getterFor(ARRAY_ITERATOR);module.exports=defineIterator(Array,"Array",function(iterated,kind){setInternalState(this,{type:ARRAY_ITERATOR,target:toIndexedObject(iterated),index:0,kind:kind})},function(){var state=getInternalState(this);var target=state.target;var kind=state.kind;var index=state.index++;if(!target||index>=target.length){state.target=undefined;return{value:undefined,done:true}}if(kind=="keys")return{value:index,done:false};if(kind=="values")return{value:target[index],done:false};return{value:[index,target[index]],done:false}},"values");Iterators.Arguments=Iterators.Array;addToUnscopables("keys");addToUnscopables("values");addToUnscopables("entries")},{"../internals/add-to-unscopables":16,"../internals/define-iterator":37,"../internals/internal-state":57,"../internals/iterators":64,"../internals/to-indexed-object":96}],114:[function(require,module,exports){"use strict";var $=require("../internals/export");var $map=require("../internals/array-iteration").map;var arrayMethodHasSpeciesSupport=require("../internals/array-method-has-species-support");var arrayMethodUsesToLength=require("../internals/array-method-uses-to-length");var HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("map");var USES_TO_LENGTH=arrayMethodUsesToLength("map");$({target:"Array",proto:true,forced:!HAS_SPECIES_SUPPORT||!USES_TO_LENGTH},{map:function map(callbackfn){return $map(this,callbackfn,arguments.length>1?arguments[1]:undefined)}})},{"../internals/array-iteration":21,"../internals/array-method-has-species-support":22,"../internals/array-method-uses-to-length":24,"../internals/export":45}],115:[function(require,module,exports){"use strict";var $=require("../internals/export");var isArray=require("../internals/is-array");var nativeReverse=[].reverse;var test=[1,2];$({target:"Array",proto:true,forced:String(test)===String(test.reverse())},{reverse:function reverse(){if(isArray(this))this.length=this.length;return nativeReverse.call(this)}})},{"../internals/export":45,"../internals/is-array":59}],116:[function(require,module,exports){"use strict";var $=require("../internals/export");var isObject=require("../internals/is-object");var isArray=require("../internals/is-array");var toAbsoluteIndex=require("../internals/to-absolute-index");var toLength=require("../internals/to-length");var toIndexedObject=require("../internals/to-indexed-object");var createProperty=require("../internals/create-property");var wellKnownSymbol=require("../internals/well-known-symbol");var arrayMethodHasSpeciesSupport=require("../internals/array-method-has-species-support");var arrayMethodUsesToLength=require("../internals/array-method-uses-to-length");var HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("slice");var USES_TO_LENGTH=arrayMethodUsesToLength("slice",{ACCESSORS:true,0:0,1:2});var SPECIES=wellKnownSymbol("species");var nativeSlice=[].slice;var max=Math.max;$({target:"Array",proto:true,forced:!HAS_SPECIES_SUPPORT||!USES_TO_LENGTH},{slice:function slice(start,end){var O=toIndexedObject(this);var length=toLength(O.length);var k=toAbsoluteIndex(start,length);var fin=toAbsoluteIndex(end===undefined?length:end,length);var Constructor,result,n;if(isArray(O)){Constructor=O.constructor;if(typeof Constructor=="function"&&(Constructor===Array||isArray(Constructor.prototype))){Constructor=undefined}else if(isObject(Constructor)){Constructor=Constructor[SPECIES];if(Constructor===null)Constructor=undefined}if(Constructor===Array||Constructor===undefined){return nativeSlice.call(O,k,fin)}}result=new(Constructor===undefined?Array:Constructor)(max(fin-k,0));for(n=0;k<fin;k++,n++)if(k in O)createProperty(result,n,O[k]);result.length=n;return result}})},{"../internals/array-method-has-species-support":22,"../internals/array-method-uses-to-length":24,"../internals/create-property":36,"../internals/export":45,"../internals/is-array":59,"../internals/is-object":61,"../internals/to-absolute-index":95,"../internals/to-indexed-object":96,"../internals/to-length":98,"../internals/well-known-symbol":105}],117:[function(require,module,exports){"use strict";var $=require("../internals/export");var $some=require("../internals/array-iteration").some;var arrayMethodIsStrict=require("../internals/array-method-is-strict");var arrayMethodUsesToLength=require("../internals/array-method-uses-to-length");var STRICT_METHOD=arrayMethodIsStrict("some");var USES_TO_LENGTH=arrayMethodUsesToLength("some");$({target:"Array",proto:true,forced:!STRICT_METHOD||!USES_TO_LENGTH},{some:function some(callbackfn){return $some(this,callbackfn,arguments.length>1?arguments[1]:undefined)}})},{"../internals/array-iteration":21,"../internals/array-method-is-strict":23,"../internals/array-method-uses-to-length":24,"../internals/export":45}],118:[function(require,module,exports){"use strict";var $=require("../internals/export");var toAbsoluteIndex=require("../internals/to-absolute-index");var toInteger=require("../internals/to-integer");var toLength=require("../internals/to-length");var toObject=require("../internals/to-object");var arraySpeciesCreate=require("../internals/array-species-create");var createProperty=require("../internals/create-property");var arrayMethodHasSpeciesSupport=require("../internals/array-method-has-species-support");var arrayMethodUsesToLength=require("../internals/array-method-uses-to-length");var HAS_SPECIES_SUPPORT=arrayMethodHasSpeciesSupport("splice");var USES_TO_LENGTH=arrayMethodUsesToLength("splice",{ACCESSORS:true,0:0,1:2});var max=Math.max;var min=Math.min;var MAX_SAFE_INTEGER=9007199254740991;var MAXIMUM_ALLOWED_LENGTH_EXCEEDED="Maximum allowed length exceeded";$({target:"Array",proto:true,forced:!HAS_SPECIES_SUPPORT||!USES_TO_LENGTH},{splice:function splice(start,deleteCount){var O=toObject(this);var len=toLength(O.length);var actualStart=toAbsoluteIndex(start,len);var argumentsLength=arguments.length;var insertCount,actualDeleteCount,A,k,from,to;if(argumentsLength===0){insertCount=actualDeleteCount=0}else if(argumentsLength===1){insertCount=0;actualDeleteCount=len-actualStart}else{insertCount=argumentsLength-2;actualDeleteCount=min(max(toInteger(deleteCount),0),len-actualStart)}if(len+insertCount-actualDeleteCount>MAX_SAFE_INTEGER){throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED)}A=arraySpeciesCreate(O,actualDeleteCount);for(k=0;k<actualDeleteCount;k++){from=actualStart+k;if(from in O)createProperty(A,k,O[from])}A.length=actualDeleteCount;if(insertCount<actualDeleteCount){for(k=actualStart;k<len-actualDeleteCount;k++){from=k+actualDeleteCount;to=k+insertCount;if(from in O)O[to]=O[from];else delete O[to]}for(k=len;k>len-actualDeleteCount+insertCount;k--)delete O[k-1]}else if(insertCount>actualDeleteCount){for(k=len-actualDeleteCount;k>actualStart;k--){from=k+actualDeleteCount-1;to=k+insertCount-1;if(from in O)O[to]=O[from];else delete O[to]}}for(k=0;k<insertCount;k++){O[k+actualStart]=arguments[k+2]}O.length=len-actualDeleteCount+insertCount;return A}})},{"../internals/array-method-has-species-support":22,"../internals/array-method-uses-to-length":24,"../internals/array-species-create":25,"../internals/create-property":36,"../internals/export":45,"../internals/to-absolute-index":95,"../internals/to-integer":97,"../internals/to-length":98,"../internals/to-object":99}],119:[function(require,module,exports){var redefine=require("../internals/redefine");var DatePrototype=Date.prototype;var INVALID_DATE="Invalid Date";var TO_STRING="toString";var nativeDateToString=DatePrototype[TO_STRING];var getTime=DatePrototype.getTime;if(new Date(NaN)+""!=INVALID_DATE){redefine(DatePrototype,TO_STRING,function toString(){var value=getTime.call(this);return value===value?nativeDateToString.call(this):INVALID_DATE})}},{"../internals/redefine":83}],120:[function(require,module,exports){var DESCRIPTORS=require("../internals/descriptors");var defineProperty=require("../internals/object-define-property").f;var FunctionPrototype=Function.prototype;var FunctionPrototypeToString=FunctionPrototype.toString;var nameRE=/^\s*function ([^ (]*)/;var NAME="name";if(DESCRIPTORS&&!(NAME in FunctionPrototype)){defineProperty(FunctionPrototype,NAME,{configurable:true,get:function(){try{return FunctionPrototypeToString.call(this).match(nameRE)[1]}catch(error){return""}}})}},{"../internals/descriptors":39,"../internals/object-define-property":70}],121:[function(require,module,exports){var $=require("../internals/export");var DESCRIPTORS=require("../internals/descriptors");var create=require("../internals/object-create");$({target:"Object",stat:true,sham:!DESCRIPTORS},{create:create})},{"../internals/descriptors":39,"../internals/export":45,"../internals/object-create":68}],122:[function(require,module,exports){var $=require("../internals/export");var DESCRIPTORS=require("../internals/descriptors");var objectDefinePropertyModile=require("../internals/object-define-property");$({target:"Object",stat:true,forced:!DESCRIPTORS,sham:!DESCRIPTORS},{defineProperty:objectDefinePropertyModile.f})},{"../internals/descriptors":39,"../internals/export":45,"../internals/object-define-property":70}],123:[function(require,module,exports){var $=require("../internals/export");var fails=require("../internals/fails");var toObject=require("../internals/to-object");var nativeGetPrototypeOf=require("../internals/object-get-prototype-of");var CORRECT_PROTOTYPE_GETTER=require("../internals/correct-prototype-getter");var FAILS_ON_PRIMITIVES=fails(function(){nativeGetPrototypeOf(1)});$({target:"Object",stat:true,forced:FAILS_ON_PRIMITIVES,sham:!CORRECT_PROTOTYPE_GETTER},{getPrototypeOf:function getPrototypeOf(it){return nativeGetPrototypeOf(toObject(it))}})},{"../internals/correct-prototype-getter":31,"../internals/export":45,"../internals/fails":46,"../internals/object-get-prototype-of":75,"../internals/to-object":99}],124:[function(require,module,exports){var $=require("../internals/export");var setPrototypeOf=require("../internals/object-set-prototype-of");$({target:"Object",stat:true},{setPrototypeOf:setPrototypeOf})},{"../internals/export":45,"../internals/object-set-prototype-of":79}],125:[function(require,module,exports){var TO_STRING_TAG_SUPPORT=require("../internals/to-string-tag-support");var redefine=require("../internals/redefine");var toString=require("../internals/object-to-string");if(!TO_STRING_TAG_SUPPORT){redefine(Object.prototype,"toString",toString,{unsafe:true})}},{"../internals/object-to-string":80,"../internals/redefine":83,"../internals/to-string-tag-support":101}],126:[function(require,module,exports){var $=require("../internals/export");var parseIntImplementation=require("../internals/number-parse-int");$({global:true,forced:parseInt!=parseIntImplementation},{parseInt:parseIntImplementation})},{"../internals/export":45,"../internals/number-parse-int":67}],127:[function(require,module,exports){"use strict";var redefine=require("../internals/redefine");var anObject=require("../internals/an-object");var fails=require("../internals/fails");var flags=require("../internals/regexp-flags");var TO_STRING="toString";var RegExpPrototype=RegExp.prototype;var nativeToString=RegExpPrototype[TO_STRING];var NOT_GENERIC=fails(function(){return nativeToString.call({source:"a",flags:"b"})!="/a/b"});var INCORRECT_NAME=nativeToString.name!=TO_STRING;if(NOT_GENERIC||INCORRECT_NAME){redefine(RegExp.prototype,TO_STRING,function toString(){var R=anObject(this);var p=String(R.source);var rf=R.flags;var f=String(rf===undefined&&R instanceof RegExp&&!("flags"in RegExpPrototype)?flags.call(R):rf);return"/"+p+"/"+f},{unsafe:true})}},{"../internals/an-object":17,"../internals/fails":46,"../internals/redefine":83,"../internals/regexp-flags":84}],128:[function(require,module,exports){"use strict";var charAt=require("../internals/string-multibyte").charAt;var InternalStateModule=require("../internals/internal-state");var defineIterator=require("../internals/define-iterator");var STRING_ITERATOR="String Iterator";var setInternalState=InternalStateModule.set;var getInternalState=InternalStateModule.getterFor(STRING_ITERATOR);defineIterator(String,"String",function(iterated){setInternalState(this,{type:STRING_ITERATOR,string:String(iterated),index:0})},function next(){var state=getInternalState(this);var string=state.string;var index=state.index;var point;if(index>=string.length)return{value:undefined,done:true};point=charAt(string,index);state.index+=point.length;return{value:point,done:false}})},{"../internals/define-iterator":37,"../internals/internal-state":57,"../internals/string-multibyte":92}],129:[function(require,module,exports){"use strict";var $=require("../internals/export");var createHTML=require("../internals/create-html");var forcedStringHTMLMethod=require("../internals/string-html-forced");$({target:"String",proto:true,forced:forcedStringHTMLMethod("link")},{link:function link(url){return createHTML(this,"a","href",url)}})},{"../internals/create-html":32,"../internals/export":45,"../internals/string-html-forced":91}],130:[function(require,module,exports){"use strict";var $=require("../internals/export");var $trim=require("../internals/string-trim").trim;var forcedStringTrimMethod=require("../internals/string-trim-forced");$({target:"String",proto:true,forced:forcedStringTrimMethod("trim")},{trim:function trim(){return $trim(this)}})},{"../internals/export":45,"../internals/string-trim":94,"../internals/string-trim-forced":93}],131:[function(require,module,exports){"use strict";var $=require("../internals/export");var DESCRIPTORS=require("../internals/descriptors");var global=require("../internals/global");var has=require("../internals/has");var isObject=require("../internals/is-object");var defineProperty=require("../internals/object-define-property").f;var copyConstructorProperties=require("../internals/copy-constructor-properties");var NativeSymbol=global.Symbol;if(DESCRIPTORS&&typeof NativeSymbol=="function"&&(!("description"in NativeSymbol.prototype)||NativeSymbol().description!==undefined)){var EmptyStringDescriptionStore={};var SymbolWrapper=function Symbol(){var description=arguments.length<1||arguments[0]===undefined?undefined:String(arguments[0]);var result=this instanceof SymbolWrapper?new NativeSymbol(description):description===undefined?NativeSymbol():NativeSymbol(description);if(description==="")EmptyStringDescriptionStore[result]=true;return result};copyConstructorProperties(SymbolWrapper,NativeSymbol);var symbolPrototype=SymbolWrapper.prototype=NativeSymbol.prototype;symbolPrototype.constructor=SymbolWrapper;var symbolToString=symbolPrototype.toString;var native=String(NativeSymbol("test"))=="Symbol(test)";var regexp=/^Symbol\((.*)\)[^)]+$/;defineProperty(symbolPrototype,"description",{configurable:true,get:function description(){var symbol=isObject(this)?this.valueOf():this;var string=symbolToString.call(symbol);if(has(EmptyStringDescriptionStore,symbol))return"";var desc=native?string.slice(7,-1):string.replace(regexp,"$1");return desc===""?undefined:desc}});$({global:true,forced:true},{Symbol:SymbolWrapper})}},{"../internals/copy-constructor-properties":30,"../internals/descriptors":39,"../internals/export":45,"../internals/global":50,"../internals/has":51,"../internals/is-object":61,"../internals/object-define-property":70}],132:[function(require,module,exports){var defineWellKnownSymbol=require("../internals/define-well-known-symbol");defineWellKnownSymbol("iterator")},{"../internals/define-well-known-symbol":38}],133:[function(require,module,exports){"use strict";var $=require("../internals/export");var global=require("../internals/global");var getBuiltIn=require("../internals/get-built-in");var IS_PURE=require("../internals/is-pure");var DESCRIPTORS=require("../internals/descriptors");var NATIVE_SYMBOL=require("../internals/native-symbol");var USE_SYMBOL_AS_UID=require("../internals/use-symbol-as-uid");var fails=require("../internals/fails");var has=require("../internals/has");var isArray=require("../internals/is-array");var isObject=require("../internals/is-object");var anObject=require("../internals/an-object");var toObject=require("../internals/to-object");var toIndexedObject=require("../internals/to-indexed-object");var toPrimitive=require("../internals/to-primitive");var createPropertyDescriptor=require("../internals/create-property-descriptor");var nativeObjectCreate=require("../internals/object-create");var objectKeys=require("../internals/object-keys");var getOwnPropertyNamesModule=require("../internals/object-get-own-property-names");var getOwnPropertyNamesExternal=require("../internals/object-get-own-property-names-external");var getOwnPropertySymbolsModule=require("../internals/object-get-own-property-symbols");var getOwnPropertyDescriptorModule=require("../internals/object-get-own-property-descriptor");var definePropertyModule=require("../internals/object-define-property");var propertyIsEnumerableModule=require("../internals/object-property-is-enumerable");var createNonEnumerableProperty=require("../internals/create-non-enumerable-property");var redefine=require("../internals/redefine");var shared=require("../internals/shared");var sharedKey=require("../internals/shared-key");var hiddenKeys=require("../internals/hidden-keys");var uid=require("../internals/uid");var wellKnownSymbol=require("../internals/well-known-symbol");var wrappedWellKnownSymbolModule=require("../internals/well-known-symbol-wrapped");var defineWellKnownSymbol=require("../internals/define-well-known-symbol");var setToStringTag=require("../internals/set-to-string-tag");var InternalStateModule=require("../internals/internal-state");var $forEach=require("../internals/array-iteration").forEach;var HIDDEN=sharedKey("hidden");var SYMBOL="Symbol";var PROTOTYPE="prototype";var TO_PRIMITIVE=wellKnownSymbol("toPrimitive");var setInternalState=InternalStateModule.set;var getInternalState=InternalStateModule.getterFor(SYMBOL);var ObjectPrototype=Object[PROTOTYPE];var $Symbol=global.Symbol;var $stringify=getBuiltIn("JSON","stringify");var nativeGetOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f;var nativeDefineProperty=definePropertyModule.f;var nativeGetOwnPropertyNames=getOwnPropertyNamesExternal.f;var nativePropertyIsEnumerable=propertyIsEnumerableModule.f;var AllSymbols=shared("symbols");var ObjectPrototypeSymbols=shared("op-symbols");var StringToSymbolRegistry=shared("string-to-symbol-registry");var SymbolToStringRegistry=shared("symbol-to-string-registry");var WellKnownSymbolsStore=shared("wks");var QObject=global.QObject;var USE_SETTER=!QObject||!QObject[PROTOTYPE]||!QObject[PROTOTYPE].findChild;var setSymbolDescriptor=DESCRIPTORS&&fails(function(){return nativeObjectCreate(nativeDefineProperty({},"a",{get:function(){return nativeDefineProperty(this,"a",{value:7}).a}})).a!=7})?function(O,P,Attributes){var ObjectPrototypeDescriptor=nativeGetOwnPropertyDescriptor(ObjectPrototype,P);if(ObjectPrototypeDescriptor)delete ObjectPrototype[P];nativeDefineProperty(O,P,Attributes);if(ObjectPrototypeDescriptor&&O!==ObjectPrototype){nativeDefineProperty(ObjectPrototype,P,ObjectPrototypeDescriptor)}}:nativeDefineProperty;var wrap=function(tag,description){var symbol=AllSymbols[tag]=nativeObjectCreate($Symbol[PROTOTYPE]);setInternalState(symbol,{type:SYMBOL,tag:tag,description:description});if(!DESCRIPTORS)symbol.description=description;return symbol};var isSymbol=USE_SYMBOL_AS_UID?function(it){return typeof it=="symbol"}:function(it){return Object(it)instanceof $Symbol};var $defineProperty=function defineProperty(O,P,Attributes){if(O===ObjectPrototype)$defineProperty(ObjectPrototypeSymbols,P,Attributes);anObject(O);var key=toPrimitive(P,true);anObject(Attributes);if(has(AllSymbols,key)){if(!Attributes.enumerable){if(!has(O,HIDDEN))nativeDefineProperty(O,HIDDEN,createPropertyDescriptor(1,{}));O[HIDDEN][key]=true}else{if(has(O,HIDDEN)&&O[HIDDEN][key])O[HIDDEN][key]=false;Attributes=nativeObjectCreate(Attributes,{enumerable:createPropertyDescriptor(0,false)})}return setSymbolDescriptor(O,key,Attributes)}return nativeDefineProperty(O,key,Attributes)};var $defineProperties=function defineProperties(O,Properties){anObject(O);var properties=toIndexedObject(Properties);var keys=objectKeys(properties).concat($getOwnPropertySymbols(properties));$forEach(keys,function(key){if(!DESCRIPTORS||$propertyIsEnumerable.call(properties,key))$defineProperty(O,key,properties[key])});return O};var $create=function create(O,Properties){return Properties===undefined?nativeObjectCreate(O):$defineProperties(nativeObjectCreate(O),Properties)};var $propertyIsEnumerable=function propertyIsEnumerable(V){var P=toPrimitive(V,true);var enumerable=nativePropertyIsEnumerable.call(this,P);if(this===ObjectPrototype&&has(AllSymbols,P)&&!has(ObjectPrototypeSymbols,P))return false;return enumerable||!has(this,P)||!has(AllSymbols,P)||has(this,HIDDEN)&&this[HIDDEN][P]?enumerable:true};var $getOwnPropertyDescriptor=function getOwnPropertyDescriptor(O,P){var it=toIndexedObject(O);var key=toPrimitive(P,true);if(it===ObjectPrototype&&has(AllSymbols,key)&&!has(ObjectPrototypeSymbols,key))return;var descriptor=nativeGetOwnPropertyDescriptor(it,key);if(descriptor&&has(AllSymbols,key)&&!(has(it,HIDDEN)&&it[HIDDEN][key])){descriptor.enumerable=true}return descriptor};var $getOwnPropertyNames=function getOwnPropertyNames(O){var names=nativeGetOwnPropertyNames(toIndexedObject(O));var result=[];$forEach(names,function(key){if(!has(AllSymbols,key)&&!has(hiddenKeys,key))result.push(key)});return result};var $getOwnPropertySymbols=function getOwnPropertySymbols(O){var IS_OBJECT_PROTOTYPE=O===ObjectPrototype;var names=nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE?ObjectPrototypeSymbols:toIndexedObject(O));var result=[];$forEach(names,function(key){if(has(AllSymbols,key)&&(!IS_OBJECT_PROTOTYPE||has(ObjectPrototype,key))){result.push(AllSymbols[key])}});return result};if(!NATIVE_SYMBOL){$Symbol=function Symbol(){if(this instanceof $Symbol)throw TypeError("Symbol is not a constructor");var description=!arguments.length||arguments[0]===undefined?undefined:String(arguments[0]);var tag=uid(description);var setter=function(value){if(this===ObjectPrototype)setter.call(ObjectPrototypeSymbols,value);if(has(this,HIDDEN)&&has(this[HIDDEN],tag))this[HIDDEN][tag]=false;setSymbolDescriptor(this,tag,createPropertyDescriptor(1,value))};if(DESCRIPTORS&&USE_SETTER)setSymbolDescriptor(ObjectPrototype,tag,{configurable:true,set:setter});return wrap(tag,description)};redefine($Symbol[PROTOTYPE],"toString",function toString(){return getInternalState(this).tag});redefine($Symbol,"withoutSetter",function(description){return wrap(uid(description),description)});propertyIsEnumerableModule.f=$propertyIsEnumerable;definePropertyModule.f=$defineProperty;getOwnPropertyDescriptorModule.f=$getOwnPropertyDescriptor;getOwnPropertyNamesModule.f=getOwnPropertyNamesExternal.f=$getOwnPropertyNames;getOwnPropertySymbolsModule.f=$getOwnPropertySymbols;wrappedWellKnownSymbolModule.f=function(name){return wrap(wellKnownSymbol(name),name)};if(DESCRIPTORS){nativeDefineProperty($Symbol[PROTOTYPE],"description",{configurable:true,get:function description(){return getInternalState(this).description}});if(!IS_PURE){redefine(ObjectPrototype,"propertyIsEnumerable",$propertyIsEnumerable,{unsafe:true})}}}$({global:true,wrap:true,forced:!NATIVE_SYMBOL,sham:!NATIVE_SYMBOL},{Symbol:$Symbol});$forEach(objectKeys(WellKnownSymbolsStore),function(name){defineWellKnownSymbol(name)});$({target:SYMBOL,stat:true,forced:!NATIVE_SYMBOL},{for:function(key){var string=String(key);if(has(StringToSymbolRegistry,string))return StringToSymbolRegistry[string];var symbol=$Symbol(string);StringToSymbolRegistry[string]=symbol;SymbolToStringRegistry[symbol]=string;return symbol},keyFor:function keyFor(sym){if(!isSymbol(sym))throw TypeError(sym+" is not a symbol");if(has(SymbolToStringRegistry,sym))return SymbolToStringRegistry[sym]},useSetter:function(){USE_SETTER=true},useSimple:function(){USE_SETTER=false}});$({target:"Object",stat:true,forced:!NATIVE_SYMBOL,sham:!DESCRIPTORS},{create:$create,defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor});$({target:"Object",stat:true,forced:!NATIVE_SYMBOL},{getOwnPropertyNames:$getOwnPropertyNames,getOwnPropertySymbols:$getOwnPropertySymbols});$({target:"Object",stat:true,forced:fails(function(){getOwnPropertySymbolsModule.f(1)})},{getOwnPropertySymbols:function getOwnPropertySymbols(it){return getOwnPropertySymbolsModule.f(toObject(it))}});if($stringify){var FORCED_JSON_STRINGIFY=!NATIVE_SYMBOL||fails(function(){var symbol=$Symbol();return $stringify([symbol])!="[null]"||$stringify({a:symbol})!="{}"||$stringify(Object(symbol))!="{}"});$({target:"JSON",stat:true,forced:FORCED_JSON_STRINGIFY},{stringify:function stringify(it,replacer,space){var args=[it];var index=1;var $replacer;while(arguments.length>index)args.push(arguments[index++]);$replacer=replacer;if(!isObject(replacer)&&it===undefined||isSymbol(it))return;if(!isArray(replacer))replacer=function(key,value){if(typeof $replacer=="function")value=$replacer.call(this,key,value);if(!isSymbol(value))return value};args[1]=replacer;return $stringify.apply(null,args)}})}if(!$Symbol[PROTOTYPE][TO_PRIMITIVE]){createNonEnumerableProperty($Symbol[PROTOTYPE],TO_PRIMITIVE,$Symbol[PROTOTYPE].valueOf)}setToStringTag($Symbol,SYMBOL);hiddenKeys[HIDDEN]=true},{"../internals/an-object":17,"../internals/array-iteration":21,"../internals/create-non-enumerable-property":34,"../internals/create-property-descriptor":35,"../internals/define-well-known-symbol":38,"../internals/descriptors":39,"../internals/export":45,"../internals/fails":46,"../internals/get-built-in":48,"../internals/global":50,"../internals/has":51,"../internals/hidden-keys":52,"../internals/internal-state":57,"../internals/is-array":59,"../internals/is-object":61,"../internals/is-pure":62,"../internals/native-symbol":65,"../internals/object-create":68,"../internals/object-define-property":70,"../internals/object-get-own-property-descriptor":71,"../internals/object-get-own-property-names":73,"../internals/object-get-own-property-names-external":72,"../internals/object-get-own-property-symbols":74,"../internals/object-keys":77,"../internals/object-property-is-enumerable":78,"../internals/redefine":83,"../internals/set-to-string-tag":87,"../internals/shared":90,"../internals/shared-key":88,"../internals/to-indexed-object":96,"../internals/to-object":99,"../internals/to-primitive":100,"../internals/uid":102,"../internals/use-symbol-as-uid":103,"../internals/well-known-symbol":105,"../internals/well-known-symbol-wrapped":104}],134:[function(require,module,exports){var global=require("../internals/global");var DOMIterables=require("../internals/dom-iterables");var forEach=require("../internals/array-for-each");var createNonEnumerableProperty=require("../internals/create-non-enumerable-property");for(var COLLECTION_NAME in DOMIterables){var Collection=global[COLLECTION_NAME];var CollectionPrototype=Collection&&Collection.prototype;if(CollectionPrototype&&CollectionPrototype.forEach!==forEach)try{createNonEnumerableProperty(CollectionPrototype,"forEach",forEach)}catch(error){CollectionPrototype.forEach=forEach}}},{"../internals/array-for-each":18,"../internals/create-non-enumerable-property":34,"../internals/dom-iterables":41,"../internals/global":50}],135:[function(require,module,exports){var global=require("../internals/global");var DOMIterables=require("../internals/dom-iterables");var ArrayIteratorMethods=require("../modules/es.array.iterator");var createNonEnumerableProperty=require("../internals/create-non-enumerable-property");var wellKnownSymbol=require("../internals/well-known-symbol");var ITERATOR=wellKnownSymbol("iterator");var TO_STRING_TAG=wellKnownSymbol("toStringTag");var ArrayValues=ArrayIteratorMethods.values;for(var COLLECTION_NAME in DOMIterables){var Collection=global[COLLECTION_NAME];var CollectionPrototype=Collection&&Collection.prototype;if(CollectionPrototype){if(CollectionPrototype[ITERATOR]!==ArrayValues)try{createNonEnumerableProperty(CollectionPrototype,ITERATOR,ArrayValues)}catch(error){CollectionPrototype[ITERATOR]=ArrayValues}if(!CollectionPrototype[TO_STRING_TAG]){createNonEnumerableProperty(CollectionPrototype,TO_STRING_TAG,COLLECTION_NAME)}if(DOMIterables[COLLECTION_NAME])for(var METHOD_NAME in ArrayIteratorMethods){if(CollectionPrototype[METHOD_NAME]!==ArrayIteratorMethods[METHOD_NAME])try{createNonEnumerableProperty(CollectionPrototype,METHOD_NAME,ArrayIteratorMethods[METHOD_NAME])}catch(error){CollectionPrototype[METHOD_NAME]=ArrayIteratorMethods[METHOD_NAME]}}}}},{"../internals/create-non-enumerable-property":34,"../internals/dom-iterables":41,"../internals/global":50,"../internals/well-known-symbol":105,"../modules/es.array.iterator":113}],136:[function(require,module,exports){var $=require("../internals/export");var global=require("../internals/global");var userAgent=require("../internals/engine-user-agent");var slice=[].slice;var MSIE=/MSIE .\./.test(userAgent);var wrap=function(scheduler){return function(handler,timeout){var boundArgs=arguments.length>2;var args=boundArgs?slice.call(arguments,2):undefined;return scheduler(boundArgs?function(){(typeof handler=="function"?handler:Function(handler)).apply(this,args)}:handler,timeout)}};$({global:true,bind:true,forced:MSIE},{setTimeout:wrap(global.setTimeout),setInterval:wrap(global.setInterval)})},{"../internals/engine-user-agent":42,"../internals/export":45,"../internals/global":50}],137:[function(require,module,exports){var objectCreate=Object.create||objectCreatePolyfill;var objectKeys=Object.keys||objectKeysPolyfill;var bind=Function.prototype.bind||functionBindPolyfill;function EventEmitter(){if(!this._events||!Object.prototype.hasOwnProperty.call(this,"_events")){this._events=objectCreate(null);this._eventsCount=0}this._maxListeners=this._maxListeners||undefined}module.exports=EventEmitter;EventEmitter.EventEmitter=EventEmitter;EventEmitter.prototype._events=undefined;EventEmitter.prototype._maxListeners=undefined;var defaultMaxListeners=10;var hasDefineProperty;try{var o={};if(Object.defineProperty)Object.defineProperty(o,"x",{value:0});hasDefineProperty=o.x===0}catch(err){hasDefineProperty=false}if(hasDefineProperty){Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:true,get:function(){return defaultMaxListeners},set:function(arg){if(typeof arg!=="number"||arg<0||arg!==arg)throw new TypeError('"defaultMaxListeners" must be a positive number');defaultMaxListeners=arg}})}else{EventEmitter.defaultMaxListeners=defaultMaxListeners}EventEmitter.prototype.setMaxListeners=function setMaxListeners(n){if(typeof n!=="number"||n<0||isNaN(n))throw new TypeError('"n" argument must be a positive number');this._maxListeners=n;return this};function $getMaxListeners(that){if(that._maxListeners===undefined)return EventEmitter.defaultMaxListeners;return that._maxListeners}EventEmitter.prototype.getMaxListeners=function getMaxListeners(){return $getMaxListeners(this)};function emitNone(handler,isFn,self){if(isFn)handler.call(self);else{var len=handler.length;var listeners=arrayClone(handler,len);for(var i=0;i<len;++i)listeners[i].call(self)}}function emitOne(handler,isFn,self,arg1){if(isFn)handler.call(self,arg1);else{var len=handler.length;var listeners=arrayClone(handler,len);for(var i=0;i<len;++i)listeners[i].call(self,arg1)}}function emitTwo(handler,isFn,self,arg1,arg2){if(isFn)handler.call(self,arg1,arg2);else{var len=handler.length;var listeners=arrayClone(handler,len);for(var i=0;i<len;++i)listeners[i].call(self,arg1,arg2)}}function emitThree(handler,isFn,self,arg1,arg2,arg3){if(isFn)handler.call(self,arg1,arg2,arg3);else{var len=handler.length;var listeners=arrayClone(handler,len);for(var i=0;i<len;++i)listeners[i].call(self,arg1,arg2,arg3)}}function emitMany(handler,isFn,self,args){if(isFn)handler.apply(self,args);else{var len=handler.length;var listeners=arrayClone(handler,len);for(var i=0;i<len;++i)listeners[i].apply(self,args)}}EventEmitter.prototype.emit=function emit(type){var er,handler,len,args,i,events;var doError=type==="error";events=this._events;if(events)doError=doError&&events.error==null;else if(!doError)return false;if(doError){if(arguments.length>1)er=arguments[1];if(er instanceof Error){throw er}else{var err=new Error('Unhandled "error" event. ('+er+")");err.context=er;throw err}return false}handler=events[type];if(!handler)return false;var isFn=typeof handler==="function";len=arguments.length;switch(len){case 1:emitNone(handler,isFn,this);break;case 2:emitOne(handler,isFn,this,arguments[1]);break;case 3:emitTwo(handler,isFn,this,arguments[1],arguments[2]);break;case 4:emitThree(handler,isFn,this,arguments[1],arguments[2],arguments[3]);break;default:args=new Array(len-1);for(i=1;i<len;i++)args[i-1]=arguments[i];emitMany(handler,isFn,this,args)}return true};function _addListener(target,type,listener,prepend){var m;var events;var existing;if(typeof listener!=="function")throw new TypeError('"listener" argument must be a function');events=target._events;if(!events){events=target._events=objectCreate(null);target._eventsCount=0}else{if(events.newListener){target.emit("newListener",type,listener.listener?listener.listener:listener);events=target._events}existing=events[type]}if(!existing){existing=events[type]=listener;++target._eventsCount}else{if(typeof existing==="function"){existing=events[type]=prepend?[listener,existing]:[existing,listener]}else{if(prepend){existing.unshift(listener)}else{existing.push(listener)}}if(!existing.warned){m=$getMaxListeners(target);if(m&&m>0&&existing.length>m){existing.warned=true;var w=new Error("Possible EventEmitter memory leak detected. "+existing.length+' "'+String(type)+'" listeners '+"added. Use emitter.setMaxListeners() to "+"increase limit.");w.name="MaxListenersExceededWarning";w.emitter=target;w.type=type;w.count=existing.length;if(typeof console==="object"&&console.warn){console.warn("%s: %s",w.name,w.message)}}}}return target}EventEmitter.prototype.addListener=function addListener(type,listener){return _addListener(this,type,listener,false)};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.prependListener=function prependListener(type,listener){return _addListener(this,type,listener,true)};function onceWrapper(){if(!this.fired){this.target.removeListener(this.type,this.wrapFn);this.fired=true;switch(arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:var args=new Array(arguments.length);for(var i=0;i<args.length;++i)args[i]=arguments[i];this.listener.apply(this.target,args)}}}function _onceWrap(target,type,listener){var state={fired:false,wrapFn:undefined,target:target,type:type,listener:listener};var wrapped=bind.call(onceWrapper,state);wrapped.listener=listener;state.wrapFn=wrapped;return wrapped}EventEmitter.prototype.once=function once(type,listener){if(typeof listener!=="function")throw new TypeError('"listener" argument must be a function');this.on(type,_onceWrap(this,type,listener));return this};EventEmitter.prototype.prependOnceListener=function prependOnceListener(type,listener){if(typeof listener!=="function")throw new TypeError('"listener" argument must be a function');this.prependListener(type,_onceWrap(this,type,listener));return this};EventEmitter.prototype.removeListener=function removeListener(type,listener){var list,events,position,i,originalListener;if(typeof listener!=="function")throw new TypeError('"listener" argument must be a function');events=this._events;if(!events)return this;list=events[type];if(!list)return this;if(list===listener||list.listener===listener){if(--this._eventsCount===0)this._events=objectCreate(null);else{delete events[type];if(events.removeListener)this.emit("removeListener",type,list.listener||listener)}}else if(typeof list!=="function"){position=-1;for(i=list.length-1;i>=0;i--){if(list[i]===listener||list[i].listener===listener){originalListener=list[i].listener;position=i;break}}if(position<0)return this;if(position===0)list.shift();else spliceOne(list,position);if(list.length===1)events[type]=list[0];if(events.removeListener)this.emit("removeListener",type,originalListener||listener)}return this};EventEmitter.prototype.removeAllListeners=function removeAllListeners(type){var listeners,events,i;events=this._events;if(!events)return this;if(!events.removeListener){if(arguments.length===0){this._events=objectCreate(null);this._eventsCount=0}else if(events[type]){if(--this._eventsCount===0)this._events=objectCreate(null);else delete events[type]}return this}if(arguments.length===0){var keys=objectKeys(events);var key;for(i=0;i<keys.length;++i){key=keys[i];if(key==="removeListener")continue;this.removeAllListeners(key)}this.removeAllListeners("removeListener");this._events=objectCreate(null);this._eventsCount=0;return this}listeners=events[type];if(typeof listeners==="function"){this.removeListener(type,listeners)}else if(listeners){for(i=listeners.length-1;i>=0;i--){this.removeListener(type,listeners[i])}}return this};function _listeners(target,type,unwrap){var events=target._events;if(!events)return[];var evlistener=events[type];if(!evlistener)return[];if(typeof evlistener==="function")return unwrap?[evlistener.listener||evlistener]:[evlistener];return unwrap?unwrapListeners(evlistener):arrayClone(evlistener,evlistener.length)}EventEmitter.prototype.listeners=function listeners(type){return _listeners(this,type,true)};EventEmitter.prototype.rawListeners=function rawListeners(type){return _listeners(this,type,false)};EventEmitter.listenerCount=function(emitter,type){if(typeof emitter.listenerCount==="function"){return emitter.listenerCount(type)}else{return listenerCount.call(emitter,type)}};EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(type){var events=this._events;if(events){var evlistener=events[type];if(typeof evlistener==="function"){return 1}else if(evlistener){return evlistener.length}}return 0}EventEmitter.prototype.eventNames=function eventNames(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};function spliceOne(list,index){for(var i=index,k=i+1,n=list.length;k<n;i+=1,k+=1)list[i]=list[k];list.pop()}function arrayClone(arr,n){var copy=new Array(n);for(var i=0;i<n;++i)copy[i]=arr[i];return copy}function unwrapListeners(arr){var ret=new Array(arr.length);for(var i=0;i<ret.length;++i){ret[i]=arr[i].listener||arr[i]}return ret}function objectCreatePolyfill(proto){var F=function(){};F.prototype=proto;return new F}function objectKeysPolyfill(obj){var keys=[];for(var k in obj)if(Object.prototype.hasOwnProperty.call(obj,k)){keys.push(k)}return k}function functionBindPolyfill(context){var fn=this;return function(){return fn.apply(context,arguments)}}},{}]},{},[3]);{% endraw %}</script>
    </body>
</html>
