From 7e6523178d5e29e1e7f22ce9c8d9dc0b0148d258 Mon Sep 17 00:00:00 2001 From: Taras Novak Date: Sun, 12 May 2019 12:22:16 -0500 Subject: [PATCH] added perspectivejs, viewer & grid plugin to /scripts for #30 new data preview webview --- scripts/hypergrid.plugin.js | 6 ++++++ scripts/perspective.js | 2 ++ scripts/perspective.view.js | 12 ++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 scripts/hypergrid.plugin.js create mode 100644 scripts/perspective.js create mode 100644 scripts/perspective.view.js diff --git a/scripts/hypergrid.plugin.js b/scripts/hypergrid.plugin.js new file mode 100644 index 0000000..d76cf8b --- /dev/null +++ b/scripts/hypergrid.plugin.js @@ -0,0 +1,6 @@ +!function(root,factory){"object"==typeof exports&&"object"==typeof module?module.exports=factory():"function"==typeof define&&define.amd?define([],factory):"object"==typeof exports?exports["perspective-view-hypergrid"]=factory():root["perspective-view-hypergrid"]=factory()}("undefined"!=typeof self?self:this,function(){return function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}var installedModules={};return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{configurable:!1,enumerable:!0,get:getter})},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=118)}([function(module,exports,__webpack_require__){var global=__webpack_require__(2),core=__webpack_require__(15),hide=__webpack_require__(13),redefine=__webpack_require__(12),ctx=__webpack_require__(18),$export=function(type,name,source){var key,own,out,exp,IS_FORCED=type&$export.F,IS_GLOBAL=type&$export.G,IS_STATIC=type&$export.S,IS_PROTO=type&$export.P,IS_BIND=type&$export.B,target=IS_GLOBAL?global:IS_STATIC?global[name]||(global[name]={}):(global[name]||{}).prototype,exports=IS_GLOBAL?core:core[name]||(core[name]={}),expProto=exports.prototype||(exports.prototype={});IS_GLOBAL&&(source=name);for(key in source)own=!IS_FORCED&&target&&void 0!==target[key],out=(own?target:source)[key],exp=IS_BIND&&own?ctx(out,global):IS_PROTO&&"function"==typeof out?ctx(Function.call,out):out,target&&redefine(target,key,out,type&$export.U),exports[key]!=out&&hide(exports,key,exp),IS_PROTO&&expProto[key]!=out&&(expProto[key]=out)};global.core=core,$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128,module.exports=$export},function(module,exports,__webpack_require__){var store=__webpack_require__(36)("wks"),uid=__webpack_require__(23),Symbol=__webpack_require__(2).Symbol,USE_SYMBOL="function"==typeof Symbol;(module.exports=function(name){return store[name]||(store[name]=USE_SYMBOL&&Symbol[name]||(USE_SYMBOL?Symbol:uid)("Symbol."+name))}).store=store},function(module,exports){var global=module.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=global)},function(module,exports,__webpack_require__){var isObject=__webpack_require__(5);module.exports=function(it){if(!isObject(it))throw TypeError(it+" is not an object!");return it}},function(module,exports,__webpack_require__){"use strict";var Base=__webpack_require__(10),Feature=Base.extend("Feature",{next:null,detached:null,cursor:null,currentHoverCell:null,setNext:function(nextFeature){this.next?this.next.setNext(nextFeature):(this.next=nextFeature,this.detached=nextFeature)},detachChain:function(){this.next=null},attachChain:function(){this.next=this.detached},handleMouseMove:function(grid,event){this.next&&this.next.handleMouseMove(grid,event)},handleMouseExit:function(grid,event){this.next&&this.next.handleMouseExit(grid,event)},handleMouseEnter:function(grid,event){this.next&&this.next.handleMouseEnter(grid,event)},handleMouseDown:function(grid,event){this.next&&this.next.handleMouseDown(grid,event)},handleMouseUp:function(grid,event){this.next&&this.next.handleMouseUp(grid,event)},handleKeyDown:function(grid,event){if(!this.next)return!0;this.next.handleKeyDown(grid,event)},handleKeyUp:function(grid,event){this.next&&this.next.handleKeyUp(grid,event)},handleWheelMoved:function(grid,event){this.next&&this.next.handleWheelMoved(grid,event)},handleDoubleClick:function(grid,event){this.next&&this.next.handleDoubleClick(grid,event)},handleClick:function(grid,event){this.next&&this.next.handleClick(grid,event)},handleMouseDrag:function(grid,event){this.next&&this.next.handleMouseDrag(grid,event)},handleContextMenu:function(grid,event){this.next&&this.next.handleContextMenu(grid,event)},moveSingleSelect:function(grid,x,y){this.next&&this.next.moveSingleSelect(grid,x,y)},isFirstFixedRow:function(grid,event){return event.gridCell.y<1},isFirstFixedColumn:function(grid,event){return 0===event.gridCell.x},setCursor:function(grid){this.next&&this.next.setCursor(grid),this.cursor&&grid.beCursor(this.cursor)},initializeOn:function(grid){this.next&&this.next.initializeOn(grid)}});module.exports=Feature},function(module,exports){module.exports=function(it){return"object"==typeof it?null!==it:"function"==typeof it}},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(e){return!0}}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(module,exports,__webpack_require__){var anObject=__webpack_require__(3),IE8_DOM_DEFINE=__webpack_require__(75),toPrimitive=__webpack_require__(52),dP=Object.defineProperty;exports.f=__webpack_require__(7)?Object.defineProperty:function(O,P,Attributes){if(anObject(O),P=toPrimitive(P,!0),anObject(Attributes),IE8_DOM_DEFINE)try{return dP(O,P,Attributes)}catch(e){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported!");return"value"in Attributes&&(O[P]=Attributes.value),O}},function(module,exports,__webpack_require__){"use strict";function addReadOnlyProperty(name,value){Object.defineProperty(this,name,{value:value,writable:!1,enumerable:!0,configurable:!1})}function Point(x,y){addReadOnlyProperty.call(this,"x",Number(x)||0),addReadOnlyProperty.call(this,"y",Number(y)||0)}function Rectangle(x,y,width,height){x=Number(x)||0,y=Number(y)||0,width=Number(width)||0,height=Number(height)||0,width<0&&(x+=width,width=-width),height<0&&(y+=height,height=-height),addReadOnlyProperty.call(this,"origin",new Point(x,y)),addReadOnlyProperty.call(this,"extent",new Point(width,height)),addReadOnlyProperty.call(this,"corner",new Point(x+width,y+height)),addReadOnlyProperty.call(this,"center",new Point(x+width/2,y+height/2))}Point.prototype={plus:function(offset){return new Point(this.x+offset.x,this.y+offset.y)},plusXY:function(offsetX,offsetY){return new Point(this.x+(offsetX||0),this.y+(offsetY||0))},minus:function(offset){return new Point(this.x-offset.x,this.y-offset.y)},min:function(point){return new Point(Math.min(this.x,point.x),Math.min(this.y,point.y))},max:function(point){return new Point(Math.max(this.x,point.x),Math.max(this.y,point.y))},distance:function(point){var deltaX=point.x-this.x,deltaY=point.y-this.y;return Math.sqrt(deltaX*deltaX+deltaY*deltaY)},equals:function(point){var result=!1;return point&&(result=this.x===point.x&&this.y===point.y),result},greaterThan:function(point){return this.x>point.x&&this.y>point.y},lessThan:function(point){return this.x=point.x&&this.y>=point.y},lessThanOrEqualTo:function(point){return this.x<=point.x&&this.y<=point.y},within:function(rect){var minX=rect.origin.x,maxX=minX+rect.extent.x,minY=rect.origin.y,maxY=minY+rect.extent.y;return rect.extent.x<0&&(minX=maxX,maxX=rect.origin.x),rect.extent.y<0&&(minY=maxY,maxY=rect.origin.y),minX<=this.x&&this.x0&&extent.y>0?result=new Rectangle(origin.x,origin.y,extent.x,extent.y):"function"==typeof ifNoneAction&&(result=ifNoneAction.call(context||this,rect)),result},intersects:function(rect){return rect.corner.x>this.origin.x&&rect.corner.y>this.origin.y&&rect.origin.x0||0===delta[0]&&(delta[1]>0||0===delta[1]&&delta[2]>=0)},Base.prototype.deprecated=__webpack_require__(156),Base.prototype.HypergridError=__webpack_require__(33),Base.prototype.notify=function(message,onerror){switch(onerror){case"warn":console.warn(message);break;case"alert":alert(message);break;default:throw new this.HypergridError(message)}},Base.prototype.unwrap=function(value){return"f"===(typeof value)[0]&&(value=value()),value},Base.prototype.mixIn=__webpack_require__(46).mixIn,Base.prototype.createApply=function(Constructor,variableArgArray,discreteArgs){var discreteArgArray=Array.prototype.slice.call(arguments,2),args=[null].concat(discreteArgArray).concat(variableArgArray);return new(Constructor.bind.apply(Constructor,args))},module.exports=Base},function(module,exports,__webpack_require__){"use strict";var Base=__webpack_require__(10),CellRenderer=Base.extend("CellRenderer",{paint:function(gc,config){},roundRect:function(gc,x,y,width,height,radius,fill,stroke){stroke||(stroke=!0),radius||(radius=5),gc.beginPath(),gc.moveTo(x+radius,y),gc.lineTo(x+width-radius,y),gc.quadraticCurveTo(x+width,y,x+width,y+radius),gc.lineTo(x+width,y+height-radius),gc.quadraticCurveTo(x+width,y+height,x+width-radius,y+height),gc.lineTo(x+radius,y+height),gc.quadraticCurveTo(x,y+height,x,y+height-radius),gc.lineTo(x,y+radius),gc.quadraticCurveTo(x,y,x+radius,y),gc.closePath(),stroke&&gc.stroke(),fill&&gc.fill(),gc.closePath()}});module.exports=CellRenderer},function(module,exports,__webpack_require__){var global=__webpack_require__(2),hide=__webpack_require__(13),has=__webpack_require__(14),SRC=__webpack_require__(23)("src"),$toString=__webpack_require__(119),TPL=(""+$toString).split("toString");__webpack_require__(15).inspectSource=function(it){return $toString.call(it)},(module.exports=function(O,key,val,safe){var isFunction="function"==typeof val;isFunction&&(has(val,"name")||hide(val,"name",key)),O[key]!==val&&(isFunction&&(has(val,SRC)||hide(val,SRC,O[key]?""+O[key]:TPL.join(String(key)))),O===global?O[key]=val:safe?O[key]?O[key]=val:hide(O,key,val):(delete O[key],hide(O,key,val)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[SRC]||$toString.call(this)})},function(module,exports,__webpack_require__){var dP=__webpack_require__(8),createDesc=__webpack_require__(35);module.exports=__webpack_require__(7)?function(object,key,value){return dP.f(object,key,createDesc(1,value))}:function(object,key,value){return object[key]=value,object}},function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module,exports){var core=module.exports={version:"2.6.5"};"number"==typeof __e&&(__e=core)},function(module,exports){module.exports=function(it){if("function"!=typeof it)throw TypeError(it+" is not a function!");return it}},function(module,exports,__webpack_require__){"use strict";function nullPattern(){}function px(n){return n+"px"}var Base=__webpack_require__(10),effects=__webpack_require__(177),Localization=__webpack_require__(66),CellEditor=Base.extend("CellEditor",{initialize:function(grid,options){for(var key in options)this[key]=options[key];this.event=options;var value=this.event.value;value instanceof Array&&(value=value[1]),this.grid=grid,this.grid.cellEditor=this,this.locale=grid.localization.locale;var localizer=this.grid.localization.get(options.format);localizer!==Localization.prototype.string&&"string"!==options.format&&(this.localizer=localizer),this.initialValue=value;var container=document.createElement("DIV");container.innerHTML=this.grid.modules.templater.render(this.template,this),this.el=container.firstChild,this.input=this.el,this.errors=0;var self=this;this.el.addEventListener("keyup",this.keyup.bind(this)),this.el.addEventListener("keydown",function(e){9===e.keyCode&&e.preventDefault(),grid.fireSyntheticEditorKeyDownEvent(self,e)}),this.el.addEventListener("keypress",function(e){grid.fireSyntheticEditorKeyPressEvent(self,e)}),this.el.addEventListener("mousedown",function(e){self.onmousedown(e)})},onmousedown:function(event){event.stopPropagation()},localizer:Localization.prototype.null,specialKeyups:{9:"stopEditing",13:"stopEditing",27:"cancelEditing"},keyup:function(e){var specialKeyup,stopped,grid=this.grid,cellProps=this.event.properties,feedbackCount=cellProps.feedbackCount,keyChar=grid.canvas.getKeyChar(e);if((specialKeyup=this.specialKeyups[e.keyCode])&&(stopped=this[specialKeyup](feedbackCount))&&grid.repaint(),cellProps.mappedNavKey(keyChar,e.ctrlKey)&&(!specialKeyup&&(stopped=this.stopEditing(feedbackCount))&&grid.repaint(),stopped)){var finEvent=grid.canvas.newEvent(e,"fin-editor-keydown",{grid:grid,alt:e.altKey,ctrl:e.ctrlKey,char:keyChar,legacyChar:e.legacyKey,code:e.charCode,key:e.keyCode,meta:e.metaKey,shift:e.shiftKey,identifier:e.key,editor:this});grid.delegateKeyDown(finEvent)}return this.grid.fireSyntheticEditorKeyUpEvent(this,e),stopped},checkEditorPositionFlag:!1,gridRenderedNotification:function(){this.checkEditor()},scrollValueChangedNotification:function(){this.checkEditorPositionFlag=!0},moveEditor:function(){this.setBounds(this.event.bounds)},beginEditing:function(){this.grid.fireRequestCellEdit(this.event,this.initialValue)&&(this.checkEditorPositionFlag=!0,this.checkEditor())},setEditorValue:function(value){this.input.value=this.localizer.format(value)},showEditor:function(){this.el.style.display="inline"},hideEditor:function(){this.el.style.display="none"},stopEditing:function(feedback){var str=this.input.value;try{var error=this.validateEditorValue(str);if(!error)var value=this.getEditorValue(str)}catch(err){error=err}if(!error&&this.grid.fireSyntheticEditorDataChangeEvent(this,this.initialValue,value))try{this.saveEditorValue(value)}catch(err){error=err}return error?feedback>=0?this.errorEffectBegin(++this.errors%feedback==0&&error):this.cancelEditing():(this.hideEditor(),this.grid.cellEditor=null,this.el.remove()),!error},cancelEditing:function(){return this.setEditorValue(this.initialValue),this.hideEditor(),this.grid.cellEditor=null,this.el.remove(),this.grid.takeFocus(),!0},errorEffectBegin:function(error){if(!this.effecting){var spec=this.grid.properties.feedbackEffect,effect=effects[spec.name||spec];if(effect){var options=Object.assign({},spec.options);options.callback=this.errorEffectEnd.bind(this,error),this.effecting=!0,effect.call(this,options)}}},errorEffectEnd:function(error,options){if(error){var msg='Invalid value. To resolve, do one of the following:\n\n * Correct the error and try again.\n - or -\n * Cancel editing by pressing the "esc" (escape) key.';error=error.message||error,"string"!=typeof error&&(error=""),this.localizer.expectation&&(error=error?error+"\n"+this.localizer.expectation:this.localizer.expectation),error&&(/[\n\r]/.test(error)&&(error="\n"+error,error=error.replace(/[\n\r]+/g,"\n\n * ")),msg+="\n\nAdditional information about this error: "+error),setTimeout(function(){alert(msg)})}this.effecting=!1},saveEditorValue:function(value){var save=!(value&&value===this.initialValue)&&this.grid.fireBeforeCellEdit(this.event.gridCell,this.initialValue,value,this);return save&&(this.event.value=value,this.grid.fireAfterCellEdit(this.event.gridCell,this.initialValue,value,this)),save},getEditorValue:function(str){return this.localizer.parse(str||this.input.value)},validateEditorValue:function(str){return this.localizer.invalid&&this.localizer.invalid(str||this.input.value)},takeFocus:function(){var el=this.el,leftWas=el.style.left,topWas=el.style.top;el.style.left=el.style.top=0;var x=window.scrollX,y=window.scrollY;this.input.focus(),window.scrollTo(x,y),this.selectAll(),el.style.left=leftWas,el.style.top=topWas},selectAll:nullPattern,setBounds:function(cellBounds){var style=this.el.style;style.left=px(cellBounds.x),style.top=px(cellBounds.y),style.width=px(cellBounds.width),style.height=px(cellBounds.height)},checkEditor:function(){this.checkEditorPositionFlag&&(this.checkEditorPositionFlag=!1,this.event.isCellVisible?(this.setEditorValue(this.initialValue),this.attachEditor(),this.moveEditor(),this.showEditor(),this.takeFocus()):this.hideEditor())},attachEditor:function(){this.grid.div.appendChild(this.el)},template:""});module.exports=CellEditor},function(module,exports,__webpack_require__){var aFunction=__webpack_require__(16);module.exports=function(fn,that,length){if(aFunction(fn),void 0===that)return fn;switch(length){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)}}},function(module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1)}},function(module,exports,__webpack_require__){var defined=__webpack_require__(26);module.exports=function(it){return Object(defined(it))}},function(module,exports,__webpack_require__){var $keys=__webpack_require__(77),enumBugKeys=__webpack_require__(58);module.exports=Object.keys||function(O){return $keys(O,enumBugKeys)}},function(module,exports,__webpack_require__){var IObject=__webpack_require__(54),defined=__webpack_require__(26);module.exports=function(it){return IObject(defined(it))}},function(module,exports){var id=0,px=Math.random();module.exports=function(key){return"Symbol(".concat(void 0===key?"":key,")_",(++id+px).toString(36))}},function(module,exports){module.exports=!1},function(module,exports,__webpack_require__){var ctx=__webpack_require__(18),IObject=__webpack_require__(54),toObject=__webpack_require__(20),toLength=__webpack_require__(27),asc=__webpack_require__(120);module.exports=function(TYPE,$create){var IS_MAP=1==TYPE,IS_FILTER=2==TYPE,IS_SOME=3==TYPE,IS_EVERY=4==TYPE,IS_FIND_INDEX=6==TYPE,NO_HOLES=5==TYPE||IS_FIND_INDEX,create=$create||asc;return function($this,callbackfn,that){for(var val,res,O=toObject($this),self=IObject(O),f=ctx(callbackfn,that,3),length=toLength(self.length),index=0,result=IS_MAP?create($this,length):IS_FILTER?create($this,0):void 0;length>index;index++)if((NO_HOLES||index in self)&&(val=self[index],res=f(val,index,O),TYPE))if(IS_MAP)result[index]=res;else if(res)switch(TYPE){case 3:return!0;case 5:return val;case 6:return index;case 2:result.push(val)}else if(IS_EVERY)return!1;return IS_FIND_INDEX?-1:IS_SOME||IS_EVERY?IS_EVERY:result}}},function(module,exports){module.exports=function(it){if(void 0==it)throw TypeError("Can't call method on "+it);return it}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(55),min=Math.min;module.exports=function(it){return it>0?min(toInteger(it),9007199254740991):0}},function(module,exports,__webpack_require__){"use strict";var fails=__webpack_require__(6);module.exports=function(method,arg){return!!method&&fails(function(){arg?method.call(null,function(){},1):method.call(null)})}},function(module,exports,__webpack_require__){for(var $iterators=__webpack_require__(30),getKeys=__webpack_require__(21),redefine=__webpack_require__(12),global=__webpack_require__(2),hide=__webpack_require__(13),Iterators=__webpack_require__(31),wks=__webpack_require__(1),ITERATOR=wks("iterator"),TO_STRING_TAG=wks("toStringTag"),ArrayValues=Iterators.Array,DOMIterables={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},collections=getKeys(DOMIterables),i=0;i=O.length?(this._t=void 0,step(1)):"keys"==kind?step(0,index):"values"==kind?step(0,O[index]):step(0,[index,O[index]])},"values"),Iterators.Arguments=Iterators.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries")},function(module,exports){module.exports={}},function(module,exports,__webpack_require__){"use strict";var classof=__webpack_require__(41),test={};test[__webpack_require__(1)("toStringTag")]="z",test+""!="[object z]"&&__webpack_require__(12)(Object.prototype,"toString",function(){return"[object "+classof(this)+"]"},!0)},function(module,exports,__webpack_require__){"use strict";function HypergridError(message){this.message=message}HypergridError.prototype=Object.create(Error.prototype),HypergridError.prototype.name="HypergridError",module.exports=HypergridError},function(module,exports,__webpack_require__){"use strict";function add(name,img,themeable,setSvgProps,styles){return/^data:image\/svg\+xml|\.svg/.test(img.src)&&(img.themeable=!!themeable,"object"==typeof setSvgProps&&(styles=setSvgProps,setSvgProps=void 0),setSvgProps&&(img.setSvgProps=setSvgProps),styles&&(img.themeableRules=createThemeableRules(name,img,setSvgProps,styles))),images[name]=img}function createThemeableRules(key,img,setSvgProps,styles){var styleEl=document.querySelector("style#injected-stylesheet-themeables");styleEl||(styleEl=document.createElement("style"),styleEl.id="injected-stylesheet-themeables",document.head.appendChild(styleEl));var sheet=styleEl.sheet;return(styles.length?styles:["background-image"]).reduce(function(rules,styleName){var selectorText=".hypergrid-"+styleName+"-"+key,ruleIndex=Array.prototype.findIndex.call(sheet.cssRules,function(rule){return rule.selectorText===selectorText});-1!==ruleIndex&&sheet.deleteRule(ruleIndex);var ruleStyles={};ruleStyles[styleName]="url("+img.src+")",img.width&&(ruleStyles.width=img.width+"px"),img.height&&(ruleStyles.height=img.height+"px");var styleCollection=Object.keys(ruleStyles).map(function(key){return key+":"+ruleStyles[key]}).join(";"),ruleText="{"+styleCollection+"}";sheet.insertRule(selectorText+ruleText);var themeableRule={rule:sheet.cssRules[0]};return setSvgProps&&(themeableRule.setSvgProps=setSvgProps),rules.push(themeableRule),rules},[])}function setTheme(theme){Object.keys(images).forEach(function(name){var img=images[name];img.themeable&&svgThemer.setImgSvgProps.call(img,theme,img.setSvgProps),img.themeableRules&&img.themeableRules.forEach(function(themeable){var selectorText=themeable.rule.selectorText,regex=new RegExp("^.hypergrid-("+svgThemer.cssImagePropertyNames.join("|")+")-.*$"),styleName=selectorText.replace(regex,"$1");svgThemer.setRuleSvgProps.call(themeable.rule,theme,img.setSvgProps,styleName)})})}function checkbox(state){return images[state?"checked":"unchecked"]}function filter(state){return images[state?"filter-on":"filter-off"]}var _=__webpack_require__(45),svgThemer=__webpack_require__(160),images=__webpack_require__(161);_(images).each(function(image,key){var element=new Image;element.src="data:"+image.type+";base64,"+image.data,images[key]=element}),images["checkbox-on"]=images.checked,images["checkbox-off"]=images.unchecked,Object.defineProperties(images,{add:{value:add},setTheme:{value:setTheme},checkbox:{value:checkbox},filter:{value:filter}}),module.exports=images},function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(1&bitmap),configurable:!(2&bitmap),writable:!(4&bitmap),value:value}}},function(module,exports,__webpack_require__){var core=__webpack_require__(15),global=__webpack_require__(2),store=global["__core-js_shared__"]||(global["__core-js_shared__"]={});(module.exports=function(key,value){return store[key]||(store[key]=void 0!==value?value:{})})("versions",[]).push({version:core.version,mode:__webpack_require__(24)?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},function(module,exports,__webpack_require__){var UNSCOPABLES=__webpack_require__(1)("unscopables"),ArrayProto=Array.prototype;void 0==ArrayProto[UNSCOPABLES]&&__webpack_require__(13)(ArrayProto,UNSCOPABLES,{}),module.exports=function(key){ArrayProto[UNSCOPABLES][key]=!0}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(3),dPs=__webpack_require__(125),enumBugKeys=__webpack_require__(58),IE_PROTO=__webpack_require__(57)("IE_PROTO"),Empty=function(){},createDict=function(){var iframeDocument,iframe=__webpack_require__(51)("iframe"),i=enumBugKeys.length;for(iframe.style.display="none",__webpack_require__(81).appendChild(iframe),iframe.src="javascript:",iframeDocument=iframe.contentWindow.document,iframeDocument.open(),iframeDocument.write("